Client does not respect OS_REGION_NAME (or --os-region-name)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-openstackclient |
Invalid
|
Medium
|
Terry Howe |
Bug Description
The "openstack" command does not appear to respect OS_REGION_NAME. I have compute services in two regions; the default ("RegionOne") and another called "Havana". The "nova" command line client behaves like this when OS_REGION_NAME is unspecified:
$ nova list
ERROR: AmbiguousEndpoints: [{u'adminURL': u'http://
And like this with "--os-region-name RegionOne":
$ nova --os-region-name RegionOne
And with "--os-region-name Havana":
$ nova --os-region-name Havana list
+--
| ID | Name | Status | Task State | Power State | Networks |
+--
| 8a38cce2-
| 80b03cba-
+--
On the other hand, the "openstack" command always seems to reference
"RegionOne", and ignores a region set either on the command line or as
an environment variable.
With no explicit region:
$ openstack -q server list
With "--os-region-name Havana":
$ openstack -q --os-region-name Havana server list
With "OS_REGION_
$ OS_REGION_
For reference:
$ openstack -q endpoint list
+--
| ID | Region | Service Name | Service Type |
+--
| ba686936d31846f
| 0ca1540962704a0
| 161684fd1237401
| b2019dbef5f34d1
| c056f37b057b4c6
| 4b5dd8c6b961442
| ac766707ffa3437
| e3f7bd37b51341b
| 6821fad71a91463
| 3b2a90e9f85a468
+--
Changed in python-openstackclient: | |
importance: | Undecided → Medium |
milestone: | none → m2 |
Changed in python-openstackclient: | |
status: | New → Incomplete |
assignee: | nobody → Terry Howe (thowe-g) |
Was this problem fixed somehow? I cannot reproduce.
(.venv) terry@brat: ~/hp/python- openstackclient $ os server list --os-region region-a.geo-1 httpclient Failed to retrieve management_url from token ------- ------- ------- ------- ----+-- ------- +------ --+---- ------- ------+ ------- ------- ------- ------- ----+-- ------- +------ --+---- ------- ------+ 4a6b-4dd1- 96cd-3a2b77202e 5b | swerver | ACTIVE | oscaft=10.2.1.3 | ------- ------- ------- ------- ----+-- ------- +------ --+---- ------- ------+ terry@brat: ~/hp/python- openstackclient $ os server list --os-region region-b.geo-1 httpclient Failed to retrieve management_url from token ------- ------- ------- ------- ----+-- -----+- ------- +------ ------- ------- ------- ---+ ------- ------- ------- ------- ----+-- -----+- ------- +------ ------- ------- ------- ---+ edde-46b3- aaec-b4124551b2 89 | servb | ACTIVE | terrylhowe- network= 10.0.0. 27 | 0a3e-4e28- 9438-18f4d5541e 86 | servo | ACTIVE | terrylhowe- network= 10.0.0. 26 | ------- ------- ------- ------- ----+-- -----+- ------- +------ ------- ------- ------- ---+ terry@brat: ~/hp/python- openstackclient $ export OS_REGION_ NAME=region- b.geo-1 terry@brat: ~/hp/python- openstackclient $ os server list httpclient Failed to retrieve management_url from token ------- ------- ------- ------- ----+-- -----+- ------- +------ ------- ------- ------- ---+ ------- ------- ------- ------- ----+-- -----+- ------- +------ ------- ------- ------- ---+ edde-46b3- aaec-b4124551b2 89 | servb | ACTIVE | terrylhowe- network= 10.0.0. 27 | 0a3e-4e28- 9438-18f4d5541e 86 | servo | ACTIVE | terrylhowe- network= 10.0.0. 26 | ------- ------- ------- ------- ----+-- -----+- ------- +------ ------- ------- ------- ---+ terry@brat: ~/hp/python- openstackclient $ export OS_REGION_ NAME=region- a.geo-1 terry@brat: ~/hp/python- openstackclient $ os server list httpclient Failed to retrieve management_url from token ------- ------- ------- ------- ----+-- ------- +------ --+---- ------- ------+ ------- ------- ------- ------- ----+-- ------- +------ --+---- ------- ------+ 4a6b-4dd1- 96cd-3a2b77202e 5b | swerver | ACTIVE | oscaft=10.2.1.3 | ------- ------- ------- ------- ----+-- ------- +------ --+---- ------- ------+ terry@brat: ~/hp/python- openstackclient $
WARNING: keystoneclient.
+------
| ID | Name | Status | Networks |
+------
| 2c1e19a2-
+------
(.venv)
WARNING: keystoneclient.
+------
| ID | Name | Status | Networks |
+------
| 2c08f094-
| 328b75bd-
+------
(.venv)
(.venv)
WARNING: keystoneclient.
+------
| ID | Name | Status | Networks |
+------
| 2c08f094-
| 328b75bd-
+------
(.venv)
(.venv)
WARNING: keystoneclient.
+------
| ID | Name | Status | Networks |
+------
| 2c1e19a2-
+------
(.venv)