## 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 ** Tags removed: verification-needed ** Tags added: verification-done-xenial verification-done-yakkety -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1657130 Title: get_data in DataSourceOpenStack.py can time out if metadata service is slow To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1657130/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
