]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
ceph-volume: do not fail when trying to remove crypt mapper 30555/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 20 Sep 2019 12:57:58 +0000 (14:57 +0200)
committerAlfredo Deza <adeza@redhat.com>
Tue, 24 Sep 2019 18:39:30 +0000 (14:39 -0400)
commitf359e1d64ffb530e314fe9d28a7abf2a55cc5028
tree62df6661fa65b43439e88d413915816c5ede1faa
parent3544b06933c68c5b0f10a4639d2f24b62b5dbfea
ceph-volume: do not fail when trying to remove crypt mapper

In a containerized context, at some point, need to run `simple scan` on a device
from a separate container (not the existing and running corresponding container
to that device), but this can't work because when it tries to remove the
mapper which is still in use by the corresponding running osd container,
it fails.
This can be a bit more permissive and simply throw a warning.

Closes: https://tracker.ceph.com/issues/41392
Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 80d3e4ca054b4d1334c2fb99fede46ab54ca4305)
src/ceph-volume/ceph_volume/util/encryption.py