Ask Your Question
0

nova commands returns "ERROR (ConnectFailure): Unable to establish connection to http://controller:8774/v2.1/"

asked 2017-06-21 05:27:58 -0500

rahul_kumar gravatar image

When invoking any nova commands it returns "ERROR (ConnectFailure): Unable to establish connection to http://controller:8774/v2.1/%22 (http://controller:8774/v2.1/"). Everything earlier was working fine until i installed gnocchi and the required feature using the following commands "pip install gnocchi" and "pip install gnocchi[postgresql,ceph,keystone]".

Running following command"netstat -ntpl | grep 8774" does not give any output which means no 8774 listener port.

Also In the syslog i can see the below error:

Jun 21 02:48:40 controller nova-consoleauth[23207]: Traceback (most recent call last): Jun 21 02:48:40 controller nova-consoleauth[23207]: File "/usr/bin/nova-consoleauth", line 10, in <module> Jun 21 02:48:40 controller nova-consoleauth[23207]: sys.exit(main()) Jun 21 02:48:40 controller nova-consoleauth[23207]: File "/usr/lib/python2.7/dist-packages/nova/cmd/consoleauth.py", line 35, in main Jun 21 02:48:40 controller nova-consoleauth[23207]: config.parse_args(sys.argv) Jun 21 02:48:40 controller nova-consoleauth[23207]: File "/usr/lib/python2.7/dist-packages/nova/config.py", line 56, in parse_args Jun 21 02:48:40 controller nova-consoleauth[23207]: sqlite_db='nova.sqlite') Jun 21 02:48:40 controller nova-consoleauth[23207]: TypeError: set_defaults() got an unexpected keyword argument 'sqlite_db' Jun 21 02:48:40 controller systemd[1]: nova-consoleauth.service: Main process exited, code=exited, status=1/FAILURE Jun 21 02:48:40 controller systemd[1]: nova-consoleauth.service: Unit entered failed state. Jun 21 02:48:40 controller systemd[1]: nova-consoleauth.service: Failed with result 'exit-code'. Jun 21 02:48:40 controller systemd[1]: nova-consoleauth.service: Service hold-off time over, scheduling restart. Jun 21 02:48:40 controller systemd[1]: Stopped OpenStack Compute Console. Jun 21 02:48:40 controller nova-conductor[23223]: Traceback (most recent call last): Jun 21 02:48:40 controller nova-conductor[23223]: File "/usr/bin/nova-conductor", line 10, in <module> Jun 21 02:48:40 controller nova-conductor[23223]: sys.exit(main()) Jun 21 02:48:40 controller nova-conductor[23223]: File "/usr/lib/python2.7/dist-packages/nova/cmd/conductor.py", line 34, in main Jun 21 02:48:40 controller nova-conductor[23223]: config.parse_args(sys.argv) Jun 21 02:48:40 controller nova-conductor[23223]: File "/usr/lib/python2.7/dist-packages/nova/config.py", line 56, in parse_args Jun 21 02:48:40 controller nova-conductor[23223]: sqlite_db='nova.sqlite') Jun 21 02:48:40 controller nova-conductor[23223]: TypeError: set_defaults() got an unexpected keyword argument 'sqlite_db' Jun 21 02:48:40 controller systemd[1]: Starting OpenStack Compute Console... Jun 21 02:48:40 controller systemd[1]: Started OpenStack Compute Console. Jun 21 02:48:40 controller systemd[1]: nova-conductor.service: Main process exited, code=exited, status=1/FAILURE Jun 21 02:48:40 controller systemd[1]: nova-conductor.service: Unit entered failed state. Jun 21 02:48:40 controller systemd[1]: nova-conductor.service: Failed with result 'exit-code'. Jun 21 02:48:40 controller nova-api[23243]: Traceback (most recent call last): Jun 21 02:48:40 controller nova-api[23243]: File "/usr/bin/nova-api", line 10, in <module> Jun 21 02 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2017-06-21 10:40:32 -0500

Well, this can't possibly be a short answer: You have most certainly replaced parts of the python tools used by openstack while installing gnocchi with "pip install" I presume, you have installed the Stack first out of any repository there is for your Distri, and now pip did at least over install keystone, I guess crucial part of the oslo stack and so on.

As this is your controller, restarting other services will result fail too.

You can try

su - nova -s /bin/bash
nova-api --config-file /etc/nova/nova.conf

or nova-conductor as well and it will give you error messages whats wrong and/or missing.

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

Stats

Asked: 2017-06-21 05:27:58 -0500

Seen: 914 times

Last updated: Jun 21 '17