Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
DescriptionCorey 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
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.
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
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
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