Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1250720 - traceback when running 'pcs resource enable clvmd --wait'
traceback when running 'pcs resource enable clvmd --wait'
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs (Show other bugs)
7.2
x86_64 Linux
medium Severity medium
: rc
: ---
Assigned To: Chris Feist
cluster-qe@redhat.com
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-08-05 16:12 EDT by Corey Marthaler
Modified: 2015-11-19 04:38 EST (History)
4 users (show)

See Also:
Fixed In Version: pcs-0.9.143-1.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-11-19 04:38:24 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch to replace ra_id with resource (478 bytes, patch)
2015-08-05 16:16 EDT, Chris Feist
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2290 normal SHIPPED_LIVE Moderate: pcs security, bug fix, and enhancement update 2015-11-19 04:43:53 EST

  None (edit)
Description Corey Marthaler 2015-08-05 16:12:08 EDT
Description of problem:
[root@mckinley-01 ~]# pcs resource enable clvmd --wait
Traceback (most recent call last):
  File "/usr/sbin/pcs", line 215, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/pcs", line 159, in main
    cmd_map[command](argv)
  File "/usr/lib/python2.7/site-packages/pcs/resource.py", line 90, in resource_cmd
    resource_enable(argv)
  File "/usr/lib/python2.7/site-packages/pcs/resource.py", line 2163, in resource_enable
    % ra_id
NameError: global name 'ra_id' is not defined




# Full output from script
Configuring pacemaker to start dlm on mckinley-01...pcs cluster cib > /tmp/tmp.kKQIpXAsl7
pcs -f /tmp/tmp.kKQIpXAsl7 property set no-quorum-policy=freeze
pcs -f /tmp/tmp.kKQIpXAsl7 resource create dlm controld op monitor interval=30s on-fail=fence clone interleave=true ordered=true
pcs -f /tmp/tmp.kKQIpXAsl7 resource create clvmd ocf:heartbeat:clvm with_cmirrord=1 op monitor interval=30s on-fail=fence clone interleave=true ordered=true
pcs -f /tmp/tmp.kKQIpXAsl7 constraint order start dlm-clone then clvmd-clone
pcs -f /tmp/tmp.kKQIpXAsl7 constraint colocation add clvmd-clone with dlm-clone
pcs cluster cib-push /tmp/tmp.kKQIpXAsl7
pcs resource enable clvmd --wait
Traceback (most recent call last):
  File "/usr/sbin/pcs", line 215, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/pcs", line 159, in main
    cmd_map[command](argv)
  File "/usr/lib/python2.7/site-packages/pcs/resource.py", line 90, in resource_cmd
    resource_enable(argv)
  File "/usr/lib/python2.7/site-packages/pcs/resource.py", line 2163, in resource_enable
    % ra_id
NameError: global name 'ra_id' is not defined



Version-Release number of selected component (if applicable):
pcs-0.9.142-2.el7.x86_64
Comment 1 Chris Feist 2015-08-05 16:16:48 EDT
Created attachment 1059626 [details]
Patch to replace ra_id with resource

pcs is doing a traceback while attempting to print the error message.  There is still an error starting clvmd that is not caused by pcs.

Patch to fix the problem is attached.
Comment 2 Tomas Jelinek 2015-08-10 09:22:58 EDT
Before Fix:
[root@rh71-node1 ~]# rpm -q pcs
pcs-0.9.142-2.el7.x86_64
# apache is not installed on the node
[root@rh71-node1:~]# pcs resource create apa apache --disabled
[root@rh71-node1:~]# pcs resource enable apa --wait
Traceback (most recent call last):
  File "/usr/sbin/pcs", line 215, in <module>
    main(sys.argv[1:])
  File "/usr/sbin/pcs", line 159, in main
    cmd_map[command](argv)
  File "/usr/lib/python2.7/site-packages/pcs/resource.py", line 90, in resource_cmd
    resource_enable(argv)
  File "/usr/lib/python2.7/site-packages/pcs/resource.py", line 2163, in resource_enable
    % ra_id
NameError: global name 'ra_id' is not defined



After Fix:
[root@rh71-node1:~]# rpm -q pcs
pcs-0.9.143-1.el7.x86_64
# apache is not installed on the node
[root@rh71-node1:~]# pcs resource create apa apache --disabled
[root@rh71-node1:~]# pcs resource enable apa --wait
Error: unable to start: 'apa', please check logs for failure information
Resource 'apa' is not running on any node
Comment 6 errata-xmlrpc 2015-11-19 04:38:24 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-2290.html

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