Openstack server create command failing with --nic port id option

asked 2019-04-02 04:44:10 -0600

rujha gravatar image

updated 2019-04-02 05:16:23 -0600

Hi,

I am trying to create VM in openstack queens release with openstack server command with "--nic port id" option. Able to create network & subnet successfully. Able to create server when using "--nic net id" option.

openstack server create --image b5996471-30b1-4a72-b203-804f36c76c35 --flavor 2 --nic port-id=6f1a91d2-373f-422c-b3e5-6b028f0fe965 test_vm1
ERROR (ClientException): Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<type 'exceptions.ValueError'> (HTTP 500) (Request-ID: req-db9cf80f-4d6f-4fdd-83c6-7c636ac70876)

Nova-api logs shows below errors:

2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi [req-fad03d05-bce5-4b7e-8e5a-b1dd7ee50ec9 - - - - -] Unexpected exception in API method: ValueError: need more than 2 values to unpack
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi Traceback (most recent call last):
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/openstack/wsgi.py", line 788, in wrapped
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return f(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi   File "/usr/lib/python2.7/site-packages/nova/api/validation/__init__.py", line 108, in wrapper
2019-04-02 01:26:32.281 8491 ERROR nova.api.openstack.wsgi     return func(*args, **kwargs)
2019-04-02 01:26:32.281 8491 ERROR nova.api ...
(more)
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
-1

answered 2019-04-02 05:31:24 -0600

Naga gravatar image

openstack server create --image snap2 --flavor m1.tiny --security-group default --key-name kp-gui-1 --nic net-id=network NIC ID VM8 (this is for creating for new VM) . try this command

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

Stats

Asked: 2019-04-02 04:44:10 -0600

Seen: 209 times

Last updated: Apr 02 '19