cvbarros / terraform-provider-teamcity

Terraform Provider for Jetbrains TeamCity CI server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform upgrading issue

augustgerro opened this issue · comments

I'm trying to upgrade terraform from version 0.12.29 to 0.13 and after to 0.14, but receive the issues related to the community provider.

From the bugs, it looks like the schema is not ready for version 0.13.

Here is the sequence of actions and outputs:

terraform 0.13upgrade .

...
-----------------------------------------------------------------------------

Warning: Could not detect provider source

Error looking up provider source for "teamcity": provider
registry.terraform.io/-/teamcity was not found in any of the search locations

-----------------------------------------------------------------------------

Upgrade complete!

Use your version control system to review the proposed changes, make any
necessary adjustments, and then commit.

terraform init -reconfigure

Error: Failed to install provider

Error while installing hashicorp/teamcity: provider registry
registry.terraform.io does not have a provider named
registry.terraform.io/hashicorp/teamcity


Error: Failed to install provider

Error while installing -/teamcity: provider registry registry.terraform.io
does not have a provider named registry.terraform.io/-/teamcity

[terragrunt] 2021/01/19 18:34:27 Hit multiple errors:
exit status 1

terraform plan

...
Plugin reinitialization required. Please run "terraform init".

Plugins are external binaries that Terraform uses to access and manipulate
resources. The configuration provided requires plugins which can't be located,
don't satisfy the version constraints, or are otherwise incompatible.

Terraform automatically discovers provider requirements from your
configuration, including providers used in child modules. To see the
requirements and constraints, run "terraform providers".

2 problems:

- Failed to instantiate provider "registry.terraform.io/hashicorp/teamcity" to
obtain schema: unknown provider "registry.terraform.io/hashicorp/teamcity"
- Failed to instantiate provider "registry.terraform.io/-/teamcity" to obtain
schema: unknown provider "registry.terraform.io/-/teamcity"


[terragrunt] 2021/01/19 18:37:05 Hit multiple errors:
exit status 1

Try run this command:

terraform state replace-provider 'registry.terraform.io/-/teamcity' 'registry.terraform.io/cvbarros/teamcity'

The same fix works for the another providers. Description here