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

clusterctl init doesn't work when metadata is merged but release isn't published #4633

Open
willie-yao opened this issue Mar 7, 2024 · 1 comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.

Comments

@willie-yao
Copy link
Contributor

/kind bug

[Before submitting an issue, have you checked the Troubleshooting Guide?]

What steps did you take and what happened:
According to the release instructions, we first merge the metadata for the release and then publish it. However, this ends up breaking clusterctl init between when we merge the metadata and before the release is actually published.

Running:

clusterctl init --infrastructure azure

Gives this error:

Error: failed to get provider components for the "azure" provider: failed to get repository client for the InfrastructureProvider with name azure: error creating the GitHub repository client: failed to get latest release: release not found for version v1.14.0, please retry later or set "GOPROXY=off" to get the current stable release: 404 Not Found

This also affects specifying a specific version when running clusterctl init, so nobody is able to initialize a management cluster during this period.

What did you expect to happen:
clusterctl init --infrastructure azure should always work.

Anything else you would like to add:
[Miscellaneous information that will assist in solving the issue.]

Environment:

  • cluster-api-provider-azure version:
  • Kubernetes version: (use kubectl version):
  • OS (e.g. from /etc/os-release):
@k8s-ci-robot k8s-ci-robot added the kind/bug Categorizes issue or PR as related to a bug. label Mar 7, 2024
@willie-yao
Copy link
Contributor Author

willie-yao commented Mar 7, 2024

Running the command with GOPROXY=off does fix things. I'm guessing this is the intended behavior, but if the user doesn't have anything cached and doing a fresh install of CAPZ, this would still be a problem. We should consider changing the order of operations in the release process.

@willie-yao willie-yao reopened this Mar 7, 2024
@willie-yao willie-yao added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
Projects
Status: Todo
Development

No branches or pull requests

2 participants