Ask Your Question
0

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>
    sys.exit(main())
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", line 169, in main
    CONF.command.func(config, CONF.command.name)
  File "/usr/lib/python2.7/dist-packages/neutron/db/migration/cli.py", 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/cli.py", line 60, in do_alembic_command
    getattr(alembic_command, cmd)(config, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/alembic/command.py", line 124, in upgrade
    script.run_env()
  File "/usr/lib/python2.7/dist-packages/alembic/script.py", line 199, in run_env
    util.load_python_file(self.dir, 'env.py')
  File "/usr/lib/python2.7/dist-packages/alembic/util.py", line 199, in load_python_file
    module = load_module(module_id, path)
  File "/usr/lib/python2.7/dist-packages/alembic/compat.py", 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/env.py", line 42, in <module>
    importutils.import_class(class_path)
  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/importutils.py", line 33, in import_class
    traceback.format_exception(*sys.exc_info())))
ImportError: Class router cannot be found (['Traceback (most recent call last):\n', '  File "/usr/lib/python2.7/dist-packages/neutron/openstack/common/importutils.py", 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
1

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

Comments

I have same problem, did you solve ??

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

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

dbaxps gravatar image

On Ubuntu troubleshhoting tips here https://ask.openstack.org/en/question...
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

Comments

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

Stats

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

Seen: 1,441 times

Last updated: Dec 18 '14