[SRU] volume usage audit print excessive debug log for deleted resources
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
Huang Zhiteng | ||
Ubuntu Cloud Archive |
Fix Released
|
Undecided
|
Unassigned | ||
Mitaka |
Fix Released
|
Undecided
|
Unassigned | ||
Newton |
Fix Released
|
Undecided
|
Unassigned | ||
cinder (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Medium
|
Jorge Niedbalski | ||
Yakkety |
Fix Released
|
Medium
|
Jorge Niedbalski |
Bug Description
[Impact]
* Current volume usage audit tool queries all volumes/
* notify_
when the source volume for the snapshot has been deleted.
The following exception is raised:
2017-02-17 20:20:10.067 1921 ERROR cinder [req-7e273ce0-
2017-02-17 20:20:10.067 1921 ERROR cinder Traceback (most recent call last):
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder extra_info)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder usage_info = _usage_
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder 'availability_
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder self.obj_
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder self.volume_id)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder result = fn(cls, context, *args, **kwargs)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder orm_obj = db.get_
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder return IMPL.get_
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder return f(*args, **kwargs)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder return _GET_METHODS[
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder return f(*args, **kwargs)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder return _volume_
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder return f(*args, **kwargs)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/
2017-02-17 20:20:10.067 1921 ERROR cinder raise exception.
2017-02-17 20:20:10.067 1921 ERROR cinder VolumeNotFound: Volume 2c84e585-
[Test Case]
*The steps to reproduce this bug:
1) Deploy Mitaka/Newton cloud
2) Set the volumes as deleted on the database
mysql> update volumes set deleted = 1;
Query OK, 2 rows affected (0.00 sec)
Rows matched: 2 Changed: 2 Warnings: 0
3) Run the cinder-
# /usr/bin/
[Regression Potential]
* None identified as the commit fixes a already existing misbehavior.
Related branches
- James Page: Pending requested
- Chuck Short: Pending requested
-
Diff: 58 lines (+12/-12)1 file modifieddebian/patches/log-message-cleanup-for-volume-usage-audit.patch (+12/-12)
- Ubuntu Server Developers: Pending requested
-
Diff: 335 lines (+314/-0)3 files modifieddebian/changelog (+7/-0)
debian/patches/log-message-cleanup-for-volume-usage-audit.patch (+306/-0)
debian/patches/series (+1/-0)
Changed in cinder: | |
assignee: | nobody → Huang Zhiteng (zhiteng-huang) |
importance: | Undecided → Low |
Changed in cinder (Ubuntu Xenial): | |
status: | New → In Progress |
Changed in cinder (Ubuntu): | |
status: | New → Fix Released |
Changed in cinder (Ubuntu Yakkety): | |
status: | New → In Progress |
Changed in cinder (Ubuntu): | |
importance: | Undecided → Medium |
Changed in cinder (Ubuntu Xenial): | |
importance: | Undecided → Medium |
Changed in cinder (Ubuntu Yakkety): | |
importance: | Undecided → Medium |
Changed in cinder (Ubuntu): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
assignee: | Jorge Niedbalski (niedbalski) → nobody |
Changed in cinder (Ubuntu Xenial): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
Changed in cinder (Ubuntu Yakkety): | |
assignee: | nobody → Jorge Niedbalski (niedbalski) |
summary: |
- volume usage audit print excessive debug log for deleted resources + [SRU] volume usage audit print excessive debug log for deleted resources |
Changed in cloud-archive: | |
status: | New → Fix Released |
tags: | added: canonical-bootstack |
tags: |
added: sts-sru-needed removed: sts-sponsor |
tags: |
added: sts-sru-done removed: sts-sru-needed |
Fix proposed to branch: master /review. openstack. org/384124
Review: https:/