]> git.proxmox.com Git - pve-storage.git/commit - PVE/Storage/RBDPlugin.pm
ceph/rbd: has a pretty strange error handling - install custom run_command function
authorStefan Priebe <s.priebe@profihost.ag>
Fri, 4 Jul 2014 08:30:51 +0000 (10:30 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 17 Jul 2014 05:26:09 +0000 (07:26 +0200)
commitc693f74953e6ae1ceb9ab06d542b4d4892864ffc
tree63bc10263fa5c4cb89d07368c572255a8b1d61e2
parent90e3ff4825595ad50650e97267be5f5681b4819c
ceph/rbd: has a pretty strange error handling - install custom run_command function

Always use a custom error sub to get the real errors out of rbd command instead of the typical:

 2014-02-06 11:20:20.187190 7f3b6c37c760 -1 librbd: removing snapshot from header failed: (16) Device or resource busy

before:
rbd: snapshot 'abc' is protected from removal.
TASK ERROR: rbd snapshot vm-173-disk-1' error: 2014-02-06 11:06:02.438336 7f6f4ac92760 -1 librbd: removing snapshot from header failed: (16) Device or resource busy

now:
TASK ERROR: rbd: snapshot 'abc' is protected from removal.

Signed-off-by: Stefan Priebe <s.priebe@profihost.ag>
PVE/Storage/RBDPlugin.pm