You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ terraform apply
Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
+ create
Terraform will perform the following actions:
# libvirt_pool.base will be created
+ resource "libvirt_pool" "base" {
+ allocation = (known after apply)
+ available = (known after apply)
+ capacity = (known after apply)
+ id = (known after apply)
+ name = "base"
+ path = "/var/lib/libvirt/images"
+ type = "dir"
}
# libvirt_volume.alpine_iso will be created
+ resource "libvirt_volume" "alpine_iso" {
+ format = (known after apply)
+ id = (known after apply)
+ name = "alpine_disk.qcow2"
+ pool = "base"
+ size = (known after apply)
+ source = "https://dl-cdn.alpinelinux.org/alpine/v3.20/releases/x86_64/alpine-virt-3.20.3-x86_64.iso"
}
Plan: 2 to add, 0 to change, 0 to destroy.
Do you want to perform these actions?
Terraform will perform the actions described above.
Only 'yes' will be accepted to approve.
Enter a value: yes
libvirt_pool.base: Creating...
╷
│ Error: error creating libvirt storage pool: operation failed: Storage source conflict with pool: 'default'
│
│ with libvirt_pool.base,
│ on libvirt_pool.tf line 1, in resource "libvirt_pool" "base":
│ 1: resource "libvirt_pool" "base" {
│
╵
There are already .qcow2 files in the specified path for the storage pool:
$ ls /var/lib/libvirt/images
alpine_x86_64.qcow2 archlinux.qcow2 freebsd-x86.qcow2
Hi, I think there might be confusion about system and user libvirt sessions. It looks like from Terraform you are using system one but when you show XML for default storage pool, it looks like it might be user one.
System Information
Linux distribution
NAME="Arch Linux"
Terraform version
Description of Issue/Question
Setup
Steps to Reproduce Issue
There are already
.qcow2
files in the specified path for the storage pool:But the
default
pool has a different target path:So I don't understand the conflict here.
All other pools also do not have the specified path.
Additional information:
Do you have SELinux or Apparmor/Firewall enabled? Some special configuration?
The text was updated successfully, but these errors were encountered: