Bug 1757414
| Summary: | ovirt-hosted-engine-ha python3 unicode fails testing | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-hosted-engine-ha | Reporter: | Sandro Bonazzola <sbonazzo> |
| Component: | General | Assignee: | Simone Tiraboschi <stirabos> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Sandro Bonazzola <sbonazzo> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 2.3.5 | CC: | bugs |
| Target Milestone: | ovirt-4.4.0 | Keywords: | BuildBlocker, CodeChange |
| Target Release: | 2.4.0 | Flags: | sbonazzo:
ovirt-4.4?
sbonazzo: blocker? |
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-hosted-engine-ha-2.4.0 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-05-20 20:01:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 1726988 | ||
This issue is blocking https://gerrit.ovirt.org/103724 This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020. Since the problem described in this bug report should be resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE. If the solution does not work for you, please open a new bug report. |
Building on Fedora 30 with python3: + make test nosetests-3 . ........EE...... ====================================================================== ERROR: test_convert_to_dict_42 (ovirt_hosted_engine_ha.lib.ovf.ovf2VmParams_test.Ovf2vmConfTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/jenkins/workspace/ovirt-hosted-engine-ha_standard-check-patch/ovirt-hosted-engine-ha/tmp.repos/BUILD/ovirt-hosted-engine-ha-2.4.0-0.0.master.20191001124801/ovirt_hosted_engine_ha/lib/ovf/ovf2VmParams_test.py", line 558, in test_convert_to_dict_42 t = ovf2VmParams.toDict(OVF_42) File "/home/jenkins/workspace/ovirt-hosted-engine-ha_standard-check-patch/ovirt-hosted-engine-ha/tmp.repos/BUILD/ovirt-hosted-engine-ha-2.4.0-0.0.master.20191001124801/ovirt_hosted_engine_ha/lib/ovf/ovf2VmParams.py", line 231, in toDict engine_xml_tree = ovfenvelope.etree_.fromstring(engine_xml[0]) File "src/lxml/etree.pyx", line 3213, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1872, in lxml.etree._parseMemoryDocument ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. ====================================================================== ERROR: test_convert_to_dict_42_unsafe (ovirt_hosted_engine_ha.lib.ovf.ovf2VmParams_test.Ovf2vmConfTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/jenkins/workspace/ovirt-hosted-engine-ha_standard-check-patch/ovirt-hosted-engine-ha/tmp.repos/BUILD/ovirt-hosted-engine-ha-2.4.0-0.0.master.20191001124801/ovirt_hosted_engine_ha/lib/ovf/ovf2VmParams_test.py", line 541, in test_convert_to_dict_42_unsafe ovf2VmParams.toDict(OVF_42_UNSAFE)) File "/home/jenkins/workspace/ovirt-hosted-engine-ha_standard-check-patch/ovirt-hosted-engine-ha/tmp.repos/BUILD/ovirt-hosted-engine-ha-2.4.0-0.0.master.20191001124801/ovirt_hosted_engine_ha/lib/ovf/ovf2VmParams.py", line 231, in toDict engine_xml_tree = ovfenvelope.etree_.fromstring(engine_xml[0]) File "src/lxml/etree.pyx", line 3213, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1872, in lxml.etree._parseMemoryDocument ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. ---------------------------------------------------------------------- Ran 16 tests in 0.520s