## 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
$ dpkg-query --show cloud-init 16.04.2 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 {'timeout': 10.0, 'url': 'http:// 169.254. 169.254/ openstack', 'method': 'GET', 'headers': {'User-Agent': 'Cloud- Init/0. 7.9'}, 'allow_redirects': True} configuration 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 sources. list) sources. list.d/ proposed. list 20170308- 194839 nova.clouds. archive. ubuntu. com/ubuntu/ xenial-proposed main universe 48-g1c795b9- 0ubuntu1~ 16.04.1) ...
cloud-init 0.7.9-0ubuntu1~
$ lsb_release -sc
xenial
$ grep http://
2017-03-08 19:49:21,111 - url_helper.
2017-03-08 19:49:21,580 - 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/
sudo: unable to resolve host xenial-
deb http://
$ sudo apt-get update -q && sudo apt-get install cloud-init -q
...
Setting up cloud-init (0.7.9-
$ dpkg-query --show cloud-init g1c795b9- 0ubuntu1~ 16.04.1
cloud-init 0.7.9-48-
$ 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 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 {'timeout': 10.0, 'method': 'GET', 'headers': {'User-Agent': 'Cloud- Init/0. 7.9'}, 'url': 'http:// 169.254. 169.254/ openstack', 'allow_redirects': True} configuration 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
## both requests.
$ grep http://
2017-03-08 19:54:55,726 - url_helper.
2017-03-08 19:54:56,243 - url_helper.