Skip to content
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

removed the workerlatencyprofile status related code #3129

Merged
merged 2 commits into from May 5, 2022

Conversation

sairameshv
Copy link
Member

@sairameshv sairameshv commented May 2, 2022

- What I did
Removed the code related to the worker latency profile status updates from the config Node custom resource
- How to verify it
Update the config node CR with a relevant worker latency profile type and observe that there is no status update present in the config Node CR
- Description for the changelog

The worker latency profile status update will be written to the corresponding operator statuses such as KubeAPIServer Operator and the Kube Controller Manager status. Hence, it is not required to update the config Node CR status again.
Also, a piece of code has been added to generate events whenever there is an update happening on the config node object.

@sairameshv
Copy link
Member Author

cc: @harche @swghosh

@yuqi-zhang
Copy link
Contributor

The context here is, I believe, that we will instead document how to view various objects in the MCO namespace to determine whether the profile has rolled out. I'm fine with this approach since we don't have to modify any MCO status reporting either

@kikisdeliveryservice
Copy link
Contributor

/assign @harche @swghosh @rphillips

@kikisdeliveryservice
Copy link
Contributor

@sairameshv can you please add the description "The worker latency profile status update..." from the PR description to the commit message for this?

@kikisdeliveryservice kikisdeliveryservice added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 2, 2022
@sairameshv
Copy link
Member Author

@sairameshv can you please add the description "The worker latency profile status update..." from the PR description to the commit message for this?

Sure

@sairameshv
Copy link
Member Author

The context here is, I believe, that we will instead document how to view various objects in the MCO namespace to determine whether the profile has rolled out. I'm fine with this approach since we don't have to modify any MCO status reporting either

Just to add to this, I have updated the code to generate the events incase of updates happening to the config node CR.

@swghosh
Copy link
Member

swghosh commented May 4, 2022

/test e2e-aws

@harche
Copy link
Contributor

harche commented May 4, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 4, 2022
@harche
Copy link
Contributor

harche commented May 4, 2022

/hold

@harche
Copy link
Contributor

harche commented May 4, 2022

/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label May 4, 2022
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 4, 2022
@harche
Copy link
Contributor

harche commented May 4, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 4, 2022
@sairameshv
Copy link
Member Author

/retest

Copy link
Contributor

@yuqi-zhang yuqi-zhang left a comment

Choose a reason for hiding this comment

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

Generally lgtm, one question below (please also format the commit message)

@@ -242,7 +227,7 @@ func (ctrl *Controller) addNodeConfig(obj interface{}) {
if nodeConfig.Name != ctrlcommon.ClusterNodeInstanceName {
message := fmt.Sprintf("The node.config.openshift.io \"%v\" is invalid: metadata.name Invalid value: \"%v\" : must be \"%v\"", nodeConfig.Name, nodeConfig.Name, ctrlcommon.ClusterNodeInstanceName)
glog.V(2).Infof(message)
ctrl.updateNodeConfigDegradedStatus(nodeConfig, message, "UpdateProhibited")
ctrl.eventRecorder.Eventf(nodeConfig, corev1.EventTypeNormal, "ActionProhibited", message)
Copy link
Contributor

Choose a reason for hiding this comment

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

For errors in the controller for nodes objects, other than events here, is there anywhere else this gets bubbled to?

Copy link
Contributor

Choose a reason for hiding this comment

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

The ideal place for errors related to config node objects would have been the status filed of the node config object. But unfortunately, we don't have it anymore. We don't want to introduce any unnecessary coupling between Machine Config Pool and Worker Latency Profiles by adding any Worker Latency Profile specific statuses there.

So we thought of just emitting an event here so that we can passively let the user know that they are attempting a prohibited transition (e.g. default to low or vice-versa) and it has been rejected. IMO, this is slightly better than asking the user to look into the logs of the machine config controller.

Copy link
Contributor

Choose a reason for hiding this comment

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

ack, thanks!

The workerlatencyprofile status update will be written to the corresponding operator
such as KubeAPIServer Operator and the Kube Controller Manager
Hence, it is not required to update the status of the config node CR
A piece of code has been added to generate events whenever there is a config node update
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label May 5, 2022
@sairameshv
Copy link
Member Author

/retest

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label May 5, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 5, 2022

@sairameshv: all tests passed!

Full PR test history. Your PR dashboard.

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.

@rphillips
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label May 5, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented May 5, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: harche, rphillips, sairameshv, swghosh, yuqi-zhang

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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-merge-robot openshift-merge-robot merged commit f0343a9 into openshift:master May 5, 2022
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants