[Openstack] Cinder Instance Locality Filter Error
Brent Troge
brenttroge2016 at gmail.com
Tue May 24 21:14:11 UTC 2016
Hello all..
I am trying to understand how to setup the cinder instance locality
filter. I think
I have everything configured properly, however my cinder create commands fail
when I pass a scheduler hint.
When I omit the scheduler hint, the cinder volume is created as expected.
Below are some datapoints I think the community may find useful in helping
me with this issue.
Thanks!
Operating System - Ubuntu Trusty-64
Openstack Release - Liberty
COMMAND:
cinder create --hint local_to_instance=<some-uuid> 2
CONFIGURATIONS
nova.conf - api server
[DEFAULT]
#applicable directives
nova_endpoint_template = http://controller:8774/v2/%(project_id)s
nova_endpoint_admin_template = http://controller:8774/v2/%(project_id)s
scheduler_available_filters=cinder.scheduler.filters.BaseHostFilter
scheduler_default_filters=InstanceLocalityFilter
os_privileged_user_auth_url = http://controller:35357
os_privileged_user_name = nova
os_privileged_user_password = mypassword
os_privileged_user_tenant = service
PACKAGES INSTALLED
nova-api/cinder-api server
ii cinder-api 2:7.0.2-0ubuntu1~cloud0
all Cinder storage service - API server
ii cinder-common 2:7.0.2-0ubuntu1~cloud0
all Cinder storage service - common files
ii cinder-scheduler 2:7.0.2-0ubuntu1~cloud0
all Cinder storage service - Scheduler server
ii nova-api 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - API frontend
ii nova-cert 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - certificate management
ii nova-common 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - common files
ii nova-conductor 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - conductor service
ii nova-consoleauth 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - Console Authenticator
ii nova-novncproxy 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - NoVNC proxy
ii nova-scheduler 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - virtual machine scheduler
ii python-cinder 2:7.0.2-0ubuntu1~cloud0
all Cinder Python libraries
ii python-cinderclient 1:1.4.0-2~cloud0
all Python bindings to the OpenStack Volume API - Python
2.x
ii python-nova 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute Python libraries
ii python-novaclient 2:2.30.1-1~cloud0
all client library for OpenStack Compute API
nova-compute/cinder-volume server
ii cinder-common 2:7.0.2-0ubuntu1~cloud0
all Cinder storage service - common files
ii cinder-volume 2:7.0.2-0ubuntu1~cloud0
all Cinder storage service - Volume server
ii nova-common 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - common files
ii nova-compute 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - compute node base
ii nova-compute-kvm 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - compute node (KVM)
ii nova-compute-libvirt 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute - compute node libvirt
support
ii python-cinder 2:7.0.2-0ubuntu1~cloud0
all Cinder Python libraries
ii python-cinderclient 1:1.4.0-2~cloud0
all Python bindings to the OpenStack Volume API -
Python 2.x
ii python-nova 2:12.0.3-0ubuntu1~cloud0
all OpenStack Compute Python libraries
ii python-novaclient 2:2.30.1-1~cloud0
all client library for OpenStack Compute API
CINDER SCHEDULER LOGS ENTRIES UPON ERROR
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/scheduler/base_filter.py",
line 43, in filter_all
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
if self._filter_one(obj, filter_properties):
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/lib/python2.7/dist-packages/cinder/openstack/common/scheduler/filters/__init__.py",
line 27, in _filter_one
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
return self.host_passes(obj, filter_properties)
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/lib/python2.7/dist-packages/cinder/scheduler/filters/instance_locality_filter.py",
line 105, in host_passes
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
timeout=REQUESTS_TIMEOUT)
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/lib/python2.7/dist-packages/cinder/compute/nova.py", line
197, in get_server
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
timeout=timeout).servers.get(server_id)
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/local/lib/python2.7/dist-packages/novaclient/v2/servers.py",
line 549, in get
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
return self._get("/servers/%s" % base.getid(server), "server")
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/local/lib/python2.7/dist-packages/novaclient/base.py", line
164, in _get
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
_resp, body = self.api.client.get(url)
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py",
line 446, in get
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
return self._cs_request(url, 'GET', **kwargs)
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py",
line 402, in _cs_request
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
self.authenticate()
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py",
line 574, in authenticate
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
auth_url = self._v1_auth(auth_url)
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
File "/usr/local/lib/python2.7/dist-packages/novaclient/client.py",
line 622, in _v1_auth
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
raise exceptions.from_response(resp, body, url)
2016-05-24 19:59:17.247 1879 ERROR oslo_messaging.rpc.dispatcher
ClientException: Unknown Error (HTTP 300)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160524/a1fad621/attachment.html>
More information about the Openstack
mailing list