Bug 1843496
Summary: | Bad error message on project templates with cluster-scoped objects | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Sergio G. <sgarciam> |
Component: | openshift-apiserver | Assignee: | Stefan Schimanski <sttts> |
Status: | CLOSED ERRATA | QA Contact: | Xingxing Xia <xxia> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 4.4 | CC: | aos-bugs, mfojtik, sbhavsar |
Target Milestone: | --- | ||
Target Release: | 4.6.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | No Doc Update | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-10-27 16:04:47 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
Sergio G.
2020-06-03 12:28:06 UTC
Cluster-scoped objects are intentionally not supported in project templates, only those to be created in the new project/namespace. Admittedly, the error message is bad. Have retitled the BZ. Thanks for confirming Stefan. If besides changing the message to be more clear we add a note in the documentation explaining it that would be awesome. Verified in 4.6.0-0.nightly-2020-07-05-234845: $ oc adm create-bootstrap-project-template -o yaml > template.yaml $ vi template.yaml # insert below before "parameters:" - apiVersion: user.openshift.io/v1 kind: Group metadata: name: ${PROJECT_NAME} users: [] - apiVersion: v1 kind: ResourceQuota metadata: name: pre-defined-quota spec: hard: pods: "20" $ oc create -f template.yaml -n openshift-config $ oc edit project.config.openshift.io/cluster spec: projectRequestTemplate: name: <template_name> Wait OAS pods to be restarted. Then: $ oc new-project sgarcia-test5 # the message is clearer now Error from server (InternalError): Internal error occurred: user.openshift.io/v1, Kind=Group specified in project template is not namespace scoped 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 (OpenShift Container Platform 4.6 GA Images), 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/RHBA-2020:4196 |