Martin Sivák has uploaded a new change for review. Change subject: f ......................................................................
f Change-Id: I588eab32f94784f3a1918ad2dc58b11f37f781c1 Signed-off-by: Martin Sivak <[email protected]> --- M ovirt_hosted_engine_ha/lib/storage_backends.py 1 file changed, 5 insertions(+), 1 deletion(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-hosted-engine-ha refs/changes/49/25849/1 diff --git a/ovirt_hosted_engine_ha/lib/storage_backends.py b/ovirt_hosted_engine_ha/lib/storage_backends.py index c572ab1..7f90ecd 100644 --- a/ovirt_hosted_engine_ha/lib/storage_backends.py +++ b/ovirt_hosted_engine_ha/lib/storage_backends.py @@ -109,7 +109,11 @@ # strip the prefix and use the rest as symlink name service = lv.split(constants.SD_METADATA_DIR + "-", 1)[-1] service_link = os.path.join(self._storage_path, service) - os.unlink(service_link) + try: + os.unlink(service_link) + logger.info("Cleaning up stale LV link %s", service_link) + except OSError: + pass os.symlink(os.path.join("/dev", uuid, lv), service_link) def disconnect(self): -- To view, visit http://gerrit.ovirt.org/25849 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I588eab32f94784f3a1918ad2dc58b11f37f781c1 Gerrit-PatchSet: 1 Gerrit-Project: ovirt-hosted-engine-ha Gerrit-Branch: master Gerrit-Owner: Martin Sivák <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
