[Bug 1235231] Re: ci-info: eth0 not reliable in latest saucy images
Scott Moser
smoser at ubuntu.com
Fri Oct 4 18:05:04 UTC 2013
Heres a simple reproduce that shows the issue.
it seems racy condition like.
rel="saucy"
dimg="$rel-server-cloudimg-amd64-disk1.img"
dbase_url="http://cloud-images.ubuntu.com/$rel/current/"
mylogger_url="https://launchpadlibrarian.net/152522734/my-logger.conf"
## get files and prereqs
sudo apt-get install cloud-image-utils
wget "${dbase_url}$dimg" -O $dimg.dist
wget "$mylogger_url" -O my-logger.conf
cat > user-data <<EOF
#cloud-config
password: passw0rd
chpasswd: { expire: False }
ssh_pwauth: True
EOF
# create a 'seed.img' for cloud-init local datasource
cloud-localds seed.img user-data
# create a 'disk1.img' backed by the downloaded disk
qemu-img create -f qcow2 -b $dimg.dist disk1.img
# patch it with 'my-logger.conf'
sudo mount-image-callback -v disk1.img -- \
sh -c 'cp my-logger.conf $MOUNTPOINT/etc/init/my-logger.conf'
# boot in kvm with log to 'serial.log'
kvm -net nic -net user,hostfwd=tcp::2222-:22 \
-drive file=disk1.img,if=virtio -drive file=seed.img,if=virtio \
-serial file:serial.log -curses
# after the system boots, you can ssh to localhost on port 2222 and
# log in with 'ubuntu' and 'passw0rd'
# you'll see that /run/my.log has output in it.
** Also affects: upstart (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1235231
Title:
ci-info: eth0 not reliable in latest saucy images
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1235231/+subscriptions
More information about the Ubuntu-server-bugs
mailing list