encode_headers which has NoneType value would raise exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance Client |
Fix Released
|
Medium
|
Ian Cordasco | ||
oslo.utils |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
glanceclient version:
python-
refer to https:/
if you're using Nova but don't have Nova configured with
auth_strategy=
and when you resize(or other operation need call glance) an VM, it may call
glanceclient, and code may go to the logic like:
/usr/lib/
-> self.http_client = http.HTTPClient
> /usr/lib/
and in /usr/lib/
self.identity_
self.auth_token = kwargs.get('token')
and the self.identity_
{'X-Service-
and for https:/
for the code:
if self.identity_
for k, v in six.iteritems(
headers would be like: {'X-Service-
so "headers = self.encode_
would raise TypeError("NoneType can't be encoded"), thus resize(or other operation need call glance) would fail.
description: | updated |
Changed in python-glanceclient: | |
status: | Incomplete → New |
Changed in python-glanceclient: | |
assignee: | nobody → Ian Cordasco (icordasc) |
importance: | Undecided → Medium |
status: | New → Confirmed |
milestone: | none → v0.16.0 |
Changed in python-glanceclient: | |
status: | Fix Committed → Fix Released |
this defect is similar with the one fixed by https:/ /review. openstack. org/#/c/ 129289/