cloud-init should give up on 404 errors
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init (Ubuntu) |
Fix Released
|
Low
|
Unassigned |
Bug Description
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.
2014-03-28 04:56:41,738 - url_helper.
<SNIP>
2014-03-28 04:58:32,946 - url_helper.
2014-03-28 04:58:39,953 - url_helper.
2014-03-28 04:58:46,959 - DataSourceCloud
Related branches
- Scott Moser: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 2321 lines (+1535/-239)26 files modifiedcloudinit/config/cc_snap.py (+2/-45)
cloudinit/config/cc_ubuntu_advantage.py (+173/-0)
cloudinit/config/tests/test_snap.py (+6/-51)
cloudinit/config/tests/test_ubuntu_advantage.py (+269/-0)
cloudinit/ec2_utils.py (+2/-4)
cloudinit/net/netplan.py (+9/-16)
cloudinit/sources/DataSourceAzure.py (+9/-22)
cloudinit/sources/DataSourceConfigDrive.py (+10/-0)
cloudinit/sources/DataSourceIBMCloud.py (+325/-0)
cloudinit/sources/DataSourceScaleway.py (+3/-3)
cloudinit/subp.py (+57/-0)
cloudinit/tests/test_subp.py (+61/-0)
cloudinit/tests/test_util.py (+72/-0)
cloudinit/url_helper.py (+12/-8)
cloudinit/util.py (+31/-0)
config/cloud.cfg.tmpl (+3/-0)
debian/changelog (+19/-0)
doc/rtd/topics/modules.rst (+1/-0)
tests/unittests/test_datasource/test_azure.py (+7/-15)
tests/unittests/test_datasource/test_ibmcloud.py (+262/-0)
tests/unittests/test_ds_identify.py (+112/-3)
tests/unittests/test_handler/test_schema.py (+1/-0)
tests/unittests/test_net.py (+12/-63)
tools/ds-identify (+60/-9)
tools/pipremove (+14/-0)
tox.ini (+3/-0)
- Scott Moser: Approve
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
- Paul Graydon: Pending requested
-
Diff: 35 lines (+7/-6)2 files modifiedcloudinit/sources/DataSourceScaleway.py (+3/-3)
cloudinit/url_helper.py (+4/-3)
Changed in cloud-init (Ubuntu): | |
importance: | Undecided → Low |
It would seem you've mis-configured something if you're hitting this.
Default settings put OpenStack before CloudStack, so it should only do this if you've somehow not found a openstack datasource.
can you post your whole cloud-init.log ?