#How do you reset a terraform provider?

1 messages · Page 1 of 1 (latest)

honest tree
#

I'm working with our new netapp-ontap provider and it crashed. I can't get it back to a known working state.

Is there a way to reset the plugin?

slow hearth
#

Can you show me what going on?

honest tree
#

sure

#

I've tried rolling back. deleting the .terraform direcrtory

#

here is what I'm trying to run right now:

resource "netapp-ontap_cluster_schedule_resource" "redshirt" {
  cx_profile_name = "redshirt"
  name            = "cs_test_cron"
  cron = {
    minutes  = [1, 2, 3, 4]
    hours    = [10]
    days     = [1, 2]
    months   = [6, 7]
    weekdays = [1, 3, 4]
  }
}
#

and here is what I'm getting when I run terraform plan:

ken@ubuntu:netapp-ontap$ terraform plan
netapp-ontap_cluster_licensing_license_resource.cluster_licensing_license: Refreshing state... [id=nfs]

Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

Terraform planned the following actions, but then encountered a problem:

  # netapp-ontap_cluster_schedule_resource.redshirt will be created
  + resource "netapp-ontap_cluster_schedule_resource" "redshirt" {
      + cron            = {
          + days     = [
              + 1,
              + 2,
            ]
          + hours    = [
              + 10,
            ]
          + minutes  = [
              + 1,
              + 2,
              + 3,
              + 4,
            ]
          + months   = [
              + 6,
              + 7,
            ]
          + weekdays = [
              + 1,
              + 3,
              + 4,
            ]
        }
      + cx_profile_name = "redshirt"
      + id              = (known after apply)
      + name            = "cs_test_cron"
    }

Plan: 1 to add, 0 to change, 0 to destroy.
#

sorry - ran into character limits.

#

I was working with NLF licenses when this first happened. Now I'm going back to what worked previously. However, I'm getting the same issue. It makes me think I need to reset something.

#

I've tried terraform init & terraform init -upgrade, then deleting the .terraform directory and re-running terraform init so far.

honest tree
#

I created a new directory, copied in my working files, and it is working. Something in the state must be coorupt in the other one