2016-10-08 04:20:08 |
Huang Zhiteng |
bug |
|
|
added bug |
2016-10-08 04:24:33 |
Huang Zhiteng |
cinder: assignee |
|
Huang Zhiteng (zhiteng-huang) |
|
2016-10-08 04:24:35 |
Huang Zhiteng |
cinder: importance |
Undecided |
Low |
|
2016-10-08 20:25:27 |
OpenStack Infra |
cinder: status |
New |
In Progress |
|
2016-11-14 06:41:35 |
OpenStack Infra |
cinder: status |
In Progress |
Fix Released |
|
2017-02-17 13:12:49 |
Jorge Niedbalski |
bug task added |
|
cloud-archive |
|
2017-02-17 13:56:46 |
Louis Bouchard |
bug task added |
|
cinder (Ubuntu) |
|
2017-02-17 13:57:03 |
Louis Bouchard |
nominated for series |
|
Ubuntu Xenial |
|
2017-02-17 13:57:03 |
Louis Bouchard |
bug task added |
|
cinder (Ubuntu Xenial) |
|
2017-02-17 14:34:33 |
Edward Hope-Morley |
nominated for series |
|
cloud-archive/mitaka |
|
2017-02-17 14:35:49 |
Edward Hope-Morley |
nominated for series |
|
cloud-archive/newton |
|
2017-02-17 15:35:28 |
Louis Bouchard |
nominated for series |
|
Ubuntu Yakkety |
|
2017-02-17 15:35:28 |
Louis Bouchard |
bug task added |
|
cinder (Ubuntu Yakkety) |
|
2017-02-17 20:41:09 |
Jorge Niedbalski |
cinder (Ubuntu Xenial): status |
New |
In Progress |
|
2017-02-17 20:41:18 |
Jorge Niedbalski |
cinder (Ubuntu): status |
New |
Fix Released |
|
2017-02-17 20:41:25 |
Jorge Niedbalski |
cinder (Ubuntu Yakkety): status |
New |
In Progress |
|
2017-02-17 20:41:32 |
Jorge Niedbalski |
cinder (Ubuntu): importance |
Undecided |
Medium |
|
2017-02-17 20:41:36 |
Jorge Niedbalski |
cinder (Ubuntu Xenial): importance |
Undecided |
Medium |
|
2017-02-17 20:41:40 |
Jorge Niedbalski |
cinder (Ubuntu Yakkety): importance |
Undecided |
Medium |
|
2017-02-17 20:41:55 |
Jorge Niedbalski |
cinder (Ubuntu): assignee |
|
Jorge Niedbalski (niedbalski) |
|
2017-02-17 20:41:59 |
Jorge Niedbalski |
cinder (Ubuntu): assignee |
Jorge Niedbalski (niedbalski) |
|
|
2017-02-17 20:42:03 |
Jorge Niedbalski |
cinder (Ubuntu Xenial): assignee |
|
Jorge Niedbalski (niedbalski) |
|
2017-02-17 20:42:06 |
Jorge Niedbalski |
cinder (Ubuntu Yakkety): assignee |
|
Jorge Niedbalski (niedbalski) |
|
2017-02-20 21:13:21 |
Jorge Niedbalski |
summary |
volume usage audit print excessive debug log for deleted resources |
[SRU] volume usage audit print excessive debug log for deleted resources |
|
2017-02-20 21:18:29 |
Jorge Niedbalski |
tags |
|
sts |
|
2017-02-20 21:18:34 |
Jorge Niedbalski |
description |
Current volume usage audit tool queries all volumes/snapshots/backups including those resources have been deleted, as a result, every single deleted resource would trigger a few debug/exception level messages, which is too much for a running production cluster at hour/day period. |
[Impact]
* Current volume usage audit tool queries all volumes/snapshots/backups including those resources have been deleted, as a result, every single deleted resource would trigger a few debug/exception level messages, which is too much for a running production cluster at hour/day period.
* notify_snapshot_usage() doesn't handles the case when
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-1ae8-410e-a814-0f444364c028 - - - - -] Exists snapshot notification failed: Volume 2c84e585-9947-4ad9-bd93-2fc3a5cf9a08 could not be found.
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/python2.7/dist-packages/cinder/cmd/volume_usage_audit.py", line 188, in main
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/python2.7/dist-packages/cinder/volume/utils.py", line 174, in notify_about_snapshot_usage
2017-02-17 20:20:10.067 1921 ERROR cinder usage_info = _usage_from_snapshot(snapshot, **extra_usage_info)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/python2.7/dist-packages/cinder/volume/utils.py", line 151, in _usage_from_snapshot
2017-02-17 20:20:10.067 1921 ERROR cinder 'availability_zone': snapshot.volume['availability_zone'],
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/python2.7/dist-packages/oslo_versionedobjects/base.py", line 67, in getter
2017-02-17 20:20:10.067 1921 ERROR cinder self.obj_load_attr(name)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/python2.7/dist-packages/cinder/objects/snapshot.py", line 196, in obj_load_attr
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/python2.7/dist-packages/oslo_versionedobjects/base.py", line 181, in wrapper
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/python2.7/dist-packages/cinder/objects/base.py", line 166, in get_by_id
2017-02-17 20:20:10.067 1921 ERROR cinder orm_obj = db.get_by_id(context, model, id, *args, **kwargs)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/python2.7/dist-packages/cinder/db/api.py", line 1127, in get_by_id
2017-02-17 20:20:10.067 1921 ERROR cinder return IMPL.get_by_id(context, model, id, *args, **kwargs)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 193, in wrapper
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/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 4451, in get_by_id
2017-02-17 20:20:10.067 1921 ERROR cinder return _GET_METHODS[model](context, id, *args, **kwargs)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 193, in wrapper
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/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1480, in volume_get
2017-02-17 20:20:10.067 1921 ERROR cinder return _volume_get(context, volume_id)
2017-02-17 20:20:10.067 1921 ERROR cinder File "/usr/lib/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 193, in wrapper
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/python2.7/dist-packages/cinder/db/sqlalchemy/api.py", line 1425, in _volume_get
2017-02-17 20:20:10.067 1921 ERROR cinder raise exception.VolumeNotFound(volume_id=volume_id)
2017-02-17 20:20:10.067 1921 ERROR cinder VolumeNotFound: Volume 2c84e585-9947-4ad9-bd93-2fc3a5cf9a08 could not be found.
[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-volume-usage-audit command:
# /usr/bin/cinder-volume-usage-audit --start_time "2017-02-17 15:10:00" --end_time "2017-02-17 15:20:00" --debug
[Regression Potential]
* None identified as the commit fixes a already existing misbehavior. |
|
2017-02-20 21:19:05 |
Jorge Niedbalski |
attachment added |
|
fix-lp-1631561-newton.debdiff https://bugs.launchpad.net/cinder/+bug/1631561/+attachment/4822938/+files/fix-lp-1631561-newton.debdiff |
|
2017-02-20 21:19:34 |
Jorge Niedbalski |
attachment added |
|
fix-lp-1631561-mitaka.debdiff https://bugs.launchpad.net/cinder/+bug/1631561/+attachment/4822939/+files/fix-lp-1631561-mitaka.debdiff |
|
2017-02-21 21:38:30 |
Corey Bryant |
bug task added |
|
cloud-archive/mitaka |
|
2017-02-21 21:38:37 |
Corey Bryant |
bug task added |
|
cloud-archive/newton |
|
2017-02-21 21:38:52 |
Corey Bryant |
cloud-archive: status |
New |
Fix Released |
|
2017-02-21 21:39:05 |
Corey Bryant |
cloud-archive/mitaka: status |
New |
In Progress |
|
2017-02-21 21:39:08 |
Corey Bryant |
cloud-archive/newton: status |
New |
In Progress |
|
2017-03-02 16:58:45 |
Alvaro Uria |
tags |
sts |
canonical-bootstack sts |
|
2017-03-02 16:58:58 |
Alvaro Uria |
bug |
|
|
added subscriber The Canonical Sysadmins |
2017-03-09 14:36:45 |
Jorge Niedbalski |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2017-03-10 21:31:44 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~niedbalski/ubuntu/+source/cinder/+git/cinder/+merge/319623 |
|
2017-03-10 21:39:55 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~niedbalski/ubuntu/+source/cinder/+git/cinder/+merge/319628 |
|
2017-04-05 18:47:23 |
Brian Murray |
cinder (Ubuntu Yakkety): status |
In Progress |
Fix Committed |
|
2017-04-05 18:47:28 |
Brian Murray |
bug |
|
|
added subscriber Ubuntu Stable Release Updates Team |
2017-04-05 18:47:32 |
Brian Murray |
bug |
|
|
added subscriber SRU Verification |
2017-04-05 18:47:36 |
Brian Murray |
tags |
canonical-bootstack sts |
canonical-bootstack sts verification-needed |
|
2017-04-05 18:48:44 |
Brian Murray |
cinder (Ubuntu Xenial): status |
In Progress |
Fix Committed |
|
2017-04-05 18:48:47 |
Brian Murray |
removed subscriber Ubuntu Sponsors Team |
|
|
|
2017-04-05 21:51:09 |
Jorge Niedbalski |
attachment added |
|
fix-lp1631561-xenial.debdiff https://bugs.launchpad.net/cinder/+bug/1631561/+attachment/4855819/+files/fix-lp1631561-xenial.debdiff |
|
2017-04-05 21:51:28 |
Jorge Niedbalski |
tags |
canonical-bootstack sts verification-needed |
canonical-bootstack sts verification-failed-xenial verification-needed |
|
2017-04-05 21:54:39 |
Launchpad Janitor |
merge proposal linked |
|
https://code.launchpad.net/~niedbalski/ubuntu/+source/cinder/+git/cinder/+merge/322061 |
|
2017-04-05 21:56:15 |
Jorge Niedbalski |
cinder (Ubuntu Xenial): status |
Fix Committed |
In Progress |
|
2017-04-05 21:56:28 |
Jorge Niedbalski |
bug |
|
|
added subscriber Ubuntu Sponsors Team |
2017-04-05 21:57:33 |
Jorge Niedbalski |
merge proposal unlinked |
https://code.launchpad.net/~niedbalski/ubuntu/+source/cinder/+git/cinder/+merge/319628 |
|
|
2017-04-06 16:17:32 |
Jorge Niedbalski |
attachment removed |
fix-lp1631561-xenial.debdiff https://bugs.launchpad.net/cinder/+bug/1631561/+attachment/4855819/+files/fix-lp1631561-xenial.debdiff |
|
|
2017-04-06 16:17:54 |
Jorge Niedbalski |
attachment removed |
fix-lp-1631561-mitaka.debdiff https://bugs.launchpad.net/cinder/+bug/1631561/+attachment/4822939/+files/fix-lp-1631561-mitaka.debdiff |
|
|
2017-04-06 16:18:11 |
Jorge Niedbalski |
attachment added |
|
fix-lp1631561-xenial-proposed.debdiff https://bugs.launchpad.net/cinder/+bug/1631561/+attachment/4856407/+files/fix-lp1631561-xenial-proposed.debdiff |
|
2017-04-06 16:19:40 |
Jorge Niedbalski |
tags |
canonical-bootstack sts verification-failed-xenial verification-needed |
canonical-bootstack sts sts-sponsor verification-failed-xenial verification-needed |
|
2017-04-10 10:22:43 |
Edward Hope-Morley |
tags |
canonical-bootstack sts sts-sponsor verification-failed-xenial verification-needed |
canonical-bootstack sts sts-sru-needed verification-failed-xenial verification-needed |
|
2017-04-10 11:34:00 |
Ćukasz Zemczak |
cinder (Ubuntu Xenial): status |
In Progress |
Fix Committed |
|
2017-04-13 19:26:58 |
Jorge Niedbalski |
tags |
canonical-bootstack sts sts-sru-needed verification-failed-xenial verification-needed |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety |
|
2017-04-13 22:54:25 |
Brian Murray |
removed subscriber Ubuntu Stable Release Updates Team |
|
|
|
2017-04-13 23:04:28 |
Launchpad Janitor |
cinder (Ubuntu Yakkety): status |
Fix Committed |
Fix Released |
|
2017-04-21 04:48:51 |
Launchpad Janitor |
cinder (Ubuntu Xenial): status |
Fix Committed |
Fix Released |
|
2017-04-24 11:25:57 |
James Page |
cloud-archive/mitaka: status |
In Progress |
Fix Committed |
|
2017-04-24 11:26:00 |
James Page |
tags |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety verification-mitaka-needed |
|
2017-04-24 11:27:23 |
James Page |
cloud-archive/newton: status |
In Progress |
Fix Committed |
|
2017-04-24 11:27:24 |
James Page |
tags |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety verification-mitaka-needed |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety verification-mitaka-needed verification-newton-needed |
|
2017-04-24 20:10:00 |
Jorge Niedbalski |
tags |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety verification-mitaka-needed verification-newton-needed |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety verification-mitaka-done verification-newton-needed |
|
2017-04-24 21:22:59 |
Jorge Niedbalski |
tags |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety verification-mitaka-done verification-newton-needed |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety verification-mitaka-done verification-newton-done |
|
2017-05-15 08:54:32 |
James Page |
cloud-archive/mitaka: status |
Fix Committed |
Fix Released |
|
2017-06-12 08:31:50 |
Edward Hope-Morley |
cloud-archive/newton: status |
Fix Committed |
Fix Released |
|
2017-06-12 08:51:37 |
Edward Hope-Morley |
tags |
canonical-bootstack sts sts-sru-needed verification-done verification-done-xenial verification-done-yakkety verification-mitaka-done verification-newton-done |
canonical-bootstack sts sts-sru-done verification-done verification-done-xenial verification-done-yakkety verification-mitaka-done verification-newton-done |
|