Ask Your Question
0

nova image-list, ERROR: Unauthorized (HTTP 401) [closed]

asked 2013-11-13 23:40:30 -0500

oyc gravatar image

updated 2013-11-13 23:45:47 -0500

I'm installing openstack havana I got image-list from galance, but I couldn't get image list from nova image-list

I just get this message ERROR: Unauthorized (HTTP 401)

What's wrong? Can you help me please?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2013-12-03 00:20:38.868204

Comments

my nova.config file... [DEFAULT] dhcpbridge_flagfile=/etc/nova/nova.conf dhcpbridge=/usr/bin/nova-dhcpbridge logdir=/var/log/nova state_path=/var/lib/nova lock_path=/var/lock/nova force_dhcp_release=True iscsi_helper=tgtadm libvirt_use_virtio_for_bridges=True connection_type=libvirt root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf verbose=True ec2_private_dns_show_ip=True api_paste_config=/etc/nova/api-paste.ini volumes_path=/var/lib/nova/volumes enabled_apis=ec2,osapi_compute,metadata my_ip=x.x.x.x vncserver_listen=x.x.x.x vncserver_proxyclient_address=x.x.x.x auth_strategy=keystone rpc_backend = nova.rpc.impl_kombu rabbit_host = controller #Glance# glance_api_servers=x.x.x.x:9292 image_service=nova.image.glance.GlanceImageService #glance_host=x.x.x.x [database] The SQLAlchemy connection string used to connect to the database connection = mysql://nova:NOVA_DBPASS@controller/nova

oyc gravatar imageoyc ( 2013-11-14 00:34:42 -0500 )edit
1

1. Hope you have the right password here. Is your paswd NOVA_DBPASS ?mysql://nova:NOVA_DBPASS@controller/nova 2. Did you specify the right parameters in api-paste.ini for auth_host and auth_port, admin_user, admin_password etc ?

dheeru gravatar imagedheeru ( 2013-11-14 01:11:07 -0500 )edit

I just did keystone token-get right now. and it's done... but I did it yesterday, it wan't work... I don't know why...but now it works!!! HAHA Thank you for your kind answers..

oyc gravatar imageoyc ( 2013-11-17 22:08:46 -0500 )edit
1

that is good news. Need your favor. Can you vote my ans. Just click the up-arrow which is on left side of my answer. Thank you.

dheeru gravatar imagedheeru ( 2013-11-17 23:59:52 -0500 )edit
1

Hope we close this request. Can you accept the ans provided by me ? Just do click on the right mark which is left of my ans. Post this I will close my request. Hope you will do the needful.

dheeru gravatar imagedheeru ( 2013-12-03 00:09:50 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-11-14 00:22:55 -0500

dheeru gravatar image

It is definitely issue with user name/password and tenant you are setting before querying nova. Can you look /var/log/nova/nova*.log to get the more specific error ?

edit flag offensive delete link more

Comments

1

also check your /etc/nova.conf for the right configuration for the glance and keystone.

dheeru gravatar imagedheeru ( 2013-11-14 00:26:18 -0500 )edit

what .log file should I see? nova-api.log nova-consoleauth.log nova-cert.log nova-conductor.log nova-scheduler.log nova-manage.log files are in /var/log/nova/ directory

oyc gravatar imageoyc ( 2013-11-14 01:08:08 -0500 )edit
1

/var/log/nova/nova-api.log file. Just verify your configuration api_paste.ini file

dheeru gravatar imagedheeru ( 2013-11-14 01:14:08 -0500 )edit
1

you are getting the auauthorized error. Thismeans that supplied token is either expired or not valid. 1 1. You can use the curl command to verify that credentials simillar to the following link http://docs.openstack.org/api/openstack-block-storage/2.0/content/Authentication-d1e647.html 2. You can use this token to make further request. 3. You can run the 'keystone token-get' command to see the details about the token and expire date.

dheeru gravatar imagedheeru ( 2013-11-14 05:34:12 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2013-11-13 23:40:30 -0500

Seen: 1,950 times

Last updated: Nov 14 '13