openshift-docs icon indicating copy to clipboard operation
openshift-docs copied to clipboard

BZ1937814: MCP transitions to UPDATING and READYMACHINECOUNT decrements on cordon

Open mburke5678 opened this issue 3 years ago • 9 comments

https://bugzilla.redhat.com/show_bug.cgi?id=1937814

Documenting what MCP status (oc get mcp) field signifies in product doc would avoid confusion on why MCO is reporting a given state.

For the start we can get these information from MCP API doc https://github.com/openshift/machine-config-operator/blob/master/pkg/apis/machineconfiguration.openshift.io/v1/types.go#L284-L298 .

The problem here is MCO is not updating a node, instead a user manually cordoned a node. As a result MCO updates its ReadyMachineCount to 2 and moves its status to updating. Updated machinecount is still 3 because node has desired rendered MachineConfig which means there is no pending update from MCO side. If it doesn't do that and user creates a MachineConfig, there is high chance that multiple node will be in cordon state (one that user manually did and one that MCO started) and it may cause workload disruption and other undesired state.

mburke5678 avatar Oct 11 '22 21:10 mburke5678

@sinnykumari PTAL

mburke5678 avatar Oct 11 '22 21:10 mburke5678

🤖 Updated build preview is available at: https://51545--docspreview.netlify.app

Build log: https://circleci.com/gh/ocpdocs-previewbot/openshift-docs/2055

ocpdocs-previewbot avatar Oct 11 '22 21:10 ocpdocs-previewbot

@rioliu-rh PTAL. I greatly appreciate your input!

mburke5678 avatar Oct 13 '22 13:10 mburke5678

I agree with Trevor as well, it will be good to have MCO API comment up-to-date so that this PR can directly refer to it. I have created a MCO story to work on it https://issues.redhat.com/browse/MCO-403 . Since, this is not an urgent issue, perhaps we can wait on getting MCO-403 done and update this PR accordingly.

sinnykumari avatar Oct 14 '22 13:10 sinnykumari

@sinnykumari @yuqi-zhang @rioliu-rh

This line, is _ Expect them to be hidden at some point in the future._ true? Note that the machineconfigs listed as rendered are not meant to be changed or deleted. Expect them to be hidden at some point in the future.

mburke5678 avatar Oct 14 '22 15:10 mburke5678

@sinnykumari Do we want to merge this PR now (when it's ready, of course!), to get the info out to the users and we can edit as needed after the API comments are updated? I think I've made some good progress at improving the end user docs.

mburke5678 avatar Oct 14 '22 20:10 mburke5678

we can go with this PR as well and make any additional edits later on. No need to block this PR.

sinnykumari avatar Oct 17 '22 08:10 sinnykumari

@rioliu-rh I made a number of changes based on your suggestions. Could I bother take another look?

mburke5678 avatar Oct 17 '22 19:10 mburke5678

@rioliu-rh I made a number of changes based on your suggestions. Could I bother take another look?

lgtm

rioliu-rh avatar Oct 17 '22 23:10 rioliu-rh

/cherrypick enterprise-4.12

mburke5678 avatar Oct 19 '22 16:10 mburke5678

@mburke5678: new pull request created: #51851

In response to this:

/cherrypick enterprise-4.12

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.

/cherrypick enterprise-4.11

mburke5678 avatar Oct 19 '22 17:10 mburke5678

/cherrypick enterprise-4.10

mburke5678 avatar Oct 19 '22 17:10 mburke5678

/cherrypick enterprise-4.9

mburke5678 avatar Oct 19 '22 17:10 mburke5678

/cherrypick enterprise-4.8

mburke5678 avatar Oct 19 '22 17:10 mburke5678

/cherrypick enterprise-4.7

mburke5678 avatar Oct 19 '22 17:10 mburke5678

@mburke5678: new pull request created: #51852

In response to this:

/cherrypick enterprise-4.11

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.

@mburke5678: new pull request created: #51853

In response to this:

/cherrypick enterprise-4.10

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.

@mburke5678: new pull request created: #51854

In response to this:

/cherrypick enterprise-4.9

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.

@mburke5678: new pull request created: #51855

In response to this:

/cherrypick enterprise-4.8

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.

@mburke5678: new pull request created: #51856

In response to this:

/cherrypick enterprise-4.7

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.