Closed jebreuer closed 5 months ago
Yeah, same thing happend to me this morning. From what I understood the best solution is probably to put the service enablement which stackit_ske_project
provides into stackit_ske_cluster
and the project should never be deleted (the enduser is not billed if it exists so I don't see a problem with that)
This is at least a good temporary fix for users unless I am missing something.
Hello @jebreuer,
First of all, sorry for the inconvenience!
As discussed in #273, the stackit_ske_project
resource is just used for enabling the SKE for a STACKIT project, and as you also pointed in another issue we should and will move the enablement logic into the stackit_ske_cluster
resource directly (and deprecate stackit_ske_project
in a future release).
If you can't provide a fix in a timely manner please update the documentation accordingly. It is likely that people shred their prod systems so they deserve at least a proper heads up.
Hi all! Me again. :)
I experienced a data loss issue.
Please see the example tf file attached for a minimal example reproducing the issue: ske-bug.tf.txt
I define a SKE Project resource for each SKE Cluster. After
terraform apply
the result is as follows:Deleting the resources stackit_ske_cluster.ske-2 and stackit_ske_project.ske-project-2 causes an error after a couple of minutes:
And the resource stackit_ske_project.ske-1 gets deleted implicitly without consent:
Not only do I experience data loss the terraform state is also corrupt and needs manual cleanup (
terraform state rm ...
) for the remaining SKE related resources.Observation: The resource stackit_ske_project seems to be unique for every STACKIT project. Subsequent instances (here: stackit_ske_project.ske-project-2) seem to be referencing the exact same thing.
Expectation 1: If the observation is true then creating a second instance of stackit_ske_project should fail.
Expectation 2: Deleting a stackit_ske_project that still contains clusters should fail. The current behavior is an equivalent of
rm -Rf *
which can cause implicit and harmful data loss.Alternatively: Get rid of stackit_ske_project resource alltogether as it does not add any value at all (besides frustration), IMHO.