Bug 472781 - [PATCH] /sbin/fence_lpar - properly report status on systems in Open Firmware
[PATCH] /sbin/fence_lpar - properly report status on systems in Open Firmware
Product: Fedora
Classification: Fedora
Component: cman (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Marek Grac
Fedora Extras Quality Assurance
Depends On:
Blocks: 481566
  Show dependency treegraph
Reported: 2008-11-24 10:53 EST by James Laska
Modified: 2013-09-02 02:29 EDT (History)
9 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 481566 (view as bug list)
Last Closed: 2009-12-18 01:56:01 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description James Laska 2008-11-24 10:53:28 EST
Description of problem:

/sbin/fence_lpar doesn't properly report power status when an lpar is in Open Firmware.

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. Boot a system into open firmware
2. Run fence_lpar poweroff or reboot ... it thinks it's already powered off.

The following change to /sbin/fence_lpar fixes the problem...

    ## Transformation to standard ON/OFF status if possible
    if status in ["Running", "Open Firmware"]:
        status = "on"
        status = "off"
Comment 1 Bug Zapper 2008-11-26 00:52:12 EST
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.

More information and reason for this action is here:
Comment 2 James Laska 2008-12-11 11:04:01 EST
Update, in order for reboot operations to work properly ...

--- /sbin/fence_lpar	2008-12-11 11:02:01.000000000 -0500
+++ /tmp/fence_lpar.new	2008-12-11 11:01:59.000000000 -0500
@@ -33,7 +33,7 @@
 	## Transformation to standard ON/OFF status if possible
-	if status == "Running":
+	if status in ["Running", "Open Firmware", "Shutting Down"]:
 		status = "on"
 		status = "off"

Without this fix.  I can 

1) Power off
2) It sees the state "Shutting Down" and thinks that means it's off.
3) I then run power on ... and it fails since the machine is still in "Shutting Down" state.
Comment 3 James Laska 2009-01-26 08:19:34 EST
ping ... any update on this?
Comment 4 Marek Grac 2009-01-26 08:21:36 EST
Updates in git few seconds before your last message :)
Comment 5 James Laska 2009-01-26 11:04:45 EST
Ha, now that's timing huh?

bpeck and I have also been experiencing some timeout's when performing power off, power on operations.  

I'll continue to investigate and file this separately if needed.

Comment 6 Bug Zapper 2009-11-18 03:57:14 EST
This message is a reminder that Fedora 10 is nearing its end of life.
Approximately 30 (thirty) days from now Fedora will stop maintaining
and issuing updates for Fedora 10.  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 '10'.

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 10'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 10 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: 
Comment 7 Bug Zapper 2009-12-18 01:56:01 EST
Fedora 10 changed to end-of-life (EOL) status on 2009-12-17. Fedora 10 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.
Comment 8 James Laska 2009-12-18 07:57:07 EST
This appears like it was fixed in git, just not updated in bugzilla.


Adjusting status to CLOSED - RAWHIDE

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