Fencing fails in a RHEL 5 or 6 High Availability cluster with a traceback and error "TypeError: can only concatenate list (not 'str') to list"
Issue
- An error occurs when getting the status with fencing agent
fence_bladecenter:
2015-02-12 12:11:30 -07:00 Thu node42 [user.info] abrt: detected unhandled Python exception in '/usr/sbin/fence_bladecenter'
- A python exception is thrown when the fencing agent
fence_bladecentertries to get status andabrtcatches it:
fencing.py:952:fence_login:TypeError: can only concatenate list (not "str") to list
Traceback (most recent call last):
File "/usr/sbin/fence_bladecenter", line 143, in <module>
main()
File "/usr/sbin/fence_bladecenter", line 126, in main
conn = fence_login(options, "(username: )")
File "/usr/share/fence/fencing.py", line 952, in fence_login
result = conn.log_expect(options, [ "Enter passphrase for key '"+options["-k"]+"':", "Are you sure you want to continue connecting (yes/no)?" ] + options["-c"], int(options["-y"]))
TypeError: can only concatenate list (not "str") to list
- Fencing is failing in my cluster after updating to RHEL 5 Update 11
- Fencing is failing in my cluster after updating to RHEL 6 Update 5
fence_virtdoesn't work, and testing it on the command line gives a traceback and exception
Environment
- Red Hat Enterprise Linux (RHEL) 5 and 6 with the High Availability Add On
- RHEL 6:
fence-agents-3.1.5-48.el5or later - RHEL 5:
cman-2.0.115-124.el5or later - Any of the following fence-agents configured in a fencedevice in
/etc/cluster/cluster.conf:fence_apcfence_bladecenterfence_brocadefence_drac5fence_hpbladefence_ilo_mpfence_rsafence_rsbfence_virshfence_vmwarefence_wti
- The
fencedeviceconfigured with one of the above agents has anidentity_filespecified in its attributes
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.
