+++ This bug was initially created as a clone of Bug #1812745 +++ Description of problem: `oc explain egressnetworkpolicy` returns empty description Version-Release number of selected component (if applicable): openshift-clients-4.4.0-202003060720.git.0.f2e420d.el7.x86_64 $ oc version --client -o yaml clientVersion: buildDate: "2020-03-06T07:29:25Z" compiler: gc gitCommit: 2576e482bf003e34e67ba3d69edcf5d411cfd6f3 gitTreeState: clean gitVersion: 4.4.0-202003060720-2576e48 goVersion: go1.13.4 major: "" minor: "" platform: linux/amd64 How reproducible: Always Steps to Reproduce: 1. oc explain egressnetworkpolicy Actual results: $ oc explain egressnetworkpolicy KIND: EgressNetworkPolicy VERSION: network.openshift.io/v1 DESCRIPTION: <empty> Expected results: Output the explanation of the resources.
I checked it's working well with openshift-clients-4.4.0-202002120246.git.1.e93a139.el7.x86_64 #oc explain egressnetworkpolicy KIND: EgressNetworkPolicy VERSION: network.openshift.io/v1 DESCRIPTION: EgressNetworkPolicy describes the current egress network policy for a Namespace. When using the 'redhat/openshift-ovs-multitenant' network plugin, traffic from a pod to an IP address outside the cluster will be checked against each EgressNetworkPolicyRule in the pod's namespace's EgressNetworkPolicy, in order. If no rule matches (or no EgressNetworkPolicy is present) then the traffic will be allowed by default. FIELDS: apiVersion <string> APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind <string> Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds metadata <Object> Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata spec <Object> -required- spec is the specification of the current egress network policy [zzhao@dhcp-140-240 ~]$ oc version Client Version: v4.4.0 Server Version: 4.4.0-0.nightly-2020-03-09-205007 Kubernetes Version: v1.17.1
$ oc explain egressnetworkpolicy KIND: EgressNetworkPolicy VERSION: network.openshift.io/v1 DESCRIPTION: <empty> $ oc version Client Version: 4.4.0-202003060720-2576e48 Server Version: 4.3.5 Kubernetes Version: v1.16.2 [lxia@ocp tierN]$ oc explain egressnetworkpolicy KIND: EgressNetworkPolicy VERSION: network.openshift.io/v1 DESCRIPTION: <empty>
Retested it, it is working. [fedora@preserved-huirwang ~]$ oc version Client Version: 4.4.0-rc.0 Server Version: 4.4.0-0.nightly-2020-03-10-194324 Kubernetes Version: v1.17.1 [fedora@preserved-huirwang ~]$ oc explain egressnetworkpolicy KIND: EgressNetworkPolicy VERSION: network.openshift.io/v1 DESCRIPTION: EgressNetworkPolicy describes the current egress network policy for a Namespace. When using the 'redhat/openshift-ovs-multitenant' network plugin, traffic from a pod to an IP address outside the cluster will be checked against each EgressNetworkPolicyRule in the pod's namespace's EgressNetworkPolicy, in order. If no rule matches (or no EgressNetworkPolicy is present) then the traffic will be allowed by default. FIELDS: apiVersion <string> APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources kind <string> Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds metadata <Object> Standard object's metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata spec <Object> -required- spec is the specification of the current egress network policy
Move it to 4.3 as I can reproduce with oc client 4.2/4.3/4.4 on a 4.3 cluster. $ oc/oc-4.2.20-202002140432.git.1.5dc67c9.el7 explain egressnetworkpolicy KIND: EgressNetworkPolicy VERSION: network.openshift.io/v1 DESCRIPTION: <empty> $ oc/oc-4.3.6-202003090404.git.0.ee3be2a.el7 explain egressnetworkpolicy KIND: EgressNetworkPolicy VERSION: network.openshift.io/v1 DESCRIPTION: <empty> $ oc/oc-4.4.0-202003060720.git.0.f2e420d.el7 explain egressnetworkpolicy KIND: EgressNetworkPolicy VERSION: network.openshift.io/v1 DESCRIPTION: <empty>
The server info (installer-provisioned infrastructure on OpenStack), $ oc get clusterversion NAME VERSION AVAILABLE PROGRESSING SINCE STATUS version 4.3.5 True False 3d2h Cluster version is 4.3.5 $ oc version -o yaml ...... openshiftVersion: 4.3.5 serverVersion: buildDate: "2020-03-02T08:50:52Z" compiler: gc gitCommit: b3bfb5a gitTreeState: clean gitVersion: v1.16.2 goVersion: go1.12.12 major: "1" minor: "16" platform: linux/amd64
thanks liang xia found this issue, this is known issue but seems have not backport to 4.3, actually it's not only 'egressnetworkpolicy', but also other crd. see bug https://bugzilla.redhat.com/show_bug.cgi?id=1777707.