RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1250720 - traceback when running 'pcs resource enable clvmd --wait'
Summary: traceback when running 'pcs resource enable clvmd --wait'
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: pcs
Version: 7.2
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Chris Feist
QA Contact: cluster-qe@redhat.com
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-08-05 20:12 UTC by Corey Marthaler
Modified: 2015-11-19 09:38 UTC (History)
4 users (show)

Fixed In Version: pcs-0.9.143-1.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-11-19 09:38:24 UTC
Target Upstream Version:
Embargoed:


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


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:2290 0 normal SHIPPED_LIVE Moderate: pcs security, bug fix, and enhancement update 2015-11-19 09:43:53 UTC

Description Corey Marthaler 2015-08-05 20:12:08 UTC
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 20:16:48 UTC
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 13:22:58 UTC
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 09:38:24 UTC
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.