Description of problem: pcs resource list, pcs resource describe/create AoEtarget fails due to encoding="UTF-8" XML-tag. Version-Release number of selected component (if applicable): pcs-0.9.154-2.fc25.x86_64 resource-agents-3.9.7-5.fc25.x86_64 How reproducible: 100% of the time Steps to Reproduce: 1. Run "pcs resource list" or "pcs resource describe AoEtarget" 2. 3. Actual results: # pcs resource list Traceback (most recent call last): File "/usr/sbin/pcs", line 9, in <module> load_entry_point('pcs==0.9.154', 'console_scripts', 'pcs')() File "/usr/lib/python3.5/site-packages/pcs/app.py", line 216, in main cmd_map[command](argv) File "/usr/lib/python3.5/site-packages/pcs/resource.py", line 46, in resource_cmd resource_list_available(argv) File "/usr/lib/python3.5/site-packages/pcs/resource.py", line 283, in resource_list_available utils.cmd_runner(), full_res_name File "/usr/lib/python3.5/site-packages/pcs/lib/resource_agent.py", line 323, in get_resource_agent_metadata return _get_ocf_resource_agent_metadata(runner, *agent_info[1:]) File "/usr/lib/python3.5/site-packages/pcs/lib/resource_agent.py", line 231, in _get_ocf_resource_agent_metadata return etree.fromstring(stdout) File "src/lxml/lxml.etree.pyx", line 3213, in lxml.etree.fromstring (src/lxml/lxml.etree.c:79010) File "src/lxml/parser.pxi", line 1843, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:118282) ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. # pcs resource describe AoEtarget Traceback (most recent call last): File "/usr/sbin/pcs", line 9, in <module> load_entry_point('pcs==0.9.154', 'console_scripts', 'pcs')() File "/usr/lib/python3.5/site-packages/pcs/app.py", line 216, in main cmd_map[command](argv) File "/usr/lib/python3.5/site-packages/pcs/resource.py", line 49, in resource_cmd resource_list_options(argv[0]) File "/usr/lib/python3.5/site-packages/pcs/resource.py", line 422, in resource_list_options descriptions, parameters, actions = get_desc_params(agent) File "/usr/lib/python3.5/site-packages/pcs/resource.py", line 391, in get_desc_params runner, agent_name File "/usr/lib/python3.5/site-packages/pcs/lib/resource_agent.py", line 323, in get_resource_agent_metadata return _get_ocf_resource_agent_metadata(runner, *agent_info[1:]) File "/usr/lib/python3.5/site-packages/pcs/lib/resource_agent.py", line 231, in _get_ocf_resource_agent_metadata return etree.fromstring(stdout) File "src/lxml/lxml.etree.pyx", line 3213, in lxml.etree.fromstring (src/lxml/lxml.etree.c:79010) File "src/lxml/parser.pxi", line 1843, in lxml.etree._parseMemoryDocument (src/lxml/lxml.etree.c:118282) ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. Expected results: pcs resource list and describe works. Additional info: Removing " encoding="UTF-8"" from the first line of metadata for AoEtarget fixes the issue: <?xml version="1.0" encoding="UTF-8"?>
Created attachment 1248431 [details] proposed fix
pcs-0.9.156-1.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2017-11b7c94278
pcs-0.9.156-1.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2017-45e09f6147
pcs-0.9.156-1.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-45e09f6147
pcs-0.9.156-1.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-11b7c94278
pcs-0.9.156-1.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.
pcs-0.9.156-1.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.