[openstack-dev] [nova] "nova list" Question
Johnson Cheng
Johnson.Cheng at QsanTechnology.com
Tue Jul 22 06:54:11 UTC 2014
Thanks all.
I have found out where the problem is.
I removed several unused neutron config and firewall config from nova.conf, then it is work.
Regards,
Johnson
From: Johnson Cheng [mailto:Johnson.Cheng at QsanTechnology.com]
Sent: Tuesday, July 22, 2014 1:32 PM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] "nova list" Question
Dear All,
I delete the original image, then re-create an image again. The status is “ACTIVE”. It’s good.
Unfortunately I am facing another issue when I try to launch an instance from my new image.
ERROR: The server has either erred or is incapable of performing the requested operation. (HTTP 500) (Request-ID: req-83230dce-c2cd-40cf-9f8c-88e5307634d4)
Here is my nova-api.log
2014-07-22 13:17:21.569 18823 INFO nova.wsgi [-] osapi_compute listening on 0.0.0.0:8774
2014-07-22 13:17:21.570 18823 INFO nova.openstack.common.service [-] Starting 2 workers
2014-07-22 13:17:21.574 18823 INFO nova.openstack.common.service [-] Started child 18908
2014-07-22 13:17:21.589 18823 INFO nova.openstack.common.service [-] Started child 18909
2014-07-22 13:17:21.598 18908 INFO nova.osapi_compute.wsgi.server [-] (18908) wsgi starting up on http://0.0.0.0:8774/
2014-07-22 13:17:21.605 18823 INFO nova.network.driver [-] Loading network driver 'nova.network.linux_net'
2014-07-22 13:17:21.619 18909 INFO nova.osapi_compute.wsgi.server [-] (18909) wsgi starting up on http://0.0.0.0:8774/
2014-07-22 13:17:22.427 18823 INFO nova.wsgi [-] metadata listening on 0.0.0.0:8775
2014-07-22 13:17:22.428 18823 INFO nova.openstack.common.service [-] Starting 2 workers
2014-07-22 13:17:22.434 18823 INFO nova.openstack.common.service [-] Started child 18936
2014-07-22 13:17:22.456 18823 INFO nova.openstack.common.service [-] Started child 18937
2014-07-22 13:17:22.461 18936 INFO nova.metadata.wsgi.server [-] (18936) wsgi starting up on http://0.0.0.0:8775/
2014-07-22 13:17:22.467 18937 INFO nova.metadata.wsgi.server [-] (18937) wsgi starting up on http://0.0.0.0:8775/
2014-07-22 13:18:23.305 18909 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-07-22 13:18:24.151 18909 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-07-22 13:18:24.286 18909 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-07-22 13:18:24.341 18909 INFO urllib3.connectionpool [-] Starting new HTTP connection (1): controller
2014-07-22 13:18:26.518 18909 INFO nova.osapi_compute.wsgi.server [req-26f49bb1-de56-4204-ad4d-fc1367605833 1149275f4ea84690a9da5b7f442ab48f 4e898758e77c4d3c8d0b0eecf5ae0957] 192.168.106.20 "GET /v2/4e898758e77c4d3c8d0b0eecf5ae0957/images/detail HTTP/1.1" status: 200 len: 902 time: 3.2390289
2014-07-22 13:18:36.089 18909 INFO nova.osapi_compute.wsgi.server [req-83f9ef57-54e6-4c02-973b-06263b7767c5 1149275f4ea84690a9da5b7f442ab48f 4e898758e77c4d3c8d0b0eecf5ae0957] 192.168.106.20 "GET /v2/4e898758e77c4d3c8d0b0eecf5ae0957/servers/detail HTTP/1.1" status: 200 len: 187 time: 1.7819579
2014-07-22 13:18:41.763 18908 INFO nova.osapi_compute.wsgi.server [req-600383b8-10e5-43d4-b4d0-fae0172a1c36 1149275f4ea84690a9da5b7f442ab48f 4e898758e77c4d3c8d0b0eecf5ae0957] 192.168.106.20 "GET /v2/4e898758e77c4d3c8d0b0eecf5ae0957/images/3f6a8263-9659-45d5-9d60-683d71bcd749 HTTP/1.1" status: 200 len: 899 time: 2.1370261
2014-07-22 13:18:43.430 18908 INFO nova.osapi_compute.wsgi.server [req-7898dbcd-24fc-44ff-8463-c9f8b14299ae 1149275f4ea84690a9da5b7f442ab48f 4e898758e77c4d3c8d0b0eecf5ae0957] 192.168.106.20 "GET /v2/4e898758e77c4d3c8d0b0eecf5ae0957/flavors/1 HTTP/1.1" status: 200 len: 591 time: 1.6641500
2014-07-22 13:18:43.751 18908 ERROR nova.api.openstack [req-6df7e1b8-f46e-42ca-ab25-035147fb39aa 1149275f4ea84690a9da5b7f442ab48f 4e898758e77c4d3c8d0b0eecf5ae0957] Caught error: Unknown auth strategy
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack Traceback (most recent call last):
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 125, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack return req.get_response(self.application)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1320, in send
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack application, catch_exc_info=False)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/request.py", line 1284, in call_application
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack app_iter = application(self.environ, start_response)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/keystoneclient/middleware/auth_token.py", line 582, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack return self.app(env, start_response)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/routes/middleware.py", line 131, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack response = self.app(environ, start_response)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 144, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack return resp(environ, start_response)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 130, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/webob/dec.py", line 195, in call_func
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 917, in __call__
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack content_type, body, accept)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 983, in _process_stack
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/wsgi.py", line 1070, in dispatch
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack return method(req=request, **action_args)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/servers.py", line 956, in create
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack legacy_bdm=legacy_bdm)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/hooks.py", line 103, in inner
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack rv = f(*args, **kwargs)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 1341, in create
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack legacy_bdm=legacy_bdm)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 968, in _create_instance
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack max_count)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 739, in _validate_and_build_base_options
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack requested_networks, max_count)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/compute/api.py", line 463, in _check_requested_networks
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack max_count)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 603, in validate_networks
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack neutron=neutron)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/nova/network/neutronv2/api.py", line 129, in _get_available_networks
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack nets = neutron.list_networks(**search_opts).get('networks', [])
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 111, in with_params
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack ret = self.function(instance, *args, **kwargs)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 333, in list_networks
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack **_params)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1250, in list
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack for r in self._pagination(collection, path, **params):
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1263, in _pagination
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack res = self.get(path, params=params)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1236, in get
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack headers=headers, params=params)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1221, in retry_request
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack headers=headers, params=params)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/v2_0/client.py", line 1156, in do_request
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack resp, replybody = self.httpclient.do_request(action, method, body=body)
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 195, in do_request
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack self.authenticate()
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack File "/usr/lib/python2.7/dist-packages/neutronclient/client.py", line 219, in authenticate
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack raise exceptions.Unauthorized(message=_('Unknown auth strategy'))
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack Unauthorized: Unknown auth strategy
2014-07-22 13:18:43.751 18908 TRACE nova.api.openstack
2014-07-22 13:18:43.777 18908 INFO nova.api.openstack [req-6df7e1b8-f46e-42ca-ab25-035147fb39aa 1149275f4ea84690a9da5b7f442ab48f 4e898758e77c4d3c8d0b0eecf5ae0957] http://controller:8774/v2/4e898758e77c4d3c8d0b0eecf5ae0957/servers returned with HTTP 500
2014-07-22 13:18:43.789 18908 INFO nova.osapi_compute.wsgi.server [req-6df7e1b8-f46e-42ca-ab25-035147fb39aa 1149275f4ea84690a9da5b7f442ab48f 4e898758e77c4d3c8d0b0eecf5ae0957] 192.168.106.20 "POST /v2/4e898758e77c4d3c8d0b0eecf5ae0957/servers HTTP/1.1" status: 500 len: 335 time: 0.3545990
Can someone give me a idea why there is a “Caught error: Unknown auth strategy”?
Regards,
Johnson
From: Johnson Cheng [mailto:Johnson.Cheng at QsanTechnology.com]
Sent: Tuesday, July 22, 2014 11:32 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] "nova list" Question
Dear Anne,
Thanks for your reference.
I try to use the below command to launch an instance from my image with flavor ID 1,
#> nova boot myCirrosServer --image e22d8a77-d3ad-458a-a073-aea8b185be22 --flavor 1
But I got the error message as below,
ERROR: Image e22d8a77-d3ad-458a-a073-aea8b185be22 is not active. (HTTP 400) (Request-ID: req-d22dc55d-3bf0-4965-8e91-76374921d0aa)
I found my image status is “SAVING”, not “ACTIVE”.
How to solve this problem?
Regards,
Johnson
From: Anne Gentle [mailto:anne at openstack.org]
Sent: Tuesday, July 22, 2014 10:29 AM
To: OpenStack Development Mailing List (not for usage questions)
Subject: Re: [openstack-dev] [nova] "nova list" Question
On Mon, Jul 21, 2014 at 7:15 AM, Johnson Cheng <Johnson.Cheng at qsantechnology.com<mailto:Johnson.Cheng at qsantechnology.com>> wrote:
Dear All,
When I setup a openstack node, will it have the output of “nova list”?
Here is my output of “nova image-list”,
+--------------------------------------+---------------------+--------+--------+
| ID | Name | Status | Server |
+--------------------------------------+---------------------+--------+--------+
| e22d8a77-d3ad-458a-a073-aea8b185be22 | cirros-0.3.2-x86_64 | SAVING | |
+--------------------------------------+---------------------+--------+--------+
But the output of “nova list” is empty,
+----+------+--------+------------+-------------+----------+
| ID | Name | Status | Task State | Power State | Networks |
+----+------+--------+------------+-------------+----------+
+----+------+--------+------------+-------------+----------+
Is it correct?
This output is correct when you have not launched any images.
See http://docs.openstack.org/user-guide/content/cli_launch_instances.html
I want to use it to attach a cinder volume.
Once you have an instance running, use these instructions to attach a volume.
http://docs.openstack.org/user-guide/content/cli_manage_volumes.html#cli_attach_volume
Regards,
Johnson
_______________________________________________
OpenStack-dev mailing list
OpenStack-dev at lists.openstack.org<mailto:OpenStack-dev at lists.openstack.org>
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20140722/eb158355/attachment.html>
More information about the OpenStack-dev
mailing list