Skip to content

Support upgrading provider versions #104

@repl-mike-roest

Description

@repl-mike-roest

What problem are you facing?

We have an existing workspace from a composition that used version 6.35.0 of the OCI terraform provider. We want to add features to that composition that require a V7 version of the provider. We updated our composition to the new version and now workspace reconciliation fails with

Error: Failed to resolve provider packages

Could not resolve provider oracle/oci: locked provider
registry.opentofu.org/oracle/oci 6.35.0 does not match configured version
constraint ~> 7.0; must use tofu init -upgrade to allow selection of new
versions

How could Upbound help solve your problem?

The opentofu provider should detect this scenario and do an tofu init --upgrade when required.

As a workaround we can manually shell into the provider pod and goto the workspace and run that to get the new provider version. But it would be nice to not requiere manual intervention.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions