$ burl="http://cloud-images.ubuntu.com/daily/server"
$ for r in yakkety xenial; do
fname=$r-server-cloudimg-amd64.img
ofname="$fname"
[ "$r" = "xenial" ] && ofname=$r-server-cloudimg-amd64-disk1.img
pfname="${fname%.img}-proposed.img"
if [ ! -f "$fname" ]; then
proxy wget "$burl/$r/current/$ofname" -O "$fname.tmp" &&
mv "$fname.tmp" "$fname" || break
fi
if [ ! -f "$pfname" ]; then
qemu-img create -f qcow2 -b "$fname" "$pfname.tmp" || break
sudo mount-image-callback --system-resolvconf "$pfname.tmp" -- \
mchroot sh -ec '
r=$(lsb_release -sc)
m="http://archive.ubuntu.com/ubuntu"
plist="/etc/apt/sources.list.d/proposed.list"
echo "deb $m $r-proposed main" > "$plist"
apt-get update -q
DEBIAN_FRONTEND=noninteractive apt-get -qy install cloud-init
' </dev/null || break
mv $pfname.tmp $pfname
fi
done
$ for img in *-proposed.img; do
echo $img
sudo mount-image-callback "$img" -- mchroot dpkg-query --show cloud-init;
done
xenial-server-cloudimg-amd64-proposed.img
cloud-init 0.7.9-90-g61eb03fe-0ubuntu1~16.04.1
yakkety-server-cloudimg-amd64-proposed.img
cloud-init 0.7.9-90-g61eb03fe-0ubuntu1~16.10.1
## xenial
$ MODE=bond ./bond-rename-launch.sh xenial-server-cloudimg-amd64-proposed.img
... login as ubuntu:passw0rd ....
% dpkg-query --show cloud-init
cloud-init 0.7.9-90-g61eb03fe-0ubuntu1~16.04.1
% python3 -c 'from cloudinit.net import get_interfaces_by_mac;
print(get_interfaces_by_mac())'
{'00:00:00:00:00:00': 'lo', '52:54:00:12:34:02': 'interface1',
'52:54:00:12:34:00': 'interface0'}
% sudo cloud-init init
...
no stack trace
## yakkety
$ MODE=bond ./bond-rename-launch.sh xenial-server-cloudimg-amd64-proposed.img
... login as ubuntu:passw0rd ....
% dpkg-query --show cloud-init
cloud-init 0.7.9-90-g61eb03fe-0ubuntu1~16.10.1
% cat /etc/cloud/build.info
build_name: server
serial: 20170413
% python3 -c 'from cloudinit.net import get_interfaces_by_mac;
print(get_interfaces_by_mac())'
{'52:54:00:12:34:02': 'interface1', '00:00:00:00:00:00': 'lo',
'52:54:00:12:34:00': 'interface0'}
% sudo cloud-init init
...
no stack trace
** Attachment removed: "bond-rename-launch.sh"
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1669860/+attachment/4841194/+files/bond-rename-launch.sh
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1669860
Title:
cloud-init attempts to rename bonds
To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1669860/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs