execute nova boot with two port command failed

Bug #1740802 reported by tangxing
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-novaclient
New
Undecided
Unassigned

Bug Description

Description
===========
execute nova boot with two port command failed

Steps to reproduce
===========
[root@E9000slot5 versions(keystone_admin)]# neutron net-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
+--------------------------------------+--------------------+----------------------------------+-------------------------------------------------------+
| id | name | tenant_id | subnets |
+--------------------------------------+--------------------+----------------------------------+-------------------------------------------------------+
| 63bece24-45a3-445a-b170-ed9c34797f26 | net2 | e05b5607ff3344909a67490ba6c16384 | |
| 95ac4b4e-84c9-4875-8c3f-4ed037b75f21 | net1 | e05b5607ff3344909a67490ba6c16384 | a84cf9dc-13e2-4f5d-828d-68ea83e960cf 11.11.11.0/24 |
+--------------------------------------+--------------------+----------------------------------+-------------------------------------------------------+
[root@E9000slot5 versions(keystone_admin)]# glance image-list
+--------------------------------------+-----------------------------------------------+
| ID | Name |
+--------------------------------------+-----------------------------------------------+
| ec3019a1-ebcd-4b12-9afe-f67ea1cc60ed | cirros228 |
+--------------------------------------+-----------------------------------------------+
[root@E9000slot5 versions(keystone_admin)]# nova flavor-list
+--------------------------------------+----------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| ID | Name | Memory_MB | Disk | Ephemeral | Swap | VCPUs | RXTX_Factor | Is_Public |
+--------------------------------------+----------------------------+-----------+------+-----------+------+-------+-------------+-----------+
| 100 | 2h2g2gdiskwithnuma | 2048 | 2 | 0 | | 2 | 1.0 | True |
+--------------------------------------+----------------------------+-----------+------+-----------+------+-------+-------------+-----------+
[root@E9000slot5 versions(keystone_admin)]# nova boot --flavor 100 --image ec3019a1-ebcd-4b12-9afe-f67ea1cc60ed --nic net-id=95ac4b4e-84c9-4875-8c3f-4ed037b75f21 --nic net-id=63bece24-45a3-445a-b170-ed9c34797f26 test_tx
ERROR (CommandError): Invalid nic argument 'net-id=63bece24-45a3-445a-b170-ed9c34797f26'. Nic arguments must be of the form --nic <auto,none,net-id=net-uuid,net-name=network-name,v4-fixed-ip=ip-addr,v6-fixed-ip=ip-addr,port-id=port-uuid,tag=tag>, with only one of net-id, net-name or port-id specified. Specifying a --nic of auto or none cannot be used with any other --nic value

tangxing (tang-xing)
Changed in nova:
assignee: nobody → tangxing (tang-xing)
Revision history for this message
Matt Riedemann (mriedem) wrote :

This is a python-novaclient bug, which version of python-novaclient are you using?

no longer affects: nova
Revision history for this message
Matt Riedemann (mriedem) wrote :

I'm guessing this is a duplicate of bug 1706597 fixed with this change:

https://github.com/openstack/python-novaclient/commit/0a3cf89c67a3fb78876137506fe57e645f4fabe4

It's just not released yet.

Revision history for this message
Matt Riedemann (mriedem) wrote :

Correction, the fix was backported to pike https://review.openstack.org/#/c/495901/ and released in 9.1.1.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.