Error with multiple networks, when kwargs["nics"] is empty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Rally |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Description
===========
There is a situation with several scenarios, where parameter 'auto_assign_nic' is not available (for randomly chosen network prepared by context) and also net-id was not set.
Steps to reproduce
==================
For example this scenario:
- title: NovaServers.
scenario:
NovaServe
flavor:
name: {{flavor_name}}
image:
name: {{image_name}}
runner:
constant:
times: 1
contexts:
network: {}
Actual result
=============
I want to use network created by context, but method (in rally_openstack
if auto_assign_nic and not kwargs.get("nics", False):
nic = self._pick_
if nic:
Because of not selected network, there is error with multiple network raised.
Logs & Configs
==============
novaclient.
I'm not sure why this is a nova bug - if the tenant has multiple networks available to it, the request to create the server must specify a network (or port) otherwise yes you get the 400 NetworkAmbiguous error. This sounds like a Rally bug rather than a nova bug.
Note there is a related blueprint to add a default network attribute to neutron and then nova could use that in this case:
https:/ /blueprints. launchpad. net/nova/ +spec/deal- with-networkamb iguous- error
But that blueprint doesn't have an owner at the moment.