Bug 1427009 - Installation failed with pvc_volume_mounts undefined error when registry_storage_kind is nfs
Summary: Installation failed with pvc_volume_mounts undefined error when registry_stor...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.5.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: Russell Teague
QA Contact: Gaoyun Pei
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-27 04:42 UTC by Gaoyun Pei
Modified: 2017-07-24 14:11 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-03-08 13:45:10 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:0903 0 normal SHIPPED_LIVE OpenShift Container Platform atomic-openshift-utils bug fix and enhancement 2017-04-12 22:45:42 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.