Bug 1879030
| Summary: | The import_vm_from_ova.py example script fails when specifying the cluster name | ||
|---|---|---|---|
| Product: | [oVirt] ovirt-engine | Reporter: | Steven Rosenberg <srosenbe> |
| Component: | RestAPI | Assignee: | Liran Rotenberg <lrotenbe> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Qin Yuan <qiyuan> |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 4.4.3 | CC: | ahadas, bugs, dfodor, juan.hernandez, mavital, oliel |
| Target Milestone: | ovirt-4.4.3 | Keywords: | Reopened |
| Target Release: | --- | Flags: | pm-rhel:
ovirt-4.4+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ovirt-engine-4.4.3.7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2020-11-11 06:42:17 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | Virt | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Tested with: ovirt-engine-4.4.3.8-0.1.el8ev.noarch Steps: 1. Modify import_vm_from_ova.py - set required parameters in connection - set required parameters in types.ExternalVmImport, specify cluster name. 2. Run import_vm_from_ova.py Result: import_vm_from_ova.py finished successfully, vm was imported to specified cluster. This bugzilla is included in oVirt 4.4.3 release, published on November 10th 2020. Since the problem described in this bug report should be resolved in oVirt 4.4.3 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. |
Description of problem: When running the import_vm_from_ova.py example script and specifying the cluster name, the script fails with the error "The response content type 'text/html;charset=UTF-8' isn't the expected XML". Version-Release number of selected component (if applicable): How reproducible: Modify the import_vm_from_ova.py script with the correct criteria and run the script. Steps to Reproduce: 1. 2. 3. Actual results: The script fails [1]. Expected results: The import should succeed. Additional info: script failure (probably due to python3 upgrading): [1] sudo python3 ./import_vm_from_ova.py Traceback (most recent call last): File "./import_vm_from_ova.py", line 76, in <module> sparse=True File "/usr/lib64/python3.6/site-packages/ovirtsdk4/services.py", line 10337, in add return self._internal_add(import_, headers, query, wait) File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 232, in _internal_add return future.wait() if wait else future File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 55, in wait return self._code(response) File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 229, in callback self._check_fault(response) File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 130, in _check_fault body = self._internal_read_body(response) File "/usr/lib64/python3.6/site-packages/ovirtsdk4/service.py", line 316, in _internal_read_body self._connection.check_xml_content_type(response) File "/usr/lib64/python3.6/site-packages/ovirtsdk4/__init__.py", line 850, in check_xml_content_type response.headers File "/usr/lib64/python3.6/site-packages/ovirtsdk4/__init__.py", line 890, in _check_content_type raise Error(msg) ovirtsdk4.Error: The response content type 'text/html;charset=UTF-8' isn't the expected XML