FreeKB - OpenShift Resolve "Cluster version operator has not retrieved updates"
OpenShift - Resolve "Cluster version operator has not retrieved updates"

Let's say the output of the oc get clusterversion command to YAML or JSON contains the following event.

~]$ oc get clusterversion -o yaml
  status:
    availableUpdates: null
    conditions:
    - lastTransitionTime: "2021-10-20T07:29:17Z"
      message: 'Unable to retrieve available updates: Get "https://api.openshift.com/api/upgrades_info/v1/graph?arch=amd64&channel=stable-4.6&id=d527af50-a959-4f43-aee1-f270a1968962&version=4.6.8": Proxy Error'
      reason: RemoteFailed
      status: "False"
      type: RetrievedUpdates

 

Notice in this example that the request was to get https://api.openshift.com. If you are unable to ping or lookup api.openshift.com, there might be an issue with your internal network, or with openshift.com.

~]$ nslookup api.openshift.com
Server:         10.14.17.5
Address:        10.14.17.5#53

** server can't find api.openshift.com: NXDOMAIN

 

The oc get pods command can be used to determine if the cluster-version-operator pod is running.

~]$ oc get pods --namespace openshift-cluster-version
NAME                                        READY   STATUS    RESTARTS   AGE
cluster-version-operator-578cbbcfc7-pgs6m   1/1     Running   2          66d

 

The oc describe pod command can be used to determine if the cluster-version-operator pod has any interesting events.

~]$ oc describe pod cluster-version-operator-578cbbcfc7-pgs6m --namespace openshift-cluster-version
Events:          <none>

 

The oc get clusteroperator command can be used to determine if any of the cluster operators are unavailable or degraded.

~]$ oc get clusteroperator
NAME                                       VERSION   AVAILABLE   PROGRESSING   DEGRADED   SINCE
authentication                             4.6.8     True        False         False      3d2h
cloud-credential                           4.6.8     True        False         False      363d
cluster-autoscaler                         4.6.8     True        False         False      363d
config-operator                            4.6.8     True        False         False      363d
console                                    4.6.8     True        False         False      13d
csi-snapshot-controller                    4.6.8     True        False         False      66d
dns                                        4.6.8     True        False         False      234d
etcd                                       4.6.8     True        False         False      363d
image-registry                             4.6.8     True        False         False      66d
ingress                                    4.6.8     True        False         False      66d
insights                                   4.6.8     True        False         False      363d
kube-apiserver                             4.6.8     True        False         False      363d
kube-controller-manager                    4.6.8     True        False         False      363d
kube-scheduler                             4.6.8     True        False         False      363d
kube-storage-version-migrator              4.6.8     True        False         False      66d
machine-api                                4.6.8     True        False         False      363d
machine-approver                           4.6.8     True        False         False      363d
machine-config                             4.6.8     True        False         False      66d
marketplace                                4.6.8     True        False         False      66d
monitoring                                 4.6.8     True        False         False      66d
network                                    4.6.8     True        False         False      363d
node-tuning                                4.6.8     True        False         False      234d
openshift-apiserver                        4.6.8     True        False         False      66d
openshift-controller-manager               4.6.8     True        False         False      3d14h
openshift-samples                          4.6.8     True        False         False      234d
operator-lifecycle-manager                 4.6.8     True        False         False      363d
operator-lifecycle-manager-catalog         4.6.8     True        False         False      363d
operator-lifecycle-manager-packageserver   4.6.8     True        False         False      66d
service-ca                                 4.6.8     True        False         False      363d
storage                                    4.6.8     True        False         False      234d

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter 1a974 in the box below so that we can be sure you are a human.




Comments

Web design by yours truely - me, myself, and I   |   jeremy.canfield@freekb.net   |