fence_vmware_rest fails with "UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position XXXXX: ordinal not in range(128)"

Solution In Progress - Updated -

Issue

  • A fence_vmware_rest stonith device failed its monitor operation, and a backtrace similar to the following was found in the logs.
Jan 16 17:25:15 node2 python: detected unhandled Python exception in '/usr/sbin/fence_vmware_rest'
Jan 16 17:25:15 node2 python: can't communicate with ABRT daemon, is it running? [Errno 2] No such file or directory
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [ Traceback (most recent call last): ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [   File "/usr/sbin/fence_vmware_rest", line 183, in <module> ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [     main() ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [   File "/usr/sbin/fence_vmware_rest", line 178, in main ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [     result = fence_action(conn, options, set_power_status, get_power_status, get_list) ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [   File "/usr/share/fence/fencing.py", line 860, in fence_action ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [     outlets = get_outlet_list(connection, options) ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [   File "/usr/sbin/fence_vmware_rest", line 36, in get_list ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [     res = send_command(conn, "vcenter/vm") ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [   File "/usr/sbin/fence_vmware_rest", line 115, in send_command ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [     result = web_buffer.getvalue().decode() ]
Jan 16 17:25:15 node2 stonith-ng[9348]: warning: fence_vmware_rest[63426] stderr: [ UnicodeDecodeError: 'ascii' codec can't decode byte 0xec in position 80331: ordinal not in range(128) ]
...
Jan 16 17:25:17 node2 stonith-ng[9348]:  notice: Operation 'monitor' [63441] for device 'vmware_stonith2' returned: -201 (Generic Pacemaker error)
  • A fence_vmware_rest status operation failed for a VM with non-ASCII characters in its name.

Environment

  • Red Hat Enterprise Linux 7 or 8 (with the High Availability Add-on)
  • fence_vmware_rest

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In