Actions
Bug #37878
opencannot build rpm, ceph-volume fails the build
% Done:
0%
Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):
Description
When building with:
CEPH_EXTRA_CMAKE_ARGS=-DALLOCATOR=tcmalloc -DWITH_PYTHON2=OFF -DWITH_PYTHON3=ON -DMGR_PYTHON_VERSION=3
RPM build errors: Directory not found: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/14.0.1-2423-g78f4707/rpm/el7/BUILDROOT/ceph-14.0.1-2423.g78f4707.el7.x86_64/usr/lib/python2.7/site-packages/ceph_volume File not found by glob: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/14.0.1-2423-g78f4707/rpm/el7/BUILDROOT/ceph-14.0.1-2423.g78f4707.el7.x86_64/usr/lib/python2.7/site-packages/ceph_volume/* File not found by glob: /home/jenkins-build/build/workspace/ceph-dev-new-build/ARCH/x86_64/AVAILABLE_ARCH/x86_64/AVAILABLE_DIST/centos7/DIST/centos7/MACHINE_SIZE/huge/release/14.0.1-2423-g78f4707/rpm/el7/BUILDROOT/ceph-14.0.1-2423.g78f4707.el7.x86_64/usr/lib/python2.7/site-packages/ceph_volume-* + rm -fr /tmp/install-deps.7636 Build step 'Execute shell' marked build as failure [PostBuildScript] - Executing post build scripts.
Updated by Alfredo Deza over 5 years ago
This is unexpected because these python2 files are supposed to be collected when Python2 builds are done. This section in the spec file specifically:
%if 0%{with python2} %dir %{python_sitelib}/ceph_volume %{python_sitelib}/ceph_volume/* %{python_sitelib}/ceph_volume-*
Since the problem is building in python3 only, the resolution here is to just get rid of these dual-python builds
Updated by Alfredo Deza over 5 years ago
Apparently I can't read spec files :(
The condition is set at the very top of the spec file and this is why the build process looks for python2.7 packages:
%if 0%{?fedora} >= 29 || 0%{?suse_version} >= 1500 || 0%{?rhel} >= 8 # distros that need a py3 Ceph build %bcond_with python2 %else # distros that need a py2 Ceph build %bcond_without python2 %endif
Updated by Alfredo Deza over 5 years ago
master PR https://github.com/ceph/ceph/pull/25969
Actions