[Bug 1298921] [NEW] cloud-init should give up on 404 errors

Juerg Haefliger 1298921 at bugs.launchpad.net
Fri Mar 28 11:06:44 UTC 2014


Public bug reported:

On OpenStack, the CloudStack handler is retyring even if the response is
404, resulting in a 2 min timeout.

IMHO, readurl() should abort in this case.


ci-info: | Route | Destination | Gateway  |    Genmask    | Interface | Flags |
ci-info: +-------+-------------+----------+---------------+-----------+-------+
ci-info: |   0   |   0.0.0.0   | 10.0.0.1 |    0.0.0.0    |    eth0   |   UG  |
ci-info: |   1   |   10.0.0.0  | 0.0.0.0  | 255.255.255.0 |    eth0   |   U   |
ci-info: +-------+-------------+----------+---------------+-----------+-------+
2014-03-28 04:56:40,733 - url_helper.py[WARNING]: Calling 'http://10.0.0.1//latest/meta-data/instance-id' failed [0/120s]: bad status code [404]
2014-03-28 04:56:41,738 - url_helper.py[WARNING]: Calling 'http://10.0.0.1//latest/meta-data/instance-id' failed [1/120s]: bad status code [404]

<SNIP>

2014-03-28 04:58:32,946 - url_helper.py[WARNING]: Calling 'http://10.0.0.1//latest/meta-data/instance-id' failed [112/120s]: bad status code [404]
2014-03-28 04:58:39,953 - url_helper.py[WARNING]: Calling 'http://10.0.0.1//latest/meta-data/instance-id' failed [119/120s]: request error [HTTPConnectionPool(host='10.0.0.1', port=80): Max retries exceeded with url: //latest/meta-data/instance-id (Caused by <class 'socket.error'>: [Errno 115] Operation now in progress)]
2014-03-28 04:58:46,959 - DataSourceCloudStack.py[CRITICAL]: Giving up on waiting for the metadata from ['http://10.0.0.1//latest/meta-data/instance-id'] after 126 seconds

** Affects: cloud-init (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to cloud-init in Ubuntu.
https://bugs.launchpad.net/bugs/1298921

Title:
  cloud-init should give up on 404 errors

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1298921/+subscriptions



More information about the Ubuntu-server-bugs mailing list