[release-4.6] Bug 1899735: pkg/daemon: don't delete a file if its replaced with a dropin#2246
Conversation
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-cherrypick-robot: Bugzilla bug 1895360 has been cloned as Bugzilla bug 1899735. Retitling PR to link against new bug. DetailsIn response to this:
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-cherrypick-robot: This pull request references Bugzilla bug 1899735, which is invalid:
Comment DetailsIn response to this:
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. |
|
/retest |
|
/retest |
|
/retest OKD flakes |
|
/retest |
1 similar comment
|
/retest |
|
/test okd-e2e-gcp-op |
|
/retest |
|
/hold cancel OKD on GCP works after openshift/okd-machine-os#9 was merged. Its invalid tests which breaks us: OKD doesn't support RT kernel, so this test needs to be skipped there. I think we need override here |
|
/bugzilla refresh |
|
@vrutkovs: This pull request references Bugzilla bug 1899735, which is valid. 6 validation(s) were run on this bug
DetailsIn response to this:
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. |
|
/approve |
|
@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 |
|
@runcom: Overrode contexts on behalf of runcom: ci/prow/okd-e2e-gcp-op DetailsIn response to this:
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. |
|
/lgtm |
|
[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 DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
/retest |
1 similar comment
|
/retest |
|
/test e2e-aws |
|
@openshift-cherrypick-robot: All pull requests linked via external trackers have merged: Bugzilla bug 1899735 has been moved to the MODIFIED state. DetailsIn response to this:
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. |
This is an automated cherry-pick of #2196
/assign vrutkovs