ipmipower fails if stdin returns EOF

Bug #1053391 reported by Robie Basak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Critical
Robie Basak
freeipmi (Ubuntu)
Incomplete
Medium
Unassigned

Bug Description

If ipmipower gets EOF on stdin, then it fails with no output and an exit status of 1.

Steps to reproduce:
1. Observe that this works: ipmipower -h <host ip> -u <username> -p <password> --stat
2. Observe that this fails: ipmipower -h <host ip> -u <username> -p <password> --stat </dev/null

Expected behaviour: ipmipower is a command line tool. If it needs no input on stdin normally, then it should work regardless of what stdin is connected to.

Actual behaviour: ipmipower fails when stdin is connected to /dev/null, such as when called from a well-behaved Unix daemon.

Workaround:

echo workaround | ipmipower -h <host ip> -u <username> -p <password> --stat # this works regardless of what stdin is connected to

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: freeipmi-tools 0.8.12-3ubuntu1
ProcVersionSignature: User Name 3.2.0-29.46-virtual 3.2.24
Uname: Linux 3.2.0-29-virtual x86_64
ApportVersion: 2.0.1-0ubuntu13
Architecture: amd64
Date: Thu Sep 20 13:00:57 2012
ProcEnviron:
 TERM=xterm
 LC_COLLATE=C
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: freeipmi
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Robie Basak (racb) wrote :
Robie Basak (racb)
tags: added: needs-upstream-forwarding
tags: added: needs-upstream-report
removed: needs-upstream-forwarding
Robie Basak (racb)
description: updated
Changed in maas:
importance: Undecided → Critical
status: New → In Progress
assignee: nobody → Robie Basak (racb)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
Robie Basak (racb)
Changed in freeipmi (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Utkarsh Gupta (utkarsh) wrote :

Hello,

Thanks for opening the bug. Since this is a very old bug, I am wondering if you're still facing the same problems in the recent versions of freeipmi? In case you do, please reply to this bug or open a new open.

I am marking this as "Incomplete", but once you provide the details mentioned above, please set the status to "New" again. Thank you!

Changed in freeipmi (Ubuntu):
status: Triaged → Incomplete
Revision history for this message
paanji (paanjii2) wrote (last edit ):

thank you for sharing this information with us https://myfiosgateway.one/
https://tutuappvip.co/mobdro-download

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.