"ERROR: Unauthorized (HTTP 401)" after i input command "nova image-list

asked 2014-04-12 21:14:29 -0600

tongzhou gravatar image

updated 2014-04-13 05:59:58 -0600

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.

  1. "glance image-list" is ok for me.

  2. 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

Would try :-

    # .  ./keystonerc_admin
    where
    root@dfw02 ~(keystone_admin)]$ cat  keystonerc_admin
    export OS_USERNAME=admin
    export OS_TENANT_NAME=admin
    export OS_PASSWORD=xxxxxxxx
    export OS_AUTH_URL=http://192.168.1.127:35357/v2.0/
    export PS1='[\u@\h \W(keystone_admin)]$ '
    and run command again

Another option Login to dashboard as admin and set status of images to Public is YES
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 )
add a comment