Bug 1964472

Summary: Make project and namespace requirements more visible rather than giving me an error after submission
Product: OpenShift Container Platform Reporter: Gina Doyle <gdoyle>
Component: Management ConsoleAssignee: Kim Dobestein <kdoberst>
Status: CLOSED ERRATA QA Contact: Yanping Zhang <yanpzhan>
Severity: low Docs Contact:
Priority: low    
Version: 4.8CC: aos-bugs, jokerman, yapei
Target Milestone: ---   
Target Release: 4.8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Version: 4.8.0-0.nightly-2021-05-25-041803 Cluster ID: e70f1b05-1575-4e72-a315-356902bc3ca6 Browser: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36
Last Closed: 2021-07-27 23:10:08 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 Gina Doyle 2021-05-25 14:50:08 UTC
Description of problem:

When creating a project or namespace, the requirements are not shown until after I try submitting a new one.

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


How reproducible:
Always


Steps to Reproduce:
1. Create a project
2. Begin the project with openshift- , kubernetes- , or kube
3. Click create

Actual results:
Error that a project can't begin with openshift- , kubernetes- , kube


Expected results:
Ideally tell me this before I click create. Same goes for namespaces. Here's a design doc: https://docs.google.com/document/d/13xAdGJxbtJmvm7AZH7MMmwwPhnyDO_fGsAv6Y5Y-hf0/edit?usp=sharing


Additional info:
There are cases where users cannot create projects or namespaces and therefore shouldn't be told to first create a namespace if you want to create a project with a prefix of openshift- ... etc

Comment 2 Yanping Zhang 2021-06-03 01:38:38 UTC
Checked on ocp 4.8 cluster with payload 4.8.0-0.nightly-2021-06-02-025513.
Check on project creation modal, open "?" tooltip, there is info in the tooltip: "A Project name must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name' or '123-abc'). You must create a Namespace to be able to create projects that begin with 'openshift-', 'kubernetes-', or 'kube-'."
Check on namespace creation modal, open "?" tooltip, there is info in the tooltip: "A Namespace name must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name' or '123-abc')."
The bug is fixed.

Comment 5 errata-xmlrpc 2021-07-27 23:10:08 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.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