Closed TsutomuNakamura closed 1 year ago
There are instructions to add zone nova
duplicated in import_playbook: cinders.yml
.
https://github.com/tsuna-server/build-server-ansible/blob/3615fe0a5f3624bca776b0fcc790dfe30dd8364e/site.yml#L1-L10
The conditionals registering duplicate Nova region are ...
Nova role in any group (Controllers?)
Configure /etc/cinder/cinder.conf on controller nodes. https://github.com/tsuna-server/build-server-ansible/blob/3615fe0a5f3624bca776b0fcc790dfe30dd8364e/roles/cinder/tasks/set_configuration/cinders/main.yml#L15-L24
Either notify tgt
or cinder-volume
are not a cause of registering nova region.
Just modifying /etc/cinder/cinder.conf cause registering nova region. (?)
nova region will be registered when the cinder-volume
daemon was restarted.
Duplicate availability zones are computes and volumes.
root@dev-controller01:/var/log# openstack availability zone list --compute --long
+-----------+-------------+---------------+------------------+----------------+----------------------------------------+
| Zone Name | Zone Status | Zone Resource | Host Name | Service Name | Service Status |
+-----------+-------------+---------------+------------------+----------------+----------------------------------------+
| internal | available | | dev-controller01 | nova-conductor | enabled :-) 2023-08-10T16:55:47.000000 |
| internal | available | | dev-controller01 | nova-scheduler | enabled :-) 2023-08-10T16:55:56.000000 |
| nova | available | | dev-compute02 | nova-compute | enabled :-) 2023-08-10T16:55:50.000000 |
| nova | available | | dev-compute01 | nova-compute | enabled :-) 2023-08-10T16:55:50.000000 |
+-----------+-------------+---------------+------------------+----------------+----------------------------------------+
root@dev-controller01:/var/log# openstack availability zone list --volume --long
+-----------+-------------+---------------+-----------+--------------+----------------+
| Zone Name | Zone Status | Zone Resource | Host Name | Service Name | Service Status |
+-----------+-------------+---------------+-----------+--------------+----------------+
| nova | available | | | | |
+-----------+-------------+---------------+-----------+--------------+----------------+
To check current cinder status.
root@dev-controller01:~# cinder service-list
+------------------+-------------------+------+---------+-------+----------------------------+---------+-----------------+---------------+
| Binary | Host | Zone | Status | State | Updated_at | Cluster | Disabled Reason | Backend State |
+------------------+-------------------+------+---------+-------+----------------------------+---------+-----------------+---------------+
| cinder-scheduler | dev-controller01 | nova | enabled | up | 2023-08-11T04:29:47.000000 | - | - | |
| cinder-volume | dev-cinder01@ceph | nova | enabled | up | 2023-08-11T04:29:51.000000 | - | - | up |
| cinder-volume | dev-cinder02@ceph | nova | enabled | up | 2023-08-11T04:29:56.000000 | - | - | up |
| cinder-volume | dev-cinder03@ceph | nova | enabled | up | 2023-08-11T04:29:52.000000 | - | - | up |
+------------------+-------------------+------+---------+-------+----------------------------+---------+-----------------+---------------+
After running this Ansible, we will see duplicate zones "nova".