← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1380544] [NEW] Failed to boot instance with multi-nics in 1 network.

 

Public bug reported:

According to BP multiple-
if-1-net(https://blueprints.launchpad.net/nova/+spec/multiple-if-1-net),
I set the neutron.allow_duplicate_networks = True, then I try to boot
instance with multi nics in 1 network, like this:

stack@devstack:/home/devstack$  [master]$ nova boot --image cirros-0.3.2-x86_64-disk --flavor m1.tiny --nic net-id=e41dba8f-3931-46f0-b67b-8e5d344c391e --nic net-id=e41dba8f-3931-46f0-b67b-8e5d344c391e chenrui_nics
ERROR (BadRequest): Duplicate networks (e41dba8f-3931-46f0-b67b-8e5d344c391e) are not allowed (HTTP 400) (Request-ID: req-fa30161a-38e2-4ee7-a00b-47a39f9e9cc6)

Duplicate networks error is returned from nova api.

Error log in nova-api.log

2014-10-13 16:40:29.675 DEBUG nova.api.openstack.wsgi [req-c1677f53-711f-4089-8daf-34d716379964 admin admin] Action: 'create', calling method: <bound method Controller.create of <nova.api.openstack.compute.servers.Controller object at 0x7f2d4a6bdf10>>, body: {"server": {"name": "chenrui_nics1", "imageRef": "607d418d-f521-4379-a182-e3ea46627417", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "05328143-af68-4f90-9c76-c24930d39e69"}, {"uuid": "05328143-af68-4f90-9c76-c24930d39e69"}]}} _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:908
2014-10-13 16:40:29.676 INFO nova.api.openstack.wsgi [req-c1677f53-711f-4089-8daf-34d716379964 admin admin] HTTP exception thrown: Duplicate networks (05328143-af68-4f90-9c76-c24930d39e69) are not allowed
2014-10-13 16:40:29.676 DEBUG nova.api.openstack.wsgi [req-c1677f53-711f-4089-8daf-34d716379964 admin admin] Returning 400 to user: Duplicate networks (05328143-af68-4f90-9c76-c24930d39e69) are not allowed __call__ /opt/stack/nova/nova/api/openstack/wsgi.py:1175
2014-10-13 16:40:29.677 INFO nova.osapi_compute.wsgi.server [req-c1677f53-711f-4089-8daf-34d716379964 admin admin] 10.250.10.29 "POST /v2/2c88b9cfd06f446d946f3097cb2aa9f7/servers HTTP/1.1" status: 400 len: 314 time: 0.0040460

** Affects: nova
     Importance: Undecided
     Assignee: Rui Chen (kiwik-chenrui)
         Status: New

** Changed in: nova
     Assignee: (unassigned) => Rui Chen (kiwik-chenrui)

-- 
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/1380544

Title:
  Failed to boot instance with multi-nics in 1 network.

Status in OpenStack Compute (Nova):
  New

Bug description:
  According to BP multiple-
  if-1-net(https://blueprints.launchpad.net/nova/+spec/multiple-
  if-1-net), I set the neutron.allow_duplicate_networks = True, then I
  try to boot instance with multi nics in 1 network, like this:

  stack@devstack:/home/devstack$  [master]$ nova boot --image cirros-0.3.2-x86_64-disk --flavor m1.tiny --nic net-id=e41dba8f-3931-46f0-b67b-8e5d344c391e --nic net-id=e41dba8f-3931-46f0-b67b-8e5d344c391e chenrui_nics
  ERROR (BadRequest): Duplicate networks (e41dba8f-3931-46f0-b67b-8e5d344c391e) are not allowed (HTTP 400) (Request-ID: req-fa30161a-38e2-4ee7-a00b-47a39f9e9cc6)

  Duplicate networks error is returned from nova api.

  Error log in nova-api.log

  2014-10-13 16:40:29.675 DEBUG nova.api.openstack.wsgi [req-c1677f53-711f-4089-8daf-34d716379964 admin admin] Action: 'create', calling method: <bound method Controller.create of <nova.api.openstack.compute.servers.Controller object at 0x7f2d4a6bdf10>>, body: {"server": {"name": "chenrui_nics1", "imageRef": "607d418d-f521-4379-a182-e3ea46627417", "flavorRef": "1", "max_count": 1, "min_count": 1, "networks": [{"uuid": "05328143-af68-4f90-9c76-c24930d39e69"}, {"uuid": "05328143-af68-4f90-9c76-c24930d39e69"}]}} _process_stack /opt/stack/nova/nova/api/openstack/wsgi.py:908
  2014-10-13 16:40:29.676 INFO nova.api.openstack.wsgi [req-c1677f53-711f-4089-8daf-34d716379964 admin admin] HTTP exception thrown: Duplicate networks (05328143-af68-4f90-9c76-c24930d39e69) are not allowed
  2014-10-13 16:40:29.676 DEBUG nova.api.openstack.wsgi [req-c1677f53-711f-4089-8daf-34d716379964 admin admin] Returning 400 to user: Duplicate networks (05328143-af68-4f90-9c76-c24930d39e69) are not allowed __call__ /opt/stack/nova/nova/api/openstack/wsgi.py:1175
  2014-10-13 16:40:29.677 INFO nova.osapi_compute.wsgi.server [req-c1677f53-711f-4089-8daf-34d716379964 admin admin] 10.250.10.29 "POST /v2/2c88b9cfd06f446d946f3097cb2aa9f7/servers HTTP/1.1" status: 400 len: 314 time: 0.0040460

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


Follow ups

References