Project

General

Profile

Actions

Bug #3608

closed

librbd rbd_remove returns wrong errno when image does not exist

Added by Corin Langosch over 11 years ago. Updated about 9 years ago.

Status:
Can't reproduce
Priority:
Normal
Assignee:
-
Category:
librbd
Target version:
-
% Done:

0%

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

Description

I'm currently working with librbd and noticed that rbd_remove returns an errno of -16 (EBUSY) when the specified image does not exist. The command line tool(rbd rm ...) correctly returns an errno of -2 (ENOENT). I'm using latest argonat (0.48.2).

Actions #1

Updated by Josh Durgin over 11 years ago

EBUSY is returned from rbd_remove when there are still watchers on the header (i.e. the image is still open, or a previous program did not close it). Since EBUSY is only returned from the OSD, I suspect this is what you saw. Can you reproduce this with debug ms = 1 and debug rbd = 20?

Actions #2

Updated by Samuel Just about 9 years ago

  • Status changed from New to Can't reproduce
Actions

Also available in: Atom PDF