Description of problem: Installation of glusterfs-geo-replication starts glusterd in %post. Version-Release number of selected component (if applicable): glusterfs-geo-replication-3.2.5-2.el6.x86_64 How reproducible: Always Steps to Reproduce: 1. Disable glusterd 2. Install glusterfs-geo-replication Actual results: glusterd running Expected results: glusterd not running Additional Notes: This prevents setting up a disk image via kickstart and appliance-tools because glusterd running in the chroot environment prevents the chroot from being unmounted.
The .spec contains %post geo-replication #restart glusterd. %{_sysconfdir}/init.d/glusterd restart &> /dev/null This should be replaced with if [ $1 -ge 1 ]; then /sbin/service glusterd condrestart &>/dev/null || : fi This will only restart glusterd on an update ($1 -ge 1) and only when it is running (condrestart).
*** Bug 826855 has been marked as a duplicate of this bug. ***
Review available at http://review.gluster.org/4063
Tested successfully like this: $ git clone http://review.gluster.org/p/glusterfs $ cd glusterfs $ git pull http://review.gluster.org/p/glusterfs refs/changes/63/4063/1 $ ./autogen.sh && ./configure --enable-fusermount && make dist && rpmbuild -ta glusterfs-3git.tar.gz Install the just build packages, but not glusterfs-geo-replication. Make sure to disable the glusterd service # service glusterd stop # chkconfig glusterd off Install the just built glusterfs-geo-replication. -> Confirm that glusterd is not running
CHANGE: http://review.gluster.org/4063 (build: do not unconditionally restart glusterd in glusterfs-geo-replication %post) merged in master by Anand Avati (avati)
Assigning to Vijay as the the change needs to be made in the glusterfs.spec in dist-git too. The current change is only in the glusterfs.spec.in which is fine for upstream.
*** Bug 889248 has been marked as a duplicate of this bug. ***
Verified with glusterfs-geo-replication-3.4.0.33rhs-1.el6rhs that it does not unconditionally start glusterd on install.