nova service-list raises "Error setting Service.id" with nova-cell installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Installed all-in-one mode by devstack with the following localrc:
ADMIN_
MYSQL_
RABBIT_
SERVICE_
LOGFILE=
LOGDAYS=2
CINDER_
GLANCE_
HORIZON_
KEYSTONE_
KEYSTONEC
NOVA_
NOVACLIEN
NEUTRON_
SWIFT_
SWIFT_
SWIFT_
SWIFT_
FLOATING_
FIXED_
FIXED_
FLAT_
disable_
enable_
enable_
enable_
enable_
enable_
enable_
enable_
enable_
# Optional, to enable tempest configuration as part of DevStack
enable_
enable_
enable_
SERVICE_
After finished the installation, can use nova boot to boot instance, but if use "nova service-list" or "nova host-list"
show the services and hosts, it will return an error msg:
2013-12-30 07:56:14.910 ERROR object [req-005a967f-
2013-12-30 07:56:14.910 TRACE object Traceback (most recent call last):
2013-12-30 07:56:14.910 TRACE object File "/opt/stack/
2013-12-30 07:56:14.910 TRACE object field.coerce(self, name, value))
2013-12-30 07:56:14.910 TRACE object File "/opt/stack/
2013-12-30 07:56:14.910 TRACE object return self._type.
2013-12-30 07:56:14.910 TRACE object File "/opt/stack/
2013-12-30 07:56:14.910 TRACE object return int(value)
2013-12-30 07:56:14.910 TRACE object ValueError: invalid literal for int() with base 10: 'region!child@1'
2013-12-30 07:56:14.910 TRACE object
2013-12-30 07:56:14.917 ERROR nova.api.openstack [req-005a967f-
2013-12-30 07:56:14.917 TRACE nova.api.openstack Traceback (most recent call last):
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return req.get_
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/local/
2013-12-30 07:56:14.917 TRACE nova.api.openstack application, catch_exc_
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/local/
2013-12-30 07:56:14.917 TRACE nova.api.openstack app_iter = application(
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/local/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return resp(environ, start_response)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return self.app(env, start_response)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/local/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return resp(environ, start_response)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/local/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return resp(environ, start_response)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/lib/
2013-12-30 07:56:14.917 TRACE nova.api.openstack response = self.app(environ, start_response)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/local/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return resp(environ, start_response)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/local/
2013-12-30 07:56:14.917 TRACE nova.api.openstack resp = self.call_func(req, *args, **self.kwargs)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/usr/local/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return self.func(req, *args, **kwargs)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack content_type, body, accept)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack action_result = self.dispatch(meth, request, action_args)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return method(req=request, **action_args)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack services = self._get_
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack services = self._get_
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack context, set_zones=True)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack services)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack **extra_args)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack service[key] = db_service[key]
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack setattr(self, name, value)
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack field.coerce(self, name, value))
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return self._type.
2013-12-30 07:56:14.917 TRACE nova.api.openstack File "/opt/stack/
2013-12-30 07:56:14.917 TRACE nova.api.openstack return int(value)
2013-12-30 07:56:14.917 TRACE nova.api.openstack ValueError: invalid literal for int() with base 10: 'region!child@1'
2013-12-30 07:56:14.917 TRACE nova.api.openstack
I debugged the code, found the value of "db_service[key]" is "region!child@1", and it was created by the method add_cell_
I also tried "nova hypervisor-list", and got the following result:
+--
| ID | Hypervisor hostname |
+--
| region!child@1 | devstack |
+--
The ID is also not an integer, which is different with not installed n-cell one.
This bug is the same as https:/ /bugs.launchpad .net/nova/ +bug/1251043