Project

General

Profile

Actions

Bug #8168

closed

osd: rbd_test.test_diff_iterate fails with a cache pool

Added by Josh Durgin about 10 years ago. Updated about 10 years ago.

Status:
Resolved
Priority:
Urgent
Assignee:
Category:
OSD
Target version:
-
% Done:

0%

Source:
Q/A
Tags:
Backport:
Regression:
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

With a cache pool set up, test_rbd.test_diff_iterate, which removes the two snapshots it creates before removing the image, hits an error removing the image saying it still has snapshots.

From ubuntu@teuthology:/a/teuthology-2014-04-20_23:00:03-rbd-master-testing-basic-plana/206206/teuthology.log

2014-04-21T10:32:33.599 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]: ======================================================================
2014-04-21T10:32:33.599 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]: ERROR: test_rbd.TestImage.test_diff_iterate
2014-04-21T10:32:33.599 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]: ----------------------------------------------------------------------
2014-04-21T10:32:33.599 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]: Traceback (most recent call last):
2014-04-21T10:32:33.599 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:   File "/usr/lib/python2.7/dist-packages/nose/case.py", line 384, in tearDown
2014-04-21T10:32:33.599 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:     try_run(self.inst, ('teardown', 'tearDown'))
2014-04-21T10:32:33.599 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:   File "/usr/lib/python2.7/dist-packages/nose/util.py", line 478, in try_run
2014-04-21T10:32:33.599 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:     return func()
2014-04-21T10:32:33.600 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:   File "/home/ubuntu/cephtest/mnt.0/client.0/tmp/test_rbd.py", line 230, in tearDown
2014-04-21T10:32:33.600 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:     remove_image()
2014-04-21T10:32:33.600 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:   File "/home/ubuntu/cephtest/mnt.0/client.0/tmp/test_rbd.py", line 48, in remove_image
2014-04-21T10:32:33.600 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:     RBD().remove(ioctx, IMG_NAME)
2014-04-21T10:32:33.600 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:   File "/usr/lib/python2.7/dist-packages/rbd.py", line 300, in remove
2014-04-21T10:32:33.600 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]:     raise make_ex(ret, 'error removing image')
2014-04-21T10:32:33.600 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]: ImageHasSnapshots: error removing image
2014-04-21T10:32:33.600 INFO:teuthology.task.workunit.client.0.err:[10.214.133.34]: 

This is likely related to class methods, since those are used for reading and writing the list of existing rbd snapshots. This error does not occur on non-cache pools.

Actions

Also available in: Atom PDF