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

Improve machine creation and deletion flow by listing the machines before actual creation/deletion #432

Merged
merged 4 commits into from
Mar 27, 2020

Conversation

hardikdr
Copy link
Member

What this PR does / why we need it: This PR addresses the cases when an unfortunate restart of the MCM can make it lose the state. MCM now lists the VMs in the cloud, before actually creating or deleting the machines.

  • This PR also enables MCM to adopt the dynamically node-object in case it is not populated on the machine-object while creation.

Which issue(s) this PR fixes:
Fixes #423
Special notes for your reviewer:

Release note:

Improves the machine-creation and machine-deletion flow by listing and verifying the state of the machines before actual creation and deletion. 
MCM now dynamically maps the node-objects with machines if `Status.Node` is not set. 

…e actually creating or deleting the machine.
@hardikdr hardikdr requested review from ggaurav10 and a team as code owners March 19, 2020 08:43
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 19, 2020
@gardener-robot-ci-2 gardener-robot-ci-2 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Mar 19, 2020
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 20, 2020
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 20, 2020
@hardikdr hardikdr added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 22, 2020
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 22, 2020
pkg/controller/machine.go Show resolved Hide resolved
pkg/controller/machine.go Outdated Show resolved Hide resolved
pkg/controller/machine.go Show resolved Hide resolved
pkg/controller/machine.go Show resolved Hide resolved
pkg/controller/machine.go Show resolved Hide resolved
pkg/controller/machine.go Show resolved Hide resolved
pkg/controller/machine.go Show resolved Hide resolved
pkg/controller/machine.go Outdated Show resolved Hide resolved
pkg/controller/machine.go Outdated Show resolved Hide resolved
pkg/controller/machine.go Show resolved Hide resolved
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 26, 2020
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 26, 2020
Co-Authored-By: Prashanth <prashanth@sap.com>
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 26, 2020
@gardener-robot-ci-1 gardener-robot-ci-1 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Mar 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Restore ACID properties on MCM
6 participants