Ask Your Question
0

Glance error

asked 2014-10-29 08:18:16 -0600

updated 2014-10-29 08:22:42 -0600

dbaxps gravatar image

Hi all , my glance-api.log show this error .

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


014-10-29 16:53:49.262 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Delaying reconnect for 1.0 seconds...
2014-10-29 16:53:50.263 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Connecting to AMQP server on localhost:5672
2014-10-29 16:53:53.285 10487 ERROR oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed
2014-10-29 16:54:14.304 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Delaying reconnect for 1.0 seconds...
2014-10-29 16:54:15.305 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Connecting to AMQP server on localhost:5672
2014-10-29 16:54:18.329 10487 ERROR oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed
2014-10-29 16:54:41.330 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Delaying reconnect for 1.0 seconds...
2014-10-29 16:54:42.331 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Connecting to AMQP server on localhost:5672
2014-10-29 16:54:45.344 10487 ERROR oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed
2014-10-29 16:55:10.351 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Delaying reconnect for 1.0 seconds...
2014-10-29 16:55:11.352 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Connecting to AMQP server on localhost:5672
2014-10-29 16:55:14.371 10487 ERROR oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] AMQP server localhost:5672 closed the connection. Check login credentials: Socket closed
2014-10-29 16:55:41.396 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Delaying reconnect for 1.0 seconds...
2014-10-29 16:55:42.397 10487 INFO oslo.messaging._drivers.impl_rabbit [95afb9cc-7d8f-4bf2-9f37-4b694066002e e06d920ca73b4a57ab6e75fd0637d72c 87e2ff058b9f46589f0b370b552b4d00 - - -] Connecting to AMQP server on localhost:5672

Please help me for solution this problem.

edit retag flag offensive close merge delete

Comments

  1. Check rabbitmq-server running.
  2. Check port 5672 status ( port open)
  3. netstat -lntp | grep 5672
  4. iptables-save | grep 5672
dbaxps gravatar imagedbaxps ( 2014-10-29 08:24:58 -0600 )edit

can you please provide rabbitmq server logs.

rajiv-kumar gravatar imagerajiv-kumar ( 2014-10-30 00:52:41 -0600 )edit

3 answers

Sort by ยป oldest newest most voted
3

answered 2014-10-29 14:49:22 -0600

updated 2014-10-29 14:51:03 -0600

According to your log(glance-api.log), the problem is related to rabbitmq server. Your glance service can not connect to rabbitmq due to your credental problem.

At first check whether rabbitmq is up or down:

rabbitmqctl status

If the service was at runing state, and the output be something like here, go to the next step. If not, try to start this service.

After you sure that the rabbitmq server is start, you should test the rabbitmq authentication. So, to make sure about authentication mechanism, change the RabbitMQ guest password:

sudo rabbitmqctl change_password guest password

Restart RabbitMQ service:

sudo service rabbitmq restart

If the problem won't fixed, then execute:

sudo rabbitmqctl change-password guest guest

Restart it again:

sudo service rabbitmq restart

If again the problem wont fixed by the above steps, check your firewall rules:

iptables-save | grep 5672

Make sure that the port is open and is listen.

netstat -lntp | grep 5672
edit flag offensive delete link more

Comments

Had a similar problem with nova turned out to be a fw issue, checked it by doing service ufw stop on ubuntu

mahesh-sawaiker gravatar imagemahesh-sawaiker ( 2015-10-29 07:51:01 -0600 )edit
0

answered 2014-10-29 23:11:14 -0600

RHK gravatar image

HI,

Change the vhost as command show:

# rabbitmqctl list_vhosts show your vhost.

Go to glance-api.conf file and change like below.

/etc/glance/glance-api.conf

rabbit_virtual_host = /

Regards,
RHK

edit flag offensive delete link more
0

answered 2014-10-30 06:19:43 -0600

First of all check the status of RabbitMQ servier. Using "service rabbitmq-server status".

After that check the rpc configuration in glance, check the rabbit-host and password.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-29 08:18:16 -0600

Seen: 7,226 times

Last updated: Oct 29 '14