yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #00624
[Bug 1081037] Re: python-nova: not region aware when used with quantum
** Changed in: nova
Status: Fix Committed => Fix Released
** Changed in: nova
Milestone: None => grizzly-3
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1081037
Title:
python-nova: not region aware when used with quantum
Status in OpenStack Compute (Nova):
Fix Released
Bug description:
Hi,
When used with quantum, python-nova does not pass in any region
information when constructing a quantum-client, making the compute
services on my multi-region setup fail when multiple endpoints are
returned by keystone.
The problem is that in network/quantumv2/__init__.py,
_get_auth_token() a quantumclient.client.HTTPClient is created without
a region_name argument.
In order to make this work, I had to edit
nova/network/quantumv2/api.py and add a new parameter to quantum_opts:
cfg.StrOpt('quantum_region_name',
help='region name for connecting to quantum in admin context'),
and then pass that to the httpclient constructor in
nova/network/quantumv2/__init__.py with:
timeout=FLAGS.quantum_url_timeout,
region_name=FLAGS.quantum_region_name,
auth_strategy=FLAGS.quantum_auth_strategy)
and finally set quantum_region_name in nova.conf.
There may be a more elegant way of achieving all this.
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1081037/+subscriptions