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

Flatcar stop disabled units #1219

Merged

Conversation

HaveFun83
Copy link
Contributor

What this PR does / why we need it:

Which issue(s) this PR fixes (optional, in fixes #<issue number> format, will close the issue(s) when PR gets merged):
Fixes #

When FlatcarConfig.DisableUpdateEngine is set to true the update-engine.service is not stopped on new provisioned machines, which lead to an unwanted auto-updates to the latest flatcar version with a followed reboot.
Only after this first reboot the service is then disabled.
The stop command stop the systemd service instantly to suppress the first auto-update on new provisioned machines.

Special notes for your reviewer:

Optional Release Note:

fix disable auto-update when FlatcarConfig.DisableUpdateEngine is set to true

Hendrik Ferber and others added 3 commits March 22, 2022 15:15
Signed-off-by: Hendrik Ferber <HFerber@anexia-it.com>
Signed-off-by: Mara Sophie Grosch <mgrosch@anexia-it.com>
Signed-off-by: Hendrik Ferber <HFerber@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. dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. sig/osm Denotes a PR or issue as being assigned to SIG OSM. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 22, 2022
@kubermatic-bot
Copy link
Contributor

Hi @HaveFun83. 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 Mar 22, 2022
@kron4eg
Copy link
Member

kron4eg commented Mar 22, 2022

/assign @ahmedwaleedmalik

@ahmedwaleedmalik
Copy link
Member

/ok-to-test

@kubermatic-bot kubermatic-bot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Mar 22, 2022
@moadqassem moadqassem self-assigned this Mar 23, 2022
@HaveFun83
Copy link
Contributor Author

HaveFun83 commented Mar 23, 2022

@ahmedwaleedmalik @moadqassem is there a documented way to edit the flatcar/testdata/ignition* files? The stop command is missing here. I can edit but then the files are json beautified.

@moadqassem
Copy link
Member

@ahmedwaleedmalik @moadqassem is there a documented way to edit the flatcar/testdata/ignition* files? The stop command is missing here. I can edit but then the files are json beautified.

@HaveFun83 Unfortunately not, but what you can do is, go to the ignition test and add the field DisableUpdateEngine here https://github.com/kubermatic/machine-controller/blob/master/pkg/userdata/flatcar/provider_test.go#L150. However, I am looking at the tests that are failing and I have the impression that, the tests are failing because of this newly introduced field. Are you sure that the field command is a valid ignition v1.20.1 field ?

@ahmedwaleedmalik
Copy link
Member

@HaveFun83 this doesn't seem to be a valid field for the ignition config https://github.com/coreos/ignition/blob/spec2x/config/v2_2/types/schema.go#L221

@kubermatic-bot kubermatic-bot added dco-signoff: no Denotes that at least one commit in the pull request doesn't have a valid DCO signoff message. and removed dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. labels Mar 28, 2022
@kubermatic-bot kubermatic-bot added dco-signoff: yes Denotes that all commits in the pull request have the valid DCO signoff message. and removed dco-signoff: no Denotes that at least one commit in the pull request doesn't have a valid DCO signoff message. labels Mar 28, 2022
@HaveFun83
Copy link
Contributor Author

i removed the unsupported command: stop from the userDataIgnitionTemplate.

… from userDataIgnitionTemplate

Signed-off-by: Hendrik Ferber <HFerber@anexia-it.com>
@ahmedwaleedmalik
Copy link
Member

This PR only provides a partial solution i.e. it only fixes it for cloud-init and not ignition provisioning. We'll go ahead with this and then work on fixing this for ignition later.

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

@kubermatic-bot kubermatic-bot added the lgtm Indicates that a PR is ready to be merged. label Mar 30, 2022
@kubermatic-bot
Copy link
Contributor

LGTM label has been added.

Git tree hash: 239ed9d987ca356a43532b5c5b4602a0dfa12a2c

@kubermatic-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

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

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 Mar 30, 2022
@ahmedwaleedmalik
Copy link
Member

/test pull-machine-controller-e2e-kubevirt

@kron4eg
Copy link
Member

kron4eg commented Apr 26, 2022

/cherrypick release/v1.43

@kubermatic-bot
Copy link
Contributor

@kron4eg: new pull request created: #1264

In response to this:

/cherrypick release/v1.43

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.

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. 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/osm Denotes a PR or issue as being assigned to SIG OSM. 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

6 participants