]> git.ipfire.org Git - thirdparty/libvirt.git/commit
rbd: Do not error out on a single image during pool refresh
authorWido den Hollander <wido@widodh.nl>
Wed, 6 Jan 2016 09:25:49 +0000 (10:25 +0100)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 6 Jan 2016 12:46:18 +0000 (07:46 -0500)
commitf46d137e33a348c0f96eaacc58e29794170757cb
tree9b3bec548da84de7b4df7b4fd87a2ee3847e04d3
parent10028a9d5843020ad58e6b6922246543a59a6d7e
rbd: Do not error out on a single image during pool refresh

It could happen that rbd_list() returns X names, but that while
refreshing the pool one of those RBD images is removed from Ceph
through a different route then libvirt.

We do not need to error out in such case, we can simply ignore the
volume and continue.

  error : volStorageBackendRBDRefreshVolInfo:289 :
    failed to open the RBD image 'vol-998': No such file or directory

It could also be that one or more Placement Groups (PGs) inside Ceph
are inactive due to a system failure.

If that happens it could be that some RBD images can not be refreshed
and a timeout will be raised by librados.

  error : volStorageBackendRBDRefreshVolInfo:289 :
    failed to open the RBD image 'vol-893': Connection timed out

Ignore the error and continue to refresh the rest of the pool's
contents.

Signed-off-by: Wido den Hollander <wido@widodh.nl>
src/storage/storage_backend_rbd.c