VerifiedHTTPSConnection init raises exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Critical
|
Brian Waldon |
Bug Description
I'm seeing the following from head of 'master' to the folsom/stable branch:
__init__() got multiple values for keyword argument 'key_file')
when I run:
glance --os-auth-token XXX --os-image-url https:/
If I revert the last change (Change-Id: I53a890e6532adb
the above works ok.
Debugging...
def get_connection(
print "XXX44 "
_class = self.connection
print "XXX44 _class", _class
print "XXX444", self.connection
print "XXX444", self.connection
try:
return _class(
XXX44 _class glanceclient.
XXX444 ('localhost', 9292, '') <<< the empty string here is being treated as 'key_file'
XXX444 {'key_file': None, 'insecure': True, 'cert_file': None, 'ca_file': None, 'timeout': 600.0} <<< key_file also provided as kwarg
Changed in python-glanceclient: | |
assignee: | nobody → Brian Waldon (bcwaldon) |
milestone: | none → v0.5.2 |
importance: | Undecided → Critical |
status: | New → In Progress |
summary: |
- https access broken? + VerifiedHTTPSConnection init raises exception |
Changed in python-glanceclient: | |
milestone: | v0.5.2 → v0.6.0 |
Changed in python-glanceclient: | |
status: | Fix Committed → Fix Released |
If I switch the server to http, then the equivalent command works ok:
$ glance --os-auth-token XXX --os-image-url http:// localhost: 9292 -v --insecure image-list
+------ ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- ------+ ------- ------- ----+-- ----+-- ------+ ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- ------+ ------- ------- ----+-- ----+-- ------+ 01d3-429c- 9493-13a684bbf9 54 | | raw | bare | 424 | active | 65ba-45e2- b706-50a4b60894 46 | | raw | bare | 424 | active | dd82-4dca- a1e2-68c28a1495 61 | | raw | bare | 432 | active | ------- ------- ------- ------- ----+-- ------- ------- ------+ ------- ------+ ------- ------- ----+-- ----+-- ------+
| ID | Name | Disk Format | Container Format | Size | Status |
+------
| 0066cf6c-
| 0f1b871d-
| 25c31aad-
+------