FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu User

 
 
LinkBack Thread Tools
 
Old 11-06-2008, 01:58 PM
Chris Lumens
 
Default PATCH; make iscsi login code wait for udev to create the devices (#466661, #470073)

> diff --git a/iscsi.py b/iscsi.py
> index a42a03e..915e9ca 100644
> --- a/iscsi.py
> +++ b/iscsi.py
> @@ -189,6 +189,11 @@ class iscsiTarget:
> ret = True
> self.addNode(node)
>
> + # Wait for udev to create the devices for the just added disks
> + if ret:
> + iutil.execWithRedirect("/sbin/udevsettle", [ ],
> + stdout = "/dev/tty5", stderr="/dev/tty5")
> +
> # we return True if there were any successful logins for our portal.
> return ret
>

Only thing I'd note here is that udevsettle can, on occassion, take
several minutes to get around to finishing. I added a wait window in
turnOnFilesystems that explains what's going on, though most of the time
it'll display only very briefly. On the rare occassion that udevsettle
takes a very long time, at least anaconda doesn't look hung. You may
wish to consider that here too.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 11-06-2008, 03:08 PM
Hans de Goede
 
Default PATCH; make iscsi login code wait for udev to create the devices (#466661, #470073)

Chris Lumens wrote:

diff --git a/iscsi.py b/iscsi.py
index a42a03e..915e9ca 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -189,6 +189,11 @@ class iscsiTarget:
ret = True
self.addNode(node)

+ # Wait for udev to create the devices for the just added disks

+ if ret:
+ iutil.execWithRedirect("/sbin/udevsettle", [ ],
+ stdout = "/dev/tty5", stderr="/dev/tty5")

+
# we return True if there were any successful logins for our portal.
return ret



Only thing I'd note here is that udevsettle can, on occassion, take
several minutes to get around to finishing. I added a wait window in
turnOnFilesystems that explains what's going on, though most of the time
it'll display only very briefly. On the rare occassion that udevsettle
takes a very long time, at least anaconda doesn't look hung. You may
wish to consider that here too.



Chris,

I've got better status reporting on my iscsi todo list, I'll tackle this then.

Regards,

Hans

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 07:41 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org