Failing at NOTIFIED: [handlers | reload consul] during ansible run.
See original GitHub issueansible 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:
- Created 7 years ago
- Comments:19 (7 by maintainers)
@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.
I’m going to close this, since it seems like your deployment worked! Please open two new issues about:
Thanks again for the debugging @distributorofpain 😁