<!--
Copyright (c) 2020 Seagate Technology LLC and/or its Affiliates
This program is free software: you can redistribute it and/or modify it under the
terms of the GNU Affero General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License along
with this program. If not, see <https://www.gnu.org/licenses/>. For any questions
about this software or licensing, please email [email protected] or
[email protected].
-->
<?xml version="1.0"?>
<crm_mon version="1.1.20">
<summary>
<stack type="corosync" />
And having in mind that this is a part of unit tests, it seems like nobody runs them during cortx-ha build procedure. Because tests will obviously fail:
======================================================================
ERROR: test_unstandby_single_node_works (tests.test_cli_arguments.AppRunnerTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib64/python3.6/xml/etree/ElementTree.py", line 1624, in feed
self.parser.Parse(data, 0)
xml.parsers.expat.ExpatError: XML or text declaration not at start of entity: line 20, column 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/720599/projects/cortx-ha/ha/pcswrap/pcswrap/internal/connector.py", line 165, in _parse_xml
xml = ET.fromstring(xml_str)
File "/home/720599/projects/cortx-ha/ha/pcswrap/.py3venv/lib64/python3.6/site-packages/defusedxml/common.py", line 131, in fromstring
parser.feed(text)
File "/usr/lib64/python3.6/xml/etree/ElementTree.py", line 1626, in feed
self._raiseerror(v)
File "/usr/lib64/python3.6/xml/etree/ElementTree.py", line 1525, in _raiseerror
raise err
File "<string>", line None
xml.etree.ElementTree.ParseError: XML or text declaration not at start of entity: line 20, column 0
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/720599/projects/cortx-ha/ha/pcswrap/tests/test_cli_arguments.py", line 102, in test_unstandby_single_node_works
stub_client, runner = self._create_client_and_runner()
File "/home/720599/projects/cortx-ha/ha/pcswrap/tests/test_cli_arguments.py", line 69, in _create_client_and_runner
stub_client = Client(connector=connector)
File "/home/720599/projects/cortx-ha/ha/pcswrap/pcswrap/client.py", line 68, in __init__
self._ensure_sane()
File "/home/720599/projects/cortx-ha/ha/pcswrap/pcswrap/client.py", line 71, in _ensure_sane
self.connector.get_nodes()
File "/home/720599/projects/cortx-ha/ha/pcswrap/pcswrap/internal/connector.py", line 146, in get_nodes
xml = self._parse_xml(xml_str)
File "/home/720599/projects/cortx-ha/ha/pcswrap/pcswrap/internal/connector.py", line 168, in _parse_xml
raise PcsNoStatusException('Broken XML was given')
pcswrap.exception.PcsNoStatusException: Broken XML was given
----------------------------------------------------------------------
Ran 23 tests in 0.022s
FAILED (errors=16)
Test failed: <unittest.runner.TextTestResult run=23 errors=16 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=23 errors=16 failures=0>