← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1371716] Re: nova endpoints returns endpoints from the wrong region when region is set

 

I believe the service catalog for nova is coming from whatever
OS_AUTH_URL is set to, so if you are authing against the first region
you can't see the second one.

** Project changed: nova => python-novaclient

-- 
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/1371716

Title:
  nova endpoints returns endpoints from the wrong region when region is
  set

Status in Python client library for Nova:
  New

Bug description:
  We have two regions in our environment. When OS_REGION_NAME is set to
  "WEST" and I run nova endpoints, I get endpoints back for EAST. The
  keystone CLI does the correct thing and returns endpoints matching the
  region.

  The east region comes first in our endpoint list which I assume is the
  logic that its using.

  Here's some sample output from nova endpoints and keystone catalog.

  OS_REGION_NAME=WEST nova endpoints
  +-------------+-----------------------------------------------------+
  | keystone    | Value                                               |
  +-------------+-----------------------------------------------------+
  | adminURL    | http://east.example.com:35357/v2.0   |
  | id          | 503fc143506c44fb876ffe4fa82497d6                    |
  | internalURL | http://east.example.com:5000/v2.0 |
  | publicURL   | http://east.example.com:5000/v2.0          |
  | region      | EAST                                                 |
  +-------------+-----------------------------------------------------+

  OS_REGION_NAME=WEST keystone catalog
  Service: identity
  +-------------+-----------------------------------------------------+
  |   Property  |                        Value                        |
  +-------------+-----------------------------------------------------+
  |   adminURL  |  http://west.example.com:35357/v2.0  |
  |      id     |           16937fc883eb4fc9968b8e1b42a30a70          |
  | internalURL | http://west.example.com:5000/v2.0 |
  |  publicURL  |      http://west.example.com:5000/v2.0     |
  |    region   |                        WEST                         |
  +-------------+-----------------------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/python-novaclient/+bug/1371716/+subscriptions


References