Repository navigation
Description
Unsure if this is causing any performance issues (it has not from what I can tell but)
The Cluster Operator machine-config-operator seems to cycle through statuses when the cluster is relatively idle (ie I am not performing and updates/applying mcs/etc...). Not sure why the status is changing but it makes for a confusing user experience. See the following.
$ oc get clusteroperator -n machine-config-operator yields varying statuses within very short periods of time. For example:
machine-config-operator 3.11.0-494-g18b8dc50-dirty True False False 7s
machine-config-operator 3.11.0-494-g18b8dc50-dirty False True False 1s
In another example, I see changes in the conditions: section but the bottom entry also never changes? So the top two alternate between Available, False / Progressing, True but the oldest entry also never seems to change?
$ oc get clusteroperator machine-config-operator -o yaml -w
apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
creationTimestamp: 2019-01-23T18:14:33Z
generation: 1
name: machine-config-operator
resourceVersion: "919947"
selfLink: /apis/config.openshift.io/v1/clusteroperators/machine-config-operator
uid: bbc5a98d-1f3a-11e9-a4a4-02204cc1daaa
spec: {}
status:
conditions:
- lastTransitionTime: 2019-01-24T18:39:17Z
status: "False"
type: Available
- lastTransitionTime: 2019-01-24T18:39:17Z
message: Progressing towards 3.11.0-494-g18b8dc50-dirty
status: "True"
type: Progressing
- lastTransitionTime: 2019-01-24T02:24:05Z
status: "False"
type: Failing
extension:
master: all 3 nodes are at latest configuration master-8b907698492f2829b35f6f826511dfa6
worker: all 3 nodes are at latest configuration worker-58b30499568a7a2588b05ed01bba91a7
version: 3.11.0-494-g18b8dc50-dirty
apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
creationTimestamp: 2019-01-23T18:14:33Z
generation: 1
name: machine-config-operator
resourceVersion: "919948"
selfLink: /apis/config.openshift.io/v1/clusteroperators/machine-config-operator
uid: bbc5a98d-1f3a-11e9-a4a4-02204cc1daaa
spec: {}
status:
conditions:
- lastTransitionTime: 2019-01-24T18:39:22Z
status: "True"
type: Available
- lastTransitionTime: 2019-01-24T18:39:22Z
status: "False"
type: Progressing
- lastTransitionTime: 2019-01-24T02:24:05Z
status: "False"
type: Failing
extension:
master: all 3 nodes are at latest configuration master-8b907698492f2829b35f6f826511dfa6
worker: all 3 nodes are at latest configuration worker-58b30499568a7a2588b05ed01bba91a7
version: 3.11.0-494-g18b8dc50-dirty
I'm also not seeing anything happening in the oc logs -f for the machine-config-operator at the times indicated in the statuses.
Does anyone have an idea why this is happening? Why do the top two alternate, when from what I can tell nothing is happening in the MCO oc logs -f?
Activity
kikisdeliveryservice commentedon Jan 24, 2019
cc @eparis
I've seen the same behaviour that you describe and have opened this issue.
cc @abhinavdahiya i think this is from operator sync.go/status/go etc - do you have any idea what is happening?
[-]MCO Cluster Operator[/-][+]MCO Cluster Operator statuses frequently changing[/+]eparis commentedon Jan 24, 2019
While 'available' is false we won't be able to apply any cluster updates and the CVO won't be able to do it's job, right?
kikisdeliveryservice commentedon Jan 24, 2019
Add: watching the
SINCEcolumn inoc get clusteroperator -n machine-config-operatorI'm not seeing it make it over ~15s before it resets to 0s. Is this expected?sjenning commentedon Jan 29, 2019
Below is a 2 minute watch at 1s intervals.
tl;dr the status is
Availablefor ~20s, then moves toProgressing. Status is updated again after about 5s but is still inProgressingstate. Status is updated again after about 5s moving toAvailable. It stays Available for about 20s again, then repeat. The period of the cycle is ~30s, of which, 1/3 is spent inProgressingstate.kikisdeliveryservice commentedon Feb 1, 2019
This issue should be fixed by #351 : The underlying cause was that the MCO was not adhering to CVO status rules. The "Available" status was erroneously tracking the "Progressing" status (which currently changes frequently due to MCO informer changes) instead of tracking whether the cluster is actually available at status: version X and functional.
Closing this issue now. Thanks for your helpful logs and reports. If you see any problems in the future, we will reopen.
cgwalters commentedon Feb 11, 2019
Commenting on a closed issue, I know. Not worth a new one yet. I notice we still bounce into Progressing a lot seemingly for no reason.
kikisdeliveryservice commentedon Feb 12, 2019
@cgwalters It will switch to Progressing whenever something is going on with any of the informers: #351 (comment)
It happens so often though, I'm not sure it makes for a meaningful status.
runcom commentedon Feb 12, 2019
This is supposed to fix the bouncing #406