Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RHEL 7 - Sensu Enterprise service is not being managed correctly #655

Closed
dzeleski opened this issue May 22, 2017 · 1 comment
Closed

RHEL 7 - Sensu Enterprise service is not being managed correctly #655

dzeleski opened this issue May 22, 2017 · 1 comment

Comments

@dzeleski
Copy link
Contributor

dzeleski commented May 22, 2017

Hi,

On RHEL 7 (only OS tested thus far) when using sensu enterprise 2.5.3-1 if the service is stopped puppet will not attempt to restart it, if it is manually started it starts just fine, then on the following puppet run puppet attempts to start the service.

We set in hiera:

      enterprise: true
      manage_services: true
[root@plxlb-sensu03 USER]# service sensu-enterprise status
sensu-enterprise is not running
[root@plxlb-sensu03 USER]#
[root@plxlb-sensu03 USER]#
[root@plxlb-sensu03 USER]# puppet agent -t
Notice: Local environment: 'production' doesn't match server specified node environment 'lab', switching agent to 'lab'.
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for plxlb-sensu03.DOMAIN.lan
Info: Applying configuration version '1495462552'
Notice: Applied catalog in 54.28 seconds
[root@plxlb-sensu03 USER]#
[root@plxlb-sensu03 USER]#
[root@plxlb-sensu03 USER]# service sensu-enterprise status
sensu-enterprise is not running
[root@plxlb-sensu03 USER]# service sensu-enterprise start
sensu-enterprise started.
[root@plxlb-sensu03 USER]#
[root@plxlb-sensu03 USER]#
[root@plxlb-sensu03 USER]# puppet agent -t
Notice: Local environment: 'production' doesn't match server specified node environment 'lab', switching agent to 'lab'.
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for plxlb-sensu03.DOMAIN.lan
Info: Applying configuration version '1495462552'
Notice: /Stage[main]/Sensu::Enterprise::Service/Service[sensu-enterprise]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Sensu::Enterprise::Service/Service[sensu-enterprise]: Unscheduling refresh on Service[sensu-enterprise]
Notice: Applied catalog in 36.92 seconds
[root@plxlb-sensu03 USER]#
@dzeleski
Copy link
Contributor Author

This appears to have been an issue with systemd. Reloading the unit files and using systemctl to stop the services seems to have fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant