Closed bastienwirtz closed 6 months ago
@nre-ableton I added a commit to validate the configuration using the consul user. Some config checks can involve the user context (like checking the max open file descriptor allowed, which can be set at the user level (ulimit)).
We should be good here too @nre-ableton
Hmm, something is weird with CI. I'm not sure that the merge commit went as intended...
If I have time this afternoon, I'll try to fix it and force-push to your branch. Can you please make sure that this PR has the option ticked to allow contributions from owners?
edits by maintainers
is enabled, that should be all good.
Ok, there are two issues that cause CI to fail:
Timeout when waiting for 127.0.0.1:8500
. I'm not sure if it was a good idea to remove the consul_debianinit.j2
file; we may need it around mostly for testing Docker containers.Job for consul.service failed because the service did not take the steps required by its unit configuration. See "systemctl status consul.service" and "journalctl -xe" for details.
. The fact that this error message mentions systemctl
indicates that the Docker container is trying to do systemd
stuff, which will fail since Docker containers don't support systemd. It should be noted that the Ubuntu molecule tests do correctly detect SysV init, so I'm not sure why this test is failing.@bastienwirtz Could you please rebase this branch and see if CI is still broken (hopefully that's not the case). It would be nice to dust off this PR and get it merged.
Bummer, looks like the CI problem is still there. I'll have a look into it today, if I have time.
@bastienwirtz I pushed some fixups to your branch in an (unsuccessful) attempt to fix CI. Feel free to drop them all and force-push.
This patch add an additional step to ensure the config is valid after creating it. It also add the validation at the systemd level, this makes possible to get an error exit code when you restart consul with a faulty configuration.
Related to https://github.com/ansible-community/ansible-consul/issues/518