Hi Peter,

On Tue, 2011-09-13 at 03:13 -0700, Peter Kruse wrote:
> Hello,
> 
> I'm using ipmipower to suspend and resume compute nodes in our clusters.
> But it seems that the batch scheduler calls the command with
> stdin redirected to /dev/null, which makes ipmipower exit
> with a status of 1, and not suspending the node, instead
> it logs a message:
> 
> ipmipower[28320]: Cbuf_write_from_fd(0): Bad file descriptor
> 
> I'm wondering if it is really is necessary for ipmipower
> to read from stdin.

Ipmipower can be run in an interactive or non-interactive mode.  It
currently checks for data from stdin no matter what, but I suppose it
wouldn't be a big deal to eliminate that stdin when we know the user
won't be interacting w/ the ipmipower prompt at all.

Let me try and get a beta out for you to try later today.

Al

> As a workaround I call ipmipower in a screen(1) session.
> You can reproduce this behaviour from the command line
> if you run for example:
> 
> ipmipower  -h [address] -u [user] -p [pass] -n < /dev/null
> 
> I tested it under ubuntu/lucid and debian/squeeze
> both with the shipped version 0.7.15 but
> also with the latest version 1.0.6.
> 
> Regards,
> 
>   Peter
> 
> ps: I am not subscribed to this list, it would be
>     kind if you could CC me on replies.
> 
> _______________________________________________
> Freeipmi-users mailing list
> [email protected]
> https://lists.gnu.org/mailman/listinfo/freeipmi-users
-- 
Albert Chu
[email protected]
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory



_______________________________________________
Freeipmi-users mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/freeipmi-users

Reply via email to