Fixing command to execute for volume support
This commit is contained in:
parent
b303b5a8e2
commit
e0003815aa
@ -497,9 +497,9 @@ class NovaVolumeConfigurator(object):
|
|||||||
# logical volumes
|
# logical volumes
|
||||||
self._process_lvs(mp)
|
self._process_lvs(mp)
|
||||||
# Finish off by restarting tgt, and ignore any errors
|
# Finish off by restarting tgt, and ignore any errors
|
||||||
iscsi_restart = self.distro.get_command('iscsi', 'restart', quiet=True)
|
cmdrestart = self.distro.get_command('iscsi', 'restart', quiet=True)
|
||||||
if iscsi_restart:
|
if cmdrestart:
|
||||||
utils.execute_template(*iscsi_restart, run_as_root=True, check_exit_code=False)
|
sh.execute(*cmdrestart, run_as_root=True, check_exit_code=False)
|
||||||
|
|
||||||
def _process_lvs(self, mp):
|
def _process_lvs(self, mp):
|
||||||
LOG.info("Attempting to setup logical volumes for nova volume management.")
|
LOG.info("Attempting to setup logical volumes for nova volume management.")
|
||||||
|
Loading…
Reference in New Issue
Block a user