[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Freeipmi-users] ipmipower fails if redirecting stdin to /dev/null
From: |
Peter Kruse |
Subject: |
Re: [Freeipmi-users] ipmipower fails if redirecting stdin to /dev/null |
Date: |
Wed, 14 Sep 2011 10:24:13 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:6.0.2) Gecko/20110902 Thunderbird/6.0.2 |
Hi Al,
yes, that works!
thanks a lot.
Peter
On 09/13/2011 11:57 PM, Albert Chu wrote:
> Hi Peter,
>
> I got this beta that should solve your problem.
>
> http://download.gluster.com/pub/freeipmi/qa-release/freeipmi-1.0.7.beta0.tar.gz
>
> can you let me know if it works for you?
>
> Al
>
> On Tue, 2011-09-13 at 11:31 -0700, Albert Chu wrote:
>> 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
>>> address@hidden
>>> https://lists.gnu.org/mailman/listinfo/freeipmi-users
--
Peter Kruse <address@hidden>
Q-Leap Networks GmbH
phone: +497034-2776-175, mobile: +491522-1593877