kubevirt / terraform-provider-kubevirt

Terraform provider for Kubevirt platform
Apache License 2.0
27 stars 10 forks source link

though the VM is created the success state is false #51

Closed nihargoli closed 10 months ago

nihargoli commented 1 year ago

I deployed following vm on my kubernetes cluster:

terraform { required_providers { kubevirt = { source = "kubevirt/kubevirt" version = "0.0.1" } } }

provider "kubevirt" {

Configure the KubeVirt provider settings here (e.g., kubeconfig)

}

resource "kubernetes_manifest" "virtualmachine_testvm" { manifest = { "apiVersion" = "kubevirt.io/v1" "kind" = "VirtualMachine" "metadata" = { "name" = "testvm" "namespace" = "raghav-ns1" } "spec" = { "running" = true "template" = { "metadata" = { "labels" = { "kubevirt.io/domain" = "testvm" "kubevirt.io/size" = "small" } } "spec" = { "domain" = { "devices" = { "disks" = [ { "disk" = { "bus" = "virtio" } "name" = "containerdisk" }, { "disk" = { "bus" = "virtio" } "name" = "cloudinitdisk" }, ] "interfaces" = [ { "masquerade" = {} "name" = "default" }, ] } "resources" = { "requests" = { "memory" = "64M" } } } "resources" = { "requests" = { "memory" = "64M" } } } "networks" = [ { "name" = "default" "pod" = {} }, ] "volumes" = [ { "containerDisk" = { "image" = "quay.io/kubevirt/cirros-container-disk-demo" } "name" = "containerdisk" }, { "cloudInitNoCloud" = { "userDataBase64" = "SGkuXG4=" } "name" = "cloudinitdisk" }, ] } } } } }

kubernetes_manifest.virtualmachine_testvm: Creating... ╷ │ Error: Provider produced inconsistent result after apply │ │ When applying changes to kubernetes_manifest.virtualmachine_testvm, provider "provider[\"registry.terraform.io/hashicorp/kubernetes\"]" produced an unexpected new value: .object: wrong final value type: │ incorrect object attributes. │ │ This is a bug in the provider, which should be reported in the provider's own issue tracker.

kubevirt-bot commented 1 year ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale. Stale issues rot after an additional 30d of inactivity and eventually close.

If this issue is safe to close now please do so with /close.

/lifecycle stale

kubevirt-bot commented 11 months ago

Stale issues rot after 30d of inactivity. Mark the issue as fresh with /remove-lifecycle rotten. Rotten issues close after an additional 30d of inactivity.

If this issue is safe to close now please do so with /close.

/lifecycle rotten

kubevirt-bot commented 10 months ago

Rotten issues close after 30d of inactivity. Reopen the issue with /reopen. Mark the issue as fresh with /remove-lifecycle rotten.

/close

kubevirt-bot commented 10 months ago

@kubevirt-bot: Closing this issue.

In response to [this](https://github.com/kubevirt/terraform-provider-kubevirt/issues/51#issuecomment-1799686805): >Rotten issues close after 30d of inactivity. >Reopen the issue with `/reopen`. >Mark the issue as fresh with `/remove-lifecycle rotten`. > >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.