Bug #4763
rbd test scripts should use --allow-shrink flag when resizing rbd img
% Done:
0%
Source:
Q/A
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
The existing rbd test script rbd/copy.sh fails with the recent inclusion of --allow-shrink flag for the resize command.
The script has to be modified to use the flag, when resizing the new-format rbd image.
2013-04-19T10:59:58.588 INFO:teuthology.task.workunit.client.0.err:+ rbd resize testimg1 --size=256 2013-04-19T10:59:58.610 INFO:teuthology.task.workunit.client.0.err:^MResizing image: 100% complete...done. 2013-04-19T10:59:58.613 INFO:teuthology.task.workunit.client.0.err:+ rbd export testimg1 /tmp/img2 2013-04-19T10:59:58.944 INFO:teuthology.task.workunit.client.0.err:^MExporting image: 3% complete...^MExporting image: 37% complete...^MExporting image: 100% complete...done. 2013-04-19T10:59:58.946 INFO:teuthology.task.workunit.client.0.err:+ rbd snap create testimg1 --snap=snap1 2013-04-19T10:59:58.985 INFO:teuthology.task.workunit.client.0.err:+ rbd resize testimg1 --size=128 2013-04-19T10:59:59.003 INFO:teuthology.task.workunit.client.0.err:rbd: shrinking an image is only allowed with the --allow-shrink flag 2013-04-19T10:59:59.006 INFO:teuthology.task.workunit:Stopping rbd/copy.sh on client.0... 2013-04-19T10:59:59.006 DEBUG:teuthology.orchestra.run:Running [10.214.134.30]: 'rm -rf -- /tmp/cephtest/ta1304191056/workunits.list /tmp/cephtest/ta1304191056/workunit.client.0' 2013-04-19T10:59:59.019 ERROR:teuthology.run_tasks:Saw exception from tasks Traceback (most recent call last): File "/home/tamil/test_teuth_latest/teuthology/teuthology/run_tasks.py", line 25, in run_tasks manager = _run_one_task(taskname, ctx=ctx, config=config) File "/home/tamil/test_teuth_latest/teuthology/teuthology/run_tasks.py", line 14, in _run_one_task return fn(**kwargs) File "/home/tamil/test_teuth_latest/teuthology/teuthology/task/workunit.py", line 90, in task all_spec = True File "/home/tamil/test_teuth_latest/teuthology/teuthology/parallel.py", line 83, in __exit__ for result in self: File "/home/tamil/test_teuth_latest/teuthology/teuthology/parallel.py", line 100, in next resurrect_traceback(result) File "/home/tamil/test_teuth_latest/teuthology/teuthology/parallel.py", line 19, in capture_traceback return func(*args, **kwargs) File "/home/tamil/test_teuth_latest/teuthology/teuthology/task/workunit.py", line 302, in _run_tests args=args, File "/home/tamil/test_teuth_latest/teuthology/teuthology/orchestra/remote.py", line 42, in run r = self._runner(client=self.ssh, **kwargs) File "/home/tamil/test_teuth_latest/teuthology/teuthology/orchestra/run.py", line 266, in run r.exitstatus = _check_status(r.exitstatus) File "/home/tamil/test_teuth_latest/teuthology/teuthology/orchestra/run.py", line 262, in _check_status raise CommandFailedError(command=r.command, exitstatus=status, node=host) CommandFailedError: Command failed on 10.214.134.30 with status 1: 'mkdir -p -- /tmp/cephtest/ta1304191056/mnt.0/client.0/tmp && cd -- /tmp/cephtest/ta1304191056/mnt.0/client.0/tmp && CEPH_REF=master TESTDIR="/tmp/cephtest/ta1304191056" CEPH_ID="0" PYTHONPATH="$PYTHONPATH:/tmp/cephtest/ta1304191056/binary/usr/local/lib/python2.7/dist-packages:/tmp/cephtest/ta1304191056/binary/usr/local/lib/python2.6/dist-packages" RBD_CREATE_ARGS=--new-format /tmp/cephtest/ta1304191056/enable-coredump ceph-coverage /tmp/cephtest/ta1304191056/archive/coverage /tmp/cephtest/ta1304191056/workunit.client.0/rbd/copy.sh'
Associated revisions
rbd: fix qa tests to use --allow-shrink
Fixes: #4763
Signed-off-by: Sage Weil <sage@inktank.com>
History
#1 Updated by Sage Weil almost 11 years ago
- Priority changed from Normal to Urgent
#2 Updated by Sage Weil almost 11 years ago
- Status changed from New to In Progress
- Assignee set to Sage Weil
#3 Updated by Sage Weil almost 11 years ago
- Status changed from In Progress to Resolved