Comment 4 for bug 1657130

Revision history for this message
Scott Moser (smoser) wrote :

$ dpkg-query --show cloud-init
cloud-init 0.7.9-0ubuntu1~16.04.2
$ lsb_release -sc
xenial
$ grep http://169.254.169.254/openstack /var/log/cloud-init.log | grep 0/ | head -n 2
2017-03-08 19:49:21,111 - url_helper.py[DEBUG]: [0/1] open 'http://169.254.169.254/openstack' with {'timeout': 10.0, 'url': 'http://169.254.169.254/openstack', 'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'allow_redirects': True} configuration
2017-03-08 19:49:21,580 - url_helper.py[DEBUG]: [0/6] open 'http://169.254.169.254/openstack' with {'timeout': 5.0, 'url': 'http://169.254.169.254/openstack', 'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'allow_redirects': True} configuration
$ rel=$(lsb_release -sc)
$ line=$(awk '$1 == "deb" && $2 ~ /ubuntu.com/ {
> printf("%s %s %s-proposed main universe\n", $1, $2, rel); exit(0) };
> ' "rel=$rel" /etc/apt/sources.list)
$ echo "$line" | sudo tee /etc/apt/sources.list.d/proposed.list
sudo: unable to resolve host xenial-20170308-194839
deb http://nova.clouds.archive.ubuntu.com/ubuntu/ xenial-proposed main universe
$ sudo apt-get update -q && sudo apt-get install cloud-init -q
...
Setting up cloud-init (0.7.9-48-g1c795b9-0ubuntu1~16.04.1) ...

$ dpkg-query --show cloud-init
cloud-init 0.7.9-48-g1c795b9-0ubuntu1~16.04.1

$ sudo rm -Rf /var/log/cloud-init* /var/lib/cloud && sudo reboot
$ sudo reboot

## go back in. Notice the difference here we have the 'timeout' of 10.0 in
## both requests.
$ grep http://169.254.169.254/openstack /var/log/cloud-init.log | grep 0/ | head -n 2
2017-03-08 19:54:55,726 - url_helper.py[DEBUG]: [0/1] open 'http://169.254.169.254/openstack' with {'timeout': 10.0, 'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'url': 'http://169.254.169.254/openstack', 'allow_redirects': True} configuration
2017-03-08 19:54:56,243 - url_helper.py[DEBUG]: [0/6] open 'http://169.254.169.254/openstack' with {'timeout': 10.0, 'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'url': 'http://169.254.169.254/openstack', 'allow_redirects': True} configuration