VMs can't be booted with networks without subnet

Bug #1304409 reported by Sudipta Biswas
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Expired
Undecided
Unassigned

Bug Description

Recently a change in the nova/network/neutronv2/api.py file is causing nova boots to fail for networks that do not have a subnet associated with them.

The following line in the api.py file is causing the issue:

            for net in nets:
                if not net.get('subnets'):
                    raise exception.NetworkRequiresSubnet(
                        network_uuid=net['id'])

This has to be fixed to allow users to do boots with networks that do not have a subnet associated with them.

The issue seems to be occuring post the commit done here:

https://review.openstack.org/gitweb?p=openstack%2Fnova.git;a=commitdiff;h=45e2398f0c01c327db46ce92fb9dda886455db9d

no longer affects: neutron
Tracy Jones (tjones-i)
tags: added: network
Revision history for this message
Thang Pham (thang-pham) wrote :

Are you saying that an instance should be able to boot without a network? How would you even get into the instance, if you do not have a root password set (which is the case for cloud-init images)? What is the use case for booting an instance without a network?

Revision history for this message
hzxiongwenwu (xwwzzy) wrote :

it no sense to boot a instance without a network.

Changed in nova:
status: New → Invalid
Revision history for this message
Sudipta Biswas (sbiswas7) wrote :

I referred to networks that do not have a subnet associated with them.
I did not mean booting an instance without a network.

Brent Eagles (beagles)
Changed in nova:
status: Invalid → Incomplete
Revision history for this message
Brent Eagles (beagles) wrote :

Actually this seems like a duplicate (or at least a close relative) of 1252410. There are other BZs related to this topic as well:

https://bugs.launchpad.net/nova/+bug/1039665
https://bugs.launchpad.net/nova/+bug/1175464

In short, this functionality is meant to be dependent on a neutron extension. Will the reporter review the aforementioned BZs and the referenced patch with this information and possible refine this BZ if necessary?

On a related note, did this work for you with neutron before? If so, can you specify the release?

Revision history for this message
Sudipta Biswas (sbiswas7) wrote :

This did work in the past when we were at Havana and worked in Ice House - just few weeks before it released.
The problem is possibly fixed with: https://bugs.launchpad.net/nova/+bug/1175464 (https://review.openstack.org/#/c/59578/)
But that change is not merged yet.

Brent Eagles (beagles)
tags: added: neutron
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for OpenStack Compute (nova) because there has been no activity for 60 days.]

Changed in nova:
status: Incomplete → Expired
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to nova (master)

Fix proposed to branch: master
Review: https://review.openstack.org/200046

Changed in nova:
assignee: nobody → Bence Romsics (bence-romsics)
status: Expired → In Progress
Changed in nova:
assignee: Bence Romsics (bence-romsics) → Geza Gemes (geza-gemes)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Related fix proposed to nova (master)

Related fix proposed to branch: master
Review: https://review.openstack.org/284095

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on nova (master)

Change abandoned by Michael Still (<email address hidden>) on branch: master
Review: https://review.openstack.org/200046
Reason: This patch has been idle for a long time, so I am abandoning it to keep the review clean sane. If you're interested in still working on this patch, then please unabandon it and upload a new patchset.

Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

Cleanup
=======

There are no open reviews for this bug report since more than 2 weeks.
To signal that to other contributors which might provide patches for
this bug, I switch the status from "In Progress" to "Confirmed" and
remove the assignee.
Feel free to add yourself as assignee and to push a review for it.

Changed in nova:
status: In Progress → Confirmed
assignee: Geza Gemes (geza-gemes) → nobody
importance: Undecided → Low
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote : Cleanup EOL bug report

This is an automated cleanup. This bug report has been closed because it
is older than 18 months and there is no open code change to fix this.
After this time it is unlikely that the circumstances which lead to
the observed issue can be reproduced.

If you can reproduce the bug, please:
* reopen the bug report (set to status "New")
* AND add the detailed steps to reproduce the issue (if applicable)
* AND leave a comment "CONFIRMED FOR: <RELEASE_NAME>"
  Only still supported release names are valid (LIBERTY, MITAKA, OCATA, NEWTON).
  Valid example: CONFIRMED FOR: LIBERTY

Changed in nova:
importance: Low → Undecided
status: Confirmed → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.