ccs prints a traceback and "AttributeError: Comment instance has no attribute 'getAttribute'" in a RHEL 6 High Availability cluster
Issue
ccsreturns an 'AttributeError' when I use--addvmccsfails if I have comments incluster.confccs --addresourcedoesn't workccs --rmlogginggives an errorccs --rmresourceprints a traceback and error- I need import VM into the cluster and I get an error.
# ccs -h localhost --addvm myVM path=/path/to/vm autostart=1 migrate=live
Traceback (most recent call last):
File "/usr/sbin/ccs", line 2450, in <module>
main(sys.argv[1:])
File "/usr/sbin/ccs", line 310, in main
if (addvm): add_vm(name,options)
File "/usr/sbin/ccs", line 1665, in add_vm
if vm.getAttribute("name") == vmname:
AttributeError: Comment instance has no attribute 'getAttribute'
[root@rhel6-node1 ~]# ccs -h localhost --addvm commentcrash path=/vm/conf
Traceback (most recent call last):
File "/usr/sbin/ccs", line 2450, in <module>
main(sys.argv[1:])
File "/usr/sbin/ccs", line 310, in main
if (addvm): add_vm(name,options)
File "/usr/sbin/ccs", line 1665, in add_vm
if vm.getAttribute("name") == vmname:
AttributeError: Comment instance has no attribute 'getAttribute'
[root@rhel6-node1 ~]# ccs -h localhost --addresource script name=commentcrash file=/whatever/test.sh
Traceback (most recent call last):
File "/usr/sbin/ccs", line 2450, in <module>
main(sys.argv[1:])
File "/usr/sbin/ccs", line 308, in main
if (addresource): add_resource(name, options)
File "/usr/sbin/ccs", line 1593, in add_resource
if resource.getAttribute("name") == resname:
AttributeError: Comment instance has no attribute 'getAttribute'
[root@rhel6-node1 ~]# ccs --rmlogging name="dlm_controld" debug="on"
Traceback (most recent call last):
File "/usr/sbin/ccs", line 2450, in <module>
main(sys.argv[1:])
File "/usr/sbin/ccs", line 328, in main
if (removelogging): remove_logging_daemon(options)
File "/usr/sbin/ccs", line 2134, in remove_logging_daemon
if logger.getAttribute(option) != val:
AttributeError: Comment instance has no attribute 'getAttribute'
[root@rhel6-node1 ~]# ccs -h localhost --rmresource ip name="192.168.143.110/24" sleeptime="0"
Traceback (most recent call last):
File "/usr/sbin/ccs", line 2450, in <module>
main(sys.argv[1:])
File "/usr/sbin/ccs", line 309, in main
if (removeresource): remove_resource(name, options)
File "/usr/sbin/ccs", line 1628, in remove_resource
if resource.tagName == type:
AttributeError: Comment instance has no attribute 'tagName'
Environment
- Red Hat Enterprise Linux (RHEL) 6 with the High Availability Add On
- One or more XML-style comments (
<!-- comment -->) in/etc/cluster/cluster.conf- The comment is a child of one of:
<cluster><rm/></cluster>,<cluster><rm><resources/></rm></cluster>, or<cluster><logging/></cluster>.
- The comment is a child of one of:
- Using
ccswith one of the following options:--addvm,--addresource,--rmresource, or--rmlogging
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
