Ask Your Question
1

openstack client can't create virtual machine

asked 2016-08-12 09:58:27 -0500

holo gravatar image

I configured openstack according to insallation guide but when im trying to start instance i have such error:

[root@controller ~]# openstack server create --flavor m1.tiny --image cirros --nic 2bf61961-c8dd-495a-9053-95468652773c --security-group default --key-name mykey testinstance2
dictionary update sequence element #0 has length 1; 2 is required
[root@controller ~]#

i find out error in my glance log:

2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client [req-02b4b560-0f41-48d1-87e8-9ab3e037afa7 eb753a607305461f92b01d5a759f4a68 4228d3befa1c43fd9b25367df08bbb7c - - -] Registry client request GET /images/cirros raised NotFound
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client Traceback (most recent call last):
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/site-packages/glance/registry/client/v1/client.py", line 123, in do_request
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client     **kwargs)
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 70, in wrapped
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client     return func(self, *args, **kwargs)
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 373, in do_request
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client     headers=copy.deepcopy(headers))
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 87, in wrapped
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client     return func(self, method, url, body, headers)
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client   File "/usr/lib/python2.7/site-packages/glance/common/client.py", line 528, in _do_request
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client     raise exception.NotFound(read_body(res))
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client NotFound: 404 Not Found
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client 
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client The resource could not be found.
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client 
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client    
2016-08-12 16:54:00.553 18079 ERROR glance.registry.client.v1.client 
2016-08-12 16:54:00.555 18079 INFO eventlet.wsgi.server [req-02b4b560-0f41-48d1-87e8-9ab3e037afa7 eb753a607305461f92b01d5a759f4a68 4228d3befa1c43fd9b25367df08bbb7c - - -] 10.0.0.13 - - [12/Aug/2016 16:54:00] "HEAD /v1/images/cirros HTTP/1.1" 404 213 0.255239
2016-08-12 16:54:00.824 18079 INFO eventlet.wsgi.server [req-a06be10c-d176-4986-8e5e-f443bdbd82b0 eb753a607305461f92b01d5a759f4a68 4228d3befa1c43fd9b25367df08bbb7c - - -] 10.0.0.13 - - [12/Aug/2016 16:54:00] "GET /v1/images/detail?is_public=none&limit=20 HTTP/1.1" 200 709 0.261196

What is strange when i use "nova" client to boot new instance everything is working. Is it something with my setup?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2016-08-12 12:00:49 -0500

You are missing net-id on the nic option.

openstack server create --flavor m1.tiny --image cirros --nic net-id=2bf61961-c8dd-495a-9053-95468652773c --security-group default --key-name mykey testinstance2
edit flag offensive delete link more

Comments

Yes, that was it. Thank You for your time.

holo gravatar imageholo ( 2016-08-12 12:14:54 -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: 2016-08-12 09:58:27 -0500

Seen: 974 times

Last updated: Aug 12 '16