Skip to content

[release-4.6] Bug 1899735: pkg/daemon: don't delete a file if its replaced with a dropin#2246

Merged
openshift-merge-robot merged 3 commits intoopenshift:release-4.6from
openshift-cherrypick-robot:cherry-pick-2196-to-release-4.6
Nov 26, 2020
Merged

[release-4.6] Bug 1899735: pkg/daemon: don't delete a file if its replaced with a dropin#2246
openshift-merge-robot merged 3 commits intoopenshift:release-4.6from
openshift-cherrypick-robot:cherry-pick-2196-to-release-4.6

Conversation

@openshift-cherrypick-robot
Copy link
Copy Markdown

This is an automated cherry-pick of #2196

/assign vrutkovs

Vadim Rutkovsky added 3 commits November 19, 2020 21:15
Some systemd service settings may be defined in .Storage.Files and in .Systemd.Units.Dropins. Dropins is preferable, so users may want to migrate to the way.

However if a file representing a dropin was defined in .Storage.Files and converted into .Systemd.Units.Dropin in new version of MC, it would be placed by Ignition's dropin implementation and then garbage-collected by MCD's deleteStaleData.

This change ensures we're checking Systemd.Units.Dropins before attempting to remove this file. This is crucial for OKD 4.5 -> 4.6 upgrades - kubelet MCO config was defined as a file in 4.5 and converted into a dropin in 4.6
Make gosec happy as it complains about excessive nesting (nestingReduce)
This ensures isPathInDropins returns expected values
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: Bugzilla bug 1895360 has been cloned as Bugzilla bug 1899735. Retitling PR to link against new bug.
/retitle [release-4.6] Bug 1899735: pkg/daemon: don't delete a file if its replaced with a dropin

Details

In response to this:

[release-4.6] Bug 1895360: pkg/daemon: don't delete a file if its replaced with a dropin

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.

@openshift-ci-robot openshift-ci-robot changed the title [release-4.6] Bug 1895360: pkg/daemon: don't delete a file if its replaced with a dropin [release-4.6] Bug 1899735: pkg/daemon: don't delete a file if its replaced with a dropin Nov 19, 2020
@openshift-ci-robot openshift-ci-robot added the bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. label Nov 19, 2020
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: This pull request references Bugzilla bug 1899735, which is invalid:

  • expected dependent Bugzilla bug 1895360 to be in one of the following states: VERIFIED, RELEASE_PENDING, CLOSED (ERRATA), but it is MODIFIED instead

Comment /bugzilla refresh to re-evaluate validity if changes to the Bugzilla bug are made, or edit the title of this pull request to link to a different bug.

Details

In response to this:

[release-4.6] Bug 1899735: pkg/daemon: don't delete a file if its replaced with a dropin

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.

@openshift-ci-robot openshift-ci-robot added the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Nov 19, 2020
@kikisdeliveryservice kikisdeliveryservice added the 4.6 Work targeted for 4.6 label Nov 19, 2020
@vrutkovs
Copy link
Copy Markdown
Contributor

/retest

@vrutkovs
Copy link
Copy Markdown
Contributor

/retest

@vrutkovs
Copy link
Copy Markdown
Contributor

/retest

OKD flakes

@vrutkovs
Copy link
Copy Markdown
Contributor

/retest

1 similar comment
@vrutkovs
Copy link
Copy Markdown
Contributor

/retest

@vrutkovs
Copy link
Copy Markdown
Contributor

/test okd-e2e-gcp-op

@LorbusChris
Copy link
Copy Markdown
Contributor

/retest

@LorbusChris
Copy link
Copy Markdown
Contributor

I think OKD on GCP won't work until #2217 lands in release-4.6.
I'd suggest to hold this PR here until #2217 is backported so updates can be tested properly then.
/hold

@openshift-ci-robot openshift-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 24, 2020
@vrutkovs
Copy link
Copy Markdown
Contributor

/hold cancel

OKD on GCP works after openshift/okd-machine-os#9 was merged. Its invalid tests which breaks us:

 === RUN   TestKernelType
--- FAIL: TestKernelType (1217.30s)
    mcd_test.go:179: Created kerneltype-6b7be424-c970-4e91-be74-4d27cdcde318
    utils_test.go:66: Pool infra has rendered config kerneltype-6b7be424-c970-4e91-be74-4d27cdcde318 with rendered-infra-d20c54c28c1a93dfb0e410adc1c51aa3 (waited 6.051398477s)
    mcd_test.go:183: pool infra didn't report rendered-infra-d20c54c28c1a93dfb0e410adc1c51aa3 to updated (waited 20m0.041028231s): timed out waiting for the condition 

OKD doesn't support RT kernel, so this test needs to be skipped there. I think we need override here

@openshift-ci-robot openshift-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Nov 25, 2020
@vrutkovs
Copy link
Copy Markdown
Contributor

/bugzilla refresh

@openshift-ci-robot openshift-ci-robot added the bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. label Nov 25, 2020
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@vrutkovs: This pull request references Bugzilla bug 1899735, which is valid.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target release (4.6.z) matches configured target release for branch (4.6.z)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST, POST)
  • dependent bug Bugzilla bug 1895360 is in the state VERIFIED, which is one of the valid states (VERIFIED, RELEASE_PENDING, CLOSED (ERRATA))
  • dependent Bugzilla bug 1895360 targets the "4.7.0" release, which is one of the valid target releases: 4.7.0
  • bug has dependents
Details

In response to this:

/bugzilla refresh

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.

@openshift-ci-robot openshift-ci-robot removed the bugzilla/invalid-bug Indicates that a referenced Bugzilla bug is invalid for the branch this PR is targeting. label Nov 25, 2020
@runcom
Copy link
Copy Markdown
Member

runcom commented Nov 25, 2020

/approve

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Nov 25, 2020
@runcom
Copy link
Copy Markdown
Member

runcom commented Nov 25, 2020

@vrutkovs noted ok-e2e-gcp-op is broken for other reasons, let's override that as this is needed in OKD anyway

/override ci/prow/okd-e2e-gcp-op

@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@runcom: Overrode contexts on behalf of runcom: ci/prow/okd-e2e-gcp-op

Details

In response to this:

@vrutkovs noted ok-e2e-gcp-op is broken for other reasons, let's override that as this is needed in OKD anyway

/override ci/prow/okd-e2e-gcp-op

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.

@LorbusChris
Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Nov 25, 2020
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: LorbusChris, openshift-cherrypick-robot, runcom

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

The pull request process is described here

Details 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

@mfojtik mfojtik added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Nov 26, 2020
@vrutkovs
Copy link
Copy Markdown
Contributor

/retest

1 similar comment
@vrutkovs
Copy link
Copy Markdown
Contributor

/retest

@vrutkovs
Copy link
Copy Markdown
Contributor

/test e2e-aws

@openshift-merge-robot openshift-merge-robot merged commit f271120 into openshift:release-4.6 Nov 26, 2020
@openshift-ci-robot
Copy link
Copy Markdown
Contributor

@openshift-cherrypick-robot: All pull requests linked via external trackers have merged:

Bugzilla bug 1899735 has been moved to the MODIFIED state.

Details

In response to this:

[release-4.6] Bug 1899735: pkg/daemon: don't delete a file if its replaced with a dropin

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

4.6 Work targeted for 4.6 approved Indicates a PR has been approved by an approver from all required OWNERS files. bugzilla/severity-high Referenced Bugzilla bug's severity is high for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants