fence_hpblade fails with "TypeError: log_expect() takes exactly 3 arguments (4 given)" on RHEL 7
Issue
fence_hpblade
fails with the following error:
# fence_hpblade -v -x -a blade.example.com -l my_user -p my_password --plug=1
2018-11-09 11:05:44,413 DEBUG: Sent: show enclosure info
Traceback (most recent call last):
File "/usr/sbin/fence_hpblade", line 134, in <module>
main()
File "/usr/sbin/fence_hpblade", line 127, in main
options["enc_type"] = get_enclosure_type(conn, options)
File "/usr/sbin/fence_hpblade", line 19, in get_enclosure_type
conn.log_expect(options, options["--command-prompt"], int(options["--shell-timeout"]))
TypeError: log_expect() takes exactly 3 arguments (4 given)
Environment
- Red Hat Enterprise Linux 7 (with the High Availability Add-on)
fence-agents-hpblade
package older than version4.2.1-11.el7_6.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.