Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1171454 - Launching an instance with muliple interfaces attached to same network by using --net-id fails
Launching an instance with muliple interfaces attached to same network by usi...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova (Show other bugs)
6.0 (Juno)
All Linux
medium Severity low
: z2
: 6.0 (Juno)
Assigned To: Sahid Ferdjaoui
nlevinki
: ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-12-07 03:29 EST by Itzik Brown
Modified: 2015-04-07 11:09 EDT (History)
16 users (show)

See Also:
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.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-04-07 11:09:22 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1400037 None None None Never
OpenStack gerrit 144882 None None None Never
OpenStack gerrit 152990 None None None Never
Red Hat Product Errata RHSA-2015:0790 normal SHIPPED_LIVE Important: openstack-nova security, bug fix, and enhancement update 2015-04-07 15:07:41 EDT

  None (edit)
Description Itzik Brown 2014-12-07 03:29:06 EST
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 12:45:12 EST
Fix has been merged in upstream stable/juno and will be pulled at the next rebase.
Comment 5 Artom Lifshitz 2015-03-05 12:52:31 EST
Fix has been merged in upstream stable/juno.
Comment 9 nlevinki 2015-03-22 08:44:43 EDT
[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 11:09:22 EDT
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.