Comment 2 for bug 1839715

Revision history for this message
Tushar Patil (tpatil) wrote :

gnuoy,

Have you set 'host' config option in /etc/nova/nova-cpu.conf on the compute nodes?

On my compute node machine:

$hostname
compute_01.xyz

$openstack compute service list --service nova-compute
+----+--------------+--------------------+------+---------+-------+----------------------------+
| ID | Binary | Host | Zone | Status | State | Updated At |
+----+--------------+--------------------+------+---------+-------+----------------------------+
| 12 | nova-compute | compute_01.xyz | nova | enabled | up | 2019-11-12T08:09:55.000000 |
+----+--------------+--------------------+------+---------+-------+----------------------------+

$openstack hypervisor list

It returns empty list. I can see below error in n-api.log.

n-api.log
=================

Nov 12 08:11:09 open <email address hidden>[37310]: DEBUG nova.api.openstack.compute.hypervisors [None req-2257554a-735d-4e0e-a660-798d5203aed2 admin admin] Unable to find service for compute node compute_01.xyz. The service may be deleted and compute nodes need to be manually cleaned up. {{(pid=37312) _get_hypervisors /opt/stack/nova/nova/api/openstack/compute/hypervisors.py:187}}