Bug 1490246

Summary: Install CNS failed due to template file missed
Product: OpenShift Container Platform Reporter: Wenkai Shi <weshi>
Component: InstallerAssignee: Jose A. Rivera <jarrpa>
Status: CLOSED ERRATA QA Contact: Wenkai Shi <weshi>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.7.0CC: aos-bugs, jokerman, mmccomas, sdodson
Target Milestone: ---   
Target Release: 3.7.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: openshift-ansible-3.7.0-0.126.1.git.0.0bb5b0c.el7.noarch Doc Type: No Doc Update
Doc Text:
undefined
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-11-28 22:09:56 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 Wenkai Shi 2017-09-11 07:05:12 UTC
Description of problem:
Install CNS failed due to unable to find 'v3.7/glusterfs-template.yml' in expected paths.

Version-Release number of the following components:
openshift-ansible-3.7.0-0.125.0.git.0.91043b6.el7

How reproducible:
100%

Steps to Reproduce:
1. Install OCP with CNS
# cat hosts
...
[nodes]
...
glusterfs1.example.com
glusterfs2.example.com
glusterfs3.example.com
[glusterfs]
glusterfs1.example.com glusterfs_devices="['/dev/sdb']"
glusterfs2.example.com glusterfs_devices="['/dev/sdb']"
glusterfs3.example.com glusterfs_devices="['/dev/sdb']"
2.
3.

Actual results:
# ansible-playbook -i hosts -v /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
...
TASK [openshift_storage_glusterfs : Copy GlusterFS DaemonSet template] *********
Monday 11 September 2017  06:30:16 +0000 (0:00:01.523)       0:07:18.073 ****** 
fatal: [master.example.com]: FAILED! => {
    "changed": false, 
    "failed": true
}

MSG:

Unable to find 'v3.7/glusterfs-template.yml' in expected paths.
...

Expected results:
Installation succeed.

Additional info:

Comment 1 Jose A. Rivera 2017-09-11 18:54:15 UTC
PR is already upstream: https://github.com/openshift/openshift-ansible/pull/5315

Comment 4 Jose A. Rivera 2017-09-15 17:19:31 UTC
PR merged.

Comment 5 Wenkai Shi 2017-09-18 07:02:36 UTC
Verified with version openshift-ansible-3.7.0-0.126.4.git.0.3fc2b9b.el7, the 3.7  template files directory existing now.

# ls /usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/templates/ | grep v3.7
v3.7

Comment 9 errata-xmlrpc 2017-11-28 22:09:56 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/RHSA-2017:3188