Skip to content

Codify performance manifests#24

Merged
openshift-merge-robot merged 5 commits intoopenshift-kni:masterfrom
cynepco3hahue:create_resources
Jan 2, 2020
Merged

Codify performance manifests#24
openshift-merge-robot merged 5 commits intoopenshift-kni:masterfrom
cynepco3hahue:create_resources

Conversation

@cynepco3hahue
Copy link
Contributor

@cynepco3hahue cynepco3hahue commented Dec 25, 2019

Codify performance manifests to make it easier to introduce complex logic for applying this manifest.

  • cluster feature gate resource
  • kubelet config resource
  • machine config resource
  • machine config pool
  • tuned resource
  • add unittest for all generation methods

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Dec 25, 2019
@openshift-ci-robot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cynepco3hahue

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 openshift-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 25, 2019
Artyom Lukianov added 2 commits December 26, 2019 16:33
Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
The asset directory will include:
- shell scripts needed for performance machine configuration resource
- tuned profiles needed for performance tuned resource

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
@openshift-ci-robot openshift-ci-robot added size/XXL Denotes a PR that changes 1000+ lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. labels Dec 26, 2019
@cynepco3hahue cynepco3hahue changed the title [WIP] Codify performance manifests Codify performance manifests Dec 29, 2019
@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 Dec 29, 2019
@cynepco3hahue cynepco3hahue force-pushed the create_resources branch 5 times, most recently from e368b48 to 5a3c2af Compare December 31, 2019 11:19

sed -i "s^initrd .*\$^& ${RHCOS_OSTREE_BOOTLOADER_PATH}iso_initrd.img^" $entry_file

#TODO - once RHCOS image contains the initrd content we can set parameters with rpm-ostree:
Copy link
Member

Choose a reason for hiding this comment

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

We might actually be able to test that already with latest RHCOS changes , but ill do it in another PR

Artyom Lukianov added 2 commits January 2, 2020 11:19
- cluster feature gate resource
- kubelet config resource
- machine config resource
- machine config pool
- tuned resource

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
It should validate correctness of yaml generation with specified parameters.

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
[cpu]
# https://github.com/redhat-performance/tuned/blob/master/profiles/latency-performance/tuned.conf
# https://github.com/redhat-performance/tuned/blob/master/profiles/network-latency/tuned.conf
force_latency=cstate.id:1|3
Copy link
Member

Choose a reason for hiding this comment

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

there might be an issue with this format of setting latency (using the OR operand) , investigating this but worth checking if tuned pod doesn't have any errors with that here .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We can fix it under the separate PR

}

func getKernelArgs(hugePages *performancev1alpha1.HugePages, isolatedCPUs *performancev1alpha1.CPUSet) []string {
kargs := []string{
Copy link
Member

Choose a reason for hiding this comment

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

Can we pass these values in the CR as well ? Can we and do we want to pass then in the CR ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Currently, I pass the whole performance profile.

@yanirq
Copy link
Member

yanirq commented Jan 2, 2020

@cynepco3hahue overall looks ok , If there are specific files that were not migrated as they are and are worth a second look please specify them.
Also need to see e2e tests pass

Signed-off-by: Artyom Lukianov <alukiano@redhat.com>
@cynepco3hahue
Copy link
Contributor Author

@yanirq e2e tests

@cynepco3hahue overall looks ok , If there are specific files that were not migrated as they are and are worth a second look please specify them.
Also need to see e2e tests pass

Fixed unittest, e2e tests requires the deployment of the operator, will create following PR once #25 will be merged.

@yanirq
Copy link
Member

yanirq commented Jan 2, 2020

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 2, 2020
@openshift-merge-robot openshift-merge-robot merged commit 2291ac2 into openshift-kni:master Jan 2, 2020
@openshift-ci-robot
Copy link
Collaborator

@cynepco3hahue: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/prow/e2e-gcp d29c154 link /test e2e-gcp

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.

Copy link
Member

@davidvossel davidvossel left a comment

Choose a reason for hiding this comment

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

nice pr! i know I'm reviewing retroactively. I just thought it would be worth leaving some notes of things I saw along the way of looking through the changes.

// LabelMachineConfigurationRole defines the label for machine configuration role
LabelMachineConfigurationRole = "machineconfiguration.openshift.io/role"
// LableMachineConfigPoolRole defines the label for machine config pool role
LableMachineConfigPoolRole = "machineconfigpool.openshift.io/role"
Copy link
Member

Choose a reason for hiding this comment

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

s/lable/label

// Enabled enables real time kernel on relevant nodes.
Enabled *bool `json:"enabled,omitempty"`
// RepoURL defines the URL to the repository with real time kernel packages
RepoURL *string `json:"repoURL,omitempty"`
Copy link
Member

Choose a reason for hiding this comment

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

is this going to eventually turn back into a boolean soon?

`

var _ = Describe("Tuned", func() {
Context("with worker real time kerbnel profile", func() {
Copy link
Member

Choose a reason for hiding this comment

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

kerbnel/kernel

dshchedr pushed a commit to dshchedr/performance-addon-operators that referenced this pull request Mar 26, 2020
Added more tests to sctp feature. Tests: KernelModule, Connectivity
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/XXL Denotes a PR that changes 1000+ lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants