tsuna-server / build-server-ansible

1 stars 0 forks source link

Add a feature to set LVM filter for Cinder #89

Closed TsutomuNakamura closed 1 year ago

TsutomuNakamura commented 1 year ago

If Cinder used LVM as a volume, this Ansible should add its volume to a filter in /etc/kvm/kvm.conf on Cinder node. And if Computes also have LVM and it was used as OS disk, this Ansible should add its volume to a filter in /etc/kvm/kvm.conf on Cinder node. https://docs.openstack.org/cinder/yoga/install/cinder-storage-install-obs.html

The instruction is a little complex, then we have to consider any plans.

1. Use LVM only in Cinder node.

Use LVM only in Cinder nodes and Ansible add a filter only to them.

2. Use LVM in Cinder and Compute node.

Use LVM in Cinder and Compute nodes and Ansible add a filter only to them.

3. Do not use LVM

We consider another way to implement Cinder.

TsutomuNakamura commented 1 year ago

There are 2 places to create and set LVM filter currently.

https://github.com/tsuna-server/build-server-ansible/blob/42acc19c07de964dc6e4ac5e7015d53220ed6ae8/roles/nova/tasks/set_lvm/cinders/main.yml#L1-L18

https://github.com/tsuna-server/build-server-ansible/blob/42acc19c07de964dc6e4ac5e7015d53220ed6ae8/roles/cinder/tasks/set_lvm/main.yml#L1-L18

And this ansible assumes that there are no LVM devices on compute nodes. So the plan 1. Use LVM only in Cinder node. has been applied now.

TsutomuNakamura commented 1 year ago

This issue has been solved by applying a plan 1. Use LVM only in Cinder node.. We have to never use LVM as OS installed device at compute node.