cinder-volume-usage-audit breaks when upgrading from Kilo to Liberty
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Undecided
|
Michal Dulko | ||
Ubuntu Cloud Archive |
Invalid
|
Undecided
|
Unassigned | ||
Icehouse |
Invalid
|
Medium
|
Unassigned | ||
Kilo |
Invalid
|
Medium
|
Unassigned | ||
cinder (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
trusty (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The cinder-
I think it should be something that is changed in the database which causing this issue.
This is the output from our test environment having two volumes which as you can see it fails on the
iteration of both.
No handlers could be found for logger "oslo_config.cfg"
/usr/lib/
exception.
2015-11-19 08:50:31.946 23397 ERROR cinder [req-cd131e13-
2015-11-19 08:50:31.946 23397 ERROR cinder Traceback (most recent call last):
2015-11-19 08:50:31.946 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.946 23397 ERROR cinder 'exists', extra_usage_
2015-11-19 08:50:31.946 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.946 23397 ERROR cinder usage_info = _usage_
2015-11-19 08:50:31.946 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.946 23397 ERROR cinder metadata=
2015-11-19 08:50:31.946 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.946 23397 ERROR cinder return getattr(self, key, default)
2015-11-19 08:50:31.946 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.946 23397 ERROR cinder return self.impl.
2015-11-19 08:50:31.946 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.946 23397 ERROR cinder value = self.callable_
2015-11-19 08:50:31.946 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.946 23397 ERROR cinder (orm_util.
2015-11-19 08:50:31.946 23397 ERROR cinder DetachedInstanc
2015-11-19 08:50:31.946 23397 ERROR cinder
2015-11-19 08:50:31.950 23397 ERROR cinder [req-cd131e13-
2015-11-19 08:50:31.950 23397 ERROR cinder Traceback (most recent call last):
2015-11-19 08:50:31.950 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.950 23397 ERROR cinder 'exists', extra_usage_
2015-11-19 08:50:31.950 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.950 23397 ERROR cinder usage_info = _usage_
2015-11-19 08:50:31.950 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.950 23397 ERROR cinder metadata=
2015-11-19 08:50:31.950 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.950 23397 ERROR cinder return getattr(self, key, default)
2015-11-19 08:50:31.950 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.950 23397 ERROR cinder return self.impl.
2015-11-19 08:50:31.950 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.950 23397 ERROR cinder value = self.callable_
2015-11-19 08:50:31.950 23397 ERROR cinder File "/usr/lib/
2015-11-19 08:50:31.950 23397 ERROR cinder (orm_util.
2015-11-19 08:50:31.950 23397 ERROR cinder DetachedInstanc
2015-11-19 08:50:31.950 23397 ERROR cinder
Changed in cinder: | |
assignee: | nobody → Michal Dulko (michal-dulko-f) |
status: | Confirmed → In Progress |
tags: | added: liberty-backport-potential |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
no longer affects: | ubuntu |
Changed in trusty (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
status: | Triaged → Invalid |
importance: | Medium → Undecided |
Changed in cloud-archive: | |
status: | New → Invalid |
Changed in cinder (Ubuntu): | |
status: | New → Invalid |
Error is suppressed when commeting out the metadata line in the dict at /usr/lib/ python2. 7/dist- packages/ cinder/ volume/ utils.py line 75.
So this should be an issue with the sqlalchemy query which is incorrect or some value checking is wrong since my volumes dont have any volume_metadata entries in the database.
I don't know what impact removing this line has.