Verify OpenStack services and agents
TripleO is configured to restart OpenStack services after reboot of any nodes. Wait about a few minutes and verify that all services and agents are activated again as shown in the following command examples.
Log in to the director node and change to the stack user.su – stackSource the overcloudrc file to access the overcloud services.
source overcloudrcCheck whether all services are running.
openstack compute service listAn output example:
(overcloud) [stack@myhost ~]$ openstack compute service list +--------------------------------------+----------------+----------------------------------------+----------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +--------------------------------------+----------------+----------------------------------------+----------+---------+-------+----------------------------+ | 60628a5b-4aeb-4dd1-9320-7a5a23a7a6a1 | nova-conductor | overcloud-controller-0.localdomain | internal | enabled | up | 2022-05-20T09:04:40.000000 | | cdcc89e6-c73c-4bcf-a6b8-98bf7f8a5b9c | nova-scheduler | overcloud-controller-0.localdomain | internal | enabled | up | 2022-05-20T09:04:49.000000 | | eb073e4e-e593-499d-ac3e-0bf278f4071d | nova-compute | overcloud-computeovsdpdk-0.localdomain | nova | enabled | up | 2022-05-20T09:04:47.000000 | | 5c582b5c-a673-464b-a92d-eee134b8ccfc | nova-compute | overcloud-computeovsdpdk-1.localdomain | nova | enabled | up | 2022-05-20T09:04:47.000000 | +--------------------------------------+----------------+----------------------------------------+----------+---------+-------+----------------------------+ (overcloud) [stack@myhost ~]$Check all agents are running.
openstack network agent listAn output example:
(overcloud) [stack@myhost ~]$ openstack network agent list /usr/lib/python3.6/site-packages/openstack/resource.py:351: DeprecationWarning: inspect.getargspec() is deprecated since Python 3.0, use inspect.signature() or inspect.getfullargspec() len(inspect.getargspec(type_).args) > 1) +--------------------------------------+--------------------+----------------------------------------+-------------------+-------+-------+---------------------------+ | ID | Agent Type | Host | Availability Zone | Alive | State | Binary | +--------------------------------------+--------------------+----------------------------------------+-------------------+-------+-------+---------------------------+ | 09a25ff4-b0b0-4e4b-929f-5c9e139f9809 | Open vSwitch agent | overcloud-controller-0.localdomain | None | :-) | UP | neutron-openvswitch-agent | | 36903783-6613-4232-ac96-5963e58b7149 | Open vSwitch agent | overcloud-computeovsdpdk-0.localdomain | None | :-) | UP | neutron-openvswitch-agent | | 4dfdbac9-4d15-4dbe-9e58-a551a2971e72 | DHCP agent | overcloud-controller-0.localdomain | nova | :-) | UP | neutron-dhcp-agent | | b4b6dc48-f0e7-48a1-86e2-b6fa7ce41635 | Open vSwitch agent | overcloud-computeovsdpdk-1.localdomain | None | :-) | UP | neutron-openvswitch-agent | | f0455ee5-d486-4d1d-ba57-8b566194307e | L3 agent | overcloud-controller-0.localdomain | nova | :-) | UP | neutron-l3-agent | | f9687c87-fba5-49ea-ac66-965b948782f3 | Metadata agent | overcloud-controller-0.localdomain | None | :-) | UP | neutron-metadata-agent | +--------------------------------------+--------------------+----------------------------------------+-------------------+-------+-------+---------------------------+ (overcloud) [stack@myhost ~]$Check whether hypervisor is running
openstack hypervisor listAn output example:
(overcloud) [stack@myhost ~]$ openstack hypervisor list +--------------------------------------+----------------------------------------+-----------------+--------------+-------+ | ID | Hypervisor Hostname | Hypervisor Type | Host IP | State | +--------------------------------------+----------------------------------------+-----------------+--------------+-------+ | e643e0e2-dc3a-4104-b68e-2cbbe5f17da4 | overcloud-computeovsdpdk-0.localdomain | QEMU | 172.17.0.181 | up | | ccff7dd9-f816-4361-a9ca-f7d41062190b | overcloud-computeovsdpdk-1.localdomain | QEMU | 172.17.0.19 | up | +--------------------------------------+----------------------------------------+-----------------+--------------+-------+ (overcloud) [stack@myhost ~]$