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

Bug 1430235

Summary: [3.4] Missing right bracket in roles/openshift_storage_nfs/tasks/main.yml
Product: OpenShift Container Platform Reporter: Meng Bo <bmeng>
Component: InstallerAssignee: ewolinet
Status: CLOSED ERRATA QA Contact: Gaoyun Pei <gpei>
Severity: high Docs Contact:
Priority: medium    
Version: 3.4.1CC: aos-bugs, ghuang, gpei, jokerman, mmccomas, sdodson, wmeng
Target Milestone: ---Keywords: Regression
Target Release: 3.4.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Cause: Bracket was missing in a role task. Consequence: Role would fail. Fix: Added missing bracket. Result: Role does not fail.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-04-05 08:53:36 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: 1427598    

Description Meng Bo 2017-03-08 06:31:21 UTC
Description of problem:
Setup env with nfs storage, it will fail on step:
TASK [openshift_storage_nfs : Ensure export directories exist]

With error:
fatal: [qe-bmeng-bug-34-master-container-nfs-1.0308-1dt.qe.rhcloud.com]: FAILED! => {
    "failed": true
}

MSG:

template error while templating string: unexpected '}'. String: {{ openshift.hosted.loggingops }

Missing the right bracket in the end of the openshift.hosted.loggingops

Introduced by 535a70cf9ab1517b0184695afc33517db5043025



Version-Release number of selected component (if applicable):
openshift-ansible-3.4.69-1.git.0.e3b8949.el7.noarch.rpm

How reproducible:
always

Steps to Reproduce:
1. Setup env via ansible with nfs storage enabled
2. 
3.

Actual results:
Will fail on task [openshift_storage_nfs : Ensure export directories exist]

Expected results:
Should not fail.

Additional info:

Comment 1 Scott Dodson 2017-03-08 14:05:21 UTC
Gan opened a PR to fix this and it's been merged.

https://github.com/openshift/openshift-ansible/pull/3593

Comment 5 Gaoyun Pei 2017-03-16 04:58:35 UTC
Verify this bug with openshift-ansible-3.4.70-1.git.0.6d6a2e7.el7.noarch.rpm

Set nfs storage volume for docker-registry in ansible inventory file, start instlalation playbook, no error found.

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

Comment 7 errata-xmlrpc 2017-04-05 08:53:36 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/RHBA-2017:0883