Project

General

Profile

Bug #38661

deep cp a migration prepared image will results assert

Added by wb song 6 months ago. Updated 4 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
03/11/2019
Due date:
% Done:

0%

Source:
Tags:
Backport:
nautilus
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:

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


Related issues

Copied to rbd - Backport #39224: nautilus: deep cp a migration prepared image will results assert Resolved

History

#1 Updated by Mykola Golub 6 months ago

  • Status changed from New to In Progress
  • Assignee set to Mykola Golub

#2 Updated by Mykola Golub 6 months ago

  • Status changed from In Progress to Need Review
  • Backport set to nautilus
  • Pull request ID set to 27194

#3 Updated by Jason Dillaman 5 months ago

  • Status changed from Need Review to Pending Backport

#4 Updated by Nathan Cutler 5 months ago

  • Copied to Backport #39224: nautilus: deep cp a migration prepared image will results assert added

#5 Updated by Nathan Cutler 4 months ago

  • Status changed from Pending Backport to Resolved

Also available in: Atom PDF