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

ForceNew missing afer value is changed on object #23571

Closed
N1tan opened this issue Dec 5, 2019 · 2 comments
Closed

ForceNew missing afer value is changed on object #23571

N1tan opened this issue Dec 5, 2019 · 2 comments

Comments

@N1tan
Copy link

N1tan commented Dec 5, 2019

Terraform Version

Terraform v0.12.17

Terraform Configuration Files

resource "icinga2_host" "host" {
  hostname      = "terraformTEST1"
  address       = "10.10.10.1"
  check_command = "hostalive"
  templates     = ["bp-host-web"]
  groups        = ["${icinga2_hostgroup.hostgroup1.name}"]

  vars = {
    os        = "linux"
    osver     = "2"
    allowance = "none"
    #test = "${icinga2_hostgroup.hostgroup1.display_name}"
  }
}


resource "icinga2_hostgroup" "hostgroup1" {
  name         = "terraform-group-11"
  display_name = "Terraform_Test_HostGroup1"
}

Debug Output

2019/12/05 15:32:03 [INFO] Terraform version: 0.12.17  
2019/12/05 15:32:03 [INFO] Go runtime version: go1.12.13
2019/12/05 15:32:03 [INFO] CLI args: []string{"C:\\terraform\\terraform.exe", "apply"}
2019/12/05 15:32:03 [DEBUG] Attempting to open CLI config file: C:\Users\tomasz.pordzik\AppData\Roaming\terraform.rc
2019/12/05 15:32:03 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2019/12/05 15:32:03 [DEBUG] checking for credentials in "C:\\Users\\tomasz.pordzik\\AppData\\Roaming\\terraform.d\\plugins"
2019/12/05 15:32:03 [INFO] CLI command args: []string{"apply"}
2019/12/05 15:32:03 [TRACE] Meta.Backend: no config given or present on disk, so returning nil config
2019/12/05 15:32:03 [TRACE] Meta.Backend: backend has not previously been initialized in this working directory
2019/12/05 15:32:03 [DEBUG] New state was assigned lineage "0166d182-d5f8-f2db-9b95-7aaf772379fa"
2019/12/05 15:32:03 [TRACE] Meta.Backend: using default local state only (no backend configuration, and no existing initialized backend)
2019/12/05 15:32:03 [TRACE] Meta.Backend: instantiated backend of type <nil>
2019/12/05 15:32:03 [DEBUG] checking for provider in "."
2019/12/05 15:32:03 [DEBUG] checking for provider in "C:\\terraform"
2019/12/05 15:32:03 [DEBUG] checking for provider in ".terraform\\plugins\\windows_amd64"
2019/12/05 15:32:03 [DEBUG] checking for provider in "C:\\Users\\tomasz.pordzik\\AppData\\Roaming\\terraform.d\\plugins"
2019/12/05 15:32:03 [WARN] found legacy provider "terraform-provider-icinga2.exe"
2019/12/05 15:32:03 [DEBUG] found valid plugin: "icinga2", "0.0.0", "C:\\Users\\tomasz.pordzik\\AppData\\Roaming\\terraform.d\\plugins\\terraform-provider-icinga2.exe"
2019/12/05 15:32:03 [DEBUG] checking for provisioner in "."
2019/12/05 15:32:03 [DEBUG] checking for provisioner in "C:\\terraform"
2019/12/05 15:32:03 [DEBUG] checking for provisioner in ".terraform\\plugins\\windows_amd64"
2019/12/05 15:32:03 [DEBUG] checking for provisioner in "C:\\Users\\tomasz.pordzik\\AppData\\Roaming\\terraform.d\\plugins"
2019/12/05 15:32:03 [TRACE] Meta.Backend: backend <nil> does not support operations, so wrapping it in a local backend
2019/12/05 15:32:03 [INFO] backend/local: starting Apply operation
2019/12/05 15:32:03 [TRACE] backend/local: requesting state manager for workspace "default"
2019/12/05 15:32:03 [TRACE] backend/local: state manager for workspace "default" will:
 - read initial snapshot from terraform.tfstate
 - write new snapshots to terraform.tfstate
 - create any backup at terraform.tfstate.backup
2019/12/05 15:32:03 [TRACE] backend/local: requesting state lock for workspace "default"
2019/12/05 15:32:03 [TRACE] statemgr.Filesystem: preparing to manage state snapshots at terraform.tfstate
2019/12/05 15:32:03 [TRACE] statemgr.Filesystem: existing snapshot has lineage "ae029484-ccfb-33e8-d53c-7df6b2f1e47a" serial 111
2019/12/05 15:32:03 [TRACE] statemgr.Filesystem: locking terraform.tfstate using LockFileEx
2019/12/05 15:32:03 [TRACE] statemgr.Filesystem: writing lock metadata to .terraform.tfstate.lock.info
2019/12/05 15:32:03 [TRACE] backend/local: reading remote state for workspace "default"
2019/12/05 15:32:03 [TRACE] statemgr.Filesystem: reading latest snapshot from terraform.tfstate
2019/12/05 15:32:03 [TRACE] statemgr.Filesystem: read snapshot with lineage "ae029484-ccfb-33e8-d53c-7df6b2f1e47a" serial 111
2019/12/05 15:32:03 [TRACE] backend/local: retrieving local state snapshot for workspace "default"
2019/12/05 15:32:03 [TRACE] backend/local: building context for current working directory
2019/12/05 15:32:03 [TRACE] terraform.NewContext: starting
2019/12/05 15:32:03 [TRACE] terraform.NewContext: resolving provider version selections
2019/12/05 15:32:03 [TRACE] terraform.NewContext: loading provider schemas
2019/12/05 15:32:03 [TRACE] LoadSchemas: retrieving schema for provider type "icinga2"
2019-12-05T15:32:03.699+0100 [INFO]  plugin: configuring client automatic mTLS
2019-12-05T15:32:03.728+0100 [DEBUG] plugin: starting plugin: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe args=[C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe]
2019-12-05T15:32:03.731+0100 [DEBUG] plugin: plugin started: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe pid=51504
2019-12-05T15:32:03.731+0100 [DEBUG] plugin: waiting for RPC address: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe
2019-12-05T15:32:03.825+0100 [INFO]  plugin.terraform-provider-icinga2.exe: configuring server automatic mTLS: timestamp=2019-12-05T15:32:03.825+0100
2019-12-05T15:32:03.854+0100 [DEBUG] plugin: using plugin: version=5
2019-12-05T15:32:03.854+0100 [DEBUG] plugin.terraform-provider-icinga2.exe: plugin address: address=127.0.0.1:10000 network=tcp timestamp=2019-12-05T15:32:03.854+0100
2019/12/05 15:32:03 [TRACE] GRPCProvider: GetSchema
2019/12/05 15:32:03 [TRACE] GRPCProvider: Close
2019-12-05T15:32:03.930+0100 [DEBUG] plugin: plugin process exited: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe pid=51504
2019-12-05T15:32:03.930+0100 [DEBUG] plugin: plugin exited
2019/12/05 15:32:03 [TRACE] terraform.NewContext: complete
2019/12/05 15:32:03 [TRACE] backend/local: finished building terraform.Context
2019/12/05 15:32:03 [TRACE] backend/local: requesting interactive input, if necessary
2019/12/05 15:32:03 [TRACE] Context.Input: Prompting for provider arguments
2019/12/05 15:32:03 [TRACE] Context.Input: Provider provider.icinga2 declared at provider.tf:1,1-19
2019/12/05 15:32:03 [TRACE] Context.Input: Input for provider.icinga2: map[string]cty.Value{}
2019/12/05 15:32:03 [TRACE] backend/local: running validation operation
2019/12/05 15:32:03 [INFO] terraform: building graph: GraphTypeValidate
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.ConfigTransformer
2019/12/05 15:32:03 [TRACE] ConfigTransformer: Starting for path: 
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
------
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.LocalTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.OutputTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.StateTransformer
2019/12/05 15:32:03 [TRACE] StateTransformer: creating nodes for deposed instance objects only
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.StateTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2019/12/05 15:32:03 [TRACE] AttachResourceConfigTransformer: attaching to "icinga2_host.host" (*terraform.NodeValidatableResource) config from main.tf:2,1-31
2019/12/05 15:32:03 [TRACE] AttachResourceConfigTransformer: attaching to "icinga2_hostgroup.hostgroup1" (*terraform.NodeValidatableResource) config from main.tf:18,1-42
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.MissingProvisionerTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.MissingProvisionerTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.ProvisionerTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.ProvisionerTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2019/12/05 15:32:03 [TRACE] ProviderConfigTransformer: attaching to "provider.icinga2" provider configuration from provider.tf:1,1-19
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2019/12/05 15:32:03 [TRACE] ProviderTransformer: icinga2_host.host is provided by provider.icinga2 or inherited equivalent
2019/12/05 15:32:03 [TRACE] ProviderTransformer: icinga2_hostgroup.hostgroup1 is provided by provider.icinga2 or inherited equivalent
2019/12/05 15:32:03 [TRACE] ProviderTransformer: exact match for provider.icinga2 serving icinga2_host.host
2019/12/05 15:32:03 [DEBUG] ProviderTransformer: "icinga2_host.host" (*terraform.NodeValidatableResource) needs provider.icinga2
2019/12/05 15:32:03 [TRACE] ProviderTransformer: exact match for provider.icinga2 serving icinga2_hostgroup.hostgroup1
2019/12/05 15:32:03 [DEBUG] ProviderTransformer: "icinga2_hostgroup.hostgroup1" (*terraform.NodeValidatableResource) needs provider.icinga2
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ParentProviderTransformer
2019/12/05 15:32:03 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ParentProviderTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2019/12/05 15:32:03 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider.icinga2
2019/12/05 15:32:03 [TRACE] AttachSchemaTransformer: attaching resource schema to icinga2_host.host
2019/12/05 15:32:03 [TRACE] AttachSchemaTransformer: attaching resource schema to icinga2_hostgroup.hostgroup1
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2019/12/05 15:32:03 [DEBUG] ReferenceTransformer: "icinga2_host.host" references: [icinga2_hostgroup.hostgroup1]
2019/12/05 15:32:03 [DEBUG] ReferenceTransformer: "icinga2_hostgroup.hostgroup1" references: []
2019/12/05 15:32:03 [DEBUG] ReferenceTransformer: "provider.icinga2" references: []
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.ReferenceTransformer with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.CountBoundaryTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.CountBoundaryTransformer with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.TargetsTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 (close) - *terraform.graphNodeCloseProvider
  icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.CloseProvisionerTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.CloseProvisionerTransformer (no changes)
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.RootTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.RootTransformer with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 (close) - *terraform.graphNodeCloseProvider
  icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
root - terraform.graphNodeRoot
  meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  provider.icinga2 (close) - *terraform.graphNodeCloseProvider
------
2019/12/05 15:32:03 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2019/12/05 15:32:03 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
icinga2_host.host - *terraform.NodeValidatableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
icinga2_hostgroup.hostgroup1 - *terraform.NodeValidatableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  icinga2_host.host - *terraform.NodeValidatableResource
provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 (close) - *terraform.graphNodeCloseProvider
  icinga2_host.host - *terraform.NodeValidatableResource
root - terraform.graphNodeRoot
  meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  provider.icinga2 (close) - *terraform.graphNodeCloseProvider
------
2019/12/05 15:32:03 [DEBUG] Starting graph walk: walkValidate
2019/12/05 15:32:03 [TRACE] dag/walk: updating graph
2019/12/05 15:32:03 [TRACE] dag/walk: added new vertex: "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:03 [TRACE] dag/walk: added new vertex: "provider.icinga2"
2019/12/05 15:32:03 [TRACE] dag/walk: added new vertex: "meta.count-boundary (EachMode fixup)"
2019/12/05 15:32:03 [TRACE] dag/walk: added new vertex: "provider.icinga2 (close)"
2019/12/05 15:32:03 [TRACE] dag/walk: added new vertex: "root"
2019/12/05 15:32:03 [TRACE] dag/walk: added new vertex: "icinga2_host.host"
2019/12/05 15:32:03 [TRACE] dag/walk: added edge: "icinga2_hostgroup.hostgroup1" waiting on "provider.icinga2"
2019/12/05 15:32:03 [TRACE] dag/walk: added edge: "meta.count-boundary (EachMode fixup)" waiting on "icinga2_host.host"
2019/12/05 15:32:03 [TRACE] dag/walk: added edge: "root" waiting on "provider.icinga2 (close)"
2019/12/05 15:32:03 [TRACE] dag/walk: added edge: "icinga2_host.host" waiting on "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:03 [TRACE] dag/walk: added edge: "provider.icinga2 (close)" waiting on "icinga2_host.host"
2019/12/05 15:32:03 [TRACE] dag/walk: added edge: "root" waiting on "meta.count-boundary (EachMode fixup)"
2019/12/05 15:32:03 [TRACE] dag/walk: dependencies changed for "meta.count-boundary (EachMode fixup)", sending new deps
2019/12/05 15:32:03 [TRACE] dag/walk: dependencies changed for "root", sending new deps
2019/12/05 15:32:03 [TRACE] dag/walk: dependencies changed for "icinga2_host.host", sending new deps
2019/12/05 15:32:03 [TRACE] dag/walk: dependencies changed for "provider.icinga2 (close)", sending new deps
2019/12/05 15:32:03 [TRACE] dag/walk: dependencies changed for "icinga2_hostgroup.hostgroup1", sending new deps
2019/12/05 15:32:03 [TRACE] dag/walk: visiting "provider.icinga2"
2019/12/05 15:32:03 [TRACE] vertex "provider.icinga2": starting visit (*terraform.NodeApplyableProvider)
2019/12/05 15:32:03 [TRACE] vertex "provider.icinga2": evaluating
2019/12/05 15:32:03 [TRACE] [walkValidate] Entering eval tree: provider.icinga2
2019/12/05 15:32:03 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:03 [TRACE] <root>: eval: *terraform.EvalInitProvider
2019-12-05T15:32:03.931+0100 [INFO]  plugin: configuring client automatic mTLS
2019-12-05T15:32:03.959+0100 [DEBUG] plugin: starting plugin: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe args=[C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe]
2019-12-05T15:32:03.962+0100 [DEBUG] plugin: plugin started: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe pid=45676
2019-12-05T15:32:03.962+0100 [DEBUG] plugin: waiting for RPC address: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe
2019-12-05T15:32:04.054+0100 [INFO]  plugin.terraform-provider-icinga2.exe: configuring server automatic mTLS: timestamp=2019-12-05T15:32:04.054+0100
2019-12-05T15:32:04.086+0100 [DEBUG] plugin: using plugin: version=5
2019-12-05T15:32:04.086+0100 [DEBUG] plugin.terraform-provider-icinga2.exe: plugin address: address=127.0.0.1:10000 network=tcp timestamp=2019-12-05T15:32:04.086+0100
2019/12/05 15:32:04 [TRACE] BuiltinEvalContext: Initialized "icinga2" provider for provider.icinga2
2019/12/05 15:32:04 [TRACE] <root>: eval: terraform.EvalNoop
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalOpFilter
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalValidateProvider
2019/12/05 15:32:04 [TRACE] buildProviderConfig for provider.icinga2: using explicit config only
2019/12/05 15:32:04 [TRACE] GRPCProvider: GetSchema
2019/12/05 15:32:04 [TRACE] GRPCProvider: PrepareProviderConfig
2019/12/05 15:32:04 [TRACE] <root>: eval: terraform.EvalNoop
2019/12/05 15:32:04 [TRACE] <root>: eval: terraform.EvalNoop
2019/12/05 15:32:04 [TRACE] [walkValidate] Exiting eval tree: provider.icinga2
2019/12/05 15:32:04 [TRACE] vertex "provider.icinga2": visit complete
2019/12/05 15:32:04 [TRACE] dag/walk: visiting "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:04 [TRACE] vertex "icinga2_hostgroup.hostgroup1": starting visit (*terraform.NodeValidatableResource)
2019/12/05 15:32:04 [TRACE] vertex "icinga2_hostgroup.hostgroup1": evaluating
2019/12/05 15:32:04 [TRACE] [walkValidate] Entering eval tree: icinga2_hostgroup.hostgroup1
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalValidateResource
2019/12/05 15:32:04 [TRACE] GRPCProvider: ValidateResourceTypeConfig
2019/12/05 15:32:04 [TRACE] [walkValidate] Exiting eval tree: icinga2_hostgroup.hostgroup1
2019/12/05 15:32:04 [TRACE] vertex "icinga2_hostgroup.hostgroup1": visit complete
2019/12/05 15:32:04 [TRACE] dag/walk: visiting "icinga2_host.host"
2019/12/05 15:32:04 [TRACE] vertex "icinga2_host.host": starting visit (*terraform.NodeValidatableResource)
2019/12/05 15:32:04 [TRACE] vertex "icinga2_host.host": evaluating
2019/12/05 15:32:04 [TRACE] [walkValidate] Entering eval tree: icinga2_host.host
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalValidateResource
2019/12/05 15:32:04 [TRACE] GRPCProvider: ValidateResourceTypeConfig
2019/12/05 15:32:04 [TRACE] [walkValidate] Exiting eval tree: icinga2_host.host
2019/12/05 15:32:04 [TRACE] vertex "icinga2_host.host": visit complete
2019/12/05 15:32:04 [TRACE] dag/walk: visiting "meta.count-boundary (EachMode fixup)"
2019/12/05 15:32:04 [TRACE] vertex "meta.count-boundary (EachMode fixup)": starting visit (*terraform.NodeCountBoundary)
2019/12/05 15:32:04 [TRACE] vertex "meta.count-boundary (EachMode fixup)": evaluating
2019/12/05 15:32:04 [TRACE] [walkValidate] Entering eval tree: meta.count-boundary (EachMode fixup)
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalCountFixZeroOneBoundaryGlobal
2019/12/05 15:32:04 [TRACE] dag/walk: visiting "provider.icinga2 (close)"
2019/12/05 15:32:04 [TRACE] vertex "provider.icinga2 (close)": starting visit (*terraform.graphNodeCloseProvider)
2019/12/05 15:32:04 [TRACE] [walkValidate] Exiting eval tree: meta.count-boundary (EachMode fixup)
2019/12/05 15:32:04 [TRACE] vertex "provider.icinga2 (close)": evaluating
2019/12/05 15:32:04 [TRACE] vertex "meta.count-boundary (EachMode fixup)": visit complete
2019/12/05 15:32:04 [TRACE] [walkValidate] Entering eval tree: provider.icinga2 (close)
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalCloseProvider
2019/12/05 15:32:04 [TRACE] GRPCProvider: Close
2019-12-05T15:32:04.161+0100 [DEBUG] plugin: plugin process exited: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe pid=45676
2019-12-05T15:32:04.161+0100 [DEBUG] plugin: plugin exited
2019/12/05 15:32:04 [TRACE] [walkValidate] Exiting eval tree: provider.icinga2 (close)
2019/12/05 15:32:04 [TRACE] vertex "provider.icinga2 (close)": visit complete
2019/12/05 15:32:04 [TRACE] dag/walk: visiting "root"
2019/12/05 15:32:04 [TRACE] vertex "root": starting visit (terraform.graphNodeRoot)
2019/12/05 15:32:04 [TRACE] vertex "root": visit complete
2019/12/05 15:32:04 [INFO] backend/local: apply calling Refresh
2019/12/05 15:32:04 [INFO] terraform: building graph: GraphTypeRefresh
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.ConfigTransformer
2019/12/05 15:32:04 [TRACE] ConfigTransformer: Starting for path: 
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
icinga2_host.host - *terraform.NodeRefreshableManagedResource
icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
------
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.ConfigTransformer
2019/12/05 15:32:04 [TRACE] ConfigTransformer: Starting for path: 
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.ConfigTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.StateTransformer
2019/12/05 15:32:04 [TRACE] StateTransformer: creating nodes for deposed instance objects only
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.StateTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2019/12/05 15:32:04 [TRACE] AttachResourceConfigTransformer: attaching to "icinga2_host.host" (*terraform.NodeRefreshableManagedResource) config from main.tf:2,1-31
2019/12/05 15:32:04 [TRACE] AttachResourceConfigTransformer: attaching to "icinga2_hostgroup.hostgroup1" (*terraform.NodeRefreshableManagedResource) config from main.tf:18,1-42
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.LocalTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.OutputTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2019/12/05 15:32:04 [TRACE] ProviderConfigTransformer: attaching to "provider.icinga2" provider configuration from provider.tf:1,1-19
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
icinga2_host.host - *terraform.NodeRefreshableManagedResource
icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2019/12/05 15:32:04 [TRACE] ProviderTransformer: icinga2_host.host is provided by provider.icinga2 or inherited equivalent
2019/12/05 15:32:04 [TRACE] ProviderTransformer: icinga2_hostgroup.hostgroup1 is provided by provider.icinga2 or inherited equivalent
2019/12/05 15:32:04 [TRACE] ProviderTransformer: exact match for provider.icinga2 serving icinga2_host.host
2019/12/05 15:32:04 [DEBUG] ProviderTransformer: "icinga2_host.host" (*terraform.NodeRefreshableManagedResource) needs provider.icinga2
2019/12/05 15:32:04 [TRACE] ProviderTransformer: exact match for provider.icinga2 serving icinga2_hostgroup.hostgroup1
2019/12/05 15:32:04 [DEBUG] ProviderTransformer: "icinga2_hostgroup.hostgroup1" (*terraform.NodeRefreshableManagedResource) needs provider.icinga2
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
icinga2_host.host - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ParentProviderTransformer
2019/12/05 15:32:04 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ParentProviderTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
icinga2_host.host - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2019/12/05 15:32:04 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider.icinga2
2019/12/05 15:32:04 [TRACE] AttachSchemaTransformer: attaching resource schema to icinga2_host.host
2019/12/05 15:32:04 [TRACE] AttachSchemaTransformer: attaching resource schema to icinga2_hostgroup.hostgroup1
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2019/12/05 15:32:04 [DEBUG] ReferenceTransformer: "icinga2_host.host" references: [icinga2_hostgroup.hostgroup1]
2019/12/05 15:32:04 [DEBUG] ReferenceTransformer: "icinga2_hostgroup.hostgroup1" references: []
2019/12/05 15:32:04 [DEBUG] ReferenceTransformer: "provider.icinga2" references: []
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.ReferenceTransformer with new graph:
icinga2_host.host - *terraform.NodeRefreshableManagedResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.AttachDependenciesTransformer
2019/12/05 15:32:04 [TRACE] AttachDependenciesTransformer: icinga2_host.host depends on [icinga2_hostgroup.hostgroup1]
2019/12/05 15:32:04 [TRACE] AttachDependenciesTransformer: icinga2_hostgroup.hostgroup1 depends on []
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.AttachDependenciesTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.TargetsTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
icinga2_host.host - *terraform.NodeRefreshableManagedResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 (close) - *terraform.graphNodeCloseProvider
  icinga2_host.host - *terraform.NodeRefreshableManagedResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.RootTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2019/12/05 15:32:04 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2019/12/05 15:32:04 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
icinga2_host.host - *terraform.NodeRefreshableManagedResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 (close) - *terraform.graphNodeCloseProvider
  icinga2_host.host - *terraform.NodeRefreshableManagedResource
------
2019/12/05 15:32:04 [DEBUG] Starting graph walk: walkRefresh
2019/12/05 15:32:04 [TRACE] dag/walk: updating graph
2019/12/05 15:32:04 [TRACE] dag/walk: added new vertex: "icinga2_host.host"
2019/12/05 15:32:04 [TRACE] dag/walk: added new vertex: "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:04 [TRACE] dag/walk: added new vertex: "provider.icinga2"
2019/12/05 15:32:04 [TRACE] dag/walk: added new vertex: "provider.icinga2 (close)"
2019/12/05 15:32:04 [TRACE] dag/walk: added edge: "provider.icinga2 (close)" waiting on "icinga2_host.host"
2019/12/05 15:32:04 [TRACE] dag/walk: added edge: "icinga2_hostgroup.hostgroup1" waiting on "provider.icinga2"
2019/12/05 15:32:04 [TRACE] dag/walk: added edge: "icinga2_host.host" waiting on "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:04 [TRACE] dag/walk: dependencies changed for "provider.icinga2 (close)", sending new deps
2019/12/05 15:32:04 [TRACE] dag/walk: dependencies changed for "icinga2_hostgroup.hostgroup1", sending new deps
2019/12/05 15:32:04 [TRACE] dag/walk: dependencies changed for "icinga2_host.host", sending new deps
2019/12/05 15:32:04 [TRACE] dag/walk: visiting "provider.icinga2"
2019/12/05 15:32:04 [TRACE] vertex "provider.icinga2": starting visit (*terraform.NodeApplyableProvider)
2019/12/05 15:32:04 [TRACE] vertex "provider.icinga2": evaluating
2019/12/05 15:32:04 [TRACE] [walkRefresh] Entering eval tree: provider.icinga2
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalInitProvider
2019-12-05T15:32:04.162+0100 [INFO]  plugin: configuring client automatic mTLS
2019-12-05T15:32:04.192+0100 [DEBUG] plugin: starting plugin: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe args=[C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe]
2019-12-05T15:32:04.195+0100 [DEBUG] plugin: plugin started: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe pid=49776
2019-12-05T15:32:04.195+0100 [DEBUG] plugin: waiting for RPC address: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe
2019-12-05T15:32:04.286+0100 [INFO]  plugin.terraform-provider-icinga2.exe: configuring server automatic mTLS: timestamp=2019-12-05T15:32:04.286+0100
2019-12-05T15:32:04.315+0100 [DEBUG] plugin: using plugin: version=5
2019-12-05T15:32:04.315+0100 [DEBUG] plugin.terraform-provider-icinga2.exe: plugin address: address=127.0.0.1:10000 network=tcp timestamp=2019-12-05T15:32:04.315+0100
2019/12/05 15:32:04 [TRACE] BuiltinEvalContext: Initialized "icinga2" provider for provider.icinga2
2019/12/05 15:32:04 [TRACE] <root>: eval: terraform.EvalNoop
2019/12/05 15:32:04 [TRACE] <root>: eval: terraform.EvalNoop
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalOpFilter
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalOpFilter
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:04 [TRACE] <root>: eval: *terraform.EvalConfigProvider
2019/12/05 15:32:04 [TRACE] buildProviderConfig for provider.icinga2: using explicit config only
2019/12/05 15:32:04 [TRACE] GRPCProvider: GetSchema
2019/12/05 15:32:04 [TRACE] GRPCProvider: Configure
2019/12/05 15:32:05 [TRACE] [walkRefresh] Exiting eval tree: provider.icinga2
2019/12/05 15:32:05 [TRACE] vertex "provider.icinga2": visit complete
2019/12/05 15:32:05 [TRACE] dag/walk: visiting "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:05 [TRACE] vertex "icinga2_hostgroup.hostgroup1": starting visit (*terraform.NodeRefreshableManagedResource)
2019/12/05 15:32:05 [TRACE] vertex "icinga2_hostgroup.hostgroup1": expanding dynamic subgraph
2019/12/05 15:32:05 [TRACE] Executing graph transform *terraform.ResourceCountTransformer
2019/12/05 15:32:05 [TRACE] Completed graph transform *terraform.ResourceCountTransformer with new graph:
icinga2_hostgroup.hostgroup1 - *terraform.NodeRefreshableManagedResourceInstance
------
2019/12/05 15:32:05 [TRACE] Executing graph transform *terraform.OrphanResourceCountTransformer
2019/12/05 15:32:05 [TRACE] Completed graph transform *terraform.OrphanResourceCountTransformer (no changes)
2019/12/05 15:32:05 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2019/12/05 15:32:05 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2019/12/05 15:32:05 [TRACE] Executing graph transform *terraform.TargetsTransformer
2019/12/05 15:32:05 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2019/12/05 15:32:05 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2019/12/05 15:32:05 [DEBUG] ReferenceTransformer: "icinga2_hostgroup.hostgroup1" references: []
2019/12/05 15:32:05 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/12/05 15:32:05 [TRACE] Executing graph transform *terraform.RootTransformer
2019/12/05 15:32:05 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2019/12/05 15:32:05 [TRACE] vertex "icinga2_hostgroup.hostgroup1": entering dynamic subgraph
2019/12/05 15:32:05 [TRACE] dag/walk: updating graph
2019/12/05 15:32:05 [TRACE] dag/walk: added new vertex: "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:05 [TRACE] dag/walk: visiting "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:05 [TRACE] vertex "icinga2_hostgroup.hostgroup1": starting visit (*terraform.NodeRefreshableManagedResourceInstance)
2019/12/05 15:32:05 [TRACE] NodeRefreshableManagedResourceInstance: icinga2_hostgroup.hostgroup1 will be refreshed
2019/12/05 15:32:05 [TRACE] vertex "icinga2_hostgroup.hostgroup1": evaluating
2019/12/05 15:32:05 [TRACE] [walkRefresh] Entering eval tree: icinga2_hostgroup.hostgroup1
2019/12/05 15:32:05 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:05 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:05 [TRACE] <root>: eval: *terraform.EvalReadState
2019/12/05 15:32:05 [TRACE] EvalReadState: reading state for icinga2_hostgroup.hostgroup1
2019/12/05 15:32:05 [TRACE] UpgradeResourceState: schema version of icinga2_hostgroup.hostgroup1 is still 0; calling provider "icinga2" for any other minor fixups
2019/12/05 15:32:05 [TRACE] GRPCProvider: UpgradeResourceState
2019/12/05 15:32:05 [TRACE] <root>: eval: *terraform.EvalRefreshDependencies
2019/12/05 15:32:05 [TRACE] <root>: eval: *terraform.EvalRefresh
2019/12/05 15:32:05 [TRACE] GRPCProvider: ReadResource
2019/12/05 15:32:06 [TRACE] <root>: eval: *terraform.EvalWriteState
2019/12/05 15:32:06 [TRACE] EvalWriteState: recording 0 dependencies for icinga2_hostgroup.hostgroup1
2019/12/05 15:32:06 [TRACE] EvalWriteState: writing current state object for icinga2_hostgroup.hostgroup1
2019/12/05 15:32:06 [TRACE] [walkRefresh] Exiting eval tree: icinga2_hostgroup.hostgroup1
2019/12/05 15:32:06 [TRACE] vertex "icinga2_hostgroup.hostgroup1": visit complete
2019/12/05 15:32:06 [TRACE] vertex "icinga2_hostgroup.hostgroup1": dynamic subgraph completed successfully
2019/12/05 15:32:06 [TRACE] vertex "icinga2_hostgroup.hostgroup1": visit complete
2019/12/05 15:32:06 [TRACE] dag/walk: visiting "icinga2_host.host"
2019/12/05 15:32:06 [TRACE] vertex "icinga2_host.host": starting visit (*terraform.NodeRefreshableManagedResource)
2019/12/05 15:32:06 [TRACE] vertex "icinga2_host.host": expanding dynamic subgraph
2019/12/05 15:32:06 [TRACE] Executing graph transform *terraform.ResourceCountTransformer
2019/12/05 15:32:06 [TRACE] Completed graph transform *terraform.ResourceCountTransformer with new graph:
icinga2_host.host - *terraform.NodeRefreshableManagedResourceInstance
------
2019/12/05 15:32:06 [TRACE] Executing graph transform *terraform.OrphanResourceCountTransformer
2019/12/05 15:32:06 [TRACE] Completed graph transform *terraform.OrphanResourceCountTransformer (no changes)
2019/12/05 15:32:06 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2019/12/05 15:32:06 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2019/12/05 15:32:06 [TRACE] Executing graph transform *terraform.TargetsTransformer
2019/12/05 15:32:06 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2019/12/05 15:32:06 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2019/12/05 15:32:06 [DEBUG] ReferenceTransformer: "icinga2_host.host" references: []
2019/12/05 15:32:06 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/12/05 15:32:06 [TRACE] Executing graph transform *terraform.RootTransformer
2019/12/05 15:32:06 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2019/12/05 15:32:06 [TRACE] vertex "icinga2_host.host": entering dynamic subgraph
2019/12/05 15:32:06 [TRACE] dag/walk: updating graph
2019/12/05 15:32:06 [TRACE] dag/walk: added new vertex: "icinga2_host.host"
2019/12/05 15:32:06 [TRACE] dag/walk: visiting "icinga2_host.host"
2019/12/05 15:32:06 [TRACE] vertex "icinga2_host.host": starting visit (*terraform.NodeRefreshableManagedResourceInstance)
2019/12/05 15:32:06 [TRACE] NodeRefreshableManagedResourceInstance: icinga2_host.host will be refreshed
2019/12/05 15:32:06 [TRACE] vertex "icinga2_host.host": evaluating
2019/12/05 15:32:06 [TRACE] [walkRefresh] Entering eval tree: icinga2_host.host
2019/12/05 15:32:06 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:06 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:06 [TRACE] <root>: eval: *terraform.EvalReadState
2019/12/05 15:32:06 [TRACE] EvalReadState: reading state for icinga2_host.host
2019/12/05 15:32:06 [TRACE] UpgradeResourceState: schema version of icinga2_host.host is still 0; calling provider "icinga2" for any other minor fixups
2019/12/05 15:32:06 [TRACE] GRPCProvider: UpgradeResourceState
2019/12/05 15:32:06 [TRACE] <root>: eval: *terraform.EvalRefreshDependencies
2019/12/05 15:32:06 [TRACE] <root>: eval: *terraform.EvalRefresh
2019/12/05 15:32:06 [TRACE] GRPCProvider: ReadResource
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalWriteState
2019/12/05 15:32:07 [TRACE] EvalWriteState: recording 1 dependencies for icinga2_host.host
2019/12/05 15:32:07 [TRACE] EvalWriteState: writing current state object for icinga2_host.host
2019/12/05 15:32:07 [TRACE] [walkRefresh] Exiting eval tree: icinga2_host.host
2019/12/05 15:32:07 [TRACE] vertex "icinga2_host.host": visit complete
2019/12/05 15:32:07 [TRACE] vertex "icinga2_host.host": dynamic subgraph completed successfully
2019/12/05 15:32:07 [TRACE] vertex "icinga2_host.host": visit complete
2019/12/05 15:32:07 [TRACE] dag/walk: visiting "provider.icinga2 (close)"
2019/12/05 15:32:07 [TRACE] vertex "provider.icinga2 (close)": starting visit (*terraform.graphNodeCloseProvider)
2019/12/05 15:32:07 [TRACE] vertex "provider.icinga2 (close)": evaluating
2019/12/05 15:32:07 [TRACE] [walkRefresh] Entering eval tree: provider.icinga2 (close)
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalCloseProvider
2019/12/05 15:32:07 [TRACE] GRPCProvider: Close
2019-12-05T15:32:07.467+0100 [DEBUG] plugin: plugin process exited: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe pid=49776
2019-12-05T15:32:07.467+0100 [DEBUG] plugin: plugin exited
2019/12/05 15:32:07 [TRACE] [walkRefresh] Exiting eval tree: provider.icinga2 (close)
2019/12/05 15:32:07 [TRACE] vertex "provider.icinga2 (close)": visit complete
2019/12/05 15:32:07 [INFO] backend/local: apply calling Plan
2019/12/05 15:32:07 [INFO] terraform: building graph: GraphTypePlan
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.ConfigTransformer
2019/12/05 15:32:07 [TRACE] ConfigTransformer: Starting for path: 
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.ConfigTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResource
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
------
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.LocalTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.LocalTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.OutputTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.OutputTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.OrphanResourceInstanceTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.OrphanResourceInstanceTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.StateTransformer
2019/12/05 15:32:07 [TRACE] StateTransformer: creating nodes for deposed instance objects only
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.StateTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.OrphanOutputTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.OrphanOutputTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.AttachResourceConfigTransformer
2019/12/05 15:32:07 [TRACE] AttachResourceConfigTransformer: attaching to "icinga2_host.host" (*terraform.NodePlannableResource) config from main.tf:2,1-31
2019/12/05 15:32:07 [TRACE] AttachResourceConfigTransformer: attaching to "icinga2_hostgroup.hostgroup1" (*terraform.NodePlannableResource) config from main.tf:18,1-42
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.AttachResourceConfigTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.RootVariableTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.RootVariableTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.MissingProvisionerTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.MissingProvisionerTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.ProvisionerTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.ProvisionerTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.ModuleVariableTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.ModuleVariableTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.graphTransformerMulti
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderConfigTransformer
2019/12/05 15:32:07 [TRACE] ProviderConfigTransformer: attaching to "provider.icinga2" provider configuration from provider.tf:1,1-19
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderConfigTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResource
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.MissingProviderTransformer
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.MissingProviderTransformer (no changes)
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ProviderTransformer
2019/12/05 15:32:07 [TRACE] ProviderTransformer: icinga2_host.host is provided by provider.icinga2 or inherited equivalent
2019/12/05 15:32:07 [TRACE] ProviderTransformer: icinga2_hostgroup.hostgroup1 is provided by provider.icinga2 or inherited equivalent
2019/12/05 15:32:07 [TRACE] ProviderTransformer: exact match for provider.icinga2 serving icinga2_host.host
2019/12/05 15:32:07 [DEBUG] ProviderTransformer: "icinga2_host.host" (*terraform.NodePlannableResource) needs provider.icinga2
2019/12/05 15:32:07 [TRACE] ProviderTransformer: exact match for provider.icinga2 serving icinga2_hostgroup.hostgroup1
2019/12/05 15:32:07 [DEBUG] ProviderTransformer: "icinga2_hostgroup.hostgroup1" (*terraform.NodePlannableResource) needs provider.icinga2
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ProviderTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.PruneProviderTransformer
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.PruneProviderTransformer (no changes)
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Executing graph transform *terraform.ParentProviderTransformer
2019/12/05 15:32:07 [TRACE] (graphTransformerMulti) Completed graph transform *terraform.ParentProviderTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.graphTransformerMulti with new graph:
icinga2_host.host - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.RemovedModuleTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.RemovedModuleTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.AttachSchemaTransformer
2019/12/05 15:32:07 [TRACE] AttachSchemaTransformer: attaching resource schema to icinga2_host.host
2019/12/05 15:32:07 [TRACE] AttachSchemaTransformer: attaching resource schema to icinga2_hostgroup.hostgroup1
2019/12/05 15:32:07 [TRACE] AttachSchemaTransformer: attaching provider config schema to provider.icinga2
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.AttachSchemaTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2019/12/05 15:32:07 [DEBUG] ReferenceTransformer: "provider.icinga2" references: []
2019/12/05 15:32:07 [DEBUG] ReferenceTransformer: "icinga2_host.host" references: [icinga2_hostgroup.hostgroup1]
2019/12/05 15:32:07 [DEBUG] ReferenceTransformer: "icinga2_hostgroup.hostgroup1" references: []
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.ReferenceTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.CountBoundaryTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.CountBoundaryTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.TargetsTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.ForcedCBDTransformer
2019/12/05 15:32:07 [TRACE] ForcedCBDTransformer: "icinga2_hostgroup.hostgroup1" (*terraform.NodePlannableResource) has no CBD descendent, so skipping
2019/12/05 15:32:07 [TRACE] ForcedCBDTransformer: "icinga2_host.host" (*terraform.NodePlannableResource) has no CBD descendent, so skipping
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.ForcedCBDTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.CloseProviderTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.CloseProviderTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 (close) - *terraform.graphNodeCloseProvider
  icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
------
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.CloseProvisionerTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.CloseProvisionerTransformer (no changes)
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.RootTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.RootTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 (close) - *terraform.graphNodeCloseProvider
  icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
root - terraform.graphNodeRoot
  meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  provider.icinga2 (close) - *terraform.graphNodeCloseProvider
------
2019/12/05 15:32:07 [TRACE] Executing graph transform *terraform.TransitiveReductionTransformer
2019/12/05 15:32:07 [TRACE] Completed graph transform *terraform.TransitiveReductionTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResource
  icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResource
  provider.icinga2 - *terraform.NodeApplyableProvider
meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  icinga2_host.host - *terraform.NodePlannableResource
provider.icinga2 - *terraform.NodeApplyableProvider
provider.icinga2 (close) - *terraform.graphNodeCloseProvider
  icinga2_host.host - *terraform.NodePlannableResource
root - terraform.graphNodeRoot
  meta.count-boundary (EachMode fixup) - *terraform.NodeCountBoundary
  provider.icinga2 (close) - *terraform.graphNodeCloseProvider
------
2019/12/05 15:32:07 [DEBUG] Starting graph walk: walkPlan
2019/12/05 15:32:07 [TRACE] dag/walk: updating graph
2019/12/05 15:32:07 [TRACE] dag/walk: added new vertex: "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:07 [TRACE] dag/walk: added new vertex: "provider.icinga2"
2019/12/05 15:32:07 [TRACE] dag/walk: added new vertex: "meta.count-boundary (EachMode fixup)"
2019/12/05 15:32:07 [TRACE] dag/walk: added new vertex: "provider.icinga2 (close)"
2019/12/05 15:32:07 [TRACE] dag/walk: added new vertex: "root"
2019/12/05 15:32:07 [TRACE] dag/walk: added new vertex: "icinga2_host.host"
2019/12/05 15:32:07 [TRACE] dag/walk: added edge: "provider.icinga2 (close)" waiting on "icinga2_host.host"
2019/12/05 15:32:07 [TRACE] dag/walk: added edge: "root" waiting on "meta.count-boundary (EachMode fixup)"
2019/12/05 15:32:07 [TRACE] dag/walk: added edge: "icinga2_host.host" waiting on "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:07 [TRACE] dag/walk: added edge: "meta.count-boundary (EachMode fixup)" waiting on "icinga2_host.host"
2019/12/05 15:32:07 [TRACE] dag/walk: added edge: "root" waiting on "provider.icinga2 (close)"
2019/12/05 15:32:07 [TRACE] dag/walk: added edge: "icinga2_hostgroup.hostgroup1" waiting on "provider.icinga2"
2019/12/05 15:32:07 [TRACE] dag/walk: dependencies changed for "provider.icinga2 (close)", sending new deps
2019/12/05 15:32:07 [TRACE] dag/walk: dependencies changed for "root", sending new deps
2019/12/05 15:32:07 [TRACE] dag/walk: dependencies changed for "icinga2_host.host", sending new deps
2019/12/05 15:32:07 [TRACE] dag/walk: dependencies changed for "meta.count-boundary (EachMode fixup)", sending new deps
2019/12/05 15:32:07 [TRACE] dag/walk: dependencies changed for "icinga2_hostgroup.hostgroup1", sending new deps
2019/12/05 15:32:07 [TRACE] dag/walk: visiting "provider.icinga2"
2019/12/05 15:32:07 [TRACE] vertex "provider.icinga2": starting visit (*terraform.NodeApplyableProvider)
2019/12/05 15:32:07 [TRACE] vertex "provider.icinga2": evaluating
2019/12/05 15:32:07 [TRACE] [walkPlan] Entering eval tree: provider.icinga2
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalInitProvider
2019-12-05T15:32:07.467+0100 [INFO]  plugin: configuring client automatic mTLS
2019-12-05T15:32:07.499+0100 [DEBUG] plugin: starting plugin: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe args=[C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe]
2019-12-05T15:32:07.501+0100 [DEBUG] plugin: plugin started: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe pid=51892
2019-12-05T15:32:07.501+0100 [DEBUG] plugin: waiting for RPC address: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe
2019-12-05T15:32:07.589+0100 [INFO]  plugin.terraform-provider-icinga2.exe: configuring server automatic mTLS: timestamp=2019-12-05T15:32:07.589+0100
2019-12-05T15:32:07.617+0100 [DEBUG] plugin.terraform-provider-icinga2.exe: plugin address: address=127.0.0.1:10000 network=tcp timestamp=2019-12-05T15:32:07.617+0100
2019-12-05T15:32:07.618+0100 [DEBUG] plugin: using plugin: version=5
2019/12/05 15:32:07 [TRACE] BuiltinEvalContext: Initialized "icinga2" provider for provider.icinga2
2019/12/05 15:32:07 [TRACE] <root>: eval: terraform.EvalNoop
2019/12/05 15:32:07 [TRACE] <root>: eval: terraform.EvalNoop
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalOpFilter
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalOpFilter
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:07 [TRACE] <root>: eval: *terraform.EvalConfigProvider
2019/12/05 15:32:07 [TRACE] buildProviderConfig for provider.icinga2: using explicit config only
2019/12/05 15:32:07 [TRACE] GRPCProvider: GetSchema
2019/12/05 15:32:07 [TRACE] GRPCProvider: Configure
2019/12/05 15:32:08 [TRACE] [walkPlan] Exiting eval tree: provider.icinga2
2019/12/05 15:32:08 [TRACE] vertex "provider.icinga2": visit complete
2019/12/05 15:32:08 [TRACE] dag/walk: visiting "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": starting visit (*terraform.NodePlannableResource)
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": evaluating
2019/12/05 15:32:08 [TRACE] [walkPlan] Entering eval tree: icinga2_hostgroup.hostgroup1
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalWriteResourceState
2019/12/05 15:32:08 [TRACE] [walkPlan] Exiting eval tree: icinga2_hostgroup.hostgroup1
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": expanding dynamic subgraph
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.ResourceCountTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.ResourceCountTransformer with new graph:
icinga2_hostgroup.hostgroup1 - *terraform.NodePlannableResourceInstance
------
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.OrphanResourceCountTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.OrphanResourceCountTransformer (no changes)
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.TargetsTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2019/12/05 15:32:08 [DEBUG] ReferenceTransformer: "icinga2_hostgroup.hostgroup1" references: []
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.RootTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": entering dynamic subgraph
2019/12/05 15:32:08 [TRACE] dag/walk: updating graph
2019/12/05 15:32:08 [TRACE] dag/walk: added new vertex: "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:08 [TRACE] dag/walk: visiting "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": starting visit (*terraform.NodePlannableResourceInstance)
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": evaluating
2019/12/05 15:32:08 [TRACE] [walkPlan] Entering eval tree: icinga2_hostgroup.hostgroup1
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalReadState
2019/12/05 15:32:08 [TRACE] EvalReadState: reading state for icinga2_hostgroup.hostgroup1
2019/12/05 15:32:08 [TRACE] UpgradeResourceState: schema version of icinga2_hostgroup.hostgroup1 is still 0; calling provider "icinga2" for any other minor fixups
2019/12/05 15:32:08 [TRACE] GRPCProvider: UpgradeResourceState
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalValidateSelfRef
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalDiff
2019/12/05 15:32:08 [TRACE] Re-validating config for "icinga2_hostgroup.hostgroup1"
2019/12/05 15:32:08 [TRACE] GRPCProvider: ValidateResourceTypeConfig
2019/12/05 15:32:08 [TRACE] GRPCProvider: PlanResourceChange
2019/12/05 15:32:08 [TRACE] GRPCProvider: PlanResourceChange
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalCheckPreventDestroy
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalWriteState
2019/12/05 15:32:08 [TRACE] EvalWriteState: writing current state object for icinga2_hostgroup.hostgroup1
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalWriteDiff
2019/12/05 15:32:08 [TRACE] EvalWriteDiff: recorded DeleteThenCreate change for icinga2_hostgroup.hostgroup1
2019/12/05 15:32:08 [TRACE] [walkPlan] Exiting eval tree: icinga2_hostgroup.hostgroup1
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": visit complete
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": dynamic subgraph completed successfully
2019/12/05 15:32:08 [TRACE] vertex "icinga2_hostgroup.hostgroup1": visit complete
2019/12/05 15:32:08 [TRACE] dag/walk: visiting "icinga2_host.host"
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": starting visit (*terraform.NodePlannableResource)
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": evaluating
2019/12/05 15:32:08 [TRACE] [walkPlan] Entering eval tree: icinga2_host.host
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalWriteResourceState
2019/12/05 15:32:08 [TRACE] [walkPlan] Exiting eval tree: icinga2_host.host
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": expanding dynamic subgraph
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.ResourceCountTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.ResourceCountTransformer with new graph:
icinga2_host.host - *terraform.NodePlannableResourceInstance
------
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.OrphanResourceCountTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.OrphanResourceCountTransformer (no changes)
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.AttachStateTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.AttachStateTransformer (no changes)
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.TargetsTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.TargetsTransformer (no changes)
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.ReferenceTransformer
2019/12/05 15:32:08 [DEBUG] ReferenceTransformer: "icinga2_host.host" references: []
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.ReferenceTransformer (no changes)
2019/12/05 15:32:08 [TRACE] Executing graph transform *terraform.RootTransformer
2019/12/05 15:32:08 [TRACE] Completed graph transform *terraform.RootTransformer (no changes)
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": entering dynamic subgraph
2019/12/05 15:32:08 [TRACE] dag/walk: updating graph
2019/12/05 15:32:08 [TRACE] dag/walk: added new vertex: "icinga2_host.host"
2019/12/05 15:32:08 [TRACE] dag/walk: visiting "icinga2_host.host"
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": starting visit (*terraform.NodePlannableResourceInstance)
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": evaluating
2019/12/05 15:32:08 [TRACE] [walkPlan] Entering eval tree: icinga2_host.host
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalSequence
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalGetProvider
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalReadState
2019/12/05 15:32:08 [TRACE] EvalReadState: reading state for icinga2_host.host
2019/12/05 15:32:08 [TRACE] UpgradeResourceState: schema version of icinga2_host.host is still 0; calling provider "icinga2" for any other minor fixups
2019/12/05 15:32:08 [TRACE] GRPCProvider: UpgradeResourceState
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalValidateSelfRef
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalDiff
2019/12/05 15:32:08 [TRACE] Re-validating config for "icinga2_host.host"
2019/12/05 15:32:08 [TRACE] GRPCProvider: ValidateResourceTypeConfig
2019/12/05 15:32:08 [TRACE] GRPCProvider: PlanResourceChange
2019/12/05 15:32:08 [TRACE] GRPCProvider: PlanResourceChange
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalCheckPreventDestroy
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalWriteState
2019/12/05 15:32:08 [TRACE] EvalWriteState: writing current state object for icinga2_host.host
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalWriteDiff
2019/12/05 15:32:08 [TRACE] EvalWriteDiff: recorded DeleteThenCreate change for icinga2_host.host
2019/12/05 15:32:08 [TRACE] [walkPlan] Exiting eval tree: icinga2_host.host
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": visit complete
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": dynamic subgraph completed successfully
2019/12/05 15:32:08 [TRACE] vertex "icinga2_host.host": visit complete
2019/12/05 15:32:08 [TRACE] dag/walk: visiting "provider.icinga2 (close)"
2019/12/05 15:32:08 [TRACE] vertex "provider.icinga2 (close)": starting visit (*terraform.graphNodeCloseProvider)
2019/12/05 15:32:08 [TRACE] vertex "provider.icinga2 (close)": evaluating
2019/12/05 15:32:08 [TRACE] [walkPlan] Entering eval tree: provider.icinga2 (close)
2019/12/05 15:32:08 [TRACE] dag/walk: visiting "meta.count-boundary (EachMode fixup)"
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalCloseProvider
2019/12/05 15:32:08 [TRACE] vertex "meta.count-boundary (EachMode fixup)": starting visit (*terraform.NodeCountBoundary)
2019/12/05 15:32:08 [TRACE] GRPCProvider: Close
2019/12/05 15:32:08 [TRACE] vertex "meta.count-boundary (EachMode fixup)": evaluating
2019/12/05 15:32:08 [TRACE] [walkPlan] Entering eval tree: meta.count-boundary (EachMode fixup)
2019/12/05 15:32:08 [TRACE] <root>: eval: *terraform.EvalCountFixZeroOneBoundaryGlobal
2019/12/05 15:32:08 [TRACE] [walkPlan] Exiting eval tree: meta.count-boundary (EachMode fixup)
2019/12/05 15:32:08 [TRACE] vertex "meta.count-boundary (EachMode fixup)": visit complete
2019-12-05T15:32:08.721+0100 [DEBUG] plugin: plugin process exited: path=C:\Users\tomasz.pordzik\AppData\Roaming\terraform.d\plugins\terraform-provider-icinga2.exe pid=51892
2019-12-05T15:32:08.721+0100 [DEBUG] plugin: plugin exited
2019/12/05 15:32:08 [TRACE] [walkPlan] Exiting eval tree: provider.icinga2 (close)
2019/12/05 15:32:08 [TRACE] vertex "provider.icinga2 (close)": visit complete
2019/12/05 15:32:08 [TRACE] dag/walk: visiting "root"
2019/12/05 15:32:08 [TRACE] vertex "root": starting visit (terraform.graphNodeRoot)
2019/12/05 15:32:08 [TRACE] vertex "root": visit complete
2019/12/05 15:32:08 [DEBUG] command: asking for input: "Do you want to perform these actions?"

Crash Output

No Crash

Expected Behavior

icinga2_host object must be newly created, because the displayname changes with forceNew.

Terraform will perform the following actions:

  # icinga2_host.host must be replaced
-/+ resource "icinga2_host" "host" {
        address       = "10.10.10.1"
        check_command = "hostalive"
      ~ groups        = [ # forces replacement
          - "terraform-group-11",
          + "terraform-group-12",
        ]
        hostname      = "terraformTEST1"
      ~ id            = "terraformTEST1" -> (known after apply)
        templates     = [
            "bp-host-web",
        ]
        vars          = {
            "allowance" = "none"
            "os"        = "linux"
            "osver"     = "2"
        }
    }

  # icinga2_hostgroup.hostgroup1 must be replaced
-/+ resource "icinga2_hostgroup" "hostgroup1" {
      ~ display_name = "Terraform_Test_HostGroup1" -> "Terraform_Test_HostGroup2" # forces replacement
      ~ id           = "terraform-group-11" -> (known after apply)
      ~ name         = "terraform-group-11" -> "terraform-group-11"
    }

Plan: 2 to add, 0 to change, 2 to destroy.

Actual Behavior

only icinga2_hostgroup will be rebuilt:

Terraform will perform the following actions:

  # icinga2_hostgroup.hostgroup1 must be replaced
-/+ resource "icinga2_hostgroup" "hostgroup1" {
      ~ display_name = "Terraform_Test_HostGroup1" -> "Terraform_Test_HostGroup2" # forces replacement
      ~ id           = "terraform-group-11" -> (known after apply)
        name         = "terraform-group-11"
    }

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

Steps to Reproduce

  1. terraform init
  2. Insert the config
  3. terraform apply
  4. Confirm apply
  5. Change "icinga2_hostgroup.hostgroup1.display_name" value
  6. terraform apply

Additional Context

icinga2_host Schema:

func resourceIcinga2Host() *schema.Resource {

	return &schema.Resource{
		Create: resourceIcinga2HostCreate,
		Read:   resourceIcinga2HostRead,
		Delete: resourceIcinga2HostDelete,
		Schema: map[string]*schema.Schema{
			"hostname": {
				Type:        schema.TypeString,
				Required:    true,
				Description: "Hostname",
				ForceNew:    true,
			},
			"address": {
				Type:     schema.TypeString,
				Required: true,
				ForceNew: true,
			},
			"check_command": {
				Type:     schema.TypeString,
				Required: true,
				ForceNew: true,
			},
			"groups": {
				Type:     schema.TypeList,
				Optional: true,
				ForceNew: true,
				Elem: &schema.Schema{
					Type: schema.TypeString,
				},
			},
			"vars": {
				Type:     schema.TypeMap,
				Optional: true,
				ForceNew: true,
			},
			"templates": {
				Type:     schema.TypeList,
				Optional: true,
				ForceNew: true,
				Elem: &schema.Schema{
					Type: schema.TypeString,
				},
			},
		},
	}
}

icinga2_hostgroup Schema:

func resourceIcinga2Hostgroup() *schema.Resource {

	return &schema.Resource{
		Create: resourceIcinga2HostgroupCreate,
		Read:   resourceIcinga2HostgroupRead,
		Delete: resourceIcinga2HostgroupDelete,
		Schema: map[string]*schema.Schema{
			"name": {
				Type:        schema.TypeString,
				Required:    true,
				Description: "name",
				ForceNew:    true,
			},
			"display_name": {
				Type:        schema.TypeString,
				Required:    true,
				Description: "Display name of Host Group",
				ForceNew:    true,
			},
		},
	}
}

References

https://github.com/terraform-providers/terraform-provider-icinga2/tree/master/icinga2

@ghost
Copy link

ghost commented Dec 5, 2019

This issue has been automatically migrated to terraform-providers/terraform-provider-icinga2#38 because it looks like an issue with that provider. If you believe this is not an issue with the provider, please reply to terraform-providers/terraform-provider-icinga2#38.

@ghost
Copy link

ghost commented Mar 28, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@ghost ghost locked and limited conversation to collaborators Mar 28, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants