Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to change template ID of clusterV1 resource #9

Closed
jan-di opened this issue Sep 5, 2023 · 2 comments
Closed

Not able to change template ID of clusterV1 resource #9

jan-di opened this issue Sep 5, 2023 · 2 comments

Comments

@jan-di
Copy link
Collaborator

jan-di commented Sep 5, 2023

Due to the way Upjet creates parameters for resources, attributes with Terraform's ForceNew flag are not handled as immutable fields. See crossplane/upjet#78 for more Info.

Expected:

  1. Change cluster template ID
  2. -> Cluster gets recreated, as the underlaying Terraform provider has the ForceNew flag set

Actual Behaviour:

  1. Change cluster template ID
  2. -> Sync does not complete:
Message:               observe failed: cannot run plan: plan failed: Instance cannot be destroyed: Resource openstack_containerinfra_cluster_v1.mycluster has lifecycle.prevent_destroy set, but the plan calls for this resource to be destroyed. To avoid this error and continue with the plan, either disable lifecycle.prevent_destroy or reduce the scope of the plan using the -target flag.
@jan-di
Copy link
Collaborator Author

jan-di commented Sep 12, 2023

Support for upgrading clusters to a new cluster templated has been implemented in the Terraform provider (has yet to be released). Upgrading to this provider may solve the issue.

terraform-provider-openstack/terraform-provider-openstack#1598

@schlakob schlakob mentioned this issue Oct 27, 2023
2 tasks
@jan-di
Copy link
Collaborator Author

jan-di commented Oct 27, 2023

Solved by #22

@jan-di jan-di closed this as completed Oct 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant