Bug 2081084

Summary: [rebase v1.24] [sig-instrumentation] Events API should ensure that an event can be fetched, patched, deleted, and listed
Product: OpenShift Container Platform Reporter: Abu Kashem <akashem>
Component: kube-apiserverAssignee: Abu Kashem <akashem>
Status: CLOSED ERRATA QA Contact: Ke Wang <kewang>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 4.11CC: aos-bugs, mfojtik, rgangwar, wlewis, xxia
Target Milestone: ---   
Target Release: 4.11.0   
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: 2022-08-10 11:09:59 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 Abu Kashem 2022-05-02 17:41:27 UTC
failing test: [sig-instrumentation] Events API should ensure that an event can be fetched, patched, deleted, and listed

blob:https://prow.ci.openshift.org/d1c8515e-8da6-471a-aa15-f2378f6671e7

{  fail [k8s.io/kubernetes.0/test/e2e/instrumentation/events.go:138]: failed to patch the test event
Unexpected error:
    <*errors.StatusError | 0xc002384280>: {
        ErrStatus: {
            TypeMeta: {Kind: "", APIVersion: ""},
            ListMeta: {
                SelfLink: "",
                ResourceVersion: "",
                Continue: "",
                RemainingItemCount: nil,
            },
            Status: "Failure",
            Message: "Event \"event-test\" is invalid: message: Invalid value: \"This is a test event - patched\": field is immutable",
            Reason: "Invalid",
            Details: {
                Name: "event-test",
                Group: "",
                Kind: "Event",
                UID: "",
                Causes: [
                    {
                        Type: "FieldValueInvalid",
                        Message: "Invalid value: \"This is a test event - patched\": field is immutable",
                        Field: "message",
                    },
                ],
                RetryAfterSeconds: 0,
            },
            Code: 422,
        },
    }
    Event "event-test" is invalid: message: Invalid value: "This is a test event - patched": field is immutable
occurred}


https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_kubernetes/1248/pull-ci-openshift-kubernetes-master-e2e-aws-cgroupsv2/1520465065701019648


This could be as a result of running origin/test (from previous version v1.23) against an apiserver (v1.24 with rebase PR)


for now the test is disabled to facilitate rebase: https://github.com/openshift/origin/pull/27086

Comment 1 Wally 2022-06-10 14:58:03 UTC
Awaiting results of origin test merge to validate if this issue is fixed - https://github.com/openshift/origin/pull/27235

Comment 2 Michal Fojtik 2022-06-14 14:48:07 UTC
The PR linked by Wally was closed and replaced by https://github.com/openshift/origin/pull/27244

This PR updates the test suite which includes 1.24 kubernetes tests. This change has been reverted already couple times as it caused our overall stability to decrease ~7% (azure and multi-arch). The updated PR include minor kubernetes bump which should include fixes that should prevent stability decrease.

Comment 3 ravig 2022-06-15 21:51:43 UTC
https://github.com/openshift/origin/pull/27258 is the PR which enables the tests again.

Comment 4 Rahul Gangwar 2022-06-17 15:03:31 UTC
As discussed with ravig moving this bug to verified
https://coreos.slack.com/archives/CS05TR7BK/p1655477114947859?thread_ts=1655476582.286299&cid=CS05TR7BK

Comment 7 errata-xmlrpc 2022-08-10 11:09:59 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