Comment 7 for bug 1900775

Revision history for this message
Corey Bryant (corey.bryant) wrote :

I have a bionic-train ceph-rbd-mirror deployment up (the smoke test from charm-ceph-rbd-mirror). I need to pick this up tomorrow but the next step is to create a volume from an image and hopefully I can add a sleep to the cinder code to recreate the reported bug. Listing some relevant commands below that I think will be useful, in case someone else picks this up or someone has better commands. Note: I'm listing the glance pool below because it has a snapshot.

ceph-mon/0
----------
$ sudo ceph osd lspools
1 glance
2 cinder-ceph

ceph-rbd-mirror/0
-----------------
$ ls /etc/ceph
ceph.client.rbd-mirror.juju-2e2313-zaza-940825664f98-12.keyring ceph.conf rbdmap remote.client.rbd-mirror.juju-2e2313-zaza-940825664f98-12.keyring remote.conf
$ sudo rbd --id rbd-mirror.juju-2e2313-zaza-940825664f98-12 pool stats glance
Total Images: 1
Total Snapshots: 1
Provisioned Size: 342 MiB
$ sudo rbd --id rbd-mirror.juju-2e2313-zaza-940825664f98-12 pool stats cinder-ceph
Total Images: 1
Total Snapshots: 0
Provisioned Size: 8 GiB
$ sudo rbd --id rbd-mirror.juju-2e2313-zaza-940825664f98-12 mirror pool status glance
health: OK
images: 1 total
    1 stopped
$ sudo rbd --id rbd-mirror.juju-2e2313-zaza-940825664f98-12 mirror pool status cinder-ceph
health: OK
images: 1 total
    1 stopped
$ sudo rbd --id rbd-mirror.juju-2e2313-zaza-940825664f98-12 ls -l glance
NAME SIZE PARENT FMT PROT LOCK
db355184-09a7-4ecc-869e-5a99ef0ef97e 342 MiB 2
db355184-09a7-4ecc-869e-5a99ef0ef97e@snap 342 MiB 2 yes
$ sudo rbd --id rbd-mirror.juju-2e2313-zaza-940825664f98-12 ls -l cinder-ceph
NAME SIZE PARENT FMT PROT LOCK
volume-b0ea5477-d218-409e-b608-dc992a659c0a 8 GiB 2
$ sudo rbd --id rbd-mirror.juju-2e2313-zaza-940825664f98-12 snap ls glance/db355184-09a7-4ecc-869e-5a99ef0ef97e
SNAPID NAME SIZE PROTECTED TIMESTAMP
    24 snap 342 MiB yes Wed Oct 21 20:29:56 2020