Bug 1478198

Summary: Install CNS failed due to cannot transfer an none regular file
Product: OpenShift Container Platform Reporter: Wenkai Shi <weshi>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED ERRATA QA Contact: Johnny Liu <jialiu>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 3.6.0CC: aos-bugs, bleanhar, jarrpa, jokerman, mmccomas, myllynen, trankin
Target Milestone: ---   
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-08-10 05:32:16 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-08-03 21:14:39 UTC
Description of problem:
Install CNS failed due to cannot transfer an none regular file in task "Copy heketi private key", this task should only happened when customer use the "openshift_storage_glusterfs_heketi_ssh_keyfile" parameter. Seems this because of fix BZ #1477718 .

Version-Release number of the following components:
openshift-ansible-3.6.173.0.5-1.git.0.74d5acc.el7

How reproducible:
100%

Steps to Reproduce:
1. Install OCP with CNS
# cat hosts
[OSEv3:children]
masters
nodes
glusterfs

[OSEv3:vars]
...

[masters]
master-1.example.com

[nodes]
master-1.example.com
node-1.example.com
glusterfs-1.example.com 
glusterfs-2.example.com 
glusterfs-3.example.com 

[glusterfs]
glusterfs-1.example.com glusterfs_devices="['/dev/vsda']"
glusterfs-2.example.com glusterfs_devices="['/dev/vsda']"
glusterfs-3.example.com glusterfs_devices="['/dev/vsda']"

2.
3.

Actual results:
# ansible-playbook -i hosts -v /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
...

TASK [openshift_storage_glusterfs : Copy heketi private key] *******************
Thursday 03 August 2017  19:16:42 +0000 (0:00:00.060)       0:13:35.782 ******* 
 [WARNING]: sftp transfer mechanism failed on
[master-1.example.com]. Use ANSIBLE_DEBUG=1 to see
detailed information

 [WARNING]: scp transfer mechanism failed on
[master-1.example.com]. Use ANSIBLE_DEBUG=1 to see
detailed information

fatal: [master-1.example.com]: FAILED! => {
    "failed": true
}

MSG:

failed to transfer file to /root/.ansible/tmp/ansible-tmp-1501787803.1-62624638446304/source:

/dev/null: not a regular file

Expected results:
This task should be skip when customer didn't use the "openshift_storage_glusterfs_heketi_ssh_keyfile" parameter.

Additional info:

Comment 5 Jose A. Rivera 2017-08-04 13:31:22 UTC
PR is upstream: https://github.com/openshift/openshift-ansible/pull/5000

Comment 8 Wenkai Shi 2017-08-05 04:35:35 UTC
Verified with version openshift-ansible-3.6.173.0.5-3.git.0.522a92a.el7, installation succeed.

Comment 10 errata-xmlrpc 2017-08-10 05:32:16 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/RHEA-2017:1716