aodh-api status is dead in pike
I have installed aodh-api and other aodh services in ubuntu16 and installation is successful. please see the output below.
root@bhreddy-VirtualBox:~# ps -ef | grep aodh
aodh 604 1 0 21:27 ? 00:00:25 aodh-notifier: master process [/usr/bin/aodh-notifier --config-file=/etc/aodh/aodh.conf --log-file=/var/log/aodh/aodh-notifier.log]
aodh 605 1 0 21:27 ? 00:00:26 aodh-listener: master process [/usr/bin/aodh-listener --config-file=/etc/aodh/aodh.conf --log-file=/var/log/aodh/aodh-listener.log]
aodh 806 805 0 21:27 ? 00:00:00 (wsgi:aodh-api) -k start
aodh 807 805 0 21:27 ? 00:00:00 (wsgi:aodh-api) -k start
aodh 1025 604 0 21:27 ? 00:00:00 aodh-notifier: master process [/usr/bin/aodh-notifier --config-file=/etc/aodh/aodh.conf --log-file=/var/log/aodh/aodh-notifier.log]
aodh 1027 605 0 21:27 ? 00:00:00 aodh-listener: master process [/usr/bin/aodh-listener --config-file=/etc/aodh/aodh.conf --log-file=/var/log/aodh/aodh-listener.log]
aodh 26481 1 1 22:14 ? 00:00:02 aodh-evaluator: master process [/usr/bin/aodh-evaluator --config-file=/etc/aodh/aodh.conf --log-file=/var/log/aodh/aodh-evaluator.log]
aodh 26502 26481 0 22:14 ? 00:00:00 aodh-evaluator: AlarmEvaluationService worker(0)
root 28146 1887 0 22:17 pts/0 00:00:00 grep --color=auto aodh
root@bhreddy-VirtualBox:~#
When I check the status for aodh-evaluator, showing as active (running)
root@bhreddy-VirtualBox:~# service aodh-evaluator status
● aodh-evaluator.service - OpenStack Aodh Evaluator
Loaded: loaded (/lib/systemd/system/aodh-evaluator.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2017-12-15 22:14:46 IST; 5s ago
Process: 26480 ExecStartPre=/bin/chown aodh:adm /var/log/aodh (code=exited, status=0/SUCCESS)
Process: 26479 ExecStartPre=/bin/chown aodh:aodh /var/lock/aodh /var/lib/aodh (code=exited, status=0/SUCCESS)
Process: 26478 ExecStartPre=/bin/mkdir -p /var/lock/aodh /var/log/aodh /var/lib/aodh (code=exited, status=0/SUCCESS)
Main PID: 26481 (aodh-evaluator:)
Tasks: 5 (limit: 4915)
CGroup: /system.slice/aodh-evaluator.service
├─26481 aodh-evaluator: master process [/usr/bin/aodh-evaluator --config-file=/etc/aodh/aodh.conf --log-file=/var/log/aodh/aodh-evalua
└─26502 aodh-evaluator: AlarmEvaluationService worker(0)
Dec 15 22:14:46 bhreddy-VirtualBox systemd[1]: Stopped OpenStack Aodh Evaluator.
Dec 15 22:14:46 bhreddy-VirtualBox systemd[1]: Starting OpenStack Aodh Evaluator...
Dec 15 22:14:46 bhreddy-VirtualBox systemd[1]: Started OpenStack Aodh Evaluator.
lines 1-15/15 (END)
but aodh-api status is dead.
root@bhreddy-VirtualBox:~# service aodh-api status
● aodh-api.service - OpenStack Aodh API
Loaded: loaded (/lib/systemd/system/aodh-api.service; disabled; vendor preset: enabled)
Active: inactive (dead)
please help me to overcome this issue.
In my experience, there is no aodh-api service. Instead, it usually runs as a WSGI process under a web server such as Apache.
In your case, aodh-api is running. Can you access the API? If yes, there is no problem. If no, check the Apache and aodh-api logs.