Ask Your Question
0

nova error - ERROR (ConnectFailure): Unable to establish connection

asked 2016-11-01 05:09:23 -0500

itsme gravatar image

I am trying to configure openstack mitaka in my local test environment which is of Ubuntu platform.

After configuring nova I am getting error.

I am unable to check the status of nova services.

Its showing an error:

root@controller:/var/log/nova# openstack compute service list
Unable to establish connection to http://controller:8774/v2/c93d2c39f4154f52bed4681d15890763/os-services

While I am checking the log I can see the error as follows:

nova-api.log:

2016-11-01 14:57:21.831 12996 ERROR nova     super(APIRouterV21, self).__init__(init_only)
2016-11-01 14:57:21.831 12996 ERROR nova   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 413, in __init__
2016-11-01 14:57:21.831 12996 ERROR nova     self._register_resources_check_inherits(mapper)
2016-11-01 14:57:21.831 12996 ERROR nova   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/__init__.py", line 437, in _register_resources_check_inherits
2016-11-01 14:57:21.831 12996 ERROR nova     for resource in ext.obj.get_resources():
2016-11-01 14:57:21.831 12996 ERROR nova   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/cloudpipe.py", line 189, in get_resources
2016-11-01 14:57:21.831 12996 ERROR nova     CloudpipeController())]
2016-11-01 14:57:21.831 12996 ERROR nova   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/cloudpipe.py", line 49, in __init__
2016-11-01 14:57:21.831 12996 ERROR nova     self.setup()
2016-11-01 14:57:21.831 12996 ERROR nova   File "/usr/lib/python2.7/dist-packages/nova/api/openstack/compute/cloudpipe.py", line 56, in setup
2016-11-01 14:57:21.831 12996 ERROR nova     fileutils.ensure_tree(CONF.keys_path)
2016-11-01 14:57:21.831 12996 ERROR nova   File "/usr/lib/python2.7/dist-packages/oslo_utils/fileutils.py", line 42, in ensure_tree
2016-11-01 14:57:21.831 12996 ERROR nova     os.makedirs(path, mode)
2016-11-01 14:57:21.831 12996 ERROR nova   File "/usr/lib/python2.7/os.py", line 157, in makedirs
2016-11-01 14:57:21.831 12996 ERROR nova     mkdir(name, mode)
2016-11-01 14:57:21.831 12996 ERROR nova OSError: [Errno 13] Permission denied: '/usr/lib/python2.7/dist-packages/keys'

Also getting error in nova-conductor.log:

2016-11-01 13:07:24.524 16338 ERROR nova.servicegroup.drivers.db OperationalError: (sqlite3.OperationalError) database is locked [SQL: u'UPDATE services SET updated_at=?, report_count=?, last_seen_up=? WHERE services.id = ?'] [parameters: ('2016-11-01 07:37:24.523455', 1, '2016-11-01 07:37:24.519327', 3)]

Someone help me to fix the same.

edit retag flag offensive close merge delete

Comments

The time stamps are very far apart and are unlikely to refer to the same problem. At which time did you run the server list command? Are you sure nova was running at the time of the command?

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-01 06:50:26 -0500 )edit

"Unable to establish connection" indicates that nova-api is not listening at this address and port; perhaps it has crashed? Also check the networking, for example, can you ping controller, can you telnet controller 8774 etc.

Bernd Bausch gravatar imageBernd Bausch ( 2016-11-01 06:52:30 -0500 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-12-16 03:33:10 -0500

egtom gravatar image

I also faced same problem. It was fixed by following command.

mkdir /usr/lib/python2.7/dist-packages/keys

edit flag offensive delete link more
0

answered 2017-06-26 12:04:49 -0500

Tiago Farias gravatar image

@egtom thanks, it fixed the problem.

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: 2016-11-01 05:09:23 -0500

Seen: 2,121 times

Last updated: Nov 01 '16