Cause: When creating a sample app the Developer Console creates multiple resources. Some of these resources depends on each other and should be created in a specific order.
Consequence: Sometimes an admission plugin fails to check one of this resources and the Sample app could not be created.
Fix: Instead of triggering all resources at the same time the code creates now all resources step by step.
Result: Creating a sample app is now more stable.
DescriptionChristoph Jerolimov
2021-03-01 11:19:28 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 2spathak@redhat.com
2021-03-01 22:20:49 UTC
Created attachment 1760103[details]
Not getting error for image in a container template when creating a sample app
Comment 3spathak@redhat.com
2021-03-01 22:21:27 UTC
Verified on build version: 4.8.0-0.nightly-2021-03-01-031258
Browser version: Chrome 84
Comment 5Christoph Jerolimov
2021-06-21 09:56:17 UTC
*** Bug 1949542 has been marked as a duplicate of this bug. ***
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.8.2 bug fix and security 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:2438