Repository navigation
pkg/daemon: roll back kargs on error and ignore kargs update on non-RHCOS - #824
Conversation
Signed-off-by: Antonio Murdaca <[email protected]>
|
This makes sense to me 👍 , will let @cgwalters review |
|
/retest |
1 similar comment
|
/retest |
There was a problem hiding this comment.
Hm. It feels more to me like erroring out is the correct thing. Probably?
I dunno. This MCD-on-not-RHCOS is a super messy topic...
Is there a specific reason you're making this change? I just want to understand this more.
The reason we silently ignore osImageURL on not-RHCOS is because it's always there. But at least today kargs are not always there.
When the installer changes to use KernelArguments for nosmt, is it really right for us to silently ignore that request for BYO RHEL?
There was a problem hiding this comment.
oh well, the only reason was to emulate osimageurl but your point that Kargs aren't always there makes total sense, dropping that commit! Thanks!
There was a problem hiding this comment.
I keep vacillating on this; following the installer-nosmt scenario above though, since the MCD today doesn't handle kargs for not-RHCOS, the user would need to use Ansible or whatever for that, but the MCD would go into a degraded state and not handle the parts it can handle (files).
So...maybe your change is right? I dunno.
I guess perhaps the more ideal thing would be for us to inspect the host and not make a change if we didn't need to - then the MCD would be degraded until Ansible ran.
There was a problem hiding this comment.
I guess perhaps the more ideal thing would be for us to inspect the host and not make a change if we didn't need to - then the MCD would be degraded until Ansible ran.
I'm leaning towards this indeed. This way an admin can see something is wrong in the pool and take action instead of silently wtf'ing because kargs isn't applied (same for fips at this point)
There was a problem hiding this comment.
Yeah, it seems clearly better, but would require reworking our kargs code. Anyways this PR as is looks clearly right.
There was a problem hiding this comment.
I guess perhaps the more ideal thing would be for us to inspect the host and not make a change if we didn't need to
just to understand, inspect the host to see if we need to make the kargs changes? or...?
|
/lgtm |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cgwalters, 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 |
|
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
|
/retest Please review the full test history for this PR and help us cut down flakes. |
pkg/daemon: roll back kargs on error and ignore kargs update on non-RHCOS
Signed-off-by: Antonio Murdaca [email protected]
- What I did
Fixed some late review comments that I've just noticed over at https://github.com/openshift/machine-config-operator/pull/762/files#diff-13f28de2a32e0dab8f73b67aa5af9803R24
- How to verify it
- Description for the changelog