]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Pass region name to Nova client
authorAdrien Vergé <adrien.verge@numergy.com>
Thu, 12 Feb 2015 16:09:47 +0000 (17:09 +0100)
committerAdrien Vergé <adrien.verge@numergy.com>
Fri, 20 Feb 2015 13:56:29 +0000 (13:56 +0000)
commit43374438bdb9891590205c9a5ea9c7d4af7d4b84
tree71fd6f4949ba0496fc195aca09790fe47b0161c4
parentf4f46e972004eca66e4751a836156c342e448621
Pass region name to Nova client

When using a Novaclient method on a multi-region infrastructure,
requests sometimes fail with an AmbiguousEndpoints Exception,
because more than one Nova endpoint is returned in the catalog.

This patch passes `region_name` and `endpoint_type` from conf to
Novaclient, so this error case is avoided.

Change-Id: Ic4810a1c5223575c6d6300156491437ea67c4a7a
Closes-Bug: #1421314
cinder/compute/nova.py
cinder/tests/compute/test_nova.py