rackspace-cookbooks/rackspace_monitoring

Repeated systemctl restarts cause failure

Opened this issue · 0 comments

In testing the cookbook under Debian Jessie, I am getting a failure due to the repeated attempts to restart the agent service too quickly for systemd's liking.

Aug 27 19:20:07 default-debian-81 systemd[1]: rackspace-monitoring-agent.service start request repeated too quickly, refusing to start.
Aug 27 19:20:07 default-debian-81 systemd[1]: Failed to start rackspace-monitoring-agent.service.
Aug 27 19:20:07 default-debian-81 systemd[1]: Unit rackspace-monitoring-agent.service entered failed state.

This is triggered for me when the chef has converged up to recipe[rackspace_monitoring_check_test::load]. I think the way the rackspace_monitoring_check resource is calling the restart for the service, it's not delaying to the end of execution as would seem to be expected. I think the service resource identified within the rackspace_monitoring_check resource is a separate instance of the service for each instance of the resource.