[Openstack] glance error

Tzach Shefi tshefi at redhat.com
Wed Oct 29 13:36:16 UTC 2014


Hi, 

This part-> Check login credentials .. maybe your user/password for Glance/Rabbitmq aren't correct on Glance-api.conf. 
Or on the other hand maybe you don't have a user for it on rabbitmq side. 

Check Glance-api.conf 

#rabbit_host=localhost
rabbit_host=x.y.z.w   -> this should be the IP address of your rabbitmq server.    
#rabbit_port=5672
rabbit_port=5672
#rabbit_use_ssl=false
rabbit_use_ssl=False
#rabbit_userid=guest
rabbit_userid=guest -> user might be something other than guest maybe glance.
#rabbit_password=guest  
rabbit_password=guest    -> the password for above user. 
#rabbit_virtual_host=/
rabbit_virtual_host=/   -> this is the vhost 
#rabbit_notification_exchange=glance
rabbit_notification_exchange=glance
#rabbit_notification_topic=notifications
rabbit_notification_topic=notifications
#rabbit_durable_queues=False


Now go to your rabbitmq server (remember IP address above x.y.z.w, oh it might also be localhost)

# rabbitmqctl list_users     -> will show which users you have in my case all services use guest 
Listing users ...
guest   [administrator]

# rabbitmqctl list_permissions  -> check permissions, you may have a dedicated vhost (above -> rabbit_virtual_host=/ ) just for Glance, if so check that the correct user has permissions for correct vhost.  
Listing permissions in vhost "/" ...
guest   .*      .*      .*
...done.

If you are not sure about the password on rabbitmq's side, just reset it to what you see on rabbit_password=....  
rabbitmqctl change_password <username> <newpassword>

Just in case I'd also restart Glance service and try to upload image again.  

BTW if you have rabbitmq related errors (wrong password) they should also show up on rabbitmq's log, it's a good idea to check it out as well. 
tailf /var/log/rabbitmq/rabbit at server.log


Hope this helps.  
Tzach








----- Original Message -----
From: mohib at qmail.com.bd
To: "xico loco" <xicoloco at gmail.com>
Cc: openstack at lists.openstack.org
Sent: Wednesday, October 29, 2014 2:30:55 PM
Subject: [Openstack] glance error



Hi xico loco, 

my /var/log/glance/api.log show this error. Please see in below, 

2014-10-29 16:49:29.461 10473 DEBUG oslo.db.sqlalchemy.session [-] MySQL server mode set to STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION _init_events /usr/lib/python2.7/site-packages/oslo/db/sqlalchemy/session.py:461 





2014-10-29 17:39:27.849 2030 INFO oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Connecting to AMQP server on localhost:5672 
2014-10-29 17:39:30.913 2030 ERROR oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed 
2014-10-29 17:39:31.914 2030 INFO oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Delaying reconnect for 1.0 seconds... 
2014-10-29 17:39:32.915 2030 INFO oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Connecting to AMQP server on localhost:5672 
2014-10-29 17:39:35.937 2030 ERROR oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed 
2014-10-29 17:39:38.938 2030 INFO oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Delaying reconnect for 1.0 seconds... 
2014-10-29 17:39:39.939 2030 INFO oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Connecting to AMQP server on localhost:5672 
2014-10-29 17:39:42.960 2030 ERROR oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed 
2014-10-29 17:39:47.963 2030 INFO oslo.messaging._drivers.impl_rabbit [36cabc2f-5c66-4152-85d2-b126743da212 e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Delaying reconnect for 1.0 seconds... 




Please help me for solution this problem. 

Thanks for replay 







_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack at lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack




More information about the Openstack mailing list