Control: tags -1 moreinfo
Hi Stefan,
On 14:46 Tue 10 Jan , Stefan Nitz wrote:
> *** Reporter, please consider answering these questions, where
> appropriate ***
>
> * What led up to the situation?
>
> Ungrade Ceph (Hammer)
>
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
>
> gnt-instance shutdown the.vm.de
Can you please confirm that `rbd showmapped` works without the -p
option?
Also, can you try the attached patch against ganeti?
cat rbd.patch | (cd /usr/share/ganeti/2.15/ganeti && patch -p2)
service ganeti restart
Regards,
Apollon
diff --git a/lib/storage/bdev.py b/lib/storage/bdev.py
index e3a48de..4a9d8b8 100644
--- a/lib/storage/bdev.py
+++ b/lib/storage/bdev.py
@@ -1020,8 +1020,6 @@ class RADOSBlockDevice(base.BlockDev):
showmap_cmd = [
constants.RBD_CMD,
"showmapped",
- "-p",
- pool,
"--format",
"json"
]
@@ -1036,7 +1034,7 @@ class RADOSBlockDevice(base.BlockDev):
except RbdShowmappedJsonError:
# For older versions of rbd, we have to parse the plain / text output
# manually.
- showmap_cmd = [constants.RBD_CMD, "showmapped", "-p", pool]
+ showmap_cmd = [constants.RBD_CMD, "showmapped"]
result = utils.RunCmd(showmap_cmd)
if result.failed:
base.ThrowError("rbd showmapped failed (%s): %s",