diff options
author | Hans de Goede <hdegoede@redhat.com> | 2008-11-07 08:35:23 +0100 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2008-11-08 13:23:46 +0100 |
commit | 823437ee38d36cce226f29bd5b4c9d56afe8f60d (patch) | |
tree | 5673c6edcdb38858c20f4739e8689ff87f63ce31 | |
parent | 39f27c560defd737641a17b5052734d12e990e83 (diff) | |
download | anaconda-823437ee38d36cce226f29bd5b4c9d56afe8f60d.tar.gz anaconda-823437ee38d36cce226f29bd5b4c9d56afe8f60d.tar.xz anaconda-823437ee38d36cce226f29bd5b4c9d56afe8f60d.zip |
Sleep a bit before calling udevsettle in iscsiTarget.login (#470073, #466661)
Further testing has revealed that it is possible that the hotplug events for
an added iscsi disk have not fired yet when iscsiadm ... --login has completed
In this case calling udevsettle does not help, so sleep a little before calling
udevsettle to give the kernel time to fire of those events.
-rw-r--r-- | iscsi.py | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -191,6 +191,9 @@ class iscsiTarget: # Wait for udev to create the devices for the just added disks if ret: + # It is possible when we get here the events for the new devices + # are not send yet, so sleep to make sure the events are fired + time.sleep(1) iutil.execWithRedirect("/sbin/udevsettle", [ ], stdout = "/dev/tty5", stderr="/dev/tty5") |