You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
operator reports status Failed when operand version doesn't match operator version #421
$ oc get clusteroperators machine-config -oyaml
apiVersion: config.openshift.io/v1
kind: ClusterOperator
metadata:
creationTimestamp: 2019-02-13T16:39:19Z
generation: 1
name: machine-config
resourceVersion: "10148"
selfLink: /apis/config.openshift.io/v1/clusteroperators/machine-config
uid: e905907c-2fad-11e9-89a3-02f7cc37a53c
spec: {}
status:
conditions:
- lastTransitionTime: 2019-02-13T16:39:19Z
status: "False"
type: Available
- lastTransitionTime: 2019-02-13T16:39:19Z
message: Progressing towards 3.11.0-619-g975a0c93-dirty
status: "True"
type: Progressing
- lastTransitionTime: 2019-02-13T16:50:03Z
message: 'Failed when progressing towards 3.11.0-619-g975a0c93-dirty because:
error syncing: timed out waiting for the condition during syncRequiredMachineConfigPools:
pool master has not progressed to latest configuration: controller version mismatch
for master-235e3f67d027fee30a461ca75f1f2914 expected 3.11.0-619-g975a0c93-dirty
has 3.11.0-614-gc3638603-dirty'
reason: 'error syncing: timed out waiting for the condition during syncRequiredMachineConfigPools:
pool master has not progressed to latest configuration: controller version mismatch
for master-235e3f67d027fee30a461ca75f1f2914 expected 3.11.0-619-g975a0c93-dirty
has 3.11.0-614-gc3638603-dirty'
status: "True"
type: Failing
extension: {}
relatedObjects: null
versions: null
It seems that the operator expects each operand to match its own version. This should not be a constraint. All that is required is that the image pull spec match the pull spec given to MCO by the CVO.
changed the title [-]operator reports status Failed when subcomponent version doesn't match operator version[/-][+]operator reports status Failed when operand version doesn't match operator version[/+]on Feb 13, 2019
seems that it is trying to verify that the MCO version matches the MCC version that created the MachineConfig
yeah, I was looking at the very same code, we're tagging each MC with a statically built verison of the component itself. Using image specs from the CVO might make sense though (as the only source of truth) . We can tag mc with the image spec, and since the operator has a list of CVO provided images we can match against those (if it makes sense at all)
INFO Waiting up to 30m0s for the cluster to initialize...
DEBUG Still waiting for the cluster to initialize...
DEBUG Still waiting for the cluster to initialize: Cluster operator machine-config has not yet reported success
DEBUG Still waiting for the cluster to initialize: Cluster operator machine-config is reporting a failure: Unable to apply 3.11.0-598-g143c1acb: error syncing: timed out waiting for the condition during syncRequiredMachineConfigPools: pool master has not progressed to latest configuration: controller version mismatch for master-8e32cb9e7734390e7d40ecc06f952efe expected 3.11.0-598-g143c1acb has 3.11.0-624-g6dd0d387-dirty
FATAL failed to initialize the cluster: Cluster operator machine-config is reporting a failure: Unable to apply 3.11.0-598-g143c1acb: error syncing: timed out waiting for the condition during syncRequiredMachineConfigPools: pool master has not progressed to latest configuration: controller version mismatch for master-8e32cb9e7734390e7d40ecc06f952efe expected 3.11.0-598-g143c1acb has 3.11.0-624-g6dd0d387-dirty
It seems that the operator expects each operand to match its own version. This should not be a constraint. All that is required is that the image pull spec match the pull spec given to MCO by the CVO.
This gets into the fact we really haven't been testing MCO upgrades of itself 😦
since oc adm release new allows to only override a specific component, I believe we need to version each component separately and adjust the code to account for that. Updated release will still bundle everything together which doesn't change the fact that we can version components separately.
Synced up with Clayton on this, we expect to ship the MCO as a whole from git so the check is expected and we can't just version every subcomponent separately. I understand it's a pain for development, we'll reiterate on this soon I guess to ease development in case you override just a subcomponent.
Activity
runcom commentedon Feb 13, 2019
we need to relax those checks I guess? or just warn?, taking a stab at this currently
[-]operator reports status Failed when subcomponent version doesn't match operator version[/-][+]operator reports status Failed when operand version doesn't match operator version[/+]runcom commentedon Feb 13, 2019
@sjenning did you run an upgrade after the cluster was up or you installed with the custom release payload?
sjenning commentedon Feb 13, 2019
custom release payload with the
machine-config-controlleroverriddenlooking at
machine-config-operator/pkg/operator/status.go
Lines 225 to 231 in f31d48f
and was added by @abhinavdahiya in #265
seems that it is trying to verify that the MCO version matches the MCC version that created the
MachineConfig@abhinavdahiya why is this constraint needed?
runcom commentedon Feb 13, 2019
yeah, I was looking at the very same code, we're tagging each MC with a statically built verison of the component itself. Using image specs from the CVO might make sense though (as the only source of truth) . We can tag mc with the image spec, and since the operator has a list of CVO provided images we can match against those (if it makes sense at all)
runcom commentedon Feb 13, 2019
ok yeah, I get the same as well:
runcom commentedon Feb 13, 2019
@sjenning a workaround I'm trying for testing/developing is bundling the whole MCO like this:
not sure but I'm testing it out,it works indeedcgwalters commentedon Feb 13, 2019
This gets into the fact we really haven't been testing MCO upgrades of itself 😦
runcom commentedon Feb 13, 2019
do we have a scenario where we just update one of the subcomponents of the MCO in the payload rather than the whole MCO with everything?
runcom commentedon Feb 18, 2019
since
oc adm release newallows to only override a specific component, I believe we need to version each component separately and adjust the code to account for that. Updated release will still bundle everything together which doesn't change the fact that we can version components separately.runcom commentedon Feb 18, 2019
Synced up with Clayton on this, we expect to ship the MCO as a whole from git so the check is expected and we can't just version every subcomponent separately. I understand it's a pain for development, we'll reiterate on this soon I guess to ease development in case you override just a subcomponent.
runcom commentedon Jul 18, 2019
#739 has folded all components into 1 image so this won't be an issue anymore