Merge "Warn when smartctl not found"

This commit is contained in:
Zuul 2022-06-27 12:10:31 +00:00 committed by Gerrit Code Review
commit 312e1527ab
1 changed files with 2 additions and 1 deletions

View File

@ -1800,10 +1800,11 @@ class GenericHardwareManager(HardwareManager):
'ATA commands via the `smartctl` utility with device '
'%s do not succeed.', block_device.name)
return False
except OSError:
except OSError as e:
# Processutils can raise OSError if a path is not found,
# and it is okay that we tollerate that since it was the
# prior behavior.
LOG.warning('Unable to execute `smartctl` utility: %s', e)
return True
def _ata_erase(self, block_device):