-
Notifications
You must be signed in to change notification settings - Fork 463
Bug 1764001: pkg/daemon: rollback dropins and units #1715
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
Bug 1764001: pkg/daemon: rollback dropins and units #1715
Conversation
|
@runcom: This pull request references Bugzilla bug 1764116, 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. |
|
@runcom: This pull request references Bugzilla bug 1764001, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 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. |
|
cc @yuqi-zhang |
|
@runcom: This pull request references Bugzilla bug 1764001, which is valid. 3 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. |
49d9ec8 to
32eaf39
Compare
templates/common/_base/units/etc-systemd-system-crio.service.d-10-default-env.conf.yaml
Outdated
Show resolved
Hide resolved
e6c85dc to
7816742
Compare
|
something funny is happening, dropins files seem like they don't get written when empty - causing the cluster to fail. I'm looking into this. /hold |
|
/skip |
this looks like the case, really funny. |
03f30e6 to
0f9f0f5
Compare
|
Tested the proxy functionality with this (since this is touching that area) and I can enable proxy day2 just fine 👍 |
yuqi-zhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is an awkward case that arises because we didn't do backups before, so its similar to the files case where we were backing up wrongly.
0f9f0f5 to
ce70da3
Compare
|
/skip |
ce70da3 to
d2dc8ea
Compare
This will make sure we don't ship files that are dropins. If we do that (like we're doing), someone could ship a dropin for the same service/same droping name and the validation will fail as the "file" is validate first. See https://bugzilla.redhat.com/show_bug.cgi?id=1764001 Signed-off-by: Antonio Murdaca <[email protected]>
Backup and restore (when needed) units and dropins Signed-off-by: Antonio Murdaca <[email protected]>
d2dc8ea to
a0f0a4a
Compare
|
/refresh |
|
/retest |
2 similar comments
|
/retest |
|
/retest |
yuqi-zhang
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I think we've covered the cases we care about, thanks for fixing it up!
Now one thing to note is that if a systemd unit was overwritten before this patch, we will not restore that file even with this patch in place. This is not a regressive behaviour but is something we can fix if we really wanted to (I don't mind either way). If you are ok with the way it is I can give it the lgtm.
@yuqi-zhang right, let's follow up on that as it's not a regression unless this patch makes it harder to fix that in a follow up even between releases |
| for j := range u.Dropins { | ||
| path := filepath.Join(pathSystemd, u.Name+".d", u.Dropins[j].Name) | ||
| if _, ok := newDropinSet[path]; !ok { | ||
| if _, err := os.Stat(noOrigFileStampName(path)); err == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: Done more than once. Consider making a function in the future.
Yes, I think this is fine. /lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ashcrow, runcom, yuqi-zhang 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 |
|
/test e2e-gcp-upgrade |
|
@runcom: All pull requests linked via external trackers have merged: openshift/machine-config-operator#1715. Bugzilla bug 1764001 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. |
Restarted from #1203 and that's why we have the dropins rename as well (which is something we should do anyway as we ship those).
Backup and restore (when needed) units and dropins
Also, we need #1716
Signed-off-by: Antonio Murdaca [email protected]