Bug 1330863

Summary: RPM re-build using src RPM is failing - glusterfs-3.6.0.55-1.el6_6.src.rpm for x86_64
Product: Red Hat Gluster Storage Reporter: Sachin <sashinde>
Component: buildAssignee: Milind Changire <mchangir>
Status: CLOSED NOTABUG QA Contact: storage-qa-internal <storage-qa-internal>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: mchangir, mzywusko, nlevinki, rcyriac, rhs-bugs
Target Milestone: ---Keywords: ZStream
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-05-03 04:57:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Sachin 2016-04-27 07:18:30 UTC
Description of problem: While TPS testing SRPM testfailing with following error. 

Rebuild command: x86_64 rpmbuild --rebuild   --define "dist .el6_6"  --define '_topdir /usr/src/redhat' --target=x86_64 --rcfile /tmp/tps_rpmrc_CykbJM:/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc /mnt/redhat/brewroot/packages/glusterfs/3.6.0.55/1.el6_6/src/glusterfs-3.6.0.55-1.el6_6.src.rpm
doRpmCommand: x86_64 rpmbuild --rebuild   --define "dist .el6_6"  --define '_topdir /usr/src/redhat' --target=x86_64 --rcfile /tmp/tps_rpmrc_CykbJM:/usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc /mnt/redhat/brewroot/packages/glusterfs/3.6.0.55/1.el6_6/src/glusterfs-3.6.0.55-1.el6_6.src.rpm &> glusterfs-3.6.0.55-1.el6_6.src.rpm-x86_64-rebuild.log
doRpmCommand-result (256): 
FAILED to rebuild /mnt/redhat/brewroot/packages/glusterfs/3.6.0.55/1.el6_6/src/glusterfs-3.6.0.55-1.el6_6.src.rpm -- return code 256
REBUILD: FAIL for glusterfs-3.6.0.55-1.el6_6.src.rpm
BUILDLOG: glusterfs-3.6.0.55-1.el6_6.src.rpm-x86_64-rebuild.log contains full details.  Reports from make and rpmbuild, with line numbers:
1891-+ /usr/lib/rpm/brp-python-bytecompile
1892-Bytecompiling .py files below /usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/usr/lib/python2.6 using /usr/bin/python2.6
1893-+ /usr/lib/rpm/redhat/brp-python-hardlink
1894-+ /usr/lib/rpm/redhat/brp-java-repack-jars
1895-Processing files: glusterfs-3.6.0.55-1.el6_6.x86_64
1896:error: File not found: /usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/etc/init.d/glusterd
1897-Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.2IhOu8
1898-+ umask 022
1899-+ cd /usr/src/redhat/BUILD
1900-+ cd glusterfs-3.6.0.55
1901-+ DOCDIR=/usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/usr/share/doc/glusterfs-3.6.0.55
Last 20 lines of Build Log:
Processing files: glusterfs-3.6.0.55-1.el6_6.x86_64
error: File not found: /usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/etc/init.d/glusterd
Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.2IhOu8
+ umask 022
+ cd /usr/src/redhat/BUILD
+ cd glusterfs-3.6.0.55
+ DOCDIR=/usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/usr/share/doc/glusterfs-3.6.0.55
+ export DOCDIR
+ rm -rf /usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/usr/share/doc/glusterfs-3.6.0.55
+ /bin/mkdir -p /usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/usr/share/doc/glusterfs-3.6.0.55
+ cp -pr ChangeLog COPYING-GPLV2 COPYING-LGPLV3 INSTALL README THANKS /usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/usr/share/doc/glusterfs-3.6.0.55
+ exit 0
RPM build errors:
user mockbuild does not exist - using root
group mockbuild does not exist - using root
user mockbuild does not exist - using root
group mockbuild does not exist - using root
File not found: /usr/src/redhat/BUILDROOT/glusterfs-3.6.0.55-1.el6_6.x86_64/etc/init.d/glusterd
===============
Differences in ./configure output saved to: glusterfs-3.6.0.55-1.el6_6.src.rpm-x86_64-autoconf.txt
end test at Mon Apr 25 06:09:49 EDT 2016 on x86-64-6s-6z-v1.ss.eng.bos.redhat.com

Version-Release number of selected component (if applicable):
glusterfs-3.6.0.55-1.el6_6.x86_64
RHEL 6.6
Errata - https://errata.devel.redhat.com/advisory/23041

How reproducible: Everytime


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Milind Changire 2016-04-27 18:25:36 UTC
Since the build being attempted is a CLIENT build, and the file for which the failures have been reported is part of a SERVER side RPM, I would request the QE to waive off this issue.

Ideally, the SERVER side RPMs should not get built at all when doing a CLIENT side build and the SPEC file is broken in this regard. This is a bigger issue.

However, if we need to build SERVER side RPMs in the future for RHS 3.0 for RHEL 6, then fixing the install of /etc/init.d/glusterd will need to be addressed by adding the following line to the %install section of the SPEC file:

%install
...
...
make -C extras/init.d install DESTDIR=%{buildroot}

-----

The extras/ directory is omitted from the normal make install target in the Makefiles.

Comment 3 Milind Changire 2016-05-03 04:57:12 UTC
NOT A BUG - since this is a client side build