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 {
required_providers {
cloudtower={
version ="~> 0.1.9"
source ="registry.terraform.io/smartxworks/cloudtower"
}
}
}
locals {
GB=1024* local.MBMB=1024* local.KBKB=1024
}
provider"cloudtower" {
username=var.cloudtower_userpassword=var.cloudtower_passworduser_source=var.cloudtower_user_sourcecloudtower_server=var.cloudtower_server
}
data"cloudtower_cluster""cluster" {
name="XXX"
}
data"cloudtower_vlan""vm_vlan" {
name="default"type="VM"cluster_id=data.cloudtower_cluster.cluster.clusters[0].id
}
resource"cloudtower_vm""foo" {
name="foo"vcpu=4cpu_cores=1cpu_sockets=4memory=8* local.GBha=truefirmware="BIOS"status="STOPPED"# clone to vm template need vm's status is `STOPPED`guest_os_type="LINUX"cluster_id=data.cloudtower_cluster.cluster.clusters[0].iddisk {
boot=1bus="VIRTIO"vm_volume {
storage_policy="REPLICA_2_THIN_PROVISION"name="foo-1"size=40* local.GB
}
}
cd_rom {
boot=2iso_id=""
}
nic {
vlan_id=data.cloudtower_vlan.vm_vlan.vlans[0].id
}
}
resource"cloudtower_content_library_vm_template""foo-template-from-vm" {
name="foo-template-from-vm"cluster_id=["${data.cloudtower_cluster.cluster.clusters[0].id}"]
cloud_init_supported=falsesrc_vm_id=cloudtower_vm.foo.id
}
Debug Output
Panic Output
cloudtower_content_library_vm_template.foo-template-from-vm: Creating...
╷
│Error:Provider produced inconsistent result after apply
│
│ When applying changes to cloudtower_content_library_vm_template.foo-template-from-vm, provider
│ "provider[\"registry.terraform.io/smartxworks/cloudtower\"]" produced an unexpected new value: Root object was
│ present, but now absent.
│
│ This is a bug in the provider, which should be reported in the provider's own issue tracker.
╵
Expected Behavior
Provider should return success result.
Actual Behavior
Provider created content_library_vm_template successfully but produced an unexpected new value.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered:
Xiritianming
added a commit
to Xiritianming/terraform-provider-cloudtower
that referenced
this issue
Sep 5, 2024
Terraform Version
Terraform v1.9.5
on darwin_arm64
Provider Version
0.1.9
Affected Resource(s)
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
Provider should return success result.
Actual Behavior
Provider created content_library_vm_template successfully but produced an unexpected new value.
Steps to Reproduce
terraform apply
The text was updated successfully, but these errors were encountered: