If that gives you "was not built correctly", get the Git commit hash from your local provider repository:
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:
pi@pi2:~/myplatform/terraform $ go version
go version go1.15.15 linux/arm
pi@pi2:~/myplatform/terraform $ cat terraform_kvm_machines.tf
# Defining VM Volume
resource "libvirt_volume" "base" {
name = "base"
pool = "default" # List storage pools using virsh pool-list
source = "http://ix64-server/machines/focal-server-cloudimg-amd64.img"
format = "qcow2"
}
resource "libvirt_volume" "hal9003" {
name = "hal9003"
pool = "default" # List storage pools using virsh pool-list
base_volume_id = libvirt_volume.base.id
size = 10240000000
}
...
pi@pi2:~/myplatform/terraform $ terraform plan
╷
│ Error: Attribute must be a whole number, got 1.024e+10
│
│ with libvirt_volume.hal9003,
│ on terraform_kvm_machines.tf line 17, in resource "libvirt_volume" "hal9003":
│ 17: size = 10240000000
│
╵
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
Have you tried to reproduce the issue without them enabled?
System Information
Linux distribution
Terraform version
Provider and libvirt versions
If that gives you "was not built correctly", get the Git commit hash from your local provider repository:
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
Steps to Reproduce Issue
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration? Have you tried to reproduce the issue without them enabled?