Ask Your Question
0

Unable to create instance with nic ....

asked 2015-04-24 17:26:01 -0500

Running icehouse on Ubuntu 14.04.1 ... minimal install keystone,glance,neutron,nova in a VM, separate compute host .... everything seems to be able to talk to itself ... created ext-net and demo-net ... created a router ... can ping the external address on the router ...

demo@controller:~$ nova boot --flavor m1.tiny --image cirros-0.3.2-x86_64
--nic net-id=1fbfbf1e-3c13-46f4-a971-8f887c69722c
--security-group default --key-name demo-key demo-instance1
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-2f4b114c-8446-412a-aa3b-f3ba01db43b7)

nova-api.log:

2015-04-24 21:56:16.041 2113 ERROR nova.api.openstack [req-2f4b114c-8446-412a-aa3b-f3ba01db43b7 90c6a38322c84abe9cf4f6f7e98e1b95 624cf80d01174d9cb2902bd8700e5b65] Caught error: Timed out waiting for a reply to message ID bedb353190da4438bc55b4ccd3608845
2015-04-24 21:56:16.041 2113 TRACE nova.api.openstack Traceback (most recent call last):
2015-04-24 21:56:16.041 2113 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 125, in __call__
2015-04-24 21:56:16.041 2113 TRACE nova.api.openstack     return req.get_response(self.application)
.
.
.
2015-04-24 21:56:16.041 2113 TRACE nova.api.openstack   File "/usr/lib/python2.7/dist-packages/oslo/messaging/_drivers/amqpdriver.py", line 217, in _poll_connection
2015-04-24 21:56:16.041 2113 TRACE nova.api.openstack     % msg_id)
2015-04-24 21:56:16.041 2113 TRACE nova.api.openstack MessagingTimeout: Timed out waiting for a reply to message ID bedb353190da4438bc55b4ccd3608845
2015-04-24 21:56:16.041 2113 TRACE nova.api.openstack
2015-04-24 21:56:16.058 2113 INFO nova.api.openstack [req-2f4b114c-8446-412a-aa3b-f3ba01db43b7 90c6a38322c84abe9cf4f6f7e98e1b95 624cf80d01174d9cb2902bd8700e5b65] http://controller:8774/v2/624cf80d01174d9cb2902bd8700e5b65/servers returned with HTTP 500
2015-04-24 21:56:16.060 2113 DEBUG nova.api.openstack.wsgi [req-2f4b114c-8446-412a-aa3b-f3ba01db43b7 90c6a38322c84abe9cf4f6f7e98e1b95 624cf80d01174d9cb2902bd8700e5b65] Returning 500 to user: The server has either erred or is incapable of performing the requested operation. __call__ /usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py:1217
2015-04-24 21:56:16.070 2113 INFO nova.osapi_compute.wsgi.server [req-2f4b114c-8446-412a-aa3b-f3ba01db43b7 90c6a38322c84abe9cf4f6f7e98e1b95 624cf80d01174d9cb2902bd8700e5b65] 192.168.100.2 "POST /v2/624cf80d01174d9cb2902bd8700e5b65/servers HTTP/1.1" status: 500 len: 335 time: 60.3818440

Been searching around here and found a few references to the same problem with no answer .... except for ONE OBSERVATION .... IF you remove the "--nic" argument from nova boot it creates the instance but without the nic obviously.

P.S. another thread on a similar topic said to create a port in neutron and try passing that ... but nova throws an error

demo@controller:~$ nova boot --flavor m1.tiny --image cirros-0.3.2-x86_64 --nic port-id=1fbfbf1e-3c13-46f4-a971-8f887c69722c --security-group default --key-name demo-key demo-instance1
ERROR: Unknown argument : port (HTTP 400) (Request-ID: req-b66ac464-dba7-4ab6-a01c-37ad722824f7)

I'm at a loss as to what is happening ... logs in full debug and nothing is making sense .... thought it was a messaging problem .... but if I can create the instance .... is the problem in neutron??

Thanks in advance! --> Rob

Other useful data:

demo@controller:~$ neutron net-list
+--------------------------------------+----------+------------------------------------------------------+
| id                                   | name     | subnets                                              |
+--------------------------------------+----------+------------------------------------------------------+
| ae57f335-09c3-4611-8237-c38f88a41552 | ext-net  | 10a82313-2094-4a5c-a727-80889f102bb5 135.25.138.0/24 |
| c8e0d967-d4a0-42f6-89c3-8ed8cc8b5092 | demo-net | 1fbfbf1e-3c13-46f4-a971-8f887c69722c 192.168.1.0/24  |
+--------------------------------------+----------+------------------------------------------------------+

demo@controller:~$ neutron router-list
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| id                                   | name        | external_gateway_info                                                       |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+
| e7c22e00-c4ec-4ce1-9a6b-2681706ead71 | demo-router | {"network_id": "ae57f335-09c3-4611-8237-c38f88a41552", "enable_snat": true} |
+--------------------------------------+-------------+-----------------------------------------------------------------------------+

demo@controller:~$ neutron subnet-list ...
(more)
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2015-04-29 05:34:45 -0500

capsali gravatar image

Please check if all nova services are running and neutron-server and agents. Also check if nova-url is set in neutron.conf . Check if all keystone endpoints are created.

Usefull commands after sourcing admin credentials:

nova service-list
neutron agent-list
keystone endpoint-list
service neutron-server status
edit flag offensive delete link more
0

answered 2015-04-26 06:04:07 -0500

jdexter gravatar image

In our create command you are calling on a port-id,

demo@controller:~$ nova boot --flavor m1.tiny --image cirros-0.3.2-x86_64 --nic port-id=1fbfbf1e-3c13-46f4-a971-8f887c69722c --security-group default --key-name demo-key demo-instance1

Does this port exsist? If not this is why you hare hitting the error.

Try changing to --nic net-id c8e0d967-d4a0-42f6-89c3-8ed8cc8b5092 this will instruct nova to use the network and create a new port on that network.

edit flag offensive delete link more

Comments

Yes, the port exists. from neutron port-list:

| 36b27f3c-edfa-4bf2-8b35-3951a183b11d |      | fa:16:3e:5f:50:c7 | {"subnet_id": "1fbfbf1e-3c13-46f4-a971-8f887c69722c", "ip_address": "192.168.1.4"}   |
pabut gravatar imagepabut ( 2015-04-27 09:04:45 -0500 )edit

and when I specify the net-d the command fails with this error in nova-api.log

http://controller:8774/v2/6...5/servers returned with HTTP 500

(id removed for brevity)

pabut gravatar imagepabut ( 2015-04-27 09:05:57 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2015-04-24 17:26:01 -0500

Seen: 1,421 times

Last updated: Apr 29 '15