Skip to content

Restore pods RBAC needed for NetworkAttachments verification - #740

Merged
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
stuggi:rbac-cleanup-pods-fix
Jul 27, 2026
Merged

Restore pods RBAC needed for NetworkAttachments verification#740
openshift-merge-bot[bot] merged 1 commit into
openstack-k8s-operators:mainfrom
stuggi:rbac-cleanup-pods-fix

Conversation

@stuggi

@stuggi stuggi commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

Commit 2adbb94 ("Remove unnecessary pods RBAC permissions") dropped the pods kubebuilder RBAC marker from keystoneapi_controller.go, which calls lib-common's VerifyNetworkStatusFromAnnotation to verify NetworkAttachments. That function lists Pods using the controller-manager's own client, so the manager's ClusterRole (config/rbac/role.yaml) needs get;list on pods or KeystoneAPI gets stuck in NetworkAttachmentsReady=False with a "pods is forbidden" error, as seen on manila/cinder/neutron-operator after the same cleanup. Restore the get;list marker and regenerate config/rbac/role.yaml. The unused rbacRules grant on the workload service account remains removed, since that really is unused.

Commit 2adbb94 ("Remove unnecessary pods RBAC permissions") dropped
the pods kubebuilder RBAC marker from keystoneapi_controller.go, which
calls lib-common's VerifyNetworkStatusFromAnnotation to verify
NetworkAttachments. That function lists Pods using the
controller-manager's own client, so the manager's ClusterRole
(config/rbac/role.yaml) needs get;list on pods or KeystoneAPI gets
stuck in NetworkAttachmentsReady=False with a "pods is forbidden"
error, as seen on manila/cinder/neutron-operator after the same
cleanup. Restore the get;list marker and regenerate
config/rbac/role.yaml. The unused rbacRules grant on the workload
service account remains removed, since that really is unused.

Signed-off-by: Martin Schuppert <mschuppert@redhat.com>
@openshift-ci
openshift-ci Bot requested review from abays and d34dh0r53 July 27, 2026 08:08

@abays abays left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci

openshift-ci Bot commented Jul 27, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: abays, stuggi

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@centosinfra-prod-github-app

Copy link
Copy Markdown

Build failed (check pipeline). Post recheck (without leading slash)
to rerun all jobs. Make sure the failure cause has been resolved before
you rerun jobs.

https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/zuul/t/rdoproject.org/buildset/1cb022452d304080ab602b4440c3dcd9

keystone-openstack-meta-content-provider-master FAILURE in 13m 32s (non-voting)
⚠️ keystone-operator-tempest-master SKIPPED Skipped due to failed job keystone-openstack-meta-content-provider-master (non-voting)
openstack-k8s-operators-content-provider FAILURE in 11m 35s
⚠️ keystone-operator-kuttl SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)
⚠️ keystone-operator-tempest SKIPPED Skipped due to failed job openstack-k8s-operators-content-provider (non-voting)

@stuggi

stuggi commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@stuggi

stuggi commented Jul 27, 2026

Copy link
Copy Markdown
Contributor Author

/retest

@openshift-merge-bot
openshift-merge-bot Bot merged commit e841be6 into openstack-k8s-operators:main Jul 27, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants