Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1427009

Summary: Installation failed with pvc_volume_mounts undefined error when registry_storage_kind is nfs
Product: OpenShift Container Platform Reporter: Gaoyun Pei <gpei>
Component: InstallerAssignee: Russell Teague <rteague>
Status: CLOSED CURRENTRELEASE QA Contact: Gaoyun Pei <gpei>
Severity: high Docs Contact:
Priority: high    
Version: 3.5.0CC: aos-bugs, jokerman, lxia, mmccomas
Target Milestone: ---Keywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-03-08 13:45:10 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 Gaoyun Pei 2017-02-27 04:42:00 UTC
Description of problem:
Enable NFS storage options in ansible inventory for docker-registry, installer would fail at TASK [openshift_hosted : Set facts for persistent volume]

...

TASK [openshift_hosted : include] **********************************************
Sunday 26 February 2017  09:31:51 +0000 (0:00:00.261)       0:35:05.052 ******* 
skipping: [ec2-54-91-247-75.compute-1.amazonaws.com] => {
    "changed": false, 
    "skip_reason": "Conditional check failed", 
    "skipped": true
}

TASK [openshift_hosted : Set facts for persistent volume] **********************
Sunday 26 February 2017  09:31:51 +0000 (0:00:00.170)       0:35:05.223 ******* 
fatal: [ec2-54-91-247-75.compute-1.amazonaws.com]: FAILED! => {
    "failed": true
}

MSG:

the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'pvc_volume_mounts' is undefined

The error appears to have been in 'openshift-ansible/roles/openshift_hosted/tasks/registry/registry.yml': line 67, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:


- name: Set facts for persistent volume
  ^ here



Version-Release number of selected component (if applicable):
openshift-ansible-3.5.15-1.git.0.8d2a456.el7.noarch.rpm

How reproducible:
Always

Steps to Reproduce:
1.Set the following NFS options and individual NFS host in ansible inventory file, start installation playbook
openshift_hosted_registry_storage_kind=nfs
openshift_hosted_registry_storage_nfs_options="*(rw,root_squash,sync,no_wdelay)"
openshift_hosted_registry_storage_nfs_directory=/var/lib/exports
openshift_hosted_registry_storage_volume_name=regpv
openshift_hosted_registry_storage_access_modes=["ReadWriteMany"]
openshift_hosted_registry_storage_volume_size=17G


Actual results:


Expected results:


Additional info:

Comment 2 Russell Teague 2017-02-28 16:15:37 UTC
Also requires: https://github.com/openshift/openshift-ansible/pull/3522

Comment 3 Russell Teague 2017-02-28 18:11:18 UTC
PRs merged.

Comment 5 Gaoyun Pei 2017-03-02 05:39:39 UTC
Verify this bug with openshift-ansible-3.5.20-1.git.0.5a5fcd5.el7.noarch.rpm

With NFS registry storage options setting in ansible inventory file, docker-registry could be created and the specified nfs volume was attached to docker-registry pod.