On the RBD driver, when doing a disconnect call inside a container, when
the "rbd_common" package is installed on the host, we can get a "No such
file or directory" error if the udev rule from the host removes the
symlink before we do.
This error is caused by the rm command returning 1 for different type of
errors, so we'll now use -f to ensure we don't fail if the file is
missing, which is what we intended before when passing the
check_exit_code parameter to the execute call.
Reviewed: https:/ /review. opendev. org/738226 /git.openstack. org/cgit/ openstack/ cinderlib/ commit/ ?id=efcec1d0ee7 c892059519ad217 91fce4943ac569
Committed: https:/
Submitter: Zuul
Branch: master
commit efcec1d0ee7c892 059519ad21791fc e4943ac569
Author: Gorka Eguileor <email address hidden>
Date: Fri Jun 26 16:31:36 2020 +0200
RBD: Fix error on disconnect
On the RBD driver, when doing a disconnect call inside a container, when
the "rbd_common" package is installed on the host, we can get a "No such
file or directory" error if the udev rule from the host removes the
symlink before we do.
This error is caused by the rm command returning 1 for different type of
errors, so we'll now use -f to ensure we don't fail if the file is
missing, which is what we intended before when passing the
check_exit_code parameter to the execute call.
Trivial-Fix ba8ed225c6cea53 ae1ed4b694a
Closes-Bug: #1885293
Change-Id: Id1655614a8a60f