Bug 1839967

Summary: Error encountered when running ovirt-engine-rename
Product: [oVirt] ovirt-engine Reporter: Muhammad Aidilfitri <muhammad.aidilfitri>
Component: Tools.RenameAssignee: Asaf Rachmani <arachman>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matyáš <pmatyas>
Severity: high Docs Contact:
Priority: urgent    
Version: 4.4.0.3CC: arachman, bugs, lleistne, rdlugyhe
Target Milestone: ovirt-4.4.1Flags: pm-rhel: ovirt-4.4+
sbonazzo: blocker?
sbonazzo: devel_ack+
Target Release: 4.4.1.2   
Hardware: x86_64   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-07-08 08:26:37 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:

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.