`pcs` cannot create resource: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position X: ordinal not in range(128)

Solution Verified - Updated -

Issue

  • pcs cannot create resource: UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position X: ordinal not in range(128)
# pcs resource create my_fs ocf:heartbeat:Filesystem device="/dev/my_vg/my_lv" directory="/my_mnt" fstype=”ext4” 
Traceback (most recent call last):
  File "/sbin/pcs", line 9, in <module>
    load_entry_point('pcs==0.9.158', 'console_scripts', 'pcs')()
  File "/usr/lib/python2.7/site-packages/pcs/app.py", line 53, in main
    argv = parse_args.upgrade_args(argv)
  File "/usr/lib/python2.7/site-packages/pcs/cli/common/parse_args.py", line 287, in upgrade_args
    args_without_options = filter_out_options(arg_list)
  File "/usr/lib/python2.7/site-packages/pcs/cli/common/parse_args.py", line 268, in filter_out_options
    not arg.startswith("-")
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 7: ordinal not in range(128)

Environment

  • Red Hat Enterprise Linux Server 7 (with the High Availability Add-on)
  • pcs-0.9.158-6.el7_4.1.x86_64 or earlier

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content