Bug 1894298 - ModuleNotFoundError: No module named 'ovirt_engine' raised when starting ovirt-engine-dwhd.py in dev env
Summary: ModuleNotFoundError: No module named 'ovirt_engine' raised when starting ovir...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-dwh
Version: unspecified
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: ovirt-4.4.4
: 4.4.4
Assignee: Yedidyah Bar David
QA Contact: Lucie Leistnerova
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-11-03 23:13 UTC by Hilda Stastna
Modified: 2021-02-02 11:26 UTC (History)
6 users (show)

Fixed In Version: ovirt-engine-dwh-4.4.4.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-27 16:01:15 UTC
oVirt Team: Integration
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
traceback (347 bytes, text/plain)
2020-11-03 23:13 UTC, Hilda Stastna
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 112095 0 master MERGED Makefile: Fix python3 dev env 2020-12-11 12:33:46 UTC

Description Hilda Stastna 2020-11-03 23:13:56 UTC
Created attachment 1726425 [details]
traceback

Description of problem:
When building and installing the oVirt DWH development environment according to the doc https://ovirt.org/develop/dwh-development-environment.html, starting the dwh service failed.

The problem seems to be caused by this line in packaging/services/ovirt-engine-dwhd/config.py:

DEV_PYTHON_DIR = '.../ovirt-engine/usr/lib/python2.7/site-packages'

But the ovirt-engine now doesn't use/install to python2.7 and the .../ovirt-engine/usr/lib/python2.7 doesn't exist. This happens because python3 is used by default. Than the DWH startup script cannot find required packages.

Version-Release number of selected component (if applicable):
DWH: latest version, commit e62bd32f52b063def71ba898f1d9da379d5bac7f 
DHW installed on Fedora 31

How reproducible:
always

Steps to Reproduce:
1. Build and install the ovirt-engine dev environment
2. Follow the doc "oVirt DWH development environment":
https://ovirt.org/develop/dwh-development-environment.html
3. Start the DWH service:
$ $HOME/ovirt-engine/share/ovirt-engine-dwh/services/ovirt-engine-dwhd/ovirt-engine-dwhd.py start

Actual results:
The DWH service didn't start and raised ModuleNotFoundError.

Expected results:
The DWH service starts successfully.

Additional info:
Although this problem is related to the development environment, python 2 is obsolete and the DWH shouldn't use it anymore.

Comment 1 Yedidyah Bar David 2020-11-05 15:04:56 UTC
Can you please check if change 112095 works for you, and mark verified? Thanks!

Comment 2 Hilda Stastna 2020-11-05 17:56:55 UTC
Hello Yedidyah,

yes, the change 112095 works for me, it fixes the problem with starting the DWH service. Also I can see "DEV_PYTHON_DIR = '.../ovirt-engine/usr/lib/python3.7/site-packages'" and not "...python2.7..." in packaging/services/ovirt-engine-dwhd/config.py after the dwh installation. However there are some improvements that can be done as already mentioned in gerrit. Thank you very much!

Comment 5 Casper (RHV QE bot) 2020-11-27 16:01:15 UTC
This bug has low overall severity and passed an automated regression suite, and is not going to be further verified by QE. If you believe special care is required, feel free to re-open to ON_QA status.


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