Launching an instance with muliple interfaces attached to same network by using --net-id fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
High
|
venkata anil | ||
Juno |
Fix Released
|
High
|
Artom Lifshitz |
Bug Description
Fails to launch an instance with multiple interfaces attached to the same network by using --nic net-id= :
# nova boot --flavor m1.small --image rhel7-new --nic net-id=
ERROR (BadRequest): Duplicate networks (52fc18b6-
There is no problem when launching the instance using --port-id :
# nova boot --flavor m1.small --image rhel7-new --nic port-id=
# neutron port-show 4479d8c5-
+------
| Field | Value |
+------
| network_id | 52fc18b6-
+------
# neutron port-show ec218051-
+------
| Field | Value |
+------
| network_id | 52fc18b6-
+------
Version
=======
openstack-
openstack-
Expected result
=============
Both using the --nic port-id and --nic net-id should work
Changed in nova: | |
assignee: | nobody → venkata anil (anil-venkata) |
Changed in nova: | |
status: | Incomplete → New |
Changed in nova: | |
status: | New → In Progress |
tags: | added: juno-backport-potential |
Changed in nova: | |
importance: | Undecided → High |
Changed in nova: | |
milestone: | none → kilo-2 |
status: | Fix Committed → Fix Released |
Changed in nova: | |
milestone: | kilo-2 → 2015.1.0 |
I think this might be a usage error. Does it work for you if you do the command like this?
nova boot --flavor m1.small --image rhel7-new --nic net-id= 52fc18b6- 397a-45d6- b8db-fb32accd00 e5 port-id= 4479d8c5- 3c1d-41ab- 8994-e577280a95 84 --nic net-id= 52fc18b6- 397a-45d6- b8db-fb32accd00 e5 port-id= ec218051- 3819-4af5- 8113-96c5d31442 cc vm100
Also, I found this nova.conf setting in the [neutron] section which sounds like it would do what you want without specifying port id:
Do either of these solve your issue?