ipmipower fails if stdin returns EOF
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
ProcVersionSign
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
- Julian Edwards (community): Approve
-
Diff: 11 lines (+2/-0)1 file modifiedsrc/provisioningserver/power/templates/ipmi.template (+2/-0)
tags: | added: needs-upstream-forwarding |
tags: |
added: needs-upstream-report removed: needs-upstream-forwarding |
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 |
Changed in freeipmi (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
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!