<div dir="ltr"> Cinder is trying to reach back to nova but is failing. I think it might be because it's trying to use Nova v1. "in _v1_auth". What do you have in cinder.conf?</div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, May 24, 2016 at 6:14 PM, Brent Troge <span dir="ltr"><<a href="mailto:brenttroge2016@gmail.com" target="_blank">brenttroge2016@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">Hello all..<br><br></pre><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">I am trying to understand how to setup the cinder instance locality filter. I think <br></pre><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">I have everything configured properly, however my cinder create commands fail<br></pre><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">when I pass a scheduler hint.<br></pre><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">When I omit the scheduler hint, the cinder volume is created as expected.<br></pre><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">Below are some datapoints I think the community may find useful in helping<br></pre><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">me with this issue.<br><br></pre><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)">Thanks!<br></pre><pre style="display:block;font-family:"Courier New",Courier,monospace,arial,sans-serif;font-size:14px;margin:0px;white-space:pre-wrap;word-wrap:break-word;color:rgb(0,0,0);font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-align:left;text-indent:0px;text-transform:none;word-spacing:0px;background-color:rgb(255,255,255)"><br>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 = <a href="http://controller:8774/v2/%(project_id)s" target="_blank">http://controller:8774/v2/%(project_id)s</a>
nova_endpoint_admin_template =  <a href="http://controller:8774/v2/%(project_id)sscheduler_available_filters=cinder.scheduler.filters.BaseHostFilterscheduler_default_filters=InstanceLocalityFilter" target="_blank">http://controller:8774/v2/%(project_id)s
scheduler_available_filters=cinder.scheduler.filters.BaseHostFilter
scheduler_default_filters=InstanceLocalityFilter</a>
os_privileged_user_auth_url = <a href="http://controller:35357" target="_blank">http://controller:35357</a>
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)</pre></div>
<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><br></div>