Open MattHodge opened 4 days ago
Describe the bug Upgraded to 0.30.6 to fix the bug described in https://github.com/OctopusDeployLabs/terraform-provider-octopusdeploy/issues/783.
0.30.6
Performing a Terraform Apply with a destroy of octopusdeploy_runbook and octopusdeploy_project fails due error:
octopusdeploy_runbook
octopusdeploy_project
│ Error: Error loading variable │ │ VariableService: invalid parameter, variableID
Expected behavior Able to successfully deploy.
Logs and other supporting information
Screenshots
Environment and versions:
OSX
v2024.4 (Build 917)
v1.7.2
@MattHodge Can you please share you Terraform config?
Describe the bug Upgraded to
0.30.6
to fix the bug described in https://github.com/OctopusDeployLabs/terraform-provider-octopusdeploy/issues/783.Performing a Terraform Apply with a destroy of
octopusdeploy_runbook
andoctopusdeploy_project
fails due error:Expected behavior Able to successfully deploy.
Logs and other supporting information
Full Terraform Apply Output
``` Terraform used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols: - destroy Terraform planned the following actions, but then encountered a problem: # module.helloworld.octopusdeploy_project.project will be destroyed # (because octopusdeploy_project.project is not in configuration) - resource "octopusdeploy_project" "project" { - auto_create_release = false -> null - default_guided_failure_mode = "EnvironmentDefault" -> null - default_to_skip_if_already_installed = false -> null - deployment_process_id = "deploymentprocess-Projects-2322" -> null - description = "example" -> null - discrete_channel_release = false -> null - id = "Projects-2322" -> null - included_library_variable_sets = [ - "LibraryVariableSets-381", - "LibraryVariableSets-541", - "LibraryVariableSets-581", ] -> null - is_disabled = false -> null - is_discrete_channel_release = false -> null - is_version_controlled = false -> null - lifecycle_id = "Lifecycles-3" -> null - name = "helloworld" -> null - project_group_id = "ProjectGroups-704" -> null - slug = "helloworld" -> null - space_id = "Spaces-3" -> null - tenanted_deployment_participation = "Tenanted" -> null - variable_set_id = "variableset-Projects-2322" -> null } # module.helloworld.octopusdeploy_runbook.trigger_rollout["dev"] will be destroyed # (because octopusdeploy_runbook.trigger_rollout is not in configuration) - resource "octopusdeploy_runbook" "trigger_rollout" { - default_guided_failure_mode = "Off" -> null - description = "Allows triggering a rollout for this project to a particular environment. Only choose one environment." -> null - environment_scope = "Specified" -> null - environments = [ - "Environments-26", ] -> null - force_package_download = false -> null - id = "Runbooks-1681" -> null - multi_tenancy_mode = "TenantedOrUntenanted" -> null - name = "Trigger dev Rollout for helloworld" -> null - project_id = "Projects-2322" -> null - runbook_process_id = "RunbookProcess-Runbooks-1681" -> null - space_id = "Spaces-3" -> null } # module.helloworld.octopusdeploy_runbook.trigger_rollout["production"] will be destroyed # (because octopusdeploy_runbook.trigger_rollout is not in configuration) - resource "octopusdeploy_runbook" "trigger_rollout" { - default_guided_failure_mode = "Off" -> null - description = "Allows triggering a rollout for this project to a particular environment. Only choose one environment." -> null - environment_scope = "Specified" -> null - environments = [ - "Environments-29", ] -> null - force_package_download = false -> null - id = "Runbooks-1685" -> null - multi_tenancy_mode = "TenantedOrUntenanted" -> null - name = "Trigger production Rollout for helloworld" -> null - project_id = "Projects-2322" -> null - runbook_process_id = "RunbookProcess-Runbooks-1685" -> null - space_id = "Spaces-3" -> null } # module.helloworld.octopusdeploy_runbook.trigger_rollout["tdd"] will be destroyed # (because octopusdeploy_runbook.trigger_rollout is not in configuration) - resource "octopusdeploy_runbook" "trigger_rollout" { - default_guided_failure_mode = "Off" -> null - description = "Allows triggering a rollout for this project to a particular environment. Only choose one environment." -> null - environment_scope = "Specified" -> null - environments = [ - "Environments-27", ] -> null - force_package_download = false -> null - id = "Runbooks-1682" -> null - multi_tenancy_mode = "TenantedOrUntenanted" -> null - name = "Trigger tdd Rollout for helloworld" -> null - project_id = "Projects-2322" -> null - runbook_process_id = "RunbookProcess-Runbooks-1682" -> null - space_id = "Spaces-3" -> null } # module.helloworld.octopusdeploy_runbook.trigger_rollout["uat"] will be destroyed # (because octopusdeploy_runbook.trigger_rollout is not in configuration) - resource "octopusdeploy_runbook" "trigger_rollout" { - default_guided_failure_mode = "Off" -> null - description = "Allows triggering a rollout for this project to a particular environment. Only choose one environment." -> null - environment_scope = "Specified" -> null - environments = [ - "Environments-28", ] -> null - force_package_download = false -> null - id = "Runbooks-1683" -> null - multi_tenancy_mode = "TenantedOrUntenanted" -> null - name = "Trigger uat Rollout for helloworld" -> null - project_id = "Projects-2322" -> null - runbook_process_id = "RunbookProcess-Runbooks-1683" -> null - space_id = "Spaces-3" -> null } Plan: 0 to add, 0 to change, 5 to destroy. ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ╷ │ Error: Error loading variable │ │ VariableService: invalid parameter, variableID ╵ ```Screenshots
Environment and versions:
OSX
v2024.4 (Build 917)
v1.7.2
0.30.6