Unable to connect VM to a specific subnet

Bug #1298217 reported by Yair Fried
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Opinion
Wishlist
Unassigned

Bug Description

VM can only connected (on creation or later) to a network and not to a specific subnet on that network.
Same goes for port - you cannot create a port on a specific subnet in a network.

This is inconsistent with router-interface-add which targets a specific subnet instead of network.

It also greatly limits the user's ability to manage VMs in his own network

port and VM creation should allow user to target a specific subnet.

Tags: network
Yair Fried (yfried)
description: updated
Revision history for this message
Eugene Nikanorov (enikanorov) wrote :

On the neutron side - it is possible. You need to specify "fixed_ip" for the port.
Fixed ip is a list of {ip_address, subnet_id} dicts. Ip address for fixed_ip may be omitted and then subnet_id will be used to allocate ip address from the appropriate subnet.

Changed in neutron:
status: New → Invalid
Revision history for this message
Yair Fried (yfried) wrote :

Didn't know about using "fixed ip" to choose subnet. I still think the API/CLI should support subnet name/id same as choosing network.
We are using objects by name, then it should be possible to keep referring them the same way

Revision history for this message
Yair Fried (yfried) wrote :

name = name/id

Revision history for this message
Yair Fried (yfried) wrote :

OK, so I see the port thing was, indeed, invalid.
Nova doesn't accept the same syntax.
You could work around it by creating the port first and then attaching the VM to the port, but that seems like a bad practice

Tracy Jones (tjones-i)
tags: added: network
Aaron Rosen (arosen)
no longer affects: neutron
Changed in nova:
importance: Undecided → Low
Revision history for this message
Thang Pham (thang-pham) wrote :
Changed in nova:
status: New → Confirmed
importance: Low → Wishlist
Revision history for this message
Markus Zoeller (markus_z) (mzoeller) wrote :

This wishlist bug has been open a year without any activity. I'm going to move it to "Opinion / Wishlist", which is an easily-obtainable queue of older requests that have come on.

In case you want to work on that, consider writing a blueprints [1] and spec [2]. I'll recommend to read [3] if not yet done. The effort to implement the requested feature is then driven only by the blueprint (and spec).

References:
[1] https://blueprints.launchpad.net/nova/
[2] https://github.com/openstack/nova-specs
[3] https://wiki.openstack.org/wiki/Blueprints

Changed in nova:
status: Confirmed → Opinion
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.