kingbosster 发表于 2015-4-13 08:20:05

openStack-bug-index nova image-list

0




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


[*]nova
[*]image-list






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


http://onexin.iyunv.com/source/plugin/onexin_bigdata/https://www.gravatar.com/avatar/f37a8b3baf3afcc9fcb5fd3c9663bbc1?s=32&d=mm&r=PG

tongzhou
1●1 ●1 ●2

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

  Hi Guys,
  I follow
the beginner install guide step by step andgot 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))
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)]$ catkeystonerc_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


1 answer


Sort by » oldest newest most voted   






0







  answered 2014-04-15 00:53:47 -0600


http://onexin.iyunv.com/source/plugin/onexin_bigdata/https://ask.openstack.org/en/avatar/render_primary/64/32/

fifieldt http://onexin.iyunv.com/source/plugin/onexin_bigdata/https://ask.openstack.org/m/default/media/images/flags/au.gif?v=8
4111●7 ●40 ●43
http://docs.openstack.org...


  updated
2014-04-15 00:56:37 -0600

  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.
页: [1]
查看完整版本: openStack-bug-index nova image-list