以下のコマンドを実行し、確認対象のOpenStackサービスを確認します。
systemctl list-unit-files tripleo_*.service | awk '$2=="enabled"{print $1}'
以下のコマンドを実行します。NAMEには上記で確認したサービスを入れてください。
systemctl list-units --all NAME...
起動していることの確認
ACTIVEの列がactiveになっていることを確認します。表示されるサービスはインストールされているOpenStackのコンポーネントによって増減します。
例
# systemctl list-units --all tripleo_neutron_ovs_agent.service tripleo_nova_compute.service tripleo_nova_libvirt.service UNIT LOAD ACTIVE SUB DESCRIPTION tripleo_neutron_ovs_agent.service loaded active running neutron_ovs_agent container tripleo_nova_compute.service loaded active running nova_compute container tripleo_nova_libvirt.service loaded active running nova_libvirt container LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 3 loaded units listed. To show all installed unit files use 'systemctl list-unit-files'.
停止していることの確認
ACTIVEの列がinactiveになっていることを確認します。表示されるサービスはインストールされているOpenStackのコンポーネントによって増減します。
例
# systemctl list-units --all tripleo_neutron_ovs_agent.service tripleo_nova_compute.service tripleo_nova_libvirt.service UNIT LOAD ACTIVE SUB DESCRIPTION tripleo_neutron_ovs_agent.service loaded inactive dead neutron_ovs_agent container tripleo_nova_compute.service loaded inactive dead nova_compute container tripleo_nova_libvirt.service loaded inactive dead nova_libvirt container LOAD = Reflects whether the unit definition was properly loaded. ACTIVE = The high-level unit activation state, i.e. generalization of SUB. SUB = The low-level unit activation state, values depend on unit type. 3 loaded units listed. To show all installed unit files use 'systemctl list-unit-files'.
注意
ACTIVEの項目がfailedになることがありますが問題ない場合があります。 「D.5.3 ACTIVEの列がfailedになっている場合のサービスの停止確認」の確認を実施してください。