stackhpc / ansible-role-libvirt-host

This role configures a host as a Libvirt/KVM hypervisor. It can also configure storage pools and networks on the host.
36 stars 32 forks source link

can't create storage pool on debian buster #28

Open prisma01 opened 4 years ago

prisma01 commented 4 years ago

libvirt version on debian (buster) doe not seem to like <pool type='{{ item.type }}'> in the top of the pool template.

`failed: [XXX] (item={'name': 'lvm_pool', 'type': 'lvm2', 'source': 'root', 'target': '/dev/root', 'pvs': ['/dev/md0']}) => changed=false ansible_loop_var: item item: name: lvm_pool pvs:

when swapping for <pool type='logical'> like mentioned in libvirt documentation everything is fine. Funny enough libvirt documentation says <format type='logical'/> needs to go inside source part of the xml as well. However using lvm2 here does not result in complains/errors.

markgoddard commented 4 years ago

Looking at the docs (https://libvirt.org/storage.html#StorageBackendLogical) I would agree with you that the pool type should be logical, but that the format should be lvm2 (or omitted) rather than logical.

Is this something you can push a fix for?

prisma01 commented 4 years ago

30 works for me