-
Notifications
You must be signed in to change notification settings - Fork 880
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
The OpenStack network_config.json implementation fails on Hyper-V compute nodes #2761
Comments
Launchpad user Scott Moser(smoser) wrote on 2016-11-22T16:51:49.342889+00:00 Hi, | This non-sense really needs to stop. I'm willing to take this, but lets please work to fix the source Adrian, You're welcome to use this bug. I've made it "Also affects nova". |
Launchpad user OpenStack Infra(hudson-openstack) wrote on 2016-11-22T17:16:23.907585+00:00 Fix proposed to branch: master |
Launchpad user Scott Moser(smoser) wrote on 2016-11-22T17:16:44.166134+00:00 I've put up a request at https://review.openstack.org/400883 |
Launchpad user Adrian Vladu(avladu) wrote on 2016-11-23T15:32:47.017396+00:00 Hello, as the exposing behavior for nova is like this since a few releases, it is hard to believe they will change it, due to the backwards compatibility. Basically a few stable OpenStack releases(Liberty, Mitaka, Newton, Ocata) will be probably be stuck with it :( |
Launchpad user Xiang Hui(xianghui) wrote on 2016-11-30T02:11:30.658719+00:00 @scott, thanks for your fixing! BTW, would this cloud-init version target to xenial later? |
Launchpad user Robie Basak(racb) wrote on 2016-12-09T18:21:05.766978+00:00 Hello Adrian, or anyone else affected, Accepted cloud-init into xenial-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cloud-init/0.7.8-49-g9e904bb-0ubuntu1~16.04.2 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 on 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 2016-12-19T15:00:46.226328+00:00 Adrian, Xiang, Could you please verify this and mark 'verification-done' ? At this point, this bug is blocking the release of cloud-init 0.7.8-49-g9e904bb-0ubuntu1~16.04.2 from xenial-proposed. That change contains fixes for other bugs that we need to get into -updates. I've made requests off-bug to both Xiang Hui and to Adrian Vladu, but have not gotten a response. Adrian has ACKed the upstream merge proposal at [1] with this fix. While the code change does change behavior, the chance for regression is very low. See the code that was changed in context at [2]. Basically we extended the list of "physical types" to add 'hw_veb', 'hyperv', 'vhostuser'. Previously, if that condition did not match, then we would raise a ValueError exception that is not handled, leaving the system basically un-usable. Now, the strings are considered valid as "physical" and cloud-init will configure the devices as needed. So: Worst case for regression is really "still doesn't work". -- |
Launchpad user Gabriel Samfira(gabriel-samfira) wrote on 2016-12-19T15:50:04.602252+00:00 Tested version 0.7.8-49-g9e904bb-0ubuntu1~16.04.2 on an OpenStack Mitaka install running Hyper-V as compute host. VM booted successfully and cloud-init finished its run. The following output is from inside the VM after accessing it via SSH: |
Launchpad user Launchpad Janitor(janitor) wrote on 2016-12-19T16:27:40.892634+00:00 This bug was fixed in the package cloud-init - 0.7.8-49-g9e904bb-0ubuntu1~16.04.2 cloud-init (0.7.8-49-g9e904bb-0ubuntu1~16.04.2) xenial-proposed; urgency=medium
-- Scott Moser smoser@ubuntu.com Thu, 01 Dec 2016 16:57:39 -0500 |
Launchpad user Robie Basak(racb) wrote on 2016-12-19T16:28:00.053690+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-12-23T17:36:54.546977+00:00 This is fixed in cloud-init 0.7.9. |
Launchpad user Brian Murray(brian-murray) wrote on 2017-01-12T19:47:49.811015+00:00 Hello Adrian, or anyone else affected, Accepted cloud-init into yakkety-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/cloud-init/0.7.8-68-gca3ae67-0ubuntu1~16.10.1 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 on 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 2017-01-27T14:34:49.013219+00:00 Hi, If it turns out that some interaction with yakkety made it not work, then we can re-address that. If an sru team member wishes to disagree with my argument above, please just set it back to verification-needed, and I will attempt to get someone to do that. Scott |
Launchpad user Steve Langasek(vorlon) wrote on 2017-01-27T17:35:23.555353+00:00 Because this SRU includes a large number of other bugfixes that have been verified in yakkety, we have confidence that the package is not fundamentally broken, and as you say this change has been verified on other releases, so I'm willing to accept this for the present SRU. (But I am not releasing it on a Friday.) |
Launchpad user Adrian Vladu(avladu) wrote on 2017-01-27T17:46:32.866420+00:00 Hello, sorry for the delay, we have successfully tested a latest yakkety image(we updated via chroot the cloud-init with the one from the -proposed repo). Thanks, |
Launchpad user Launchpad Janitor(janitor) wrote on 2017-01-30T18:18:12.820305+00:00 This bug was fixed in the package cloud-init - 0.7.8-68-gca3ae67-0ubuntu1~16.10.1 cloud-init (0.7.8-68-gca3ae67-0ubuntu1~16.10.1) yakkety; urgency=medium
-- Scott Moser smoser@ubuntu.com Mon, 19 Dec 2016 15:07:12 -0500 |
Launchpad user Scott Moser(smoser) wrote on 2017-03-29T19:52:16.339146+00:00 this is definitely not fix-released in nova. |
Launchpad user OpenStack Infra(hudson-openstack) wrote on 2017-04-11T18:26:12.236785+00:00 Reviewed: https://review.openstack.org/400883 commit f559be35a03f5801f527355895a97c89cdc3c336
|
Launchpad user OpenStack Infra(hudson-openstack) wrote on 2017-04-14T09:22:06.126431+00:00 This issue was fixed in the openstack/nova 16.0.0.0b1 development milestone. |
Launchpad user Sam Stoelinga(sammiestoel) wrote on 2017-04-26T18:02:22.856725+00:00 I still hit this issue on latest xenial cloudimg of April 25th. This is the error I saw when trying to run an Ubuntu 16.04 guest OS on a contrail based cloud: http://paste.openstack.org/show/608110/ |
Launchpad user OpenStack Infra(hudson-openstack) wrote on 2017-06-21T15:56:26.803320+00:00 Fix proposed to branch: stable/ocata |
Launchpad user Andrey Kirilochkin(andreika-mail) wrote on 2017-07-12T10:06:18.460115+00:00 Guys we still hitting the same bug, this started to be a huge issue for us. |
Launchpad user OpenStack Infra(hudson-openstack) wrote on 2017-08-12T14:03:14.514332+00:00 Reviewed: https://review.openstack.org/476195 commit cec7ecdc93c3b9ba401edf3cf84088b580247cb8
|
Launchpad user OpenStack Infra(hudson-openstack) wrote on 2017-08-22T11:39:35.762809+00:00 This issue was fixed in the openstack/nova 15.0.7 release. |
This bug was originally filed in Launchpad as LP: #1642679
Launchpad details
Launchpad user Adrian Vladu(avladu) wrote on 2016-11-17T17:46:24.611596+00:00
=== Begin SRU Template ===
[Impact]
When a config drive provides network_data.json on Azure OpenStack,
cloud-init will fail to configure networking.
Console log and /var/log/cloud-init.log will show:
ValueError: Unknown network_data link type: hyperv
This woudl also occur when the type of the network device as declared
to cloud-init was 'hw_veb', 'hyperv', 'vhostuser' or 'vrouter'.
[Test Case]
Launch an instance with config drive on hyperv cloud.
[Regression Potential]
Low to none. cloud-init is relaxing requirements and will accept things
now that it previously complained were invalid.
=== End SRU Template ===
We have discovered an issue when booting Xenial instances on OpenStack environments (Liberty or newer) and Hyper-V compute nodes using config drive as metadata source.
When applying the network_config.json, cloud-init fails with this error:
http://paste.openstack.org/show/RvHZJqn48JBb0TO9QznL/
The fix would be to add 'hyperv' as a link type here:
/usr/lib/python3/dist-packages/cloudinit/sources/helpers/openstack.py, line 587
Related bugs:
* bug 1674946: cloud-init fails with "Unknown network_data link type: dvs
* bug 1642679: OpenStack network_config.json implementation fails on Hyper-V compute nodes
The text was updated successfully, but these errors were encountered: