[SRU] CLI endpoint type handling broken
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Undecided
|
Niall Bunting | ||
Liberty |
Fix Committed
|
Undecided
|
Unassigned | ||
Mitaka |
Fix Committed
|
Critical
|
Unassigned | ||
python-glanceclient (Ubuntu) |
Fix Released
|
Undecided
|
Corey Bryant | ||
Xenial |
Fix Released
|
Undecided
|
Corey Bryant |
Bug Description
[Impact]
If you have multiple endpoints configured as follows:
$ openstack endpoint list|grep glance
| 3ee11ce39098457
| bba9cb25c0fc46f
| db38baa73a8542f
It should be possible to run:
$ glance --os-cacert /tmp/ca-
This command used to work successfully on the liberty stable branch.
For example if you check out this commit from the liberty stable branch:
$ git checkout c077858dd6e0cd8
it works ok.
If you check out the head of the liberty stable branch though it fails with:
Error finding address for https:/
If you checkout the master branch it fails with the same error.
If you revert this patch:
commit c11c8c432bde60e
Author: Darja Shakhray <email address hidden>
Date: Tue Dec 29 16:41:38 2015 +0300
Use session when not specified token or endpoint
When no token or endpoint, it creates a session and from there
taken the necessary values.
This commit proposes to transfer a session in such cases.
This will avoid unnecessary actions and some of the problems.
Change-Id: Idc874b6c01e915
Partial-bug: #1519546
(cherry picked from commit bda34034eb74023
On stable/liberty, then the command starts working again.
Similarly, if you revert that change on master the command starts working again.
(The equivalent openstack client command works ok.)
[Test Case]
See Impact section.
[Regression Potential]
The fixes are cherry-picked and unchanged from upstream master and stable/mitaka branches, helping to limit the regression potential.
Changed in python-glanceclient: | |
assignee: | nobody → Niall Bunting (niall-bunting) |
summary: |
- CLI endpoint handling broken + CLI endpoint type handling broken |
summary: |
- CLI endpoint type handling broken + [SRU] CLI endpoint type handling broken |
Changed in python-glanceclient (Ubuntu): | |
status: | New → Fix Released |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in python-glanceclient (Ubuntu Xenial): | |
assignee: | nobody → Corey Bryant (corey.bryant) |
Changed in python-glanceclient (Ubuntu Xenial): | |
status: | New → In Progress |
description: | updated |
Changed in python-glanceclient (Ubuntu Xenial): | |
status: | In Progress → Fix Committed |
status: | Fix Committed → In Progress |
Fix proposed to branch: master /review. openstack. org/314216
Review: https:/