Project

General

Profile

Bug #2079

rbd: creating a snapshot with the same name doesn't return an error

Added by Josh Durgin about 12 years ago. Updated almost 12 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
librbd
Target version:
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

$ rbd create -s 10 data/test
$ rbd snap create data/test@snap
$ rbd snap ls data/test
2    snap    10485760
$ rbd snap create data/test@snap
$ echo $?
0
$ rbd snap ls data/test
2    snap    10485760

The rbd class add_snap method isn't returning an error in this case.


Related issues

Duplicates Ceph - Bug #2148: osd: class error return not propagated to client Resolved 03/07/2012

History

#1 Updated by Sage Weil about 12 years ago

  • Target version set to v0.43

#2 Updated by Sage Weil about 12 years ago

  • Category set to librbd

#3 Updated by Sage Weil about 12 years ago

  • Target version changed from v0.43 to v0.44

#4 Updated by Sage Weil almost 12 years ago

  • Status changed from New to Duplicate

i think this was caused by the rados class return values. in any case, it works correctly now.

Also available in: Atom PDF