ambiguousEndpoints Exception during attach volume in multi region
Hi It looks like if multiple cinder endpoints are defined in keystone the nova service in Hyper-V is not able to process the service catalog correctly.
I'm getting the following exception: 2014-12-09 03:01:36.956 4212 ERROR nova.compute.manager [req-80d69161-4b80-4f25-ada5-de6febd308e8 3ebc4595f1ce4fcaa7327b06ee32dae6 dad897c5ed9d4e1892eb9fc1649678c9] [instance: 6730738c-0416-4c0f-b816-3caab846b983] Failed to attach 5685c25a-3129-410b-86e3-0027f416bcd1 at /dev/sdb 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] Traceback (most recent call last): 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] File "C:\Program Files (x86)\IBM\Cloud Manager with OpenStack\Hyper-V Agent\Python27\lib\site-packages\nova\compute\manager.py", line 4214, in attachvolume 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] docheckattach=False, dodriverattach=True) 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] File "C:\Program Files (x86)\IBM\Cloud Manager with OpenStack\Hyper-V Agent\Python27\lib\site-packages\nova\virt\blockdevice.py", line 44, in wrapped 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] retval = method(obj, context, args, *kwargs) 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] File "C:\Program Files (x86)\IBM\Cloud Manager with OpenStack\Hyper-V Agent\Python27\lib\site-packages\nova\virt\blockdevice.py", line 215, in attach 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] volume = volumeapi.get(context, self.volumeid) 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] File "C:\Program Files (x86)\IBM\Cloud Manager with OpenStack\Hyper-V Agent\Python27\lib\site-packages\nova\volume\cinder.py", line 190, in wrapper 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] res = method(self, ctx, volumeid, args, *kwargs) 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] File "C:\Program Files (x86)\IBM\Cloud Manager with OpenStack\Hyper-V Agent\Python27\lib\site-packages\nova\volume\cinder.py", line 223, in get 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] item = cinderclient(context).volumes.get(volumeid) 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] File "C:\Program Files (x86)\IBM\Cloud Manager with OpenStack\Hyper-V Agent\Python27\lib\site-packages\nova\volume\cinder.py", line 96, in cinderclient 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] endpointtype=endpointtype) 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] File "C:\Program Files (x86)\IBM\Cloud Manager with OpenStack\Hyper-V Agent\Python27\lib\site-packages\cinderclient\servicecatalog.py", line 86, in url_for 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] raise cinderclient.exceptions.AmbiguousEndpoints(endpoints=eplist) 2014-12-09 03:01:36.956 4212 TRACE nova.compute.manager [instance: 6730738c-0416-4c0f-b816-3caab846b983] AmbiguousEndpoints: AmbiguousEndpoints: [{u'adminURL': u'http://vmware-region-india3.82.customer.ibm.com:8776/v1/dad897c5ed9d4e1892eb9fc1649678c9', u'region': u'RegionVMware', 'serviceName': None, u'internalURL': u'http://vmware-region-india3.82.customer.ibm.com:8776/v1/dad897c5ed9d4e1892eb9fc1649678c9', u'publicURL': u'http://vmware-region-india3 ...