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

Bug 1932670

Summary: [install] [OSD] hive ownership validating webhook hiveownership validating webhook a random user cannot delete managed CRQs
Product: OpenShift Container Platform Reporter: Jon Jackson <jonjacks>
Component: HiveAssignee: Greg Sheremeta <gshereme>
Status: CLOSED NOTABUG QA Contact: Greg Sheremeta <gshereme>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.7CC: bparees, gshereme, lwan, mbooth, surbania
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:
[install] [OSD] hive ownership validating webhook hiveownership validating webhook a random user cannot delete managed CRQs [install] [OSD] hive ownership validating webhook hiveownership validating webhook dedicated admins cannot delete managed CRQs [install] [OSD] Configure AlertManager Operator clusterServiceVersion should exist [install] [OSD] Must Gather Operator clusterServiceVersion should exist [install] [OSD] RBAC Operator clusterServiceVersion should exist [install] Cluster state should have no alerts [install] OpenShift Application Build E2E should get created in the cluster
Last Closed: 2021-03-09 11:00:33 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 Jon Jackson 2021-02-24 21:30:41 UTC
test:
[install]  [OSD] hive ownership validating webhook hiveownership validating webhook a random user cannot delete managed CRQs 

is failing frequently in CI, see search results:
https://search.ci.openshift.org/?search=hive+ownership+validating+webhook+hiveownership+validating+webhook+a+random+user+cannot+delete+managed+CRQs&maxAge=168h&context=1&type=bug%2Bjunit&name=4.7&maxMatches=5&maxBytes=20971520&groupBy=job

Failing jobs:
https://testgrid.k8s.io/redhat-openshift-ocp-release-4.7-informing#release-openshift-ocp-osd-gcp-nightly-4.7
https://testgrid.k8s.io/redhat-openshift-ocp-release-4.7-informing#release-openshift-ocp-osd-aws-nightly-4.7

Log Snippet:
# [install] [Suite: e2e] [OSD] hive ownership validating webhook hiveownership validating webhook dedicated admins cannot delete managed CRQs
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/hiveownership_webhook.go:82
Expected an error to have occurred.  Got:
    <nil>: nil
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/hiveownership_webhook.go:86
# [install] [Suite: e2e] [OSD] hive ownership validating webhook hiveownership validating webhook a random user cannot delete managed CRQs
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/hiveownership_webhook.go:58
Unexpected error:
    <*errors.errorString | 0xc0011af0d0>: {
        s: "failed to create ClusterResourceQuota: '&ClusterResourceQuota{ObjectMeta:{      0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] []  []},Spec:ClusterResourceQuotaSpec{Selector:ClusterResourceQuotaSelector{LabelSelector:nil,AnnotationSelector:map[string]string{},},Quota:{map[] [] nil},},Status:ClusterResourceQuotaStatus{Total:{map[] map[]},Namespaces:[]ResourceQuotaStatusByNamespace{},},}': clusterresourcequotas.quota.openshift.io \"managed-second-quota\" already exists",
    }
    failed to create ClusterResourceQuota: '&ClusterResourceQuota{ObjectMeta:{      0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] []  []},Spec:ClusterResourceQuotaSpec{Selector:ClusterResourceQuotaSelector{LabelSelector:nil,AnnotationSelector:map[string]string{},},Quota:{map[] [] nil},},Status:ClusterResourceQuotaStatus{Total:{map[] map[]},Namespaces:[]ResourceQuotaStatusByNamespace{},},}': clusterresourcequotas.quota.openshift.io "managed-second-quota" already exists
occurred
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/hiveownership_webhook.go:64
# [install] [Suite: e2e] [OSD] hive ownership validating webhook hiveownership validating webhook Members of SRE groups can update a managed quota object
/go/src/github.com/openshift/osde2e/pkg/e2e/verify/hiveownership_webhook.go:58
Unexpected error:
    <*errors.errorString | 0xc000622550>: {
        s: "failed to create ClusterResourceQuota: '&ClusterResourceQuota{ObjectMeta:{      0 0001-01-01 00:00:00 +0000 UTC <nil> <nil> map[] map[] [] []  []},Spec:ClusterResourceQuotaSpec{Selector:ClusterResourceQuotaSelector{LabelSelector:nil,AnnotationSelector:map[string]string{},},Quota:{map[] [] nil},},Status:ClusterResourceQuotaStatus{Total:{map[] map[]},Namespaces:[]ResourceQuotaStatusByNamespace{},},}': clusterresourcequotas.quota.openshift.io \"managed-second-quota\" already exists",
    }

Comment 1 Jon Jackson 2021-02-24 21:33:15 UTC
Other related test failures on the same jobs:

[install] [OSD] hive ownership validating webhook hiveownership validating webhook a random user cannot delete managed CRQs
[install] [OSD] hive ownership validating webhook hiveownership validating webhook dedicated admins cannot delete managed CRQs
[install] [OSD] Configure AlertManager Operator clusterServiceVersion should exist
[install] [OSD] Must Gather Operator clusterServiceVersion should exist
[install] [OSD] RBAC Operator clusterServiceVersion should exist

Comment 9 Greg Sheremeta 2021-03-09 11:00:33 UTC
this was an osde2e bug, and it is fixed.