glance-cache-prefetcher explodes when no auth parameters were configured
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Medium
|
Flavio Percoco | ||
Folsom |
Fix Released
|
Medium
|
Flavio Percoco | ||
Grizzly |
Fix Released
|
Medium
|
Flavio Percoco |
Bug Description
Description of problem:
If there're no auth parameters configured in glance-cache.conf, glance-
How reproducible:
very
Steps to Reproduce:
1. install glance
2. configure cachemanager
3. use keystone as auth backend
4. queue an image for cache
5. remove keystone parameters from glance-cache.conf
6. call glance-
Actual results:
[root@interceptor glance(
Traceback (most recent call last):
File "/usr/lib/
timer()
File "/usr/lib/
cb(*args, **kw)
File "/usr/lib/
result = function(*args, **kwargs)
File "/usr/lib/
image_meta = registry.
File "/usr/lib/
return c.get_image(
File "/usr/lib/
res = self.do_
File "/usr/lib/
action, **kwargs)
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
auth_
File "/usr/lib/
self.
File "/usr/lib/
if self.creds[
AttributeError: 'NoneType' object has no attribute 'rstrip'
Traceback (most recent call last):
File "/usr/bin/
app.run()
File "/usr/lib/
successes = sum([1 for r in results if r is True])
File "/usr/lib/
val = self.waiters.
File "/usr/lib/
return self._exit_
File "/usr/lib/
current.
File "/usr/lib/
result = function(*args, **kwargs)
File "/usr/lib/
image_meta = registry.
File "/usr/lib/
return c.get_image(
File "/usr/lib/
res = self.do_
File "/usr/lib/
action, **kwargs)
File "/usr/lib/
return func(self, *args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
auth_
File "/usr/lib/
self.
File "/usr/lib/
if self.creds[
AttributeError: 'NoneType' object has no attribute 'rstrip'
Expected results:
A nice error message requesting auth parameters
Changed in glance: | |
assignee: | nobody → Flavio Percoco Premoli (flaper87) |
Changed in glance: | |
importance: | Undecided → High |
Changed in glance: | |
status: | New → In Progress |
tags: | added: grizzly-rc-potential |
Changed in glance: | |
importance: | High → Medium |
Changed in glance: | |
milestone: | none → grizzly-rc2 |
tags: | removed: in-stable-folsom |
Fix proposed to branch: master /review. openstack. org/24977
Review: https:/