## Show the original system, and the issue. ## See that the second request headers below shows 'timeout' of 5.0. ## it should have done both of the requests listed with 10.0
$ dpkg-query --show cloud-init cloud-init 0.7.9-0ubuntu1~16.10.1 $ lsb_release -sc yakkety $ grep http://169.254.169.254/openstack /var/log/cloud-init.log | grep 0/ | head -n 2 2017-03-08 19:49:18,879 - url_helper.py[DEBUG]: [0/1] open 'http://169.254.169.254/openstack' with {'allow_redirects': True, 'url': 'http://169.254.169.254/openstack', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'method': 'GET', 'timeout': 10.0} configuration 2017-03-08 19:49:19,350 - url_helper.py[DEBUG]: [0/6] open 'http://169.254.169.254/openstack' with {'allow_redirects': True, 'url': 'http://169.254.169.254/openstack', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'method': 'GET', 'timeout': 5.0} 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 deb http://nova.clouds.archive.ubuntu.com/ubuntu/ yakkety-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.10.1) ...
$ sudo rm -Rf /var/lib/cloud/ /var/log/cloud-init* && sudo reboot
### go back in see that both requests had timeout 10.0 $ grep http://169.254.169.254/openstack /var/log/cloud-init.log | grep 0/ | head -n 2 2017-03-08 19:59:43,702 - url_helper.py[DEBUG]: [0/1] open 'http://169.254.169.254/openstack' with {'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'url': 'http://169.254.169.254/openstack', 'timeout': 10.0, 'allow_redirects': True} configuration 2017-03-08 19:59:44,160 - url_helper.py[DEBUG]: [0/6] open 'http://169.254.169.254/openstack' with {'method': 'GET', 'headers': {'User-Agent': 'Cloud-Init/0.7.9'}, 'url': 'http://169.254.169.254/openstack', 'timeout': 10.0, 'allow_redirects': True} configuration
## Show the original system, and the issue.
## See that the second request headers below shows 'timeout' of 5.0.
## it should have done both of the requests listed with 10.0
$ dpkg-query --show cloud-init 16.10.1 169.254. 169.254/ openstack /var/log/ cloud-init. log | grep 0/ | head -n 2 py[DEBUG] : [0/1] open 'http:// 169.254. 169.254/ openstack' with {'allow_redirects': True, 'url': 'http:// 169.254. 169.254/ openstack', 'headers': {'User-Agent': 'Cloud- Init/0. 7.9'}, 'method': 'GET', 'timeout': 10.0} configuration py[DEBUG] : [0/6] open 'http:// 169.254. 169.254/ openstack' with {'allow_redirects': True, 'url': 'http:// 169.254. 169.254/ openstack', 'headers': {'User-Agent': 'Cloud- Init/0. 7.9'}, 'method': 'GET', 'timeout': 5.0} configuration sources. list) sources. list.d/ proposed. list nova.clouds. archive. ubuntu. com/ubuntu/ yakkety-proposed main universe 48-g1c795b9- 0ubuntu1~ 16.10.1) ...
cloud-init 0.7.9-0ubuntu1~
$ lsb_release -sc
yakkety
$ grep http://
2017-03-08 19:49:18,879 - url_helper.
2017-03-08 19:49:19,350 - url_helper.
$ 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/
$ echo "$line" | sudo tee /etc/apt/
deb http://
$ sudo apt-get update -q && sudo apt-get install cloud-init -q
...
Setting up cloud-init (0.7.9-
$ sudo rm -Rf /var/lib/cloud/ /var/log/ cloud-init* && sudo reboot
### go back in see that both requests had timeout 10.0 169.254. 169.254/ openstack /var/log/ cloud-init. log | grep 0/ | head -n 2 py[DEBUG] : [0/1] open 'http:// 169.254. 169.254/ openstack' with {'method': 'GET', 'headers': {'User-Agent': 'Cloud- Init/0. 7.9'}, 'url': 'http:// 169.254. 169.254/ openstack', 'timeout': 10.0, 'allow_redirects': True} configuration py[DEBUG] : [0/6] open 'http:// 169.254. 169.254/ openstack' with {'method': 'GET', 'headers': {'User-Agent': 'Cloud- Init/0. 7.9'}, 'url': 'http:// 169.254. 169.254/ openstack', 'timeout': 10.0, 'allow_redirects': True} configuration
$ grep http://
2017-03-08 19:59:43,702 - url_helper.
2017-03-08 19:59:44,160 - url_helper.