OpenNebula / terraform-provider-opennebula

Terraform provider for OpenNebula
https://www.terraform.io/docs/providers/opennebula/
Mozilla Public License 2.0
61 stars 53 forks source link

`opennebula_marketplace_appliance`: Tainted resource cannot be replaced #517

Closed anddyL closed 5 months ago

anddyL commented 5 months ago

Description

I created a maketplace app but I forget to define the original image, so it's failed:

│ Error: Failed to create the appliance
│
│   with opennebula_marketplace_appliance.example,
│   on main.tf line 38, in resource "opennebula_marketplace_appliance" "example":
│   38: resource "opennebula_marketplace_appliance" "example" {
│
│ OpenNebula error [INTERNAL]: [one.marketapp.allocate] Image does not exist.

After fixed, terraform failed because it wasn't able to replace the tainted resource:

╷
│ Error: Failed to create the appliance
│
│   with opennebula_marketplace_appliance.example,
│   on main.tf line 38, in resource "opennebula_marketplace_appliance" "example":
│   38: resource "opennebula_marketplace_appliance" "example" {
│
│ OpenNebula error [INTERNAL]: [one.marketapp.allocate] NAME is already taken by MARKETPLACEAPP 299

Terraform and Provider version

provider 1.4.0-rc2

Affected resources and data sources

opennebula_marketplace_appliance

Terraform configuration

No response

Expected behavior

tainted resource must be replaced

Actual behavior

tainted resource cannot be replaced

Steps to Reproduce

see description

Debug output

No response

Panic output

No response

Important factoids

No response

References

No response

frousselet commented 5 months ago

It might be due to a suppression delay on ONE side