Public bug reported: 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. ** Affects: nova (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to nova in Ubuntu. https://bugs.launchpad.net/bugs/1081037 Title: python-nova: not region aware when used with quantum To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nova/+bug/1081037/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs