[libvirt] [PATCH 2/2] rbd: Do not error out on a single image during pool refresh

John Ferlan jferlan at redhat.com
Wed Jan 6 12:58:42 UTC 2016



On 01/06/2016 04:25 AM, Wido den Hollander wrote:
> 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 at widodh.nl>
> ---
>  src/storage/storage_backend_rbd.c | 18 +++++++++++++++++-
>  1 file changed, 17 insertions(+), 1 deletion(-)
> 

ACK and pushed both patches -

tks,

John




More information about the libvir-list mailing list