New Question
0

ambiguousEndpoints Exception during attach volume in multi region

asked 2014-12-10 11:53:54 +0300

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

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 ... (more)

edit retag flag offensive close merge delete

1 answer

Sort by » oldest newest most voted
0

answered 2014-12-10 14:31:30 +0300

Lucian Petrut gravatar image

This is not actually a bug. If the same endpoint is available in multiple regions, you must specify which region should be used.

One of the ways of doing this is by using the endpointtemplate config option, which you already did. Also, you may pass the region name using --os-region-name when using the attach command or you may put OSREGION_NAME variable in env.

Regards, Lucian

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-12-10 11:53:54 +0300

Seen: 577 times

Last updated: Dec 10 '14