Actions
Bug #38661
closeddeep cp a migration prepared image will results assert
% Done:
0%
Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Description
$ rbd create test1 -s 10
$ rbd migration prepare test1 test2
$ rbd deep cp test2 dest2
/home/swb/ceph-dev/src/librbd/image/CloneRequest.cc: In function 'void librbd::image::CloneRequest<ImageCtxT>::open_parent() [with ImageCtxT = librbd::ImageCtx]' thread 7f592bad4b00 time 2019-03-11 20:33:06.702618
/home/swb/ceph-dev/src/librbd/image/CloneRequest.cc: 130: FAILED ceph_assert(m_parent_snap_name.empty() ^ (m_parent_snap_id == ((__u64)(-2))))
ceph version 14.0.1-4106-ga0ea40b (a0ea40bc5cf49ed1a82e6d1f7034a147d0796d91) nautilus (dev)
If source migration image has snapshot, it will return error code of 22:
$ rbd create test3 -s 10
$ rbd snap create test3@snap
$ rbd migration prepare test3 test4
$ rbd deep cp test4 dest4
2019-03-11 20:35:12.978 7f57e6577b00 -1 librbd::deep_copy::SnapshotCopyRequest: 0x560a3fe2ddf0 send: source image parent spec mismatch
2019-03-11 20:35:12.978 7f57b17fa700 -1 librbd::DeepCopyRequest: 0x560a3fe2dc20 handle_copy_snapshots: failed to copy snapshot metadata: (22) Invalid argument
Image deep copy: 0% complete...failed.
rbd: deep copy failed: (22) Invalid argument
Actions