Skip to content

Hermitcrab not refreshing providers #642

Description

@michael-todorovic

On burrito 0.7.0 with the default hermitcrab setup, it seems like it's not refreshing the provider versions list. On a runner, I got

Initializing provider plugins...
- Reusing previous version of hashicorp/vault from the dependency lock file
- Reusing previous version of hashicorp/consul from the dependency lock file
- Reusing previous version of hashicorp/local from the dependency lock file
- Reusing previous version of hashicorp/random from the dependency lock file
- Reusing previous version of hashicorp/time from the dependency lock file
- Installing hashicorp/local v2.5.3...
- Installed hashicorp/local v2.5.3 (verified checksum)
- Installing hashicorp/random v3.6.3...
- Installed hashicorp/random v3.6.3 (verified checksum)
- Installing hashicorp/time v0.10.0...
- Installed hashicorp/time v0.10.0 (verified checksum)
- Installing hashicorp/vault v4.4.0...
- Installed hashicorp/vault v4.4.0 (verified checksum)

Error: Failed to query available provider packages

Could not retrieve the list of available versions for provider
hashicorp/consul: the previously-selected version 2.22.0 is no longer
available

After a small debug, I ended in hermitcrab where 2.22.0 isn't present:

╰ curl -k https://localhost:8443/v1/providers/registry.terraform.io/hashicorp/consul/index.json                                              
{"versions":{"0.1.0":{},"1.0.0":{},"1.1.0":{},"2.0.0":{},"2.1.0":{},"2.10.0":{},"2.10.1":{},"2.11.0":{},"2.12.0":{},"2.13.0":{},"2.14.0":{},"2.15.0":{},"2.15.1":{},"2.16.0":{},"2.16.1":{},"2.16.2":{},"2.17.0":{},"2.18.0":{},"2.19.0":{},"2.2.0":{},"2.20.0":{},"2.21.0":{},"2.3.0":{},"2.4.0":{},"2.5.0":{},"2.6.0":{},"2.6.1":{},"2.7.0":{},"2.8.0":{},"2.9.0":{}}}

Then I restarted hermitcrab, which showed the new consul versions 🎉

╰ curl -k https://localhost:8443/v1/providers/registry.terraform.io/hashicorp/consul/index.json
{"versions":{"0.1.0":{},"1.0.0":{},"1.1.0":{},"2.0.0":{},"2.1.0":{},"2.10.0":{},"2.10.1":{},"2.11.0":{},"2.12.0":{},"2.13.0":{},"2.14.0":{},"2.15.0":{},"2.15.1":{},"2.16.0":{},"2.16.1":{},"2.16.2":{},"2.17.0":{},"2.18.0":{},"2.19.0":{},"2.2.0":{},"2.20.0":{},"2.21.0":{},"2.22.0":{},"2.3.0":{},"2.4.0":{},"2.5.0":{},"2.6.0":{},"2.6.1":{},"2.7.0":{},"2.8.0":{},"2.9.0":{}}}

I don't have time to debug it more right now so I don't know if it's a hermicrab bug or a config bug yet

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status
    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions