Bug 1915242

Summary: image pruner has error like statefulsets.apps is forbidden
Product: OpenShift Container Platform Reporter: Wenjing Zheng <wzheng>
Component: Image RegistryAssignee: Ricardo Maraschini <rmarasch>
Status: CLOSED DUPLICATE QA Contact: Wenjing Zheng <wzheng>
Severity: high Docs Contact:
Priority: high    
Version: 4.7CC: aos-bugs, rmarasch
Target Milestone: ---Keywords: Regression
Target Release: 4.7.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: 2021-01-13 12:09:35 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 Wenjing Zheng 2021-01-12 10:22:59 UTC
Description of problem:
Image pruner pod cannot be running with below error:
$ oc logs pods/image-pruner-1610446740-4m9wt 
Error from server (Forbidden): statefulsets.apps is forbidden: User "system:serviceaccount:openshift-image-registry:pruner" cannot list resource "statefulsets" in API group "apps" at the cluster scope

Version-Release number of selected component (if applicable):
4.7.0-0.nightly-2021-01-10-070949

How reproducible:
always

Steps to Reproduce:
1.Check image pruner pod status
2.
3.

Actual results:
image pruner pod is error

Expected results:
image pruner pod should be running 

Additional info:

Comment 1 Ricardo Maraschini 2021-01-13 12:09:35 UTC

*** This bug has been marked as a duplicate of bug 1915661 ***