Ask Your Question

762 ERROR neutron.openstack.common.rpc.common [-] AMQP server on localhost:5672 is unreachable: Socket closed. Trying again in 30 seconds.

asked 2014-12-15 04:29:55 -0500

Mr.Hanachoo gravatar image

when i try to populate the neutron database with the following command :

su -s /bin/sh -c "neutron-db-manage --config-file /etc/neutron/neutron.conf \   --config-file /etc/neutron/plugins/ml2/ml2_conf.ini upgrade juno" neutron

This is the output ERROR:

No handlers could be found for logger "neutron.common.legacy"
Traceback (most recent call last):
  File "/usr/bin/neutron-db-manage", line 10, in <module>
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/", line 169, in main
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/", line 82, in do_upgrade_downgrade
    do_alembic_command(config, cmd, revision, sql=CONF.command.sql)
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/", line 60, in do_alembic_command
    getattr(alembic_command, cmd)(config, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/alembic/", line 124, in upgrade
  File "/usr/lib/python2.7/dist-packages/alembic/", line 199, in run_env
    util.load_python_file(self.dir, '')
  File "/usr/lib/python2.7/dist-packages/alembic/", line 199, in load_python_file
    module = load_module(module_id, path)
  File "/usr/lib/python2.7/dist-packages/alembic/", line 55, in load_module
    mod = imp.load_source(module_id, path, fp)
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/alembic_migrations/", line 42, in <module>
  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/", line 33, in import_class
ImportError: Class router cannot be found (['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/", line 28, in import_class\n    __import__(mod_str)\n', 'ValueError: Empty module name\n'])
edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2014-12-18 16:35:08 -0500

Mr.Hanachoo gravatar image

Hi experts, i'm still facing the same problem Who can help ? what files should i print to you to troubleshoot the issue?

edit flag offensive delete link more


I have same problem, did you solve ??

grkim gravatar imagegrkim ( 2015-01-09 02:42:41 -0500 )edit

answered 2014-12-15 04:38:32 -0500

dbaxps gravatar image

On Ubuntu troubleshhoting tips here
On RH systems check on Controller Node :-

systemctl status rabbitmq-server
nestat -lntp | grep 5672
iptables-save | grep 5672
edit flag offensive delete link more


rabbitmq is up

nestat -lntp | grep 5672 
        tcp6       0      0 :::5672                 :::*                    LISTEN      7780/beam.smp

however, i don't have any rules for the port 5672

iptables-save | grep 5672  #nothing on the output

shoud i have a rule from that port?

Mr.Hanachoo gravatar imageMr.Hanachoo ( 2014-12-15 05:10:18 -0500 )edit

Open port 5672 via iptables for external connections.

dbaxps gravatar imagedbaxps ( 2014-12-15 05:15:47 -0500 )edit

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


Asked: 2014-12-15 04:29:55 -0500

Seen: 1,550 times

Last updated: Dec 18 '14