-
Notifications
You must be signed in to change notification settings - Fork 4.7k
OCPBUGS-56698: Skip tests modifying cluster/network.config when it is not permitted #29859
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: kyrtapz The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/payload periodic-ci-openshift-hypershift-release-4.20-periodics-e2e-aws-ovn-conformance-serial |
/payload-job periodic-ci-openshift-hypershift-release-4.20-periodics-e2e-aws-ovn-conformance-serial |
@kyrtapz: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/315e32c0-3b1e-11f0-9f02-b490c9446465-0 |
In HyperShift a ValidatingAdmissionPolicy blocks the tests from modifying cluster config resources. Skip the tests that modify cluster/network.config.openshift.io if the admin client is not allowed to do so. Note that the ValidatingAdmissionPolicy failures return an Invalid(422) and not Forbidden(403) error: ``` I0527 19:02:21.445832 2048333 request.go:1154] Request Body: {"spec":{"networkType": ""}} I0527 19:02:21.445873 2048333 round_trippers.go:463] PATCH https://api.wveww-wjddj-6em.auu6.p3.openshiftapps.com:443/apis/config.openshift.io/v1/networks/cluster?dryRun=All&fieldManager=kubectl-patch I0527 19:02:21.445878 2048333 round_trippers.go:469] Request Headers: I0527 19:02:21.445886 2048333 round_trippers.go:473] Accept: application/json I0527 19:02:21.445892 2048333 round_trippers.go:473] Content-Type: application/merge-patch+json I0527 19:02:21.445897 2048333 round_trippers.go:473] User-Agent: oc/v4.2.0 (linux/amd64) kubernetes/5559085 I0527 19:02:21.445902 2048333 round_trippers.go:473] Authorization: Bearer <masked> I0527 19:02:21.577807 2048333 round_trippers.go:574] Response Status: 422 Unprocessable Entity in 131 milliseconds I0527 19:02:21.577830 2048333 round_trippers.go:577] Response Headers: I0527 19:02:21.577836 2048333 round_trippers.go:580] Cache-Control: no-cache, private I0527 19:02:21.577841 2048333 round_trippers.go:580] Content-Type: application/json I0527 19:02:21.577847 2048333 round_trippers.go:580] Strict-Transport-Security: max-age=31536000; includeSubDomains; preload I0527 19:02:21.577852 2048333 round_trippers.go:580] X-Kubernetes-Pf-Flowschema-Uid: 6e3b2d16-aa1b-42a1-bf05-eb06efacf90c I0527 19:02:21.577857 2048333 round_trippers.go:580] X-Kubernetes-Pf-Prioritylevel-Uid: 488a1e74-530c-4ca1-8d71-31360b7f84da I0527 19:02:21.577863 2048333 round_trippers.go:580] Content-Length: 702 I0527 19:02:21.577868 2048333 round_trippers.go:580] Date: Tue, 27 May 2025 17:02:21 GMT I0527 19:02:21.577874 2048333 round_trippers.go:580] Audit-Id: 0a1efc9d-4405-4c9a-bc6f-8563fd714f77 I0527 19:02:21.577903 2048333 request.go:1154] Response Body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"networks.config.openshift.io \"cluster\" is forbidden: ValidatingAdmissionPolicy 'config' with binding 'config-binding' denied request: This resource cannot be created, updated, or deleted. Please ask your administrator to modify the resource in the HostedCluster object.","reason":"Invalid","details":{"name":"cluster","group":"config.openshift.io","kind":"networks","causes":[{"message":"ValidatingAdmissionPolicy 'config' with binding 'config-binding' denied request: This resource cannot be created, updated, or deleted. Please ask your administrator to modify the resource in the HostedCluster object."}]},"code":422} The networks "cluster" is invalid: : ValidatingAdmissionPolicy 'config' with binding 'config-binding' denied request: This resource cannot be created, updated, or deleted. Please ask your administrator to modify the resource in the HostedCluster object. ``` Signed-off-by: Patryk Diak <pdiak@redhat.com>
@kyrtapz: This pull request references Jira Issue OCPBUGS-56698, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
3b9f547
to
a655bd4
Compare
/jira refresh |
@kyrtapz: This pull request references Jira Issue OCPBUGS-56698, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
/payload-job periodic-ci-openshift-hypershift-release-4.20-periodics-e2e-aws-ovn-conformance-serial |
@kyrtapz: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/1e0f2040-3b22-11f0-88db-f268c092b6d1-0 |
@kyrtapz: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
In HyperShift a ValidatingAdmissionPolicy blocks the tests from modifying cluster config resources. Skip the tests that modify
cluster/network.config.openshift.io
if the admin client is not allowed to do so.Note that the ValidatingAdmissionPolicy failures return an Invalid(422) and not Forbidden(403) error: