Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 2041133

Summary: 'oc explain route.status.ingress.conditions' shows type 'Currently only Ready' but actually is 'Admitted'
Product: OpenShift Container Platform Reporter: Xingxing Xia <xxia>
Component: NetworkingAssignee: Grant Spence <gspence>
Networking sub component: router QA Contact: Melvin Joseph <mjoseph>
Status: CLOSED ERRATA Docs Contact:
Severity: low    
Priority: low CC: gspence, mmasters
Version: 4.10Keywords: EasyFix, Triaged
Target Milestone: ---   
Target Release: 4.11.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Incorrect wording in "oc explain route.status.ingress.conditions" as specified by the Openshift API. Consequence: Inconsistent wording in Openshift API. Fix: Change "Currently only Ready" to "Admitted" for "oc explain route.status.ingress.conditions" Result: Consistent wording in Openshift API.
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-08-10 10:42:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Xingxing Xia 2022-01-16 04:23:04 UTC
Description of problem:
'oc explain route.status.ingress.conditions' shows 'Currently only Ready' but actually is 'Admitted'

OpenShift release version:
$ oc version
Client Version: 4.10.0-202201122238.p0.gda3f635.assembly.stream-da3f635
Server Version: 4.10.0-0.nightly-2022-01-15-092722
Kubernetes Version: v1.23.0+60f5a1c

How reproducible:
Always

Steps to Reproduce (in detail):
$ oc explain route.status.ingress.conditions
...
   type	<string> -required-
     Type is the type of the condition. Currently only Ready.

Actual results:
It says type 'Currently only Ready', which seems to mean 'type' can only be 'Ready'. But checked any routes:
$ oc get route -A -o yaml | grep 'type: '
        type: Admitted
        ...snipped...
        type: Admitted

'type' is actually 'Admitted' rather.

Expected results:
'oc explain route.status.ingress.conditions' should show correct values for 'type'.

Additional info:

Comment 1 Miciah Dashiel Butler Masters 2022-01-17 04:01:19 UTC
Setting blocker- as this is not a regression or upgrade issue.

Comment 3 Melvin Joseph 2022-02-21 06:53:33 UTC
melvinjoseph@mjoseph-mac Downloads % oc version
Client Version: 4.9.11
Server Version: 0.0.1-0.test-2022-02-21-055439-ci-ln-h5p4mxt-latest
Kubernetes Version: v1.22.1-4779+194b63959f0a95-dirty
melvinjoseph@mjoseph-mac Downloads % 
melvinjoseph@mjoseph-mac Downloads % 
melvinjoseph@mjoseph-mac Downloads % oc explain route.status.ingress.conditions
KIND:     Route
VERSION:  route.openshift.io/v1

RESOURCE: conditions <[]Object>

DESCRIPTION:
     Conditions is the state of the route, may be empty.

     RouteIngressCondition contains details for the current condition of this
     route on a particular router.

FIELDS:
   lastTransitionTime	<string>
     RFC 3339 date and time when this condition last transitioned

   message	<string>
     Human readable message indicating details about last transition.

   reason	<string>
     (brief) reason for the condition's last transition, and is usually a
     machine and human readable constant

   status	<string> -required-
     Status is the status of the condition. Can be True, False, Unknown.

   type	<string> -required-
     Type is the type of the condition. Currently only Admitted.

melvinjoseph@mjoseph-mac Downloads % 
melvinjoseph@mjoseph-mac Downloads % 
melvinjoseph@mjoseph-mac Downloads % oc get route -A -o yaml | grep 'type: '
        type: Admitted
        ....snipped...
        type: Admitted

Comment 4 Melvin Joseph 2022-02-22 05:07:35 UTC
melvinjoseph@mjoseph-mac Downloads %  oc version
Client Version: 4.9.11
Server Version: 0.0.1-0.test-2022-02-22-034732-ci-ln-mvspqwk-latest
Kubernetes Version: v1.22.1-4779+194b63959f0a95-dirty
melvinjoseph@mjoseph-mac Downloads % oc explain route.status.ingress.conditions
oc get route -A -o yaml | grep 'type: '
KIND:     Route
VERSION:  route.openshift.io/v1

RESOURCE: conditions <[]Object>

DESCRIPTION:
     Conditions is the state of the route, may be empty.

     RouteIngressCondition contains details for the current condition of this
     route on a particular router.

FIELDS:
   lastTransitionTime	<string>
     RFC 3339 date and time when this condition last transitioned

   message	<string>
     Human readable message indicating details about last transition.

   reason	<string>
     (brief) reason for the condition's last transition, and is usually a
     machine and human readable constant

   status	<string> -required-
     Status is the status of the condition. Can be True, False, Unknown.

   type	<string> -required-
     Type is the type of the condition. Currently only Admitted.

melvinjoseph@mjoseph-mac Downloads % oc get route -A -o yaml | grep 'type: '
        type: Admitted
        type: Admitted
        ....snipped...
        type: Admitted

Comment 7 Melvin Joseph 2022-02-23 16:26:38 UTC
the PR has been merged into 4.11.0-0.nightly-2022-02-23-045027, seems the robot cannot move it to VERIFIED automatically, so move it to VERIFIED manually.

Comment 10 errata-xmlrpc 2022-08-10 10:42:31 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: OpenShift Container Platform 4.11.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:5069