dm-vdo / bunsen

Ansible suite to configure a set of machines to replicate the VDO Team's test environment.
GNU General Public License v2.0
0 stars 4 forks source link

Fix bunsen identification of machine as a kvm guest. #33

Closed jshimkus-rh closed 1 year ago

jshimkus-rh commented 1 year ago

The check that the machine's virtualization type is kvm is not sufficient. A machine can have a virtualization type of kvm but not be a guest, rather a host providing virtualization. In the case of nested virtualization the machine can be both.

This change uses relatively new ansible variables, if available, that disambiguate a machine's role as guest and/or host. If these new variables are not available the change makes the determination the machine is a guest by its role not being host.