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

🌱 Set providerID in phase ensure-provisioned #1351

Closed
wants to merge 1 commit into from

Conversation

janiskemper
Copy link
Contributor

@janiskemper janiskemper commented Jun 17, 2024

What this PR does / why we need it:
Currently, we set the providerID of a baremetal server only after we confirmed that cloud init has successfully completed. However, CAPI also reacts on the result of cloud init, so there might be a temporary state when CAPI already reconciles the node object, CSRs are created, etc., but we have not yet set the providerID.

This leads for example to errors in the csr-controller, where we rely on the providerID to be set.

This PR sets the providerID already in ensure-provisioned state, so that these temporary errors should not occur anymore.

I think we will prefer this approach: #1357

TODOs:

  • squash commits
  • include documentation
  • add unit tests

Currently, we set the providerID of a baremetal server only after we
confirmed that cloud init has successfully completed. However, CAPI also
reacts on the result of cloud init, so there might be a temporary state
when CAPI already reconciles the node object, CSRs are created, etc.,
but we have not yet set the providerID.

This leads for example to errors in the csr-controller, where we rely on
the providerID to be set.

This PR sets the providerID already in ensure-provisioned state, so that
these temporary errors should not occur anymore.
@guettli
Copy link
Contributor

guettli commented Jun 19, 2024

Just for the records, we cherry-picked this PR, and then the bm machines failed to join the cluster.

@guettli
Copy link
Contributor

guettli commented Jun 21, 2024

This was merged instead: #1357

@guettli guettli closed this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants