Bug 1724076

Summary: Failing to build appliance on imagefactory requiring python3 on EL7
Product: [oVirt] ovirt-appliance Reporter: Sandro Bonazzola <sbonazzo>
Component: BuildAssignee: Yuval Turgeman <yturgema>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 4.3.4CC: bugs, nlevy, rbarry
Target Milestone: ovirt-4.3.5Keywords: BuildBlocker, CodeChange
Target Release: ---Flags: sbonazzo: ovirt-4.3?
sbonazzo: blocker?
sbonazzo: planning_ack?
sbonazzo: devel_ack+
sbonazzo: testing_ack?
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-03 16:06:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sandro Bonazzola 2019-06-26 08:17:45 UTC
Appliance build is currently failing with:

22:41:56 PYTHONPATH='/home/jenkins/workspace/ovirt-appliance_4.3_build-artifacts-el7-x86_64/ovirt-appliance/engine-appliance/imagefactory/' python scripts/create_ova.py -m 16384 -c 4 "ovirt-engine-appliance.qcow2" "ovirt-engine-appliance.ova"
22:41:56 Traceback (most recent call last):
22:41:56   File "scripts/create_ova.py", line 4, in <module>
22:41:56     from imagefactory_plugins.ovfcommon.ovfcommon import RHEVOVFPackage
22:41:56   File "/home/jenkins/workspace/ovirt-appliance_4.3_build-artifacts-el7-x86_64/ovirt-appliance/engine-appliance/imagefactory/imagefactory_plugins/ovfcommon/ovfcommon.py", line 29, in <module>
22:41:56     from imgfac.PersistentImageManager import PersistentImageManager
22:41:56   File "/home/jenkins/workspace/ovirt-appliance_4.3_build-artifacts-el7-x86_64/ovirt-appliance/engine-appliance/imagefactory/imgfac/PersistentImageManager.py", line 17, in <module>
22:41:56     from .ApplicationConfiguration import ApplicationConfiguration
22:41:56   File "/home/jenkins/workspace/ovirt-appliance_4.3_build-artifacts-el7-x86_64/ovirt-appliance/engine-appliance/imagefactory/imgfac/ApplicationConfiguration.py", line 24, in <module>
22:41:56     import urllib.request
22:41:56 ImportError: No module named request


urllib.request is available in python3 but not in python2.
We need to require an older version of imagefactory or get python3 into the build system.

Comment 1 Yuval Turgeman 2019-07-03 08:55:00 UTC
Wrong tracker