terraform-provider-ovirt icon indicating copy to clipboard operation
terraform-provider-ovirt copied to clipboard

Resource `disk_from_image` fails to upload via imageio proxy.

Open jzandbergen opened this issue 1 year ago • 2 comments

Describe the bug

I am unable to upload an image to oVirt 4.5 using the disk_from_image resource. Although a upload from the browser works fine.

When examining the terraform logs I see that the provider is trying to connect to a oVirt node directly instead of the imageio service on the ovirt-engine. This fails since the node is not accessible directly.

I'm wondering i'm missing some configuration somewhere or that this might be expected behaviour...

To Reproduce

terraform {
  required_providers {
    ovirt = {
      source = "oVirt/ovirt"
      version = "2.1.5"
    }
  }
}

provider "ovirt" {
  url = var.ovirt_url
  username  = var.ovirt_username
  password  = var.ovirt_password
  tls_system = true
}

resource "ovirt_disk_from_image" "test" {
  storage_domain_id = var.storage_domain_id
  format           = cow
  alias               = DiskyMcDiskface
  sparse           = true
  source_file    = ./debian-12-genericcloud-amd64.qcow2
}

Expected behavior

Disk successfully created in storage domain.

Kind regards

jzandbergen avatar Jul 27 '23 09:07 jzandbergen