Bug 1839967 - Error encountered when running ovirt-engine-rename
Summary: Error encountered when running ovirt-engine-rename
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Tools.Rename
Version: 4.4.0.3
Hardware: x86_64
OS: Linux
urgent
high
Target Milestone: ovirt-4.4.1
: 4.4.1.2
Assignee: Asaf Rachmani
QA Contact: Petr Matyáš
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-26 06:45 UTC by Muhammad Aidilfitri
Modified: 2020-08-18 06:31 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-4.4.1.2
Doc Type: Bug Fix
Doc Text:
Previously, running `ovirt-engine-rename` generated errors and failed because Python 3 renamed `urlparse` to `urllib.parse`. The current release fixes this issue. Now, `ovirt-engine-rename` uses `urllib.parse` and runs successfully.
Clone Of:
Environment:
Last Closed: 2020-07-08 08:26:37 UTC
oVirt Team: Integration
Embargoed:
pm-rhel: ovirt-4.4+
sbonazzo: blocker?
sbonazzo: devel_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 109288 0 master MERGED packaging: rename: Use 'urllib.parse' instead of 'urlparse' 2020-08-18 06:30:45 UTC

Description Muhammad Aidilfitri 2020-05-26 06:45:51 UTC
Description of problem:
Error encountered when running ovirt-engine-rename. Please see the Actual results for the error.

Version-Release number of selected component (if applicable):
4.4.0.3

How reproducible:
All the time.

Steps to Reproduce:
1. Login into the CentOS8
2. Change directory to /usr/share/ovirt-engine/setup/bin
3. Execute "./ovirt-engine-rename"

Actual results:
----------------Start of
Error----------------------------------------------------------------------------------------------------------------------------------------------------
***L:ERROR Internal error: No module named 'urlparse'
Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/otopi/main.py", line 141, in execute
self.context.loadPlugins()
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 803, in
loadPlugins
self._loadPluginGroups(plugindir, needgroups, loadedgroups)
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 112, in
_loadPluginGroups
self._loadPlugins(path, path, groupname)
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 69, in
_loadPlugins
self._loadPlugins(base, d, groupname)
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 100, in
_loadPlugins
os.path.basename(path),
File "/usr/lib/python3.6/site-packages/otopi/util.py", line 109, in
loadModule
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-rename/vmconsole_proxy_helper/__init__.py",
line 15, in <module>
from . import config
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-rename/vmconsole_proxy_helper/config.py",
line 14, in <module>
import urlparse
ModuleNotFoundError: No module named 'urlparse'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/lib/python3.6/site-packages/otopi/__main__.py", line 88, in main
installer.execute()
File "/usr/lib/python3.6/site-packages/otopi/main.py", line 147, in execute
sys.exc_info()[2],
File "/usr/lib/python3.6/site-packages/otopi/util.py", line 84, in
raiseExceptionInformation
raise info[1].with_traceback(info[2])
File "/usr/lib/python3.6/site-packages/otopi/main.py", line 141, in execute
self.context.loadPlugins()
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 803, in
loadPlugins
self._loadPluginGroups(plugindir, needgroups, loadedgroups)
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 112, in
_loadPluginGroups
self._loadPlugins(path, path, groupname)
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 69, in
_loadPlugins
self._loadPlugins(base, d, groupname)
File "/usr/lib/python3.6/site-packages/otopi/context.py", line 100, in
_loadPlugins
os.path.basename(path),
File "/usr/lib/python3.6/site-packages/otopi/util.py", line 109, in
loadModule
spec.loader.exec_module(module)
File "<frozen importlib._bootstrap_external>", line 678, in exec_module
File "<frozen importlib._bootstrap>", line 219, in
_call_with_frames_removed
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-rename/vmconsole_proxy_helper/__init__.py",
line 15, in <module>
from . import config
File
"/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-rename/vmconsole_proxy_helper/config.py",
line 14, in <module>
import urlparse
otopi.main.PluginLoadException: No module named 'urlparse'
----------------End of
Error----------------------------------------------------------------------------------------------------------------------------------------------------

Expected results:
Able to run the OTOPI tool.

Additional info:

Comment 1 RHEL Program Management 2020-05-26 07:24:14 UTC
The documentation text flag should only be set after 'doc text' field is provided. Please provide the documentation text and set the flag to '?' again.

Comment 2 Petr Matyáš 2020-06-10 14:50:52 UTC
Verified on ovirt-engine-4.4.1.2-0.10.el8ev.noarch

Comment 3 Sandro Bonazzola 2020-07-08 08:26:37 UTC
This bugzilla is included in oVirt 4.4.1 release, published on July 8th 2020.

Since the problem described in this bug report should be resolved in oVirt 4.4.1 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.


Note You need to log in before you can comment on or make changes to this bug.