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

Machine allocation succeeded flag never gets set #209

Open
Gerrit91 opened this issue Aug 6, 2021 · 0 comments · May be fixed by #210
Open

Machine allocation succeeded flag never gets set #209

Gerrit91 opened this issue Aug 6, 2021 · 0 comments · May be fixed by #210

Comments

@Gerrit91
Copy link
Contributor

Gerrit91 commented Aug 6, 2021

Maybe I miss something, but during investigation of #207 I found that the field machine.Allocation.Succeeded field never gets set. I am very confused about this as I thought that this flag toggles in finalize-allocation. It doesn't. And also it seems like in the past it did not.

This is actually dangerous as the metal-core uses this flag do decide whether it lets a machine boot the hammer or not: https://github.com/metal-stack/metal-core/blob/master/internal/endpoint/boot.go#L38

Also the GEPM uses this flag in the firewall reconciliation and it's kind of a miracle that the code just works.

@Gerrit91 Gerrit91 changed the title Machine allocation succeeded never gets set Machine allocation succeeded flag never gets set Aug 6, 2021
@Gerrit91 Gerrit91 linked a pull request Aug 6, 2021 that will close this issue
@Gerrit91 Gerrit91 added help wanted Extra attention is needed and removed help wanted Extra attention is needed labels Dec 15, 2021
Gerrit91 added a commit to metal-stack/gardener-extension-provider-metal that referenced this issue Apr 4, 2022
The field is not set by metal-api anyway (see metal-stack/metal-api#209) and introduces a regression for migrated shoots.
Gerrit91 added a commit to metal-stack/gardener-extension-provider-metal that referenced this issue Apr 5, 2022
* Remove `succeeded` field from firewall status.

The field is not set by metal-api anyway (see metal-stack/metal-api#209) and introduces a regression for migrated shoots.

* Update controller-registration.
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 a pull request may close this issue.

1 participant