stackhpc / ansible-role-libvirt-vm

This role configures and creates VMs on a KVM hypervisor.
128 stars 67 forks source link

Support for network disks #35

Closed goetzk closed 4 years ago

goetzk commented 4 years ago

Hi, I've been trying to massage in support for network filesystems - like ceph - as backing stock for instances.

https://github.com/goetzk/ansible-role-libvirt-vm/commit/69364760c7166757f2b87850d584049e0d2755f5

The problem I'm having with a minimal change addition is that the volume creation calls virt-volume.sh to do the volume creation - a step which isn't needed on a network disk.

Do you have a preferred way of circumventing this problem? Karl.

markgoddard commented 4 years ago

Hi Karl, I left a comment on your commit.

markgoddard commented 4 years ago

It will also need to skip that script when state=absent.