nova error - ERROR (ConnectFailure): Unable to establish connection
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.
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?
"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 youtelnet controller 8774
etc.