summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishvananda Ishaya <vishvananda@gmail.com>2011-08-25 23:40:31 +0000
committerTarmac <>2011-08-25 23:40:31 +0000
commiteaa91e6c5e9b503a1e16f02e89305e44812f19b6 (patch)
treea7f9fa3a6ca3254960b8e28114c2f4b88d783961
parent1cd32d9aab99f9d6736da2695770b8bce9719f73 (diff)
parentbeed018c5034c33fa806b80ba719e57ae9347acd (diff)
downloadnova-eaa91e6c5e9b503a1e16f02e89305e44812f19b6.tar.gz
Backported fix for run_iscsiadm.diablo-4
-rw-r--r--nova/volume/driver.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/nova/volume/driver.py b/nova/volume/driver.py
index 7d2fb45d49..06e3d7afda 100644
--- a/nova/volume/driver.py
+++ b/nova/volume/driver.py
@@ -523,7 +523,7 @@ class ISCSIDriver(VolumeDriver):
"node.session.auth.password",
iscsi_properties['auth_password'])
- self._run_iscsiadm(iscsi_properties, "--login")
+ self._run_iscsiadm(iscsi_properties, ("--login", ))
self._iscsiadm_update(iscsi_properties, "node.startup", "automatic")
@@ -544,7 +544,7 @@ class ISCSIDriver(VolumeDriver):
locals())
# The rescan isn't documented as being necessary(?), but it helps
- self._run_iscsiadm(iscsi_properties, "--rescan")
+ self._run_iscsiadm(iscsi_properties, ("--rescan", ))
tries = tries + 1
if not os.path.exists(mount_device):
@@ -561,7 +561,7 @@ class ISCSIDriver(VolumeDriver):
"""Undiscover volume on a remote host."""
iscsi_properties = self._get_iscsi_properties(volume)
self._iscsiadm_update(iscsi_properties, "node.startup", "manual")
- self._run_iscsiadm(iscsi_properties, "--logout")
+ self._run_iscsiadm(iscsi_properties, ("--logout", ))
self._run_iscsiadm(iscsi_properties, ('--op', 'delete'))
def check_for_export(self, context, volume_id):