← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1831247] Re: Error with multiple networks, when kwargs["nics"] is empty

 

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-networkambiguous-
error

But that blueprint doesn't have an owner at the moment.

** Also affects: rally
   Importance: Undecided
       Status: New

** Changed in: nova
       Status: New => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1831247

Title:
  Error with multiple networks, when kwargs["nics"] is empty

Status in OpenStack Compute (nova):
  Invalid
Status in Rally:
  New

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.boot_lock_unlock_and_delete tests
      scenario:
        NovaServers.boot_lock_unlock_and_delete:
          flavor:
            name: {{flavor_name}}
          image:
            name: {{image_name}}
      runner:
        constant:
          times: 1
          concurrency: 1
      contexts:
        network: {}

  Actual result
  =============
  I want to use network created by context, but method (in rally_openstack/scenarios/nova/utils.py, NR 80) doesn't allow that:

  if auto_assign_nic and not kwargs.get("nics", False):
      nic = self._pick_random_nic()
      if nic:
          kwargs["nics"] = nic

  Because of not selected network, there is error with multiple network
  raised.

  Logs & Configs
  ==============
  novaclient.exceptions.Conflict: Multiple possible networks found, use a Network ID to be more specific. (HTTP 409)

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1831247/+subscriptions


References