読者です 読者をやめる 読者になる 読者になる

NTNX>日記

個人的な趣味による Nutanix Community Edition 日記。Japanese のみですみません。

Nutanix CE で OpenStack。Part6: 不要サービスを登録削除してみる。

OpenStack

Nutanix の OVM を使用すると、Horizon Dashboard での「システム情報」には、デフォルトで登録されているサービス情報があります。必要なサービスは再起動時にまた登録されるので、不要そうなものはいったん削除してみます。

Horizon Dashboard「システム情報」の様子

デフォルトでは、「ovm」と「localhost.localdomain」というホストのサービスが登録されています。また、ovmctl でのセットアップの都合により不要なサービスが追加登録されます。

Compute Service

f:id:gowatana:20160424122516p:plain

Block Storage Service

f:id:gowatana:20160424122606p:plain

Network Service

f:id:gowatana:20160424122735p:plain

Orchestration Service

f:id:gowatana:20160424122749p:plain

「ハイパーバイザー」→「コンピュートホスト」の画面でも、ホスト(Acropolis Driver の OVM)が 3つ表示されます。

f:id:gowatana:20160424131836p:plain

ちなみに今回の OVM は、こんな感じでセットアップしたものです。

サービス情報の削除 

ためしに、削除してみます。

最初に、環境変数を読み込みます。

[root@ovm02 ~]# source keystonerc_admin
[root@ovm02 ~(keystone_admin)]#

Compute Service(Nova)

Nova 関連のサービスを削除します。現状はこうなっています。

[root@ovm02 ~(keystone_admin)]# nova service-list
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host                  | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-consoleauth | ovm                   | internal | enabled | down  | 2016-02-11T15:41:56.000000 | -               |
| 2  | nova-scheduler   | ovm                   | internal | enabled | down  | 2016-02-11T15:41:59.000000 | -               |
| 3  | nova-conductor   | ovm                   | internal | enabled | down  | 2016-02-11T15:42:01.000000 | -               |
| 5  | nova-cert        | ovm                   | internal | enabled | down  | 2016-02-11T15:42:07.000000 | -               |
| 6  | nova-conductor   | localhost.localdomain | internal | enabled | down  | 2016-02-05T02:03:36.000000 | -               |
| 7  | nova-consoleauth | localhost.localdomain | internal | enabled | down  | 2016-02-05T02:03:36.000000 | -               |
| 8  | nova-scheduler   | localhost.localdomain | internal | enabled | down  | 2016-02-05T02:03:36.000000 | -               |
| 9  | nova-cert        | localhost.localdomain | internal | enabled | down  | 2016-02-05T02:15:46.000000 | -               |
| 10 | nova-compute     | ovm                   | nova     | enabled | down  | 2016-02-11T15:42:04.000000 | -               |
| 11 | nova-consoleauth | ovm02                 | internal | enabled | up    | 2016-04-18T23:46:06.000000 | -               |
| 12 | nova-scheduler   | ovm02                 | internal | enabled | up    | 2016-04-18T23:46:06.000000 | -               |
| 13 | nova-conductor   | ovm02                 | internal | enabled | up    | 2016-04-18T23:46:06.000000 | -               |
| 14 | nova-compute     | ovm02                 | nova     | enabled | down  | 2016-04-17T15:38:43.000000 | -               |
| 15 | nova-cert        | ovm02                 | internal | enabled | up    | 2016-04-18T23:46:06.000000 | -               |
| 16 | nova-conductor   | ovm01                 | internal | enabled | down  | 2016-04-17T17:07:03.000000 | -               |
| 17 | nova-scheduler   | ovm01                 | internal | enabled | down  | 2016-04-17T17:07:04.000000 | -               |
| 18 | nova-consoleauth | ovm01                 | internal | enabled | down  | 2016-04-17T17:07:04.000000 | -               |
| 19 | nova-cert        | ovm01                 | internal | enabled | down  | 2016-04-17T17:07:04.000000 | -               |
| 20 | nova-compute     | ovm01                 | nova     | enabled | up    | 2016-04-18T23:46:02.000000 | -               |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+

これを削除します。

[root@ovm02 ~(keystone_admin)]# nova service-list | grep -v up
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host                  | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+
| 1  | nova-consoleauth | ovm                   | internal | enabled | down  | 2016-02-11T15:41:56.000000 | -               |
| 2  | nova-scheduler   | ovm                   | internal | enabled | down  | 2016-02-11T15:41:59.000000 | -               |
| 3  | nova-conductor   | ovm                   | internal | enabled | down  | 2016-02-11T15:42:01.000000 | -               |
| 5  | nova-cert        | ovm                   | internal | enabled | down  | 2016-02-11T15:42:07.000000 | -               |
| 6  | nova-conductor   | localhost.localdomain | internal | enabled | down  | 2016-02-05T02:03:36.000000 | -               |
| 7  | nova-consoleauth | localhost.localdomain | internal | enabled | down  | 2016-02-05T02:03:36.000000 | -               |
| 8  | nova-scheduler   | localhost.localdomain | internal | enabled | down  | 2016-02-05T02:03:36.000000 | -               |
| 9  | nova-cert        | localhost.localdomain | internal | enabled | down  | 2016-02-05T02:15:46.000000 | -               |
| 10 | nova-compute     | ovm                   | nova     | enabled | down  | 2016-02-11T15:42:04.000000 | -               |
| 14 | nova-compute     | ovm02                 | nova     | enabled | down  | 2016-04-17T15:38:43.000000 | -               |
| 16 | nova-conductor   | ovm01                 | internal | enabled | down  | 2016-04-17T17:07:03.000000 | -               |
| 17 | nova-scheduler   | ovm01                 | internal | enabled | down  | 2016-04-17T17:07:04.000000 | -               |
| 18 | nova-consoleauth | ovm01                 | internal | enabled | down  | 2016-04-17T17:07:04.000000 | -               |
| 19 | nova-cert        | ovm01                 | internal | enabled | down  | 2016-04-17T17:07:04.000000 | -               |
+----+------------------+-----------------------+----------+---------+-------+----------------------------+-----------------+

削除しました。

[root@ovm02 ~(keystone_admin)]# nova service-delete 1
[root@ovm02 ~(keystone_admin)]# nova service-delete 2
[root@ovm02 ~(keystone_admin)]# nova service-delete 3
[root@ovm02 ~(keystone_admin)]# nova service-delete 5
[root@ovm02 ~(keystone_admin)]# nova service-delete 6
[root@ovm02 ~(keystone_admin)]# nova service-delete 7
[root@ovm02 ~(keystone_admin)]# nova service-delete 8
[root@ovm02 ~(keystone_admin)]# nova service-delete 9
[root@ovm02 ~(keystone_admin)]# nova service-delete 10
[root@ovm02 ~(keystone_admin)]# nova service-delete 14
[root@ovm02 ~(keystone_admin)]# nova service-delete 16
[root@ovm02 ~(keystone_admin)]# nova service-delete 17
[root@ovm02 ~(keystone_admin)]# nova service-delete 18
[root@ovm02 ~(keystone_admin)]# nova service-delete 19

削除されました。

[root@ovm02 ~(keystone_admin)]# nova service-list
+----+------------------+-------+----------+---------+-------+----------------------------+-----------------+
| Id | Binary           | Host  | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----+------------------+-------+----------+---------+-------+----------------------------+-----------------+
| 11 | nova-consoleauth | ovm02 | internal | enabled | up    | 2016-04-18T23:49:46.000000 | -               |
| 12 | nova-scheduler   | ovm02 | internal | enabled | up    | 2016-04-18T23:49:46.000000 | -               |
| 13 | nova-conductor   | ovm02 | internal | enabled | up    | 2016-04-18T23:49:46.000000 | -               |
| 15 | nova-cert        | ovm02 | internal | enabled | up    | 2016-04-18T23:49:46.000000 | -               |
| 20 | nova-compute     | ovm01 | nova     | enabled | up    | 2016-04-18T23:49:42.000000 | -               |
+----+------------------+-------+----------+---------+-------+----------------------------+-----------------+

Block Storage Service(Cinder)

現状の Cinder のサービスは、こうなっています。

[root@ovm02 ~(keystone_admin)]# cinder service-list
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
|      Binary      |            Host           | Zone |  Status | State |         Updated_at         | Disabled Reason |
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+
|  cinder-backup   |   localhost.localdomain   | nova | enabled |  down | 2016-02-05T02:15:50.000000 |        -        |
|  cinder-backup   |            ovm            | nova | enabled |  down | 2016-02-11T15:42:08.000000 |        -        |
|  cinder-backup   |           ovm02           | nova | enabled |   up  | 2016-04-18T23:51:25.000000 |        -        |
| cinder-scheduler |   localhost.localdomain   | nova | enabled |  down | 2016-02-05T02:15:50.000000 |        -        |
| cinder-scheduler |            ovm            | nova | enabled |  down | 2016-02-11T15:41:01.000000 |        -        |
| cinder-scheduler |           ovm02           | nova | enabled |   up  | 2016-04-18T23:51:26.000000 |        -        |
|  cinder-volume   | localhost.localdomain@lvm | nova | enabled |  down | 2016-02-05T02:15:50.000000 |        -        |
|  cinder-volume   |  ovm01@nutanix_openstack  | nova | enabled |   up  | 2016-04-18T23:51:27.000000 |        -        |
|  cinder-volume   |  ovm02@nutanix_openstack  | nova | enabled |  down | 2016-04-17T15:47:28.000000 |        -        |
|  cinder-volume   |          ovm@lvm          | nova | enabled |  down | 2016-02-05T01:57:48.000000 |        -        |
|  cinder-volume   |   ovm@nutanix_openstack   | nova | enabled |  down | 2016-02-11T15:42:07.000000 |        -        |
+------------------+---------------------------+------+---------+-------+----------------------------+-----------------+

Cinder の DB へ接続。

[root@ovm02 ~(keystone_admin)]# mysql -u root -D cinder
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 53
Server version: 5.5.40-MariaDB-wsrep MariaDB Server, wsrep_25.11.r4026

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [cinder]>

このあたりを削除します。

MariaDB [cinder]> select id,topic,host,deleted from services
    -> where topic in ('cinder-volume')
    -> and host not like 'ovm01%';
+----+---------------+---------------------------+---------+
| id | topic         | host                      | deleted |
+----+---------------+---------------------------+---------+
|  3 | cinder-volume | ovm@lvm                   |       0 |
|  4 | cinder-volume | localhost.localdomain@lvm |       0 |
|  7 | cinder-volume | ovm@nutanix_openstack     |       0 |
| 10 | cinder-volume | ovm02@nutanix_openstack   |       0 |
+----+---------------+---------------------------+---------+
4 rows in set (0.00 sec)

MariaDB [cinder]> select id,topic,host,deleted from services
    -> where topic in ('cinder-scheduler', 'cinder-backup')
    -> and host not like 'ovm02%';
+----+------------------+-----------------------+---------+
| id | topic            | host                  | deleted |
+----+------------------+-----------------------+---------+
|  1 | cinder-backup    | ovm                   |       0 |
|  2 | cinder-scheduler | ovm                   |       0 |
|  5 | cinder-scheduler | localhost.localdomain |       0 |
|  6 | cinder-backup    | localhost.localdomain |       0 |
+----+------------------+-----------------------+---------+
4 rows in set (0.00 sec)

MariaDB [cinder]>

削除フラグを立てました。

MariaDB [cinder]> update services set deleted = 1
    -> where topic in ('cinder-volume')
    -> and host not like 'ovm01%';
Query OK, 4 rows affected (0.00 sec)
Rows matched: 4  Changed: 4  Warnings: 0

MariaDB [cinder]> update services set deleted = 1
    -> where topic in ('cinder-scheduler', 'cinder-backup')
    -> and host not like 'ovm02%';
Query OK, 4 rows affected (0.00 sec)
Rows matched: 4  Changed: 4  Warnings: 0

MariaDB [cinder]>

こんな感じになりました。

MariaDB [cinder]> select id,topic,host,deleted from services;
+----+------------------+---------------------------+---------+
| id | topic            | host                      | deleted |
+----+------------------+---------------------------+---------+
|  1 | cinder-backup    | ovm                       |       1 |
|  2 | cinder-scheduler | ovm                       |       1 |
|  3 | cinder-volume    | ovm@lvm                   |       1 |
|  4 | cinder-volume    | localhost.localdomain@lvm |       1 |
|  5 | cinder-scheduler | localhost.localdomain     |       1 |
|  6 | cinder-backup    | localhost.localdomain     |       1 |
|  7 | cinder-volume    | ovm@nutanix_openstack     |       1 |
|  8 | cinder-scheduler | ovm02                     |       0 |
|  9 | cinder-backup    | ovm02                     |       0 |
| 10 | cinder-volume    | ovm02@nutanix_openstack   |       1 |
| 11 | cinder-volume    | ovm01@nutanix_openstack   |       0 |
+----+------------------+---------------------------+---------+
11 rows in set (0.00 sec)

MariaDB [cinder]> exit
Bye
[root@ovm02 ~(keystone_admin)]#

cinder service-list でも同様になります。

[root@ovm02 ~(keystone_admin)]# cinder service-list
+------------------+-------------------------+------+---------+-------+----------------------------+-----------------+
|      Binary      |           Host          | Zone |  Status | State |         Updated_at         | Disabled Reason |
+------------------+-------------------------+------+---------+-------+----------------------------+-----------------+
|  cinder-backup   |          ovm02          | nova | enabled |   up  | 2016-04-18T23:58:35.000000 |        -        |
| cinder-scheduler |          ovm02          | nova | enabled |   up  | 2016-04-18T23:58:36.000000 |        -        |
|  cinder-volume   | ovm01@nutanix_openstack | nova | enabled |   up  | 2016-04-18T23:58:37.000000 |        -        |
+------------------+-------------------------+------+---------+-------+----------------------------+-----------------+

Network Service(Neutron)

Neutron の Agnnt はいったんすべて削除してしまいます。

[root@ovm02 ~(keystone_admin)]# neutron agent-list
+--------------------------------------+----------------+-------+-------+----------------+------------------------+
| id                                   | agent_type     | host  | alive | admin_state_up | binary                 |
+--------------------------------------+----------------+-------+-------+----------------+------------------------+
| 00a47c71-1552-4734-917f-37ec78d16bc7 | Metadata agent | ovm01 | xxx   | True           | neutron-metadata-agent |
| 09f193d2-ecca-4dc8-bcc8-bb8201504f56 | DHCP agent     | ovm   | xxx   | True           | neutron-dhcp-agent     |
| 55347b2e-70d1-463a-8524-dee57d08c065 | Metadata agent | ovm02 | xxx   | True           | neutron-metadata-agent |
| 7662e47f-3962-41da-804a-f9dc8ed2ae07 | DHCP agent     | ovm01 | xxx   | True           | neutron-dhcp-agent     |
| 7dfc9780-7b2c-4f12-94c5-e7b4c1003d79 | DHCP agent     | ovm02 | xxx   | True           | neutron-dhcp-agent     |
| 8bf35a59-db0b-4b28-9f8f-9bdddf4f7bfe | Metadata agent | ovm   | xxx   | True           | neutron-metadata-agent |
+--------------------------------------+----------------+-------+-------+----------------+------------------------+

削除。

[root@ovm02 ~(keystone_admin)]# neutron agent-delete 00a47c71-1552-4734-917f-37ec78d16bc7
Deleted agent: 00a47c71-1552-4734-917f-37ec78d16bc7
[root@ovm02 ~(keystone_admin)]# neutron agent-delete 09f193d2-ecca-4dc8-bcc8-bb8201504f56
Deleted agent: 09f193d2-ecca-4dc8-bcc8-bb8201504f56
[root@ovm02 ~(keystone_admin)]# neutron agent-delete 55347b2e-70d1-463a-8524-dee57d08c065
Deleted agent: 55347b2e-70d1-463a-8524-dee57d08c065
[root@ovm02 ~(keystone_admin)]# neutron agent-delete 7662e47f-3962-41da-804a-f9dc8ed2ae07
Deleted agent: 7662e47f-3962-41da-804a-f9dc8ed2ae07
[root@ovm02 ~(keystone_admin)]# neutron agent-delete 7dfc9780-7b2c-4f12-94c5-e7b4c1003d79
Deleted agent: 7dfc9780-7b2c-4f12-94c5-e7b4c1003d79
[root@ovm02 ~(keystone_admin)]# neutron agent-delete 8bf35a59-db0b-4b28-9f8f-9bdddf4f7bfe
Deleted agent: 8bf35a59-db0b-4b28-9f8f-9bdddf4f7bfe

消えました。

[root@ovm02 ~(keystone_admin)]# neutron agent-list

[root@ovm02 ~(keystone_admin)]#

Orchestration Service(Heat)

Heat のサービスも削除してみます。

[root@ovm02 ~(keystone_admin)]# mysql -u root -D heat
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 61
Server version: 5.5.40-MariaDB-wsrep MariaDB Server, wsrep_25.11.r4026

Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [heat]>

こうなっています。

MariaDB [heat]> select id,hostname from service;
+--------------------------------------+-----------------------+
| id                                   | hostname              |
+--------------------------------------+-----------------------+
| 0075ac06-7bd6-4b97-b048-ec6735a3377c | none                  |
| 04605634-0e51-4d6f-8d4d-f482168d6527 | ovm02                 |
| 0664598d-a530-4fcd-b3d1-3988efbd0a3d | ovm                   |
| 09649a0c-02a0-416b-bd56-f5ae21b6dac3 | ovm                   |
| 09831275-3be5-4373-9f31-bf07850cd07c | ovm                   |
| 0f6331f5-7fdd-4adf-b4e7-1dd9fc1dc06f | none                  |
| 133f3842-83f4-48d7-8bc6-e639629f310c | none                  |
| 14afd862-73ee-4078-9ffc-5a1d51eaeb73 | localhost.localdomain |
| 14dc8229-88de-4bb9-a94f-007e084d99f4 | none                  |
| 15a8d3bb-d78e-447b-bee6-dfe0d2f092dd | localhost.localdomain |
| 16b340cd-787c-47e3-9243-c741be8a0394 | none                  |
| 16b7446c-4dec-45c6-a64a-381e460b8c2f | none                  |
| 1e279d6a-e780-4f7c-80fa-628ce6d1ac66 | ovm                   |
| 1f8a38d8-5cf5-4370-9f53-25baf5a066e2 | localhost.localdomain |
| 21306956-54af-4c74-8302-c3c878c5ed22 | none                  |
| 23afe2b7-1db1-4964-8c21-445292ebf771 | ovm                   |
| 25b15e42-237c-47ea-939b-9e1a2406b139 | ovm                   |
| 27d3d56a-7a66-4f63-ac7d-c5e4066a3eb8 | ovm                   |
| 288f3d76-390a-4a78-9598-c643f9d5876b | localhost.localdomain |
| 28956852-f824-409f-a369-145846482b80 | ovm                   |
| 29982c09-c935-4d7e-bd1e-0e07676da06d | ovm                   |
| 2a2f829b-a42a-4a2b-8185-f105ed5e17a6 | localhost.localdomain |
| 3023d66a-6162-46ad-8130-ed38df2fa206 | localhost.localdomain |
| 341a6131-4cd0-43a0-bfc9-986da39a4536 | none                  |
| 34dc7620-b609-49db-b79e-3f120f1e2808 | localhost.localdomain |
| 372c5318-3945-4a1f-aae1-e46a088eb24e | ovm                   |
| 3a7a3abf-d68b-4f0b-af63-d517123bb736 | none                  |
| 42eab082-266a-4ebe-bb2e-89d14dba3907 | none                  |
| 4a5c1691-24e8-4c5b-a222-8452ab0cc662 | none                  |
| 4bfb320a-1208-40c3-b73b-57cd2456bdab | localhost.localdomain |
| 51b682b3-27ce-42d9-b893-d2734cd94746 | ovm02                 |
| 51b9750e-c012-43a9-ad80-d3c581249f82 | none                  |
| 53f3ae5f-89a4-4d7f-9834-e0a894b0883d | localhost.localdomain |
| 598f994b-7fe1-43d9-b39b-e335a96bda7a | ovm                   |
| 5bce1ac4-05e9-4001-ab43-fd43866c3d2d | ovm                   |
| 5c4fc94c-a76f-422a-8f26-0da54d61ee3e | ovm                   |
| 64e0b322-2905-42f6-a2a6-6a252232d6de | ovm                   |
| 6642a1df-ced3-49df-b2bb-3dd50404efac | none                  |
| 6ee7c3f5-4af5-466b-9cd0-6bd35470bd61 | localhost.localdomain |
| 70e83198-8e99-4d4a-b11e-1746e6f0c37b | ovm                   |
| 73a00921-346e-4ae4-9694-3aed5e2dcfc7 | localhost.localdomain |
| 74bee7e0-b2c6-441c-bc68-0b81f404e64a | ovm                   |
| 75f3f133-d4a9-41e7-94fa-fd5bf542a5a9 | none                  |
| 76210ef5-7835-4caf-aee5-ff2aa53279ea | ovm                   |
| 7aca22e8-ab53-4e7d-88bc-8429469bb0e6 | none                  |
| 7db03489-098d-42a3-ae98-3efd5cd009e5 | none                  |
| 824c1708-f68b-4617-a92e-799a653e1269 | localhost.localdomain |
| 8377fb12-047c-4ccd-924e-24b811771366 | ovm                   |
| 841406fa-e48f-457e-a9ed-ca82b17c67f1 | ovm                   |
| 84a7a252-e1f8-4e29-ac90-4539b5ebc234 | none                  |
| 8577d67e-2611-4c04-9e08-a694f834fe3f | ovm                   |
| 89416768-4734-4a1a-835b-8a0df14b2494 | none                  |
| 8cfc72ee-8554-4e44-b4fd-e70732901c2e | ovm                   |
| 8f263df6-2a04-4bd6-be0c-67efd798dfe7 | none                  |
| 908950bf-5d20-4f60-9585-c0eb7486eac4 | ovm                   |
| 947f5333-1e0d-42af-9417-62c29549d3d3 | none                  |
| 97dcb4d3-b555-4293-96e3-8f651e6d309e | localhost.localdomain |
| 99f612d4-d0ed-468a-bc7f-71af4f25114e | localhost.localdomain |
| 9a791d4a-9337-4b17-a4a0-ba22537783d8 | none                  |
| 9ccf98ab-4778-423d-b1cd-309a8705bfb2 | localhost.localdomain |
| 9f887765-543c-462d-a14d-f7fb43d0a865 | ovm                   |
| a07e19f0-8f50-4cdb-a687-e62f2f9b4371 | none                  |
| a21f8000-8b78-4701-a959-d6626fc64c5a | ovm                   |
| a81d4cad-2b0d-4f91-89b5-d5e2cf38baed | ovm                   |
| af17bf7b-e47f-4678-a708-348dfa030731 | localhost.localdomain |
| b3290c25-26d7-4332-af72-4b45580b3a2d | ovm                   |
| b391e489-78d2-464e-8a37-943b94da7ed3 | localhost.localdomain |
| b53a7418-f37a-4614-a109-70ea1ff0ef26 | localhost.localdomain |
| b6031cba-4ee2-4db8-9551-99b488651942 | ovm                   |
| b787822e-0fb7-490b-a935-d02ddfbdf8f1 | localhost.localdomain |
| b78cc20b-768e-49c4-a8eb-159ea66dd37a | ovm                   |
| b81ba7bf-c85a-4169-9a70-df1e08f933b8 | none                  |
| bb54dbc0-2bbd-4ccf-9350-26ac3faefbc3 | ovm                   |
| bdaaf7ae-2ccb-43fb-a3f3-7d67ae680548 | none                  |
| c078ef00-d669-474d-a0b8-f71712ab7ce4 | ovm                   |
| c12d81e4-84ad-44b8-ad2e-80f529cd91a0 | localhost.localdomain |
| cc0219f2-f3e9-4c43-b7c8-63ca4f6564b4 | localhost.localdomain |
| cc984ac7-9fbc-44fc-b72f-be1e7c35b72b | localhost.localdomain |
| d05a981e-4926-4154-bd3d-0449b0d5aa96 | localhost.localdomain |
| d0951c4b-a4b6-4b80-9be0-1cec86bafff3 | ovm                   |
| d10e13a3-706b-4ed6-9369-fca24ff7c13b | localhost.localdomain |
| d18ebb56-1a33-4ca3-9d01-b15320f3f4a1 | ovm02                 |
| d2bf0ec5-a44c-44c5-b89e-82b6a41fd52e | ovm                   |
| d388bf74-4858-44a5-a888-a63b9736361d | localhost.localdomain |
| d531ed7e-56af-4101-b94b-e86483ccdb2d | localhost.localdomain |
| d83aa77f-38d7-4f79-ba65-85f79a836c0a | ovm                   |
| d8997309-b8c1-4fe1-8db5-9c58069cf88b | none                  |
| dbd8c3ed-51e8-4269-93c5-41ed831ed871 | localhost.localdomain |
| dcac0319-bd1e-4866-ade6-78237490e7ec | none                  |
| dcd15742-52af-4a24-831a-a7d68c4204c6 | none                  |
| e05bac67-8c0e-4799-9d03-8ba17fd9bc4e | none                  |
| e25a069b-a0e8-44a3-af0c-c38d286d798d | none                  |
| eaceac7a-186a-471e-924a-6bbc735ebdb8 | none                  |
| f187b609-bf74-4042-8e56-704a910bd511 | none                  |
| f189b9b3-b20a-4f0f-8150-0734c571f5f8 | localhost.localdomain |
| f2674a21-b3f4-40dc-89ae-70738675c5d5 | ovm                   |
| f2e46687-942a-4495-a829-84d47bf044ba | ovm                   |
| f33d3f4f-c540-4acb-a4b7-78413b7010fe | ovm                   |
| f4378c60-f4d3-4ced-acac-3508133c87d2 | none                  |
| f78e2596-54fb-4036-86a8-ae4e1cce37c8 | none                  |
| fff558f6-2549-4632-b0c7-88f99b4b79cd | ovm02                 |
+--------------------------------------+-----------------------+
101 rows in set (0.00 sec)

MariaDB [heat]>

ovm02 以外のホストのものは削除してしまいました。

MariaDB [heat]> delete from service where host != 'ovm02';
Query OK, 97 rows affected (0.00 sec)

MariaDB [heat]> select id,hostname from service;
+--------------------------------------+----------+
| id                                   | hostname |
+--------------------------------------+----------+
| 04605634-0e51-4d6f-8d4d-f482168d6527 | ovm02    |
| 51b682b3-27ce-42d9-b893-d2734cd94746 | ovm02    |
| d18ebb56-1a33-4ca3-9d01-b15320f3f4a1 | ovm02    |
| fff558f6-2549-4632-b0c7-88f99b4b79cd | ovm02    |
+--------------------------------------+----------+
4 rows in set (0.00 sec)

MariaDB [heat]> exit
Bye

こうなりました。

[root@ovm02 ~(keystone_admin)]# heat service-list
+----------+-------------+--------------------------------------+-------+--------+----------------------------+--------+
| hostname | binary      | engine_id                            | host  | topic  | updated_at                 | status |
+----------+-------------+--------------------------------------+-------+--------+----------------------------+--------+
| ovm02    | heat-engine | 62375b2c-f40d-42b3-8056-a3251608174b | ovm02 | engine | 2016-04-19T00:09:20.000000 | up     |
+----------+-------------+--------------------------------------+-------+--------+----------------------------+--------+

サービス情報削除後の Horizon Dashboard の様子

各サーバの役割が、わかりやすくなります。

Compute Service

f:id:gowatana:20160424124039p:plain

Block Storage Service

f:id:gowatana:20160424124055p:plain

Network Service

f:id:gowatana:20160424124111p:plain

Orchestration Service

f:id:gowatana:20160424124118p:plain

「ハイパーバイザー」→「コンピュートホスト」の画面は、Acropolis Driver ノードになる ovm01 だけ表示されるようになりました。

f:id:gowatana:20160424132238p:plain

以上。