[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
Hi Kevin, If you're seeing problems on precise, could you file a separate bug detailing your issues? The code path which this bug fixes doesn't exist in precise, so you must be seeing another issue. :) Thanks, Dan -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
Could this also please be ported to precise? -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
This bug was fixed in the package cloud-init - 0.7.5-0ubuntu1.5 --- cloud-init (0.7.5-0ubuntu1.5) trusty; urgency=medium * Backport support for fetching passwords in CloudStack (LP: #1422388). * Fix CloudStack metadata retrieval (LP: #1356855). -- Daniel Watkins daniel.watk...@canonical.com Wed, 11 Mar 2015 10:57:10 -0600 ** Changed in: cloud-init (Ubuntu Trusty) Status: Fix Committed = Fix Released -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
** Changed in: cloud-init Status: Fix Committed = Fix Released ** Changed in: cloud-init Assignee: (unassigned) = Dan Watkins (daniel-thewatkins) -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
I've tested this version on Interoute (which is a CloudStack cloud). I'll smoke test on another cloud, to ensure that we haven't regressed anything, and then mark this as verification-done. -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
Metadata retrieval still works on trusty, marking as verification-done. ** Tags removed: verification-needed ** Tags added: verification-done -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
** Changed in: cloud-init (Ubuntu Trusty) Status: Confirmed = In Progress -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
Hello Loic, or anyone else affected, Accepted cloud-init into trusty-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cloud- init/0.7.5-0ubuntu1.5 in a few hours, and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-needed to verification-done. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed. In either case, details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: cloud-init (Ubuntu Trusty) Status: In Progress = Fix Committed ** Tags added: verification-needed -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
** Changed in: cloud-init (Ubuntu Trusty) Assignee: (unassigned) = Daniel Watkins (daniel-thewatkins) ** Changed in: cloud-init (Ubuntu Utopic) Assignee: (unassigned) = Daniel Watkins (daniel-thewatkins) -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
** Changed in: cloud-init (Ubuntu Utopic) Status: Confirmed = Fix Released ** Changed in: cloud-init (Ubuntu Utopic) Assignee: Daniel Watkins (daniel-thewatkins) = (unassigned) -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
This is fix-released in ubuntu at 0.7.7~bzr1055-0ubuntu1 ** Changed in: cloud-init (Ubuntu) Importance: Undecided = Medium ** Changed in: cloud-init (Ubuntu) Status: New = Fix Released ** Also affects: cloud-init (Ubuntu Trusty) Importance: Undecided Status: New ** Also affects: cloud-init (Ubuntu Utopic) Importance: Undecided Status: New ** Changed in: cloud-init (Ubuntu Trusty) Status: New = Confirmed ** Changed in: cloud-init (Ubuntu Trusty) Importance: Undecided = High ** Changed in: cloud-init (Ubuntu Utopic) Importance: Undecided = High ** Changed in: cloud-init (Ubuntu Utopic) Status: New = Confirmed -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
** Description changed: + === 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 + 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 + I don't know how other products (EC2, openstack co) deal with trailing + slash Hope that helps Thanks ** Also 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
[Bug 1356855] Re: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash
** Branch linked: lp:~daniel-thewatkins/ubuntu/trusty/cloud- init/lp1356855 -- 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/1356855 Title: Cloud-init 0.7.5 Failed to get cloudstack user-data because of trailing slash To manage notifications about this bug go to: https://bugs.launchpad.net/cloud-init/+bug/1356855/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs