Force nova/cinder to create iscsi LVM volume on same host as the instance
I have a multi node OpenStack Train setup. The instance images are created with a non-shared storage.
I would like to have the instance volume on the same host as the instace itself because if one host goes down then my iscsi volume for the vm will stop working. So is it possible to force cinder to create the volume on the same host as the vm?
If you use ephemeral storage instead of volumes, it will be on the compute node by default.
If you need your instances to use Cinder volumes as disks, install cinder-volume on the compute host and configure the InstanceLocalityFilter in the Cinder scheduler.
The InstanceLocalityFilter did not work for me. In horizon there is an option to disable the creation of a cinder volume but is there a way to disable the creation of a cinder volume by default in the nova configuration?
Not in Nova, but in Horizon.
That is a great solution. Thank you Bernd.