Project

General

Profile

Actions

Bug #6693

closed

"rbd ls" returns error if the pool empty

Added by Zoltan Arnold Nagy over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
% Done:

0%

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

Description

if the pool exists but only empty, instead of not returning anything, it returns an error message that it's empty, and returns a -1 error code.

this breaks OpenStack:
2013-10-31 10:28:23.081 17751 TRACE nova.compute.manager [instance: d517287d-76ee-4501-89bd-752e97e7615c] Command: rbd -p zc2ephemeral ls
2013-10-31 10:28:23.081 17751 TRACE nova.compute.manager [instance: d517287d-76ee-4501-89bd-752e97e7615c] Exit code: 1
2013-10-31 10:28:23.081 17751 TRACE nova.compute.manager [instance: d517287d-76ee-4501-89bd-752e97e7615c] Stdout: ''
2013-10-31 10:28:23.081 17751 TRACE nova.compute.manager [instance: d517287d-76ee-4501-89bd-752e97e7615c] Stderr: "rbd: pool xypool doesn't contain rbd images\n

besides behaving incorrectly, this breaks openstack, so current latest stable from both (dumpling/havana) is not usable, so please backport.

Actions

Also available in: Atom PDF