Bug 690735 - fence_ipmilan returns incorrect status on monitor op if chassis is powered off
Summary: fence_ipmilan returns incorrect status on monitor op if chassis is powered off
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: fence-agents
Version: 13
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Marek Grac
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 693426 693427 693428
TreeView+ depends on / blocked
 
Reported: 2011-03-25 08:23 UTC by Vladislav Bogdanov
Modified: 2011-06-07 08:23 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 693426 693427 693428 (view as bug list)
Environment:
Last Closed: 2011-06-07 08:23:57 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Patch to fix issue (610 bytes, patch)
2011-03-25 08:24 UTC, Vladislav Bogdanov
no flags Details | Diff
Proposed patch (351 bytes, patch)
2011-03-25 10:32 UTC, Marek Grac
no flags Details | Diff

Description Vladislav Bogdanov 2011-03-25 08:23:37 UTC
Description of problem:
There is a bug in fence_ipmilan agent: it exits with result code 2 on "monitor"/"status" command if chassis is powered off. Instead it should return 0 because "monitor" command should return fence device status, not chassis status.

Version-Release number of selected component (if applicable):
fence-agents-3.1.2-1.fc13.x86_64

Comment 1 Vladislav Bogdanov 2011-03-25 08:24:11 UTC
Created attachment 487504 [details]
Patch to fix issue

Comment 2 Marek Grac 2011-03-25 10:32:16 UTC
Created attachment 487518 [details]
Proposed patch

@Vladislav:

Thanks for reporting this bug. You are right, we should return 0 if the fence device is working. 

I have created a patch that should fix this. Yours patch will work correctly for 'monitor' but it will break 'status' as fence agent won't be able to return that chassis is powered off.

Comment 3 Vladislav Bogdanov 2011-03-25 12:11:02 UTC
Looking through the code, it was probably just forgotten (ret is set to 0 for both on and off states but not used then).

I agree, your patch is cleaner.

Comment 4 Bug Zapper 2011-05-30 10:53:30 UTC
This message is a reminder that Fedora 13 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 13.  It is Fedora's policy to close all
bug reports from releases that are no longer maintained.  At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '13'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 13's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 13 is end of life.  If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora please change the 'version' of this 
bug to the applicable version.  If you are unable to change the version, 
please add a comment here and someone will do it for you.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events.  Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping


Note You need to log in before you can comment on or make changes to this bug.