Skip to content

Conversation

@sinnykumari
Copy link
Contributor

@sinnykumari sinnykumari commented Dec 12, 2019

By default we use traditional kernel on RHCOS system. With this,
one can create a MachineConfig specifying kernelType: realtime .
Once this MachineConfig is applied to OpenShift cluster,
targetted RHCOS node should switch to using realtime kernel.

Currently, realtime kernel packages are shipped as rpm files in
RHCOS OSContainer. MCO fetches those rpms from OSContainer and
uses rpm-ostree to layer realtime kernel on host.

@openshift-ci-robot openshift-ci-robot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 12, 2019
Copy link
Contributor

@kikisdeliveryservice kikisdeliveryservice left a comment

Choose a reason for hiding this comment

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

@sinnykumari is there any background on this change?

Also I would do an e2e on this when you are finished.

@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch from 83f571d to b24edd0 Compare December 17, 2019 11:27
@sinnykumari sinnykumari changed the title WIP: Add realtime to MachineConfig WIP: Add kernelType to MachineConfig Dec 17, 2019
@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch from b24edd0 to e3cbdd5 Compare December 20, 2019 15:18
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Dec 20, 2019
cynepco3hahue pushed a commit to cynepco3hahue/performance-addon-operators that referenced this pull request Dec 31, 2019
We should provide the real time kernel install and update pathes until the
openshift/machine-config-operator#1330 will be merged.

Signed-off-by: Artyom Lukianov <[email protected]>
cynepco3hahue pushed a commit to cynepco3hahue/performance-addon-operators that referenced this pull request Jan 2, 2020
We should provide the real time kernel install and update pathes until the
openshift/machine-config-operator#1330 will be merged.

Signed-off-by: Artyom Lukianov <[email protected]>
@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch from e3cbdd5 to 1eacdea Compare January 8, 2020 06:51
@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch from 1eacdea to 18d108e Compare January 16, 2020 11:46
@sinnykumari sinnykumari changed the title WIP: Add kernelType to MachineConfig Add kernelType to MachineConfig Jan 16, 2020
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jan 16, 2020
@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch from 18d108e to 5db5a59 Compare January 16, 2020 14:00
@sinnykumari
Copy link
Contributor Author

There were lot of changes since the original implementation were made. To avoid confusion and get a fresh review, have done force push. This should be good for review now.

@runcom
Copy link
Member

runcom commented Jan 16, 2020

just a super minor nit but the rest looks super sane
/approve

will let others to review again before getting this in

@cgwalters
Copy link
Member

Looking at this, I can definitely see the cost to the MCO of shipping kernel-rt the way we are; it would be simplest with two osImageURL, a bit less simple with two refs in the same container. But there'd be a lot of tech debt to pay down to implement that buildsystem side.

Also, while updating the RHCOS machine with realtime kernel,
check if new kernel-rt packages are available. Update
rt-kernel on host only when OS update contains updated kernel-rt.
@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch from e048de0 to 36ccb1c Compare January 22, 2020 17:07
@openshift-ci-robot openshift-ci-robot removed the lgtm Indicates that a PR is ready to be merged. label Jan 22, 2020
@sinnykumari
Copy link
Contributor Author

Retrying as it says level=error msg="Error: ResourceLimitExceeded: Task limit exceeded"

/test e2e-aws
/test e2e-aws-scaleup-rhel7

@runcom
Copy link
Member

runcom commented Jan 22, 2020

/skip

1 similar comment
@runcom
Copy link
Member

runcom commented Jan 22, 2020

/skip

@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch 3 times, most recently from b74cd5c to 67f3f11 Compare January 23, 2020 06:32
@sinnykumari
Copy link
Contributor Author

I moved following rpm-ostree command execution back in the respective if condition so that we never accidentally run it.

if err := exec.Command("rpm-ostree", args...).Run(); err != nil {
    return fmt.Errorf("Failed to execute rpm-ostree %+q : %v", args, err)
}

@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch from 67f3f11 to d9df159 Compare January 23, 2020 06:42
@runcom
Copy link
Member

runcom commented Jan 23, 2020

/skip

@sinnykumari sinnykumari force-pushed the realtime-machineconfig branch from d9df159 to 8ee18d9 Compare January 23, 2020 09:07
@runcom
Copy link
Member

runcom commented Jan 23, 2020

op e2e failing for the usual flakes

level=error msg="Error: Error applying IAM policy to project \"openshift-gce-devel-ci\": Too many conflicts.  Latest error: Error setting IAM policy for project \"openshift-gce-devel-ci\": googleapi: Error 409: There were concurrent policy changes. Please retry the whole read-modify-write with exponential backoff., aborted"

@sinnykumari
Copy link
Contributor Author

/retest e2e-gcp-op

@sinnykumari
Copy link
Contributor Author

/test e2e-gcp-op

@MarSik
Copy link
Contributor

MarSik commented Jan 23, 2020

/retest

@runcom
Copy link
Member

runcom commented Jan 23, 2020

/lgtm
/skip

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

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: runcom, sinnykumari

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

@openshift-ci-robot
Copy link
Contributor

@sinnykumari: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
ci/prow/e2e-aws-scaleup-rhel7 8ee18d9 link /test e2e-aws-scaleup-rhel7

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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. I understand the commands that are listed here.

@runcom
Copy link
Member

runcom commented Jan 23, 2020

/skip

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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.