2014-08-14 12:24:57 |
Loic Lambiel |
bug |
|
|
added bug |
2014-08-22 07:53:24 |
Loic Lambiel |
attachment added |
|
cloud-init.log https://bugs.launchpad.net/cloud-init/+bug/1356855/+attachment/4184274/+files/cloud-init.log |
|
2014-08-22 15:45:24 |
Launchpad Janitor |
branch linked |
|
lp:cloud-init |
|
2014-08-22 15:45:44 |
Scott Moser |
cloud-init: importance |
Undecided |
Medium |
|
2014-08-22 15:45:44 |
Scott Moser |
cloud-init: status |
New |
Fix Committed |
|
2014-09-23 18:15:30 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/cloud-init |
|
2015-02-03 14:34:53 |
Dan Watkins |
description |
Hi,
Cloud-init 0.7.5 fails to get cloudstack user-data because of trailing slash (ok in previous versions).
As a temp workaround I use the following patch in url_helper.py line 239 (0.7.5-0ubuntu1):
if e.response.status_code == 404:
if url.endswith("/"):
url = url[:-1]
req_args["url"] = url
else:
url = url + "/"
req_args["url"] = url
I don't know how other products (EC2, openstack & co) deal with trailing slash
Hope that helps
Thanks |
=== Begin SRU Information ===
[Impact]
CloudStack provides an EC2-style metadata server which cloud-init consumes. Unfortunately, the CloudStack metadata server does not exactly match the behaviour of the EC2 metadata server. When an instance using cloud-init is booted in a CloudStack environment, it will fail to retrieve metadata from the metadata server. This leads to cloud-init bailing out and making no changes to the instance, generally rendering it inaccessible and unusable.
This patch changes all access to EC2-style metadata servers. Instead of accessing http://.../meta-data to determine the available metadata, cloud-init will access http://.../meta-data/ (i.e. with an added trailing slash).
[Test Case]
Booting an Ubuntu image configured to use the CloudStack data source within a CloudStack cloud environment. If (for example) the instance name is set correctly, then the fix has worked.
[Regression Potential]
Regression potential is low; this patch does affect more than just the CloudStack data source, but it is backported from the version of cloud-init in utopic which has been observed working.
=== End SRU Information ===
Hi,
Cloud-init 0.7.5 fails to get cloudstack user-data because of trailing slash (ok in previous versions).
As a temp workaround I use the following patch in url_helper.py line 239 (0.7.5-0ubuntu1):
if e.response.status_code == 404:
if url.endswith("/"):
url = url[:-1]
req_args["url"] = url
else:
url = url + "/"
req_args["url"] = url
I don't know how other products (EC2, openstack & co) deal with trailing slash
Hope that helps
Thanks |
|
2015-02-03 14:35:31 |
Dan Watkins |
bug task added |
|
cloud-init (Ubuntu) |
|
2015-02-03 14:43:06 |
Dan Watkins |
branch linked |
|
lp:~daniel-thewatkins/ubuntu/trusty/cloud-init/lp1356855 |
|
2015-02-03 14:54:39 |
Dan Watkins |
bug |
|
|
added subscriber Scott Moser |
2015-02-13 19:52:59 |
Scott Moser |
cloud-init (Ubuntu): importance |
Undecided |
Medium |
|
2015-02-13 19:52:59 |
Scott Moser |
cloud-init (Ubuntu): status |
New |
Fix Released |
|
2015-02-13 19:53:17 |
Scott Moser |
nominated for series |
|
Ubuntu Trusty |
|
2015-02-13 19:53:17 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Trusty) |
|
2015-02-13 19:53:17 |
Scott Moser |
nominated for series |
|
Ubuntu Utopic |
|
2015-02-13 19:53:17 |
Scott Moser |
bug task added |
|
cloud-init (Ubuntu Utopic) |
|
2015-02-13 19:57:18 |
Scott Moser |
cloud-init (Ubuntu Trusty): status |
New |
Confirmed |
|
2015-02-13 19:57:19 |
Scott Moser |
cloud-init (Ubuntu Trusty): importance |
Undecided |
High |
|
2015-02-13 19:57:22 |
Scott Moser |
cloud-init (Ubuntu Utopic): importance |
Undecided |
High |
|
2015-02-13 19:57:27 |
Scott Moser |
cloud-init (Ubuntu Utopic): status |
New |
Confirmed |
|
2015-02-25 15:28:15 |
Dan Watkins |
cloud-init (Ubuntu Trusty): assignee |
|
Daniel Watkins (daniel-thewatkins) |
|
2015-02-25 15:28:17 |
Dan Watkins |
cloud-init (Ubuntu Utopic): assignee |
|
Daniel Watkins (daniel-thewatkins) |
|
2015-02-25 16:10:55 |
Dan Watkins |
cloud-init (Ubuntu Utopic): status |
Confirmed |
Fix Released |
|
2015-02-25 16:11:14 |
Dan Watkins |
cloud-init (Ubuntu Utopic): assignee |
Daniel Watkins (daniel-thewatkins) |
|
|
2015-03-12 09:42:31 |
Dan Watkins |
cloud-init (Ubuntu Trusty): status |
Confirmed |
In Progress |
|
2015-03-12 19:01:46 |
Brian Murray |
cloud-init (Ubuntu Trusty): status |
In Progress |
Fix Committed |
|
2015-03-12 19:01:49 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2015-03-12 19:01:54 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2015-03-12 19:01:59 |
Brian Murray |
tags |
|
verification-needed |
|
2015-03-13 15:57:34 |
Dan Watkins |
tags |
verification-needed |
verification-done |
|
2015-03-25 09:53:59 |
Launchpad Janitor |
cloud-init (Ubuntu Trusty): status |
Fix Committed |
Fix Released |
|
2015-03-25 09:54:05 |
Adam Conrad |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2015-03-25 14:43:35 |
Dan Watkins |
cloud-init: status |
Fix Committed |
Fix Released |
|
2015-03-25 14:43:38 |
Dan Watkins |
cloud-init: assignee |
|
Dan Watkins (daniel-thewatkins) |
|
2015-04-01 15:07:33 |
Launchpad Janitor |
branch linked |
|
lp:ubuntu/trusty/cloud-init |
|
2023-05-10 04:10:06 |
James Falcon |
bug watch added |
|
https://github.com/canonical/cloud-init/issues/2476 |
|