Bug 1169004

Summary: RPM building of glusterfs-3.6.1-3.fc22 src RPM on el5 is failing
Product: [Community] GlusterFS Reporter: Lalatendu Mohanty <lmohanty>
Component: buildAssignee: Lalatendu Mohanty <lmohanty>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: 3.6.1CC: bugs, ndevos, rabhat
Target Milestone: ---Keywords: Patch, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-v3.6.2 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1169005 (view as bug list) Environment:
Last Closed: 2016-02-04 15:05:34 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:
Embargoed:
Bug Depends On: 1169005    
Bug Blocks: 1163723    

Description Lalatendu Mohanty 2014-11-28 19:55:14 UTC
Description of problem:
Rebuilding glusterfs-3.6.1-3.fc22.src.rpm for el5 is failing with below error.

Installed (but unpackaged) file(s) found:
   /usr/share/glusterfs/scripts/generate-gfid-file.sh
   /usr/share/glusterfs/scripts/get-gfid.sh
   /usr/share/glusterfs/scripts/gsync-sync-gfid
   /usr/share/glusterfs/scripts/gsync-upgrade.sh
   /usr/share/glusterfs/scripts/slave-upgrade.sh
Child return code was: 1
EXCEPTION: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target ppc --nodeps  builddir/build/SPECS/glusterfs.spec']
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/mockbuild/trace_decorator.py", line 70, in trace
    result = func(*args, **kw)
  File "/usr/lib/python2.6/site-packages/mockbuild/util.py", line 378, in do
    raise mockbuild.exception.Error, ("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
Error: Command failed. See logs for output.
 # ['bash', '--login', '-c', 'rpmbuild -bb --target ppc --nodeps  builddir/build/SPECS/glusterfs.spec']
LEAVE do --> EXCEPTION RAISED


glusterfs-3.6.1-3.fc22.src.rpm  can be found below

http://koji.fedoraproject.org/koji/buildinfo?buildID=594572

Version-Release number of selected component (if applicable):
3.6.1-3.fc22.

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Niels de Vos 2014-12-01 08:25:10 UTC
Trivial backport needed:
- http://review.gluster.org/9221

Comment 2 Anand Avati 2014-12-07 14:39:05 UTC
REVIEW: http://review.gluster.org/9248 (build: only install geo-rep scripts when enabled) posted (#1) for review on release-3.6 by Niels de Vos (ndevos)

Comment 3 Anand Avati 2014-12-10 14:00:27 UTC
COMMIT: http://review.gluster.org/9248 committed in release-3.6 by Raghavendra Bhat (raghavendra) 
------
commit 54d2cbc033dadcd017376584b70af5849146ee4f
Author: Niels de Vos <ndevos>
Date:   Mon Dec 1 09:21:32 2014 +0100

    build: only install geo-rep scripts when enabled
    
    When geo-replication is not enabled, the related scripts should not get
    installed. EPEL-5 does not support geo-replication, and the installed
    but unpackaged scripts cause rebuilding for .el5 to fail.
    
    Cherry picked from commit fcdac758ad7b3dda9843f92597a15e4a30a3b746:
    > BUG: 1169005
    > Change-Id: I1b6a352b73bd1ed1c5b330f54e26e81aed9a5a4e
    > Reported-by: Lalatendu Mohanty <lmohanty>
    > Signed-off-by: Niels de Vos <ndevos>
    > Reviewed-on: http://review.gluster.org/9221
    > Reviewed-by: Humble Devassy Chirammal <humble.devassy>
    > Tested-by: Gluster Build System <jenkins.com>
    
    Change-Id: I1b6a352b73bd1ed1c5b330f54e26e81aed9a5a4e
    BUG: 1169004
    Signed-off-by: Niels de Vos <ndevos>
    Reviewed-on: http://review.gluster.org/9248
    Tested-by: Gluster Build System <jenkins.com>
    Reviewed-by: Humble Devassy Chirammal <humble.devassy>
    Reviewed-by: Raghavendra Bhat <raghavendra>
    Tested-by: Raghavendra Bhat <raghavendra>

Comment 4 Lalatendu Mohanty 2014-12-19 14:48:15 UTC
We need to backport http://review.gluster.org/#/c/9272/ too. Hence moving back to assigned state.

Comment 5 Kaushal 2016-02-04 15:05:34 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-v3.6.2, please open a new bug report.

glusterfs-v3.6.2 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://thread.gmane.org/gmane.comp.file-systems.gluster.devel/5978top
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user

Comment 6 Kaushal 2016-02-04 15:08:06 UTC
This bug is getting closed because a release has been made available that should address the reported issue. In case the problem is still not fixed with glusterfs-v3.6.2, please open a new bug report.

glusterfs-v3.6.2 has been announced on the Gluster mailinglists [1], packages for several distributions should become available in the near future. Keep an eye on the Gluster Users mailinglist [2] and the update infrastructure for your distribution.

[1] http://blog.gluster.org/2015/01/glusterfs-3-6-2-ga-released/
[2] http://thread.gmane.org/gmane.comp.file-systems.gluster.user