Bug 764011 (GLUSTER-2279)

Summary: rpm spec file changes
Product: [Community] GlusterFS Reporter: Lakshmipathi G <lakshmipathi>
Component: unclassifiedAssignee: Lakshmipathi G <lakshmipathi>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: low Docs Contact:
Priority: urgent    
Version: 3.1.3CC: amarts, gluster-bugs, joe, shwetha, vijay
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: RTP Mount Type: ---
Documentation: DP CRM:
Verified Versions: 3.3beta2, 3.2.4qa2 Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Creates and includes links to the /opt/usr/bin/gluster* binaries
none
Patch to correct ldconfig path addition.
none
Test Cases to verify the Bug none

Description Lakshmipathi G 2011-01-06 10:05:31 UTC
move gluster,glusterfs,glusterd,glusterfsd binaries to /opt/glusterfs/<version> and create symbolic link at /usr/sbin/ . rpm install should start glusterd if glusterd was already running.

Comment 1 Anand Avati 2011-02-22 14:35:05 UTC
PATCH: http://patches.gluster.com/patch/6239 in master (install gluster binaries under /opt/glusterfs/version with sym.link at /usr/bin)

Comment 2 Amar Tumballi 2011-03-03 03:37:01 UTC
We need to mention in documentation that with 3.1.3 release, the binaries will be placed in '/opt/glusterfs/<version>'

Comment 3 Joe Julian 2011-03-16 01:44:08 UTC
This patch breaks rpm upgrades from 3.1.(<3) as the remove process to remove the old files happens after postinstall. This causes the /usr/sbin/gluster* files to be removed.

1. rpm -i glusterfs-core-3.1.2-1.x86_64.rpm
2. rpm -Uvv glusterfs-core-3.1.3-1.x86_64.rpm
3. ls /usr/sbin/gluster*

expected result: 
/usr/sbin/gluster  /usr/sbin/glusterd  /usr/sbin/glusterfs  /usr/sbin/glusterfsd

actual result:
ls: /usr/sbin/gluster*: No such file or directory

Comment 4 Joe Julian 2011-03-16 03:54:49 UTC
Created attachment 453

Comment 5 Lakshmipathi G 2011-03-17 10:14:56 UTC
(In reply to comment #4)
> Created an attachment (id=453) [details]
> Creates and includes links to the /opt/usr/bin/gluster* binaries

thanks for the patch.We will apply it.

Comment 6 Vijay Bellur 2011-04-08 07:35:38 UTC
PATCH: http://patches.gluster.com/patch/6755 in release-3.1 (preserve symlink during rpm upgrade and remove gsync references)

Comment 7 Joe Julian 2011-04-08 15:53:49 UTC
Created attachment 475


The spec file also doesn't correctly create the library references for i386 installations, and doesn't correctly manage the ld.so.conf.d/glusterfs.conf file. This additional patch corrects that (thanks to Scott Zahn).

Comment 8 Joe Julian 2011-07-22 04:25:31 UTC
*** Bug 3218 has been marked as a duplicate of this bug. ***

Comment 9 Lakshmipathi G 2011-07-26 08:44:54 UTC
Thanks (In reply to comment #7)
> Created an attachment (id=475) [details]
> Patch to correct ldconfig path addition.
> 
> The spec file also doesn't correctly create the library references for i386
> installations, and doesn't correctly manage the ld.so.conf.d/glusterfs.conf
> file. This additional patch corrects that (thanks to Scott Zahn).

Added the ldconfig,these changes should be available in future releases.
Thanks JoeJulian,Scott Zahn.

Comment 10 Shwetha H Panduranga 2011-09-21 08:12:49 UTC
Created attachment 666

Comment 11 Shwetha H Panduranga 2011-09-21 08:19:51 UTC
Verified on the 3.3beta2 and 3.2.4qa2 (O.S: CentsOS). 

The ldconfig patch will be verified and bug will be updated by Lakshmipathi.

Comment 12 Anand Avati 2011-09-21 08:27:44 UTC
CHANGE: http://review.gluster.com/470 (Thanks to) merged in release-3.2 by Vijay Bellur (vijay)

Comment 13 Anand Avati 2011-09-21 08:28:08 UTC
CHANGE: http://review.gluster.com/466 (Thanks to) merged in master by Vijay Bellur (vijay)