question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failing at NOTIFIED: [handlers | reload consul] during ansible run.

See original GitHub issue

ansible 1.9.5 Python 2.7.5 Git: Master ( current ) Bare Metal ( technically vmware workstation, but will be going to bare metal ) Terraform v0.6.14 CentOS 7 1511 All VMs are brand new builds from the 1511 DVD with minimal. Ran ansible-playbook -i hosts playbooks/upgrade-packages.yml prior to run ( i did have to adjust my ansible hosts file a few times due to the bare metal install. Also added provider variable to mantl.yml file which was copied from the sample.yml ( per instructions ).

NOTIFIED: [handlers | reload consul] ****************************************** failed: [MASTER1] => {“changed”: true, “cmd”: [“systemctl”, “reload”, “consul”], “delta”: “0:00:00.045212”, “end”: “2016-04-05 02:13:58.736355”, “rc”: 1, “start”: “2016-04-05 02:13:58.691143”, “warnings”: []} stderr: Job for consul.service invalid. failed: [MASTER2] => {“changed”: true, “cmd”: [“systemctl”, “reload”, “consul”], “delta”: “0:00:00.040084”, “end”: “2016-04-05 02:13:58.737157”, “rc”: 1, “start”: “2016-04-05 02:13:58.697073”, “warnings”: []} stderr: Job for consul.service invalid. failed: [EDGE1] => {“changed”: true, “cmd”: [“systemctl”, “reload”, “consul”], “delta”: “0:00:00.026002”, “end”: “2016-04-05 02:13:58.784835”, “rc”: 1, “start”: “2016-04-05 02:13:58.758833”, “warnings”: []} stderr: Job for consul.service invalid.

Consul.Service

[Unit]
Description=Consul is a tool for service discovery and configuration.
Documentation=https://consul.io
After=network-online.target
Wants=network-online.target
After=rsyslog.service
Wants=rsyslog.service

[Service]
User=consul
Group=consul
EnvironmentFile=/etc/sysconfig/consul
ExecStart=/usr/bin/consul agent -config-dir=${CONFIG_DIR} -data-dir=${DATA_DIR} $EXTRA_OPTS
ExecReload=-/bin/kill -HUP $MAINPID
KillSignal=SIGINT
LimitNOFILE=65536
Restart=on-success
IgnoreSIGPIPE=yes

[Install]
WantedBy=multi-user.target

[errors_in_messages_log.txt]

Attached is the message log from server AGENT1 (https://github.com/CiscoCloud/mantl/files/203724/errors_in_messages_log.txt)

ansible hosts file

[role=control]
MASTER1 private_ipv4=192.168.1.51
MASTER2 private_ipv4=192.168.1.52
MASTER3 private_ipv4=192.168.1.53

[role=worker]
AGENT1 private_ipv4=192.168.1.61
AGENT2 private_ipv4=192.168.1.62
AGENT3 private_ipv4=192.168.1.63

[role=edge]
EDGE1 private_ipv4=192.168.1.56 public_ipv4=192.168.1.59

[dc=ORL]
MASTER1
MASTER2
MASTER3
AGENT1
AGENT2
AGENT3
EDGE1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
langston-barrettcommented, Apr 5, 2016

@distributorofpain Just wanted to make sure you saw the bare-metal docs. If you didn’t use terraform to create your VMs, then there is no need to use the dynamic inventory.

0reactions
langston-barrettcommented, Apr 6, 2016

I’m going to close this, since it seems like your deployment worked! Please open two new issues about:

  1. The log warnings
  2. The datacenter case issue

Thanks again for the debugging @distributorofpain 😁

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handler is skipped when notified from included role #37512
We solved our problem that we agreed at company level to have some util roles which are included by other roles and all...
Read more >
included handlers in playbook with roles - not firing
I'm using consul and consul-template to hold the config variables for the components. I push a change to a consul-template file and expect...
Read more >
Ansible: Handlers - 2020 - BogoToBogo
This Handler is the Task called when "Start Nginx" is notified. This particular Handler uses the Service module, which can start, stop, restart,...
Read more >
ERROR HANDLING IN ANSIBLE – DEVOPS DONE RIGHT
Here, we can see that one of the tasks in the block fails which leads to failure of the whole block resulting in...
Read more >
Ansible job failing frequently in GitLab-Provisioner project
From the looks of it, attempting to start pgbouncer is giving a timeout, which causes migrations to fail (because pgbouncer is not running,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found