Bug 1384756 - [Eventing]: glustereventsd daemon to be enabled by default IF glusterfs-events rpm is installed
Summary: [Eventing]: glustereventsd daemon to be enabled by default IF glusterfs-event...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Gluster Storage
Classification: Red Hat Storage
Component: glusterfs
Version: rhgs-3.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: ---
Assignee: Aravinda VK
QA Contact: storage-qa-internal@redhat.com
URL:
Whiteboard: eventing, USM-integration
Depends On:
Blocks: 1395590
TreeView+ depends on / blocked
 
Reported: 2016-10-14 05:00 UTC by Sweta Anandpara
Modified: 2018-11-23 03:45 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1395590 (view as bug list)
Environment:
Last Closed: 2018-11-19 03:59:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Sweta Anandpara 2016-10-14 05:00:15 UTC
Description of problem:
=======================
There is already a BZ for making glusterfs-events package optional, as not all our users will be requiring it. IF there is a need for eventing feature, a user is going to explicitly download and install glusterfs-events. When that is done, there is no point of having an added-on step to explicitly enable glustereventsd service.

Like how glusterd service is enabled by default when we install glusterfs-server, it would ease out usability if glustereventsd is enabled by default when glusterfs-event package is installed. 


Version-Release number of selected component (if applicable):
=============================================================
3.8.4-2



How reproducible:
==================
Always


Steps to Reproduce:
====================
1. Have a 2/4 node cluster and install glusterfs-server, with glusterfs-events rpm
2. Check if glustereventsd is enabled and running.

Actual results:
==============
glustereventsd service is neither enabled nor running


Expected results:
================
glustereventsd service should be enabled and running


Additional Info:
================

Thanks Byreddy for pointing this out.

Comment 2 Atin Mukherjee 2016-10-14 05:44:19 UTC
IMHO, for any optional package we have to be strict on bringing up the service by default on installation. Aravinda - What's your thought?

Comment 3 Atin Mukherjee 2016-10-14 05:45:24 UTC
(In reply to Atin Mukherjee from comment #2)
> IMHO, for any optional package we have to be strict on bringing up the
> service by default on installation. Aravinda - What's your thought?

s/we have/we don't have to

Comment 4 Rahul Hinduja 2016-10-14 06:46:28 UTC
(In reply to Atin Mukherjee from comment #3)
> (In reply to Atin Mukherjee from comment #2)
> > IMHO, for any optional package we have to be strict on bringing up the
> > service by default on installation. Aravinda - What's your thought?
> 
> s/we have/we don't have to

IMO, we should restrict optional at package layer. Once the optional package is installed, it is good to start the daemon services inherit by the optional package

Comment 5 Atin Mukherjee 2016-10-14 07:40:28 UTC
(In reply to Rahul Hinduja from comment #4)
> (In reply to Atin Mukherjee from comment #3)
> > (In reply to Atin Mukherjee from comment #2)
> > > IMHO, for any optional package we have to be strict on bringing up the
> > > service by default on installation. Aravinda - What's your thought?
> > 
> > s/we have/we don't have to
> 
> IMO, we should restrict optional at package layer. Once the optional package
> is installed, it is good to start the daemon services inherit by the
> optional package

glusterfs-events will be a optional package. I guess Aravinda has already fixed that part. Coming to the other part of it, are you saying once the optional package is installed the service should be started by default (not manually)?

Comment 6 Byreddy 2016-10-14 08:24:50 UTC
Currently: 

If we are not enabling manually, glustereventsd won't start after node reboot.
so to start after every node reboot we have to enable it using systemctl enable glustereventsd 


Expected is: after installation of glusterfs-events, this should get enabled automatically similar to glusterd, for which  we won't enable manually any time ( update/upgrade/fresh install )


About service starting:
glustereventsd service  should not start default ( automatically ) after installation, user has to start it (for fresh installation ) OR restart it ( for update/upgrade )

Comment 7 Byreddy 2016-10-14 08:41:03 UTC
It showing "disabled" after installation of glusterfs-events pkg.

 ~]# systemctl is-enabled glustereventsd
disabled

Comment 8 Aravinda VK 2016-10-17 12:33:01 UTC
Fedora packaging guidelines says we should not enable services by default

"If a service should be enabled by default, make this the default in the init script. Doing otherwise will cause the service to be turned on on upgrades if the user explicitly disabled it. "

Ref: http://fedoraproject.org/wiki/EPEL:SysVInitScript#Why_don.27t_we....

Comment 9 Byreddy 2016-10-17 15:40:20 UTC
(In reply to Aravinda VK from comment #8)
> Fedora packaging guidelines says we should not enable services by default
> 
> "If a service should be enabled by default, make this the default in the
> init script. Doing otherwise will cause the service to be turned on on
> upgrades if the user explicitly disabled it. "
> 
> Ref: http://fedoraproject.org/wiki/EPEL:SysVInitScript#Why_don.27t_we....

glusterfs-server package enables the glusterd service while updating in the downstream and not in the upstream, we want to the same change for this events daemon in the downstream.

Let user take the action to disable it explicitly after update if user don't want to enable it.

Comment 10 Atin Mukherjee 2016-10-17 17:54:29 UTC
(In reply to Byreddy from comment #9)
> (In reply to Aravinda VK from comment #8)
> > Fedora packaging guidelines says we should not enable services by default
> > 
> > "If a service should be enabled by default, make this the default in the
> > init script. Doing otherwise will cause the service to be turned on on
> > upgrades if the user explicitly disabled it. "
> > 
> > Ref: http://fedoraproject.org/wiki/EPEL:SysVInitScript#Why_don.27t_we....
> 
> glusterfs-server package enables the glusterd service while updating in the
> downstream and not in the upstream, we want to the same change for this
> events daemon in the downstream.
> 
> Let user take the action to disable it explicitly after update if user don't
> want to enable it.

I am sorry but I don't understand this difference. Could you elaborate? And I disagree on the 2nd point.

Comment 11 Byreddy 2016-10-18 04:35:44 UTC
(In reply to Atin Mukherjee from comment #10)
> (In reply to Byreddy from comment #9)
> > (In reply to Aravinda VK from comment #8)
> > > Fedora packaging guidelines says we should not enable services by default
> > > 
> > > "If a service should be enabled by default, make this the default in the
> > > init script. Doing otherwise will cause the service to be turned on on
> > > upgrades if the user explicitly disabled it. "
> > > 
> > > Ref: http://fedoraproject.org/wiki/EPEL:SysVInitScript#Why_don.27t_we....
> > 
> > glusterfs-server package enables the glusterd service while updating in the
> > downstream and not in the upstream, we want to the same change for this
> > events daemon in the downstream.
> > 
> > Let user take the action to disable it explicitly after update if user don't
> > want to enable it.
> 
> I am sorry but I don't understand this difference. Could you elaborate? And
> I disagree on the 2nd point.


while installing upstream glusterfs-server package, it won't enable the glusterd by default, user has to enable it explicitly after installing and while installing downstream glusterfs-server package, it enables the glusterd by default.

We need carry the same behavior for glustereventsd as well.

Comment 12 Atin Mukherjee 2016-10-21 05:15:24 UTC
Aravinda, Byreddy - can we come to a conclusion on this, my take is not enable the service by default.

Comment 13 Byreddy 2016-10-21 05:45:22 UTC
(In reply to Atin Mukherjee from comment #12)
> Aravinda, Byreddy - can we come to a conclusion on this, my take is not
> enable the service by default.

From My side: we have to enable for glustereventsd in the downstream because we are enabling for glusterd in the down stream.

@Atin, Pls want to know why we are enabling for glusterd in the down stream, if any specific reason is there to enable ?

From my understanding, we are enabling glusterd service to start the service after every node reboot.

@Aravinda, Pls add your input here.

Comment 14 Atin Mukherjee 2016-10-25 07:45:15 UTC
@Byreddy - glusterd is a mandatory service for other daemons to be controlled. On a node reboot, if you end up not starting glusterd service automatically you'd not be able to bring up other daemons like brick process, shd, quota etc which would defeat the purpose. What I am failing to understand here is why are we comparing glustereventsd (optional package) with glusterd (mandatory)?

Comment 15 Byreddy 2016-10-25 08:45:59 UTC
glusterd and glustereventsd are independent daemon services which we can start/stop using systemctl BUT we can't start/stop bricks processes, shd, quota, etc using systemctl, which are controlled by glusterd.

Enabling the service should not depend on the package type (optional/mandatory) 

If end user want to use any optional package, what ever the service it will create, it should enable while installing.

Comment 20 Aravinda VK 2016-11-16 09:41:18 UTC
Upstream patch sent to fix the issue. http://review.gluster.org/#/c/15853

Comment 29 Aravinda VK 2018-11-19 03:59:04 UTC
Packaging guidelines suggest not to enable a service by default after installation. Closing this bug as this is the expected behavior. Please reopen if this is still a issue.


Note You need to log in before you can comment on or make changes to this bug.