Bug 158348 - traceback when attempting to act on a defined service
traceback when attempting to act on a defined service
Status: CLOSED NEXTRELEASE
Product: Red Hat Cluster Suite
Classification: Red Hat
Component: redhat-config-cluster (Show other bugs)
4
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jim Parsons
Cluster QE
:
: 159248 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-20 15:20 EDT by Corey Marthaler
Modified: 2009-04-16 16:09 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-09-07 15:18:37 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Corey Marthaler 2005-05-20 15:20:22 EDT
Description of problem:
I believe this was caused when I attempted to disable a a defined service. I was
only able to produce this once.

Member morph-02.lab.msp.redhat.com disabling ...failed
rhpl.executil waitpid: No child processes
Traceback (most recent call last):
  File "/usr/share/system-config-cluster/MgmtTab.py", line 230, in onTimer
    if self.model_builder.isClusterMember():
  File "/usr/share/system-config-cluster/ModelBuilder.py", line 402, in
isClusterMember
    return self.command_handler.isClusterMember()
  File "/usr/share/system-config-cluster/CommandHandler.py", line 55, in
isClusterMember
    out, err, res =
rhpl.executil.execWithCaptureErrorStatus("/sbin/magma_tool",args)
  File "/usr/lib/python2.3/site-packages/rhpl/executil.py", line 267, in
execWithCaptureErrorStatus
    if os.WIFEXITED(status) and (os.WEXITSTATUS(status) == 0):
UnboundLocalError: local variable 'status' referenced before assignment

Version-Release number of selected component (if applicable):
system-config-cluster-0.9.54-1.0.noarch.rpm
Comment 1 Corey Marthaler 2005-05-31 17:07:21 EDT
*** Bug 159248 has been marked as a duplicate of this bug. ***
Comment 2 Jim Parsons 2005-06-06 13:18:25 EDT
this error is in the RHPL library. I have fixed the RHPL error at cvs revision
number 1.11 for executil.py
Comment 3 Corey Marthaler 2005-09-02 16:50:31 EDT
Hit this again today after disabling an active IP service and then attempting to
start it on another machine. The service was running on link-11 and then I
disabled it and then dragged it to link-10.

[root@link-12 ~]# Member link-10 disabling 10.15.84.155...success
clustat
Member Status: Quorate, Group Member

  Member Name                              State      ID
  ------ ----                              -----      --
  link-11                                  Online     0x0000000000000003
  link-10                                  Online     0x0000000000000001
  link-12                                  Online     0x0000000000000002

  Service Name         Owner (Last)                   State
  ------- ----         ----- ------                   -----
  10.15.84.155         (link-11                     ) disabled
[root@link-12 ~]# Member link-10 trying to enable 10.15.84.155...rhpl.executil
waitpid: No child processes
Traceback (most recent call last):
  File "/usr/share/system-config-cluster/MgmtTab.py", line 230, in onTimer
    if self.model_builder.isClusterMember():
  File "/usr/share/system-config-cluster/ModelBuilder.py", line 402, in
isClusterMember
    return self.command_handler.isClusterMember()
  File "/usr/share/system-config-cluster/CommandHandler.py", line 61, in
isClusterMember
    out, err, res =
rhpl.executil.execWithCaptureErrorStatus("/sbin/magma_tool",args)
  File "/usr/lib/python2.3/site-packages/rhpl/executil.py", line 267, in
execWithCaptureErrorStatus
    if os.WIFEXITED(status) and (os.WEXITSTATUS(status) == 0):
UnboundLocalError: local variable 'status' referenced before assignment
success


The start up did however work:

[root@link-12 ~]# clustat
Member Status: Quorate, Group Member

  Member Name                              State      ID
  ------ ----                              -----      --
  link-11                                  Online     0x0000000000000003
  link-10                                  Online     0x0000000000000001
  link-12                                  Online     0x0000000000000002

  Service Name         Owner (Last)                   State
  ------- ----         ----- ------                   -----
  10.15.84.155         link-10                        started
Comment 4 Stanko Kupcevic 2005-09-02 17:13:15 EDT
This traceback will never be seen again, as of version 1.0.13. For good.
Comment 5 Corey Marthaler 2005-09-07 15:18:37 EDT
fix verified in 1.0.15

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