terraform-provider-libvirt -version
./terraform-provider-libvirt 0.6.3+git.1604843676.67f4f2aa
Compiled against library: libvirt 6.0.0
Using library: libvirt 6.0.0
Running hypervisor: QEMU 4.2.1
Running against daemon: 6.0.0
Checklist
[ ] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
[ ] Make sure you explain why this option is important to you, why it should be important to everyone. Describe your use-case with detail and provide examples where possible.
[ ] If it is a very special case, consider using the XSLT support in the provider to tweak the definition instead of opening an issue
[ ] Maintainers do not have expertise in every libvirt setting, so please, describe the feature and how it is used. Link to the appropriate documentation
[x] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
Setup
(Please provide the full main.tf file for reproducing the issue (Be sure to remove sensitive information)
Apply the configuration above. In the end, my primary qcow2 drive appears as unbootable.
In the xml of the domain I see that it is configured with: <driver name='qemu' type='raw'/>. I expected to get <driver name='qemu' type='qcow2'/> as the file ends with .qcow2. I even enforced the type in the volume definition as you can see with format = "qcow2".
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Yes
Some special configuration? No
Have you tried to reproduce the issue without them enabled? No
I create this issue for reference and eventual discussion. I have tested a fix that seems to work and will propose it as a PR in a few minutes.
System Information
Linux distribution
Ubuntu 20.04.1 LTS
Terraform version
Provider and libvirt versions
Checklist
[ ] Is your issue/contribution related with enabling some setting/option exposed by libvirt that the plugin does not yet support, or requires changing/extending the provider terraform schema?
[x] Is it a bug or something that does not work as expected? Please make sure you fill the version information below:
Description of Issue/Question
Setup
(Please provide the full main.tf file for reproducing the issue (Be sure to remove sensitive information)
Steps to Reproduce Issue
Apply the configuration above. In the end, my primary qcow2 drive appears as unbootable. In the xml of the domain I see that it is configured with:
<driver name='qemu' type='raw'/>
. I expected to get<driver name='qemu' type='qcow2'/>
as the file ends with.qcow2
. I even enforced the type in the volume definition as you can see withformat = "qcow2"
.Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Yes Some special configuration? No Have you tried to reproduce the issue without them enabled? No
I create this issue for reference and eventual discussion. I have tested a fix that seems to work and will propose it as a PR in a few minutes.