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:
https://github.com/openshift/openshift-ansible/pull/3515
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.