Project

General

Profile

Actions

Bug #3765

closed

rbd cp of a zero sized image succeeds with error

Added by Tamilarasi muthamizhan over 11 years ago. Updated over 11 years ago.

Status:
Resolved
Priority:
Normal
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

ceph version 0.56-131-gd283abd (d283abdf50b1e4429b775680bfae1bb20c75306b)

while am still surprised about why we need a rbd image of size zero, it allows me to copy the image but throws an inappropriate message "rbd: copy failed: (22) Invalid argument".

Please find below the CLI screenshot,

ubuntu@burnupi24:/var/log/ceph$ rbd create tam --size 0
ubuntu@burnupi24:/var/log/ceph$ rbd ls
tam

ubuntu@burnupi24:/var/log/ceph$ rbd cp tam tamm
Image copy: 100% complete...done.
rbd: copy failed: (22) Invalid argument

ubuntu@burnupi24:/var/log/ceph$ rbd ls
tam
tamm

Actions

Also available in: Atom PDF