本手順は、以下の条件で実施してください。
手順実施サイト : 災対サイト
手順実施サーバ : メイン作業用コントロールノード
手順実施ユーザー : インフラ管理者
手順実施回数 : 1回
以下の手順に従い、コンピュートノードをセルに追加します。
以下のコマンドを実行し、nova_apiコンテナにログインします。
podman exec -it nova_api bash
以下のコマンドを実行し、コンピュートノードをセルに追加します。
nova-manage cell_v2 discover_hosts --by-service --verbose
例
# nova-manage cell_v2 discover_hosts --by-service --verbose Found 2 cell mappings. Skipping cell0 since it does not contain hosts. Getting computes from cell 'default': a7c8e84b-d4a6-4383-bead-ecbb41a7ea6a Creating host mapping for service <hostname-0> Creating host mapping for service <hostname-1> Found 2 unmapped computes in cell: a7c8e84b-d4a6-4383-bead-ecbb41a7ea6a
以下のコマンドを実行し、コンピュートノードがセルに追加されたことを確認します。
nova-manage cell_v2 list_hosts
例
# nova-manage cell_v2 list_hosts +-----------+--------------------------------------+--------------------------------------+ | Cell Name | Cell UUID | Hostname | +-----------+--------------------------------------+--------------------------------------+ | default | a7c8e84b-d4a6-4383-bead-ecbb41a7ea6a | <hostname-0> | | default | a7c8e84b-d4a6-4383-bead-ecbb41a7ea6a | <hostname-1> | +-----------+--------------------------------------+--------------------------------------+