-
Notifications
You must be signed in to change notification settings - Fork 118
Question about updating existing cluster vs creating new one in new vcn #182
Description
Terraform Version
Latest and greatest from dockerhub hashicorp/terraform
See https://github.com/jferr/oci_tf_kuber/blob/master/dockerfile
OCI Provider Version
2.0.7
Terraform Installer for Kubernetes Version
Latest and greatest. I've got my docker container which runs terraform cloning the repo at docker build time and "git pull -prune" and runtime to get the lastest master.
FYI...I'm not a contributor to the project/a "go" developer so looking at the code is not my preferred first option here. We are a paying customer of Oracle OCI.We are refreshing state w. each run (see https://github.com/jferr/oci_tf_kuber/blob/master/doit.sh).
If I manually delete all compute/load balancers/subnets/vcn's in my compartment then run terraform, it appears to still "see" these deleted entities. For example the screenshot below is partial output from a run immediately after a deletion. It is showing entities in the log which didn't exist in my compartment because I manually deleted them a few minutes before the run
I've been working w. oracle support on many related issues with limited success and with a very slow response time so I am moving here for now. Is this the correct avenue for such questions or is there a better place?
this issue above along w an issue where after a run, at certain times we end up w. an undelet-able subnet makes troubleshooting difficult.
A second question. What does this terraform provider use to determine whether to create a new VCN and create a new cluster or to update an existing cluster in an existing vcn in the compartment?
I'm seeing both things happen. Usually if I create the cluster then re-run terraform (this is done via docker so it's a brand new container doing a refresh of state) it is smart enough to see that it's an existing cluster which matches my desired variables...but sometimes it'll just create a new VCN and a new cluster.
Thanks in advance
