Actions
Bug #3556
closedrbd rm command fails to remove the new format rbd image completely
Status:
Resolved
Priority:
Urgent
Assignee:
-
Target version:
-
% Done:
0%
Source:
Q/A
Tags:
Backport:
Regression:
Severity:
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
when a rbd image is created using new format, removing the header followed by removing the rbd image using "rbd rm" does not seem to remove the rbd image completely.
logs: ubuntu@teuthology:/a/teuthology-2012-11-27_19:00:03-regression-next-testing-basic/5248
2012-11-28T00:21:49.856 INFO:teuthology.task.workunit.client.0.err:+ rbd create --new-format -s 1 test2 2012-11-28T00:21:49.920 INFO:teuthology.task.workunit.client.0.err:+ rados -p rbd ls 2012-11-28T00:21:49.920 INFO:teuthology.task.workunit.client.0.err:+ grep ^rbd_header 2012-11-28T00:21:50.101 INFO:teuthology.task.workunit.client.0.err:+ HEADER=rbd_header.128170a64e2a 2012-11-28T00:21:50.101 INFO:teuthology.task.workunit.client.0.err:+ rados -p rbd rm rbd_header.128170a64e2a 2012-11-28T00:21:50.141 INFO:teuthology.task.workunit.client.0.err:+ rbd rm test2 2012-11-28T00:21:50.185 INFO:teuthology.task.workunit.client.0.err:2012-11-28 00:21:37.716123 7f897d3b5780 -1 librbd::ImageCtx: error reading immutable metadata: (2) No such file or directory 2012-11-28T00:21:50.191 INFO:teuthology.task.workunit.client.0.out:^MRemoving image: 100% complete...done. 2012-11-28T00:21:50.194 INFO:teuthology.task.workunit.client.0.err:+ rbd ls 2012-11-28T00:21:50.194 INFO:teuthology.task.workunit.client.0.err:+ wc -l 2012-11-28T00:21:50.195 INFO:teuthology.task.workunit.client.0.err:+ grep ^0$ 2012-11-28T00:21:50.235 INFO:teuthology.task.workunit:Stopping rbd/copy.sh on client.0... 2012-11-28T00:21:50.236 DEBUG:teuthology.orchestra.run:Running: 'rm -rf -- /tmp/cephtest/workunits.list /tmp/cephtest/workunit.client.0' 2012-11-28T00:21:50.247 ERROR:teuthology.run_tasks:Saw exception from tasks Traceback (most recent call last): File "/var/lib/teuthworker/teuthology-next/teuthology/run_tasks.py", line 25, in run_tasks manager = _run_one_task(taskname, ctx=ctx, config=config) File "/var/lib/teuthworker/teuthology-next/teuthology/run_tasks.py", line 14, in _run_one_task return fn(**kwargs) File "/var/lib/teuthworker/teuthology-next/teuthology/task/workunit.py", line 86, in task all_spec = True File "/var/lib/teuthworker/teuthology-next/teuthology/parallel.py", line 83, in __exit__ for result in self: File "/var/lib/teuthworker/teuthology-next/teuthology/parallel.py", line 100, in next resurrect_traceback(result) File "/var/lib/teuthworker/teuthology-next/teuthology/parallel.py", line 19, in capture_traceback return func(*args, **kwargs) File "/var/lib/teuthworker/teuthology-next/teuthology/task/workunit.py", line 222, in _run_tests args=args, File "/var/lib/teuthworker/teuthology-next/teuthology/orchestra/remote.py", line 40, in run r = self._runner(client=self.ssh, **kwargs) File "/var/lib/teuthworker/teuthology-next/teuthology/orchestra/run.py", line 257, in run r.exitstatus = _check_status(r.exitstatus) File "/var/lib/teuthworker/teuthology-next/teuthology/orchestra/run.py", line 253, in _check_status raise CommandFailedError(command=r.command, exitstatus=status) CommandFailedError: Command failed with status 1: 'mkdir -p -- /tmp/cephtest/mnt.0/client.0/tmp && cd -- /tmp/cephtest/mnt.0/client.0/tmp && CEPH_REF=cf2a045402b8b0724802344a7caf350aecb9b4c1 PATH="$PATH:/tmp/cephtest/binary/usr/local/bin" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/tmp/cephtest/binary/usr/local/lib" CEPH_CONF="/tmp/cephtest/ceph.conf" CEPH_SECRET_FILE="/tmp/cephtest/data/client.0.secret" CEPH_ID="0" PYTHONPATH="$PYTHONPATH:/tmp/cephtest/binary/usr/local/lib/python2.7/dist-packages:/tmp/cephtest/binary/usr/local/lib/python2.6/dist-packages" RBD_CREATE_ARGS=--new-format /tmp/cephtest/enable-coredump /tmp/cephtest/binary/usr/local/bin/ceph-coverage /tmp/cephtest/archive/coverage /tmp/cephtest/workunit.client.0/rbd/copy.sh'
Updated by Dan Mick over 11 years ago
- Status changed from New to Resolved
This was fixed by reverting the tmap_rm-of-a-nonexistent-key behavior (the reverting commit is 5aecf2c092edcabc3b757a6f41ebccb7ebc87611)
Actions