openshift / training

279 stars 301 forks source link

oc get clusterversion output #430

Closed jaywryan closed 5 years ago

jaywryan commented 5 years ago

The output is inconsistent with the documentation. Below is what I get

$ oc get clusterversion
NAME      AGE
version   1h

My describe produces this output. Can anyone else confirm they get similar results?

$ oc describe clusterversion
Name:         version
Namespace:
Labels:       <none>
Annotations:  <none>
API Version:  config.openshift.io/v1
Kind:         ClusterVersion
Metadata:
  Creation Timestamp:  2019-02-05T20:30:07Z
  Generation:          1
  Resource Version:    13024
  Self Link:           /apis/config.openshift.io/v1/clusterversions/version
  UID:                 d3dba116-2984-11e9-ad95-06c86231ba18
Spec:
  Channel:     fast
  Cluster ID:  ab7170c8-7ae5-4820-8f90-1363b95f6bea
  Upstream:    http://localhost:8080/graph
Status:
  Available Updates:  <nil>
  Conditions:
    Last Transition Time:  2019-02-05T20:45:39Z
    Message:               Done applying 4.0.0-0.2
    Status:                True
    Type:                  Available
    Last Transition Time:  2019-02-05T20:43:54Z
    Status:                False
    Type:                  Failing
    Last Transition Time:  2019-02-05T20:45:39Z
    Message:               Cluster version is 4.0.0-0.2
    Status:                False
    Type:                  Progressing
    Last Transition Time:  2019-02-05T20:30:21Z
    Message:               Unable to retrieve available updates: Get http://localhost:8080/graph: dial tcp [::1]:8080: connect: connection refused
    Reason:                RemoteFailed
    Status:                False
    Type:                  RetrievedUpdates
  Desired:
    Image:     quay.io/openshift-release-dev/ocp-release@sha256:8580a118ce951dd241e4a4b73a0e5f4cda3b56088b6c1ab56ccadbf8e270fb1d
    Version:   4.0.0-0.2
  Generation:  1
  History:
    Completion Time:  2019-02-05T20:45:39Z
    Image:            quay.io/openshift-release-dev/ocp-release@sha256:8580a118ce951dd241e4a4b73a0e5f4cda3b56088b6c1ab56ccadbf8e270fb1d
    Started Time:     2019-02-05T20:30:21Z
    State:            Completed
    Version:          4.0.0-0.2
  Version Hash:       Q52DgDhafr0=
Events:               <none>
thoraxe commented 5 years ago
[root@ip-172-31-41-122 ~]# oc version
oc v4.0.0-0.79.0
kubernetes v1.11.0+d4cacc0
features: Basic-Auth GSSAPI Kerberos SPNEGO

Server https://beta-190206-1-api.ocp4testing.openshiftdemos.com:6443
kubernetes v1.12.4+f39ab668d3
[root@ip-172-31-41-122 ~]# oc get clusterversion
NAME      VERSION     AVAILABLE   PROGRESSING   SINCE     STATUS
version   4.0.0-0.3   True        False         58m       Cluster version is 4.0.0-0.3

What oc client are you using?

jaywryan commented 5 years ago

This was exactly the issue...I had the 3.11 oc binary on the box. Thanks!