openStack-bug-index nova image-list
"ERROR: Unauthorized (HTTP 401)" after i input command "nova image-list
Hi Guys,
I follow the beginner install guide step by step and got the error message "ERROR: Unauthorized (HTTP 401)" after i input command "nova image-list".
the document link is http://docs.openstack.org/havana/install-guide/install/apt/content/nova-controller.html (http://docs.openstack.org/havana/inst...)
And I check the config file again and again, still have the problem.
-
"glance image-list" is ok for me.
-
the "nova --debug image-list" error message is
DEBUG (shell:740) Unauthorized (HTTP 401) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 737, in main OpenStackComputeShell().main(map(strutils.safe_decode, sys.argv[1:])) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 673, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 915, in do_image_list image_list = cs.images.list(limit=limit) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 54, in list return self._list('/images%s%s' % (detail, query), 'images') File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 61, in _list _resp, body = self.api.client.get(url) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 229, in get return self._cs_request(url, 'GET', **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 226, in _cs_request raise e Unauthorized: Unauthorized (HTTP 401) ERROR: Unauthorized (HTTP 401)
Comments
1 answer
You probably have the wrong settings in keystone_authtoken in nova.conf. The 401 is coming from nova failing to authenticate with another OpenStack service.
Check your keystone logs.
浙公网安备 33010602011771号
Would try :-
dbaxps ( 2014-04-13 00:15:29 -0600 )I have already run it before, but it don't work for me
tongzhou ( 2014-04-13 06:05:17 -0600 )