From e0fd027d2d0cb0939998204b200059061771bc07 Mon Sep 17 00:00:00 2001 From: Phil Day Date: Thu, 7 Mar 2013 13:19:09 +0000 Subject: Server create will only process "networks" if os-networks is loaded. When working with a quantum configuration and multiple networks you have to be able to pass in the requested network to avoid instances being attached to all networks, so this part of the request isn't really optional in practice However the os-network extension is not fully compatible with quantum, and the operations do map very well. For example: - Network creation has a set of options that are pretty nova-nets centric (such as VLAN) - Network creation is limited to admins - Network association and dis-association from projects is not the quantum model - cidr from quantum is not shown correctly in the output of nova network-list and network-show Rather than needing the os-networks extension to loaded and thereby exposing a bunch of calls that don't really map to quantum, it would be better to also allow processing of "networks" when the network api is configured to be quantum Fixes bug #1150250 Change-Id: I0cc1faf6417d7a004dd9f0ff772860237fc94c57 --- nova/api/openstack/compute/servers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'nova/api') diff --git a/nova/api/openstack/compute/servers.py b/nova/api/openstack/compute/servers.py index 3464cfdbd..73ca63ec2 100644 --- a/nova/api/openstack/compute/servers.py +++ b/nova/api/openstack/compute/servers.py @@ -768,7 +768,8 @@ class Controller(wsgi.Controller): sg_names = list(set(sg_names)) requested_networks = None - if self.ext_mgr.is_loaded('os-networks'): + if (self.ext_mgr.is_loaded('os-networks') + or self._is_quantum_v2()): requested_networks = server_dict.get('networks') if requested_networks is not None: -- cgit