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

Send SIGHUP to consul agent when new checks/services are detected #43

Closed
dannykansas opened this issue Oct 30, 2014 · 7 comments
Closed

Comments

@dannykansas
Copy link

Currently, when a new check or service is added, Consul does not load the check/service unless a "consul reload" is manually run on the node (or SIGHUP sent to the agent process).

Could we start a discussion on the appropriate times to trigger a reload of configuration files (i.e. new check added)?

@solarkennedy
Copy link
Contributor

@dannykansas
Copy link
Author

Interesting. The only relevant output I'm seeing after configuration change is as follows (Debian 7.6 nodes):

Notice: /Stage[main]/Consul::Run_service/Service[consul]/ensure: ensure changed 'stopped' to 'running'
Info: /Stage[main]/Consul::Run_service/Service[consul]: Unscheduling refresh on Service[consul]

Actually, this info appears with each puppet run, regardless of whether configuration changed or not. Possibly my implementation is wrong?

@solarkennedy
Copy link
Contributor

Yea, it sounds like puppet is continuously trying to start consul.

Is it:
A: Consul isn't actually starting at all? (bad config, etc).
Try to start consul yourself and check logs.
or
B: Puppet isn't detecting that consul is already running?
Confirm with a ps that consul is running before puppet runs.
Pastebin a puppet run with --debug and a full ps -ef

@solarkennedy
Copy link
Contributor

@dannykansas can you confirm if this is still an issue? Is consul even running like normal?

@dominikschulz
Copy link
Contributor

In https://github.com/solarkennedy/puppet-consul/blob/master/manifests/service.pp#L90 there is a Notify on Class[consul::run_service]. Shouldn`t that rather be a Notify on Service[consul]?

@solarkennedy
Copy link
Contributor

Notifying the entire class is ok, it should in-turn notify any resources inside, including Service[consul]

@aj-jester
Copy link

Fixed #152

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

4 participants