Skip to content

pkg/daemon: roll back kargs on error and ignore kargs update on non-RHCOS - #824

Merged
openshift-merge-robot merged 1 commit into
openshift:masterfrom
runcom:rollback-kargs
Jun 6, 2019
Merged

openshift-merge-robot merged 1 commit into
openshift:masterfrom
runcom:rollback-kargs

Conversation

@runcom

@runcom runcom commented Jun 5, 2019

Copy link
Copy Markdown
Member

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

  • roll back kargs on error
  • do not bail when trying to update kargs on non-RHOS, just log it as we're doing for OS upgrades

- How to verify it

- Description for the changelog

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Jun 5, 2019
@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 5, 2019
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Jun 5, 2019
@kikisdeliveryservice

Copy link
Copy Markdown
Contributor

This makes sense to me 👍 , will let @cgwalters review

@runcom

runcom commented Jun 5, 2019

Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@runcom

runcom commented Jun 6, 2019

Copy link
Copy Markdown
Member Author

/retest

Comment thread pkg/daemon/update.go Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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?

@runcom runcom Jun 6, 2019 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it seems clearly better, but would require reworking our kargs code. Anyways this PR as is looks clearly right.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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...?

@openshift-ci-robot openshift-ci-robot added size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jun 6, 2019
@cgwalters

Copy link
Copy Markdown
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jun 6, 2019
@openshift-ci-robot

Copy link
Copy Markdown
Contributor

[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

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

@runcom

runcom commented Jun 6, 2019

Copy link
Copy Markdown
Member Author

/retest

1 similar comment
@runcom

runcom commented Jun 6, 2019

Copy link
Copy Markdown
Member Author

/retest

@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot

Copy link
Copy Markdown
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot
openshift-merge-robot merged commit 3e19a0a into openshift:master Jun 6, 2019
@runcom
runcom deleted the rollback-kargs branch June 6, 2019 23:17
ptalgulk01 pushed a commit to ptalgulk01/machine-config-operator that referenced this pull request May 15, 2026
pkg/daemon: roll back kargs on error and ignore kargs update on non-RHCOS
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. lgtm Indicates that a PR is ready to be merged. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants