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: | Installer | Assignee: | Russell Teague <rteague> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Gaoyun Pei <gpei> |
| Severity: | high | Docs Contact: | |
| Priority: | high | ||
| Version: | 3.5.0 | CC: | 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: | |||
Also requires: https://github.com/openshift/openshift-ansible/pull/3522 PRs merged. 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. |
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: