[root@ip112 ~]# . admin.token
[root@ip112 ~]# openstack compute service list --service nova-compute +----+--------------+------------------------+------+---------+-------+----------------------------+ | ID | Binary | Host | Zone | Status | State | Updated At | +----+--------------+------------------------+------+---------+-------+----------------------------+ | 13 | nova-compute | ip112.csie.cyut.edu.tw | nova | enabled | up | 2018-05-24T14:28:49.000000 | +----+--------------+------------------------+------+---------+-------+----------------------------+
[root@ip112 ~]# su -s /bin/sh -c "nova-manage cell_v2 discover_hosts --verbose" nova /usr/lib/python2.7/site-packages/oslo_db/sqlalchemy/enginefacade.py:332: NotSupportedWarning: Configuration option(s) ['use_tpool'] not supported exception.NotSupportedWarning Found 2 cell mappings. Skipping cell0 since it does not contain hosts. Getting computes from cell 'cell1': 4b4e2923-ee89-4057-b7d1-473951f313c2 Checking host mapping for compute host 'ip112.csie.cyut.edu.tw': 9784a642-7c16-473b-91ed-95ee3d066021 Creating host mapping for compute host 'ip112.csie.cyut.edu.tw': 9784a642-7c16-473b-91ed-95ee3d066021 Found 1 unmapped computes in cell: 4b4e2923-ee89-4057-b7d1-473951f313c2
[root@ip112 ~]# egrep '^(\[scheduler|^discover)' /etc/nova/nova.conf [scheduler] discover_hosts_in_cells_interval = 300