Description of problem: Fails to launch an instance with multiple interfaces attached to the same network by using --nic net-id= : Version-Release number of selected component (if applicable): openstack-nova-common-2014.2-2.el7ost.noarch openstack-neutron-2014.2-11.el7ost.noarch How reproducible: 100% Steps to Reproduce: 1. Make sure /etc/nova/nova.conf has allow_duplicate_networks=true (Restart nova services if you made a change) 2. Start the instance. E.g. nova boot --flavor m1.small --image rhel7-new --nic net-id=52fc18b6-397a-45d6-b8db-fb32accd00e5 --nic net-id=52fc18b6-397a-45d6-b8db-fb32accd00e5 vm100 Actual results: ERROR (BadRequest): Duplicate networks (52fc18b6-397a-45d6-b8db-fb32accd00e5) are not allowed (HTTP 400) Expected results: Instance should be started without errors Additional info:
Fix has been merged in upstream stable/juno and will be pulled at the next rebase.
Fix has been merged in upstream stable/juno.
[root@dhcp-2-211 ~(keystone_admin)]# nova boot --flavor m1.small --image ciruus --nic net-id=87e7db70-2ea6-4789-bbda-d6a4aad276dc --nic net-id=87e7db70-2ea6-4789-bbda-d6a4aad276dc vm100 +--------------------------------------+-----------------------------------------------+ | Property | Value | +--------------------------------------+-----------------------------------------------+ | OS-DCF:diskConfig | MANUAL | | OS-EXT-AZ:availability_zone | nova | | OS-EXT-SRV-ATTR:host | - | | OS-EXT-SRV-ATTR:hypervisor_hostname | - | | OS-EXT-SRV-ATTR:instance_name | instance-00000002 | | OS-EXT-STS:power_state | 0 | | OS-EXT-STS:task_state | scheduling | | OS-EXT-STS:vm_state | building | | OS-SRV-USG:launched_at | - | | OS-SRV-USG:terminated_at | - | | accessIPv4 | | | accessIPv6 | | | adminPass | nPj9M6Z3uyiR | | config_drive | | | created | 2015-03-22T12:42:47Z | | flavor | m1.small (2) | | hostId | | | id | 92264778-612d-4e14-9880-4e70625007f3 | | image | ciruus (67614aaa-9707-4b8e-9376-b45a9340c4cf) | | key_name | - | | metadata | {} | | name | vm100 | | os-extended-volumes:volumes_attached | [] | | progress | 0 | | security_groups | default | | status | BUILD | | tenant_id | e1a71ec39c30412faee2750c87f2a733 | | updated | 2015-03-22T12:42:47Z | | user_id | 160d8f685ae7458ca014760e4647896a | +--------------------------------------+-----------------------------------------------+ [root@dhcp-2-211 ~(keystone_admin)]# nova list +--------------------------------------+----------+--------+------------+-------------+----------------------------------+ | ID | Name | Status | Task State | Power State | Networks | +--------------------------------------+----------+--------+------------+-------------+----------------------------------+ | 617fe5f0-9682-4449-84d4-c17c99f936b3 | two_nics | ACTIVE | - | Running | private=192.168.1.1 | | 92264778-612d-4e14-9880-4e70625007f3 | vm100 | ACTIVE | - | Running | private=192.168.1.3, 192.168.1.4 | +--------------------------------------+----------+--------+------------+-------------+----------------------------------+
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2015-0790.html