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

Anexia Provider: Postpone machine cleanup when instance is still being created #1571

Merged
merged 1 commit into from
Feb 23, 2023

Conversation

marioreggiori
Copy link
Contributor

What this PR does / why we need it:
This PR fixes a race condition in the Anexia provider Cleanup method - introduced in #1483 - which occurs when a machine is deleted before the instance has been created.

What type of PR is this?
/kind bug

Does this PR introduce a user-facing change? Then add your Release Note here:

Anexia Provider: fixed race condition in `Cleanup` method

Documentation:

NONE

Signed-off-by: Mario Schäfer <mschaefer@anexia-it.com>
@kubermatic-bot kubermatic-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. kind/bug Categorizes issue or PR as related to a bug. docs/none Denotes a PR that doesn't need documentation (changes). dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Feb 22, 2023
@kubermatic-bot
Copy link
Contributor

Hi @marioreggiori. Thanks for your PR.

I'm waiting for a kubermatic member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kubermatic-bot kubermatic-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Feb 22, 2023
Copy link
Member

@ahmedwaleedmalik ahmedwaleedmalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ok-to-test
/test pull-machine-controller-e2e-anexia

@kubermatic-bot kubermatic-bot added lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. labels Feb 22, 2023
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: da94541ac07aaff856279db09796be108dcdab07

@kubermatic-bot kubermatic-bot removed the needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. label Feb 22, 2023
@ahmedwaleedmalik
Copy link
Member

/assign @ahmedwaleedmalik

@ahmedwaleedmalik
Copy link
Member

Seems like 1.26 nodes are not coming up on Anexia. Is this something that can be fixed? Does it depend on the CCM somehow?

@marioreggiori
Copy link
Contributor Author

Seems like 1.26 nodes are not coming up on Anexia. Is this something that can be fixed? Does it depend on the CCM somehow?

There is a known incompatibility between our Flatcar nodes and Kubernetes v1.26. We are already working on a fix.

Copy link
Member

@ahmedwaleedmalik ahmedwaleedmalik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve
/hold to avoid retries
@xrstf pull-machine-controller-e2e-anexia requires an override.

@kubermatic-bot kubermatic-bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 22, 2023
@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ahmedwaleedmalik, marioreggiori

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubermatic-bot kubermatic-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Feb 22, 2023
@xrstf
Copy link
Contributor

xrstf commented Feb 23, 2023

/override pull-machine-controller-e2e-anexia

@kubermatic-bot
Copy link
Contributor

@xrstf: Overrode contexts on behalf of xrstf: pull-machine-controller-e2e-anexia

In response to this:

/override pull-machine-controller-e2e-anexia

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ahmedwaleedmalik
Copy link
Member

/unhold

@kubermatic-bot kubermatic-bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Feb 23, 2023
@kubermatic-bot kubermatic-bot merged commit e80f611 into kubermatic:main Feb 23, 2023
@marioreggiori
Copy link
Contributor Author

@ahmedwaleedmalik could you please cherry-pick the changes onto the v1.54 release branch? Should be possible without any conflicts.

@ahmedwaleedmalik
Copy link
Member

/cherry-pick release/v1.54

@kubermatic-bot
Copy link
Contributor

@ahmedwaleedmalik: new pull request created: #1580

In response to this:

/cherry-pick release/v1.54

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kubermatic-bot
Copy link
Contributor

@ahmedwaleedmalik: new pull request could not be created: failed to create pull request against kubermatic/machine-controller#release/v1.54 from head kubermatic-bot:cherry-pick-1571-to-release/v1.54: status code 422 not one of [201], body: {"message":"Validation Failed","errors":[{"resource":"PullRequest","code":"custom","message":"A pull request already exists for kubermatic-bot:cherry-pick-1571-to-release/v1.54."}],"documentation_url":"https://docs.github.com/rest/reference/pulls#create-a-pull-request"}

In response to this:

/cherry-pick release/v1.54

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@ahmedwaleedmalik
Copy link
Member

/cherrypick release/v1.56

@kubermatic-bot
Copy link
Contributor

@ahmedwaleedmalik: new pull request created: #1603

In response to this:

/cherrypick release/v1.56

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

eiabea pushed a commit to anexia-it/machine-controller that referenced this pull request May 8, 2023
…atic#1571)

Signed-off-by: Mario Schäfer <mschaefer@anexia-it.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. docs/none Denotes a PR that doesn't need documentation (changes). kind/bug Categorizes issue or PR as related to a bug. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. release-note Denotes a PR that will be considered when it comes time to generate release notes. sig/cluster-management Denotes a PR or issue as being assigned to SIG Cluster Management. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants