Bug 1190052
| Summary: | Validation of namespace length should occur during namespace creation | ||
|---|---|---|---|
| Product: | OKD | Reporter: | Wenjing Zheng <wzheng> |
| Component: | Master | Assignee: | Jordan Liggitt <jliggitt> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | weiwei jiang <wjiang> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 3.x | CC: | agoldste, decarr, dmcphers, ffranz, jliggitt, jokerman, libra-bugs, libra-onpremise-devel, mmccomas, wsun, yanpzhan |
| Target Milestone: | --- | ||
| Target Release: | 3.x | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-07-07 23:44:33 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
Wenjing Zheng
2015-02-06 08:03:35 UTC
*** Bug 1218983 has been marked as a duplicate of this bug. *** Namespaces are a Kubernetes object, and builds are an OpenShift object, so we can't place requirements on namespace name validation based on builds. The v2 docker registry has the following restrictions on image repository path components: 1. total length <= 255 2. each segment length >= 2 3. only valid characters are a-z0-9_.- The namespace and the image stream name are combined with a "/" to form an image repository path. https://github.com/openshift/origin/pull/2351 will add the following validation: 1. Require Project names to be >= 2 characters on creation 2. Require ImageStream namespaces to be >= 2 characters 3. Require ImageStream namespace+'/'+name to be <= 255 characters 4. Require ImageStream names to be valid docker image repository names 5. Validate dockerImageReference path component length and characters To ensure we don't break updating an existing project/namespace that was created with a single character name, allow updating projects with names < 2 characters Merged in https://github.com/openshift/origin/pull/2351 Note that "5. Validate dockerImageReference path component length and characters" was not done because it was too impactful a change. Checked with fedora_1614, and Can not reproduce this issue with namespace which name is less than 4 chars. |