Bug 1488366

Summary: Installation fails with the following problem -> The PersistentVolume "BS31369_ocp_registry-volume" is invalid: metadata.name: Invalid value: "XX11111_ocp_registry-volume": a DNS-1123 subdomain must consist of lower case alphanumeric characters, '-' or '.
Product: OpenShift Container Platform Reporter: Miheer Salunke <misalunk>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Gaoyun Pei <gpei>
Severity: high Docs Contact:
Priority: low    
Version: 3.6.0CC: aos-bugs, bleanhar, cshereme, erich, jokerman, mmccomas, sdodson, vigoyal
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: 3.7-release-plan
Fixed In Version: Doc Type: Bug Fix
Doc Text:
The example inventories have been updated to clearly indicate that the nfs export directory must only consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character.
Story Points: ---
Clone Of:
: 1703095 (view as bug list) Environment:
Last Closed: 2017-11-28 22:09:17 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:
Bug Depends On:    
Bug Blocks: 1703095    

Comment 4 Scott Dodson 2017-09-06 14:18:05 UTC
Kubernetes requires that the volume name conform to naming standards. The workaround is to set openshift_hosted_registry_storage_volume_name to a value that conforms to DNS-1123 standards.

The volume name is also used to create a directory in the nfs exports directory.

Comment 9 Traci Morrison 2017-09-21 19:12:20 UTC
Hi Scott, can you please confirm where this update should be made? I checked the Installation Guide, but not sure which section. Thanks.

Comment 10 Traci Morrison 2017-10-02 19:12:38 UTC
Hi Scott, can you please confirm where this update should be made? I checked the Installation Guide, but not sure which section. Thanks.

Comment 11 Scott Dodson 2017-10-03 14:33:06 UTC
This set of options doesn't appear to be documented in openshift-docs. So I'm going to move this back to the installer and update the sample inventory files.

Comment 12 Traci Morrison 2017-10-03 18:19:28 UTC
Hi Vikram, please see Scott's comment above. Should we defer this issue for now? Thanks.

Comment 14 Gaoyun Pei 2017-10-11 08:39:40 UTC
QE could reproduce such issue when using an invalid nfs directory name. And in openshift-ansible-3.7.0-0.143.2.git.0.39404c5.el7.noarch, we already have related content added in the sample inventory file, move this bug as verified.

[root@gpei-test-ansible openshift-ansible-auto]# grep openshift_hosted_registry_storage_nfs_directory -B 2 /usr/share/doc/openshift-ansible-docs-3.7.0/docs/example-inventories/hosts.example
# nfs_directory must conform to DNS-1123 subdomain must consist of lower case
# alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character
#openshift_hosted_registry_storage_nfs_directory=/exports
--
# nfs_directory must conform to DNS-1123 subdomain must consist of lower case
# alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character
#openshift_hosted_registry_storage_nfs_directory=/exports

Comment 18 errata-xmlrpc 2017-11-28 22:09:17 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, 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-2017:3188

Comment 19 Red Hat Bugzilla 2023-09-14 04:07:23 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days