Troubleshooting Calamari is sometimes very tricky. In this recipe, I have collected some recipes that will help you troubleshoot your Calamari environment.
# salt '*' test.ping
# salt '*' ceph.get_heartbeats output
# salt-minion -l debug
salt-minion
log file, that is, /var/log/salt
.minion
salt-key as well as the master public key and recreate both of them using the following commands:# rm -rf /etc/salt/pki/minion/minion_master.pub # systemctl stop salt-minion
Now, perform the following set of steps:
# salt-key -L # slat-key -D <minion name>
salt-minion
service:# systemctl start salt-minion
# salt-key -L # salt-key -A
# salt-minion -l
and make sure you do not get this error again.calamari-ctl initialize
command that will throw the could not connect to server: Connection refused error as follows:Then, perform the set of steps mentioned as follows:
# systemctl status postgres
# sudo -u postgres psql List postgres databases # l
calamari
; now you should invoke salt
to create a calamari
user and database in postgres:# salt-call --local state.template /opt/calamari/salt-local/postgres.sls
# calamari-ctl initialize
; it should work this time.calamari-ctl initialize
command line fails to throw the Updating already connected nodes. failed with rc=2 error, as seen in the following screenshot:/opt/calamari/venv/lib/python2.7/site-packages/calamari_cthulhu-0.1-py2.7.egg/cthulhu/calamari_ctl.py
file, and comment out line 255, which says update_connected_minions()
.18.220.139.168