Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1260865

Summary: ovirt-engine-sdk-python for el7 is failing on missing python3 dependencies
Product: [oVirt] ovirt-engine-sdk-python Reporter: Sandro Bonazzola <sbonazzo>
Component: GeneralAssignee: Juan Hernández <juan.hernandez>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: ---CC: bugs, fdeutsch, gklein, juan.hernandez, lsurette, lsvaty, rbalakri, tlitovsk, yeylon, ykaul
Target Milestone: ovirt-4.0.0-alphaKeywords: AutomationBlocker, AutoVerified
Target Release: 4.0.0aFlags: rule-engine: ovirt-4.0.0+
ylavi: planning_ack+
rule-engine: devel_ack+
rule-engine: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 11:15:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sandro Bonazzola 2015-09-08 05:58:33 UTC
Logs from http://jenkins.ovirt.org/job/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/21/artifact/exported-artifacts/logs.tgz


========== Running the shellscript automation/build-artifacts.sh
error: Macro %py2_install has unterminated body
sed \
	-e 's/@RPM_VERSION@/4.0.0.0/g' \
	-e 's/@RPM_RELEASE@/0.1.20150901.git5fbfd34.el7.centos/g' \
	-e 's/@TARBALL@/ovirt-engine-sdk-python-4.0.0.0.tar.gz/g' \
	< ovirt-engine-sdk-python.spec.in \
	> ovirt-engine-sdk-python.spec
git ls-files | tar --transform='s|^|ovirt-engine-sdk-python/|' --files-from /proc/self/fd/0 -czf ovirt-engine-sdk-python-4.0.0.0.tar.gz ovirt-engine-sdk-python.spec
rpmbuild \
	--define="_topdir /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop" \
	-ts ovirt-engine-sdk-python-4.0.0.0.tar.gz
error: Macro %py2_install has unterminated body
Wrote: /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
error: Macro %py2_install has unterminated body
error: Macro %py2_install has unterminated body
error: Macro %py2_install has unterminated body
error: Macro %py2_install has unterminated body
Getting requirements for ./ovirt-engine-sdk-python.spec
 --> python-devel-2.7.5-18.el7_1.1.x86_64
 --> python-setuptools-0.9.8-3.el7.noarch
Error: No Package found for python3-devel
Error: No Package found for python3-setuptools
error: Macro %py2_install has unterminated body
sed \
	-e 's/@RPM_VERSION@/4.0.0.0/g' \
	-e 's/@RPM_RELEASE@/0.1.20150901.git5fbfd34.el7.centos/g' \
	-e 's/@TARBALL@/ovirt-engine-sdk-python-4.0.0.0.tar.gz/g' \
	< ovirt-engine-sdk-python.spec.in \
	> ovirt-engine-sdk-python.spec
git ls-files | tar --transform='s|^|ovirt-engine-sdk-python/|' --files-from /proc/self/fd/0 -czf ovirt-engine-sdk-python-4.0.0.0.tar.gz ovirt-engine-sdk-python.spec
rpmbuild \
	--define="_topdir /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop" \
	-ts ovirt-engine-sdk-python-4.0.0.0.tar.gz
error: Macro %py2_install has unterminated body
Wrote: /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
error: Macro %py2_install has unterminated body
error: Macro %py2_install has unterminated body
rpmbuild \
	--define="_topdir /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop" \
	--rebuild /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
error: Macro %py2_install has unterminated body
error: Failed build dependencies:
	python-devel is needed by ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.noarch
	python-setuptools is needed by ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.noarch
	python3-devel is needed by ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.noarch
	python3-setuptools is needed by ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.noarch
error: Macro %py2_install has unterminated body
Installing /home/jenkins/workspace/ovirt-engine-sdk_master_build-artifacts-el7-x86_64/ovirt-engine-sdk/rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
make: *** [rpm] Error 1
Archiving ./ovirt-engine-sdk-python-4.0.0.0.tar.gz
Archiving ./rpmtop/SRPMS/ovirt-engine-sdk-python-4.0.0.0-0.1.20150901.git5fbfd34.el7.centos.src.rpm
Archiving ./rpmtop/SOURCES/ovirt-engine-sdk-python-4.0.0.0.tar.gz
Took 4 seconds
===================================

Comment 1 Juan Hernández 2015-09-08 08:38:33 UTC
This happens because we try to build Python 3 packages for all the distributions. the solution is to do that only for the distributions that support it.

Comment 3 Red Hat Bugzilla Rules Engine 2015-10-18 08:34:40 UTC
Bug tickets that are moved to testing must have target release set to make sure tester knows what to test. Please set the correct target release before moving to ON_QA.