Bug 1915242 - image pruner has error like statefulsets.apps is forbidden
Summary: image pruner has error like statefulsets.apps is forbidden
Keywords:
Status: CLOSED DUPLICATE of bug 1915661
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Image Registry
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: 4.7.0
Assignee: Ricardo Maraschini
QA Contact: Wenjing Zheng
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-12 10:22 UTC by Wenjing Zheng
Modified: 2021-01-13 12:09 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-01-13 12:09:35 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.