Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Cinder InstanceLocalityFilter novaclient error EndpointNotFound

Why do I get an error in the cinder scheduler log when attempting to use the InstanceLocalityFilter to create a volume on the same compute host as a particular instance? I have no issues deploying volumes using any of the standard scheduling filters.

2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager Traceback (most recent call last):
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/taskflow/engines/action_engine/executor.py", line 67, in _execute_task
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     result = task.execute(**arguments)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/scheduler/flows/create_volume.py", line 147, in execute
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     reason=e)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/oslo_utils/excutils.py", line 85, in __exit__
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     six.reraise(self.type_, self.value, self.tb)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/scheduler/flows/create_volume.py", line 127, in execute
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     filter_properties)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/scheduler/filter_scheduler.py", line 86, in schedule_create_volume
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     filter_properties)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/scheduler/filter_scheduler.py", line 410, in _schedule
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     filter_properties)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/scheduler/filter_scheduler.py", line 308, in _get_weighted_candidates
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     filter_properties)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/scheduler/host_manager.py", line 441, in get_filtered_hosts
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     filter_properties)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/openstack/common/scheduler/base_filter.py", line 53, in get_filtered_objects
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     return list(objs)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/openstack/common/scheduler/base_filter.py", line 38, in filter_all
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     for obj in filter_obj_list:
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/openstack/common/scheduler/base_filter.py", line 38, in filter_all
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     for obj in filter_obj_list:
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/openstack/common/scheduler/base_filter.py", line 39, in filter_all
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     if self._filter_one(obj, filter_properties):
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/openstack/common/scheduler/filters/__init__.py", line 27, in _filter_one
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     return self.host_passes(obj, filter_properties)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/scheduler/filters/instance_locality_filter.py", line 96, in host_passes
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     if not self._nova_has_extended_server_attributes(context):
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/scheduler/filters/instance_locality_filter.py", line 66, in _nova_has_extended_server_attributes
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     context, 'ExtendedServerAttributes', timeout=REQUESTS_TIMEOUT)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/compute/nova.py", line 159, in has_extension
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     client = novaclient(context, timeout=timeout)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/cinder/compute/nova.py", line 131, in novaclient
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     **region_filter)
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager   File "/usr/lib/python2.7/site-packages/novaclient/service_catalog.py", line 84, in url_for
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager     raise novaclient.exceptions.EndpointNotFound()
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager EndpointNotFound
2015-07-10 16:34:03.640 47278 TRACE cinder.scheduler.manager