Bug 1764011

Summary: [sig-api-machinery] CustomResourcePublishOpenAPI [Feature:CustomResourcePublishOpenAPI] removes definition from spec when one versin gets changed to not be served [Suite:openshift/conformance/parallel] [Suite:k8s]
Product: OpenShift Container Platform Reporter: Wei Duan <wduan>
Component: openshift-apiserverAssignee: Stefan Schimanski <sttts>
Status: CLOSED INSUFFICIENT_DATA QA Contact: Xingxing Xia <xxia>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 4.2.0CC: aos-bugs, mfojtik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-11-06 19:49:11 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 Wei Duan 2019-10-22 07:21:24 UTC
Description of problem:

https://testgrid.k8s.io/redhat-openshift-release-4.2-informing-ocp#release-openshift-ocp-installer-e2e-metal-4.2

https://prow.svc.ci.openshift.org/view/gcs/origin-ci-test/logs/release-openshift-ocp-installer-e2e-metal-4.2/104

[sig-api-machinery] CustomResourcePublishOpenAPI [Feature:CustomResourcePublishOpenAPI] removes definition from spec when one versin gets changed to not be served [Suite:openshift/conformance/parallel] [Suite:k8s] 

I1021 08:05:21.044170   28063 test.go:182] openshift-tests excluded test regex is "\\[Disabled:|\\[Disruptive\\]|\\[Skipped\\]|\\[Slow\\]|\\[Flaky\\]|\\[local\\]|\\[Suite:openshift/test-cmd\\]|\\[Skipped:skeleton\\]|\\[Skipped:Network/OpenShiftSDN\\]"
Oct 21 08:05:21.139: INFO: >>> kubeConfig: /tmp/admin.kubeconfig
Oct 21 08:05:21.141: INFO: Waiting up to 30m0s for all (but 100) nodes to be schedulable
Oct 21 08:05:21.769: INFO: Waiting up to 10m0s for all pods (need at least 0) in namespace 'kube-system' to be running and ready
Oct 21 08:05:22.022: INFO: 0 / 0 pods in namespace 'kube-system' are running and ready (0 seconds elapsed)
Oct 21 08:05:22.022: INFO: expected 0 pod replicas in namespace 'kube-system', 0 are Running and Ready.
Oct 21 08:05:22.022: INFO: Waiting up to 5m0s for all daemonsets in namespace 'kube-system' to start
Oct 21 08:05:22.103: INFO: e2e test version: v1.14.6+dd6a797
Oct 21 08:05:22.180: INFO: kube-apiserver version: v1.14.6+2fdcb45
[BeforeEach] [Top Level]
  /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/test/extended/util/test.go:59
[BeforeEach] [sig-api-machinery] CustomResourcePublishOpenAPI [Feature:CustomResourcePublishOpenAPI]
  /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/framework/framework.go:149
STEP: Creating a kubernetes client
Oct 21 08:05:22.188: INFO: >>> kubeConfig: /tmp/admin.kubeconfig
STEP: Building a namespace api object, basename crd-publish-openapi
Oct 21 08:05:22.424: INFO: About to run a Kube e2e test, ensuring namespace is privileged
Oct 21 08:05:23.394: INFO: No PodSecurityPolicies found; assuming PodSecurityPolicy is disabled.
STEP: Waiting for a default service account to be provisioned in namespace
[BeforeEach] [sig-api-machinery] CustomResourcePublishOpenAPI [Feature:CustomResourcePublishOpenAPI]
  /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/apimachinery/crd_publish_openapi.go:55
[It] removes definition from spec when one versin gets changed to not be served [Suite:openshift/conformance/parallel] [Suite:k8s]
  /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/apimachinery/crd_publish_openapi.go:298
STEP: set up a multi version CRD
Oct 21 08:05:23.547: INFO: >>> kubeConfig: /tmp/admin.kubeconfig
STEP: mark a version not serverd
STEP: check the unserved version gets removed
STEP: check the other version is not changed
[AfterEach] [sig-api-machinery] CustomResourcePublishOpenAPI [Feature:CustomResourcePublishOpenAPI]
  /go/src/github.com/openshift/origin/_output/local/go/src/github.com/openshift/origin/vendor/k8s.io/kubernetes/test/e2e/framework/framework.go:150
Oct 21 08:06:15.472: INFO: Waiting up to 3m0s for all (but 100) nodes to be ready
STEP: Destroying namespace "e2e-crd-publish-openapi-9322" for this suite.