Bug 1356868

Summary: File not found errors during rpmbuild: /var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py{c,o}
Product: [Community] GlusterFS Reporter: Aravinda VK <avishwan>
Component: packagingAssignee: Aravinda VK <avishwan>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: mainlineCC: bugs
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: glusterfs-3.9.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-27 18:14:27 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:

Description Aravinda VK 2016-07-15 07:41:21 UTC
Description of problem:

RPM build errors:
    File not found: /builddir/build/BUILDROOT/glusterfs-3.9dev-0.262.git203f952.el7.centos.x86_64/var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyc
    File not found: /builddir/build/BUILDROOT/glusterfs-3.9dev-0.262.git203f952.el7.centos.x86_64/var/lib/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyo

Comment 1 Aravinda VK 2016-07-15 07:44:11 UTC
S57glusterfind-delete-post.py* is packaged in $LIBEXEC/glusterfs/glusterfind directory, symlink created to /var/lib/glusterd/hooks directory

ln -s $(libexecdir)/glusterfs/glusterfind/S57glusterfind-delete-post.py \
		$(DESTDIR)$(GLUSTERD_WORKDIR)/hooks/1/delete/post/S57glusterfind-delete-post.py

".py" should be removed from symlink target so that build system will not try to compile the symlink files and generate .pyc/.pyo files.

Comment 2 Vijay Bellur 2016-07-15 07:59:19 UTC
REVIEW: http://review.gluster.org/14928 (packaging: Remove ".py" extension from symlink target) posted (#1) for review on master by Aravinda VK (avishwan)

Comment 3 Vijay Bellur 2016-07-15 13:41:19 UTC
COMMIT: http://review.gluster.org/14928 committed in master by Jeff Darcy (jdarcy) 
------
commit db4f4f1500372ee9f5a1c8faff5081d2a95652e3
Author: Aravinda VK <avishwan>
Date:   Fri Jul 15 13:15:21 2016 +0530

    packaging: Remove ".py" extension from symlink target
    
    S57glusterfind-delete-post.py* is packaged in
    $LIBEXEC/glusterfs/glusterfind directory, symlink created to
    /var/lib/glusterd/hooks directory
    
    ln -s $(libexecdir)/glusterfs/glusterfind/S57glusterfind-delete-post.py \
    $(DESTDIR)$(GLUSTERD_WORKDIR)/hooks/1/delete/post/S57glusterfind-delete-post.py
    
    ".py" should be removed from symlink target so that build system will
    not try to compile the symlink files and generate .pyc/.pyo files.
    
    BUG: 1356868
    Change-Id: I9155378aa72eb8559ba8af76d91a4985f69f38f9
    Signed-off-by: Aravinda VK <avishwan>
    Reviewed-on: http://review.gluster.org/14928
    Smoke: Gluster Build System <jenkins.org>
    Reviewed-by: Kotresh HR <khiremat>
    NetBSD-regression: NetBSD Build System <jenkins.org>
    CentOS-regression: Gluster Build System <jenkins.org>
    Reviewed-by: Kaleb KEITHLEY <kkeithle>

Comment 4 Shyamsundar 2017-03-27 18:14:27 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-3.9.0, please open a new bug report.

glusterfs-3.9.0 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://lists.gluster.org/pipermail/gluster-users/2016-November/029281.html
[2] https://www.gluster.org/pipermail/gluster-users/