tsuna-server / build-server-ansible

1 stars 0 forks source link

There are duplicate Availability Zone "nova". #109

Closed TsutomuNakamura closed 1 year ago

TsutomuNakamura commented 1 year ago

After running this Ansible, we will see duplicate zones "nova".

dev-controller01 # openstack availability zone list
+-----------+-------------+
| Zone Name | Zone Status |
+-----------+-------------+
| internal  | available   |
| nova      | available   |
| nova      | available   |
+-----------+-------------+
TsutomuNakamura commented 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

TsutomuNakamura commented 1 year ago

https://github.com/tsuna-server/build-server-ansible/blob/3615fe0a5f3624bca776b0fcc790dfe30dd8364e/roles/cinder/tasks/main.yml#L27-L37

TsutomuNakamura commented 1 year ago

https://github.com/tsuna-server/build-server-ansible/blob/3615fe0a5f3624bca776b0fcc790dfe30dd8364e/roles/cinder/tasks/main.yml#L35-L36

TsutomuNakamura commented 1 year ago

https://github.com/tsuna-server/build-server-ansible/blob/3615fe0a5f3624bca776b0fcc790dfe30dd8364e/roles/cinder/tasks/set_configuration/cinders/main.yml#L15-L24

TsutomuNakamura commented 1 year ago

The conditionals registering duplicate Nova region are ...

Either notify tgt or cinder-volume are not a cause of registering nova region. Just modifying /etc/cinder/cinder.conf cause registering nova region. (?)

TsutomuNakamura commented 1 year ago

nova region will be registered when the cinder-volume daemon was restarted.

TsutomuNakamura commented 1 year ago

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            |
+------------------+-------------------+------+---------+-------+----------------------------+---------+-----------------+---------------+