diff options
| author | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-11 17:07:24 -0800 |
|---|---|---|
| committer | Vishvananda Ishaya <vishvananda@gmail.com> | 2011-01-11 17:07:24 -0800 |
| commit | 32316a4ed6b4c175af8dd8ad3c345e54f161fd1c (patch) | |
| tree | 31d1f4a9c0a87c1758bf8ff7dd3a3c554037bf2a /nova | |
| parent | b4ca59a68ff4a6af2967b8342b9240f0092f27a4 (diff) | |
| download | nova-32316a4ed6b4c175af8dd8ad3c345e54f161fd1c.tar.gz nova-32316a4ed6b4c175af8dd8ad3c345e54f161fd1c.tar.xz nova-32316a4ed6b4c175af8dd8ad3c345e54f161fd1c.zip | |
use by-path instead of custom udev script
Diffstat (limited to 'nova')
| -rw-r--r-- | nova/volume/driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nova/volume/driver.py b/nova/volume/driver.py index 477e0abf4..30d42af04 100644 --- a/nova/volume/driver.py +++ b/nova/volume/driver.py @@ -282,7 +282,7 @@ class ISCSIDriver(VolumeDriver): self._execute("sudo iscsiadm -m node -T %s -p %s --op update " "-n node.startup -v automatic" % (iscsi_name, iscsi_portal)) - return "/dev/iscsi/%s" % volume['name'] + return "/dev/by-path/ip-%s-iscsi-%s-lun-0" % (iscsi_portal, iscsi_name) def undiscover_volume(self, volume): """Undiscover volume on a remote host.""" |
