Bug 1933665 - Getting Forbidden for image in a container template when creating a sample app
Summary: Getting Forbidden for image in a container template when creating a sample app
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Dev Console
Version: 4.7
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: ---
: 4.7.z
Assignee: Christoph Jerolimov
QA Contact: Gajanan More
Harsh Mishra
URL:
Whiteboard:
Depends On: 1933664
Blocks: 1933666
TreeView+ depends on / blocked
 
Reported: 2021-03-01 11:19 UTC by Christoph Jerolimov
Modified: 2021-04-22 10:06 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
While creating a sample application, the *Developer* perspective creates multiple resources that depend on each other and must be completed in a specific order. Previously, the admission plug-in sometimes could not check one of these resources, preventing the *Developer* perspective from generating the sample application. This issue has been fixed. The code creates the resources in the required order, so creating a sample application is more stable.
Clone Of:
Environment:
Last Closed: 2021-04-05 13:55:43 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift console pull 8255 0 None open Bug 1933665: [release-4.7] Create ImageStream and other resources for samples step by step 2021-03-02 01:00:41 UTC
Red Hat Product Errata RHSA-2021:1005 0 None None None 2021-04-05 13:56:03 UTC

Description Christoph Jerolimov 2021-03-01 11:19:33 UTC
Description of problem:
When creating a new Node.js app (I hit the same problem also with the Go app) in the Dev Sandbox, I sometimes get an error:

Error "Forbidden: this image is prohibited by policy: this image is prohibited by policy (changed after admission)" for field "spec.template.spec.containers[0].image".

Version-Release number of selected component (if applicable):
4.6-4.8

How reproducible:
Intermittent

Steps to Reproduce:
1. Go to Add -> Samples
2. Choose either Go or Node.js app
3. Click on create

Actual results:
Error message above was shown sometimes when creating a sample app.

Expected results:
Apps get created without showing any error.

Additional info:
This is a copy of Jira issue https://issues.redhat.com/browse/ODC-5468

Comment 2 Gajanan More 2021-03-29 11:10:16 UTC
I have verified the bugzilla on 
Build: 4.7.4
Browser: Google Chrome 89
Marking this bugzilla as verified

Comment 4 errata-xmlrpc 2021-04-05 13:55:43 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 (Moderate: OpenShift Container Platform 4.7.5 security and bug fix 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-2021:1005


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