Bug 1171454 - Launching an instance with muliple interfaces attached to same network by using --net-id fails
Summary: Launching an instance with muliple interfaces attached to same network by usi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 6.0 (Juno)
Hardware: All
OS: Linux
medium
low
Target Milestone: z2
: 6.0 (Juno)
Assignee: Sahid Ferdjaoui
QA Contact: nlevinki
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-07 08:29 UTC by Itzik Brown
Modified: 2022-07-09 07:47 UTC (History)
15 users (show)

Fixed In Version: openstack-nova-2014.2.2-9.el7ost.src.rpm
Doc Type: Bug Fix
Doc Text:
Previously, you could not launch an instance with multiple interfaces attached to the same network by using --nic net-id=<id>; the instance would fail to boot. With this update, Compute now checks for duplicate networks at the Compute API layer, and an instance boot using a specific network ID with multiple vNICs can succeed.
Clone Of:
Environment:
Last Closed: 2015-04-07 15:09:22 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Launchpad 1400037 0 None None None Never
OpenStack gerrit 144882 0 None None None Never
OpenStack gerrit 152990 0 None None None Never
Red Hat Issue Tracker OSP-16649 0 None None None 2022-07-09 07:47:59 UTC
Red Hat Product Errata RHSA-2015:0790 0 normal SHIPPED_LIVE Important: openstack-nova security, bug fix, and enhancement update 2015-04-07 19:07:41 UTC

Description Itzik Brown 2014-12-07 08:29:06 UTC
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:

Comment 4 Artom Lifshitz 2015-02-23 17:45:12 UTC
Fix has been merged in upstream stable/juno and will be pulled at the next rebase.

Comment 5 Artom Lifshitz 2015-03-05 17:52:31 UTC
Fix has been merged in upstream stable/juno.

Comment 9 nlevinki 2015-03-22 12:44:43 UTC
[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 |
+--------------------------------------+----------+--------+------------+-------------+----------------------------------+

Comment 12 errata-xmlrpc 2015-04-07 15:09:22 UTC
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


Note You need to log in before you can comment on or make changes to this bug.