New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
read_seeded broken #2546
Comments
Launchpad user Scott Moser(smoser) wrote on 2015-05-14T21:08:54.094435+00:00 fixed in trunk at 1102 |
Launchpad user Launchpad Janitor(janitor) wrote on 2015-05-15T21:35:54.855943+00:00 This bug was fixed in the package cloud-init - 0.7.7~bzr1106-0ubuntu1 cloud-init (0.7.7~bzr1106-0ubuntu1) wily; urgency=medium
-- Scott Moser smoser@ubuntu.com Fri, 15 May 2015 17:04:19 -0400 |
Launchpad user Scott Moser(smoser) wrote on 2015-06-09T01:27:42.341291+00:00 running this will: running it with PATCH_IMAGE=cloud-inig.deb will patch the image with the provided cloud-init.deb and then run. |
Launchpad user Chris J Arges(arges) wrote on 2015-06-10T17:54:28.509275+00:00 Hello Scott, or anyone else affected, Accepted cloud-init into vivid-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cloud-init/0.7.7~bzr1091-0ubuntu3 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! |
Launchpad user Scott Moser(smoser) wrote on 2015-06-10T20:18:33.412343+00:00 verified.
|
Launchpad user Scott Moser(smoser) wrote on 2015-06-10T20:20:13.001139+00:00 Then, just for fun inside the booted system I verified additionally with: |
Launchpad user Launchpad Janitor(janitor) wrote on 2015-06-18T16:15:44.427501+00:00 This bug was fixed in the package cloud-init - 0.7.7~bzr1091-0ubuntu3 cloud-init (0.7.7~bzr1091-0ubuntu3) vivid-proposed; urgency=medium
-- Scott Moser smoser@ubuntu.com Mon, 08 Jun 2015 15:39:32 -0400 |
Launchpad user Brian Murray(brian-murray) wrote on 2015-06-18T16:15:49.364107+00:00 The verification of the Stable Release Update for cloud-init has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions. |
Launchpad user Scott Moser(smoser) wrote on 2016-08-10T14:47:50.406994+00:00 This is fixed in cloud-init 0.7.7 |
This bug was originally filed in Launchpad as LP: #1455233
Launchpad details
Launchpad user Scott Moser(smoser) wrote on 2015-05-14T20:51:55.559184+00:00
=== Begin SRU Information ===
[Impact]
cloud-init cannot read a "seed". Many of the data-sources allow a seed from a url. This is useful in testing, especially with the NoCloud seed from the command line.
One of the functions in cloud-init simply does not work with python-3, and the patch makes that work. Patch is applied to upstream and present in wily.
[Test Case]
Run the attached test-bug-1455233. Without the patch applied, the system will boot and show error like in the serial.log:
util.py[WARNING]: Getting data from <class 'cloudinit.sources.DataSourceNoCloud.DataSourceNoCloudNet'> failed
Additionally, a simple test case can be done more directly by simply running
$ echo "my-userdata" > user-data
$ echo "instance-id: FOO" > meta-data
$ python -m SimpleHTTPServer 8999 &
$ python3 -c 'from cloudinit import util; print(util.read_seeded("http://localhost:8999/", retries=0))'
127.0.0.1 - - [09/Jun/2015 01:24:05] "GET /meta-data HTTP/1.1" 200 -
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3/dist-packages/cloudinit/util.py", line 842, in read_seeded
if md_resp.ok():
AttributeError: 'str' object has no attribute 'ok'
The added test case in the build process pushes the code through this function.
[Regression Potential]
This code was 100% broken in python3, so likelyhood of regression is very low.
=== End SRU Information ===
util.read_seeded uses load_tfile_or_url, but then treats the return value as if it was a response.
this regressed in revno 1067.
The text was updated successfully, but these errors were encountered: