Bug 1821907

Summary: [Gdeploy+Ganesha] Ganesha setup failing with gdeploy. Failed to create ganesha-ha.conf file
Product: [Red Hat Storage] Red Hat Gluster Storage Reporter: Manisha Saini <msaini>
Component: gdeployAssignee: Prajith <pkesavap>
Status: CLOSED ERRATA QA Contact: Manisha Saini <msaini>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: rhgs-3.5CC: godas, pprakash, puebele, rhs-bugs, storage-qa-internal
Target Milestone: ---Keywords: TestBlocker, ZStream
Target Release: RHGS 3.5.z Batch Update 2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gdeploy-3.0.0-6.el8rhgs Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-06-16 05:56:04 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: 1813166, 1813908    

Description Manisha Saini 2020-04-07 19:38:08 UTC
Description of problem:
=======================

Ganesha setup is failing with gdeploy


Version-Release number of selected component (if applicable):
=============================================================

# rpm -qa | grep ansible
ansible-2.9.6-1.el8ae.noarch

# rpm -qa | grep gdeploy
gdeploy-3.0.0-5.el8rhgs.noarch



How reproducible:
=================
2/2

Steps to Reproduce:
===================
1.Create ganesha setup via gdeploy


Actual results:
==============
Ganesha-ha.conf file failed to create causing setup failure


Expected results:
================
Ganesha Setup should pass

Additional info:
===============

Logs--

========

# gdeploy  -c ganesha-setup.conf 

PLAY [gluster_servers] *************************************************************************************************************************

TASK [Start firewalld if not already started] **************************************************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com]
ok: [dhcp35-63.lab.eng.blr.redhat.com]
ok: [dhcp35-21.lab.eng.blr.redhat.com]
ok: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [Open/Close firewalld ports] **************************************************************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=111/tcp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=111/tcp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=111/tcp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=111/tcp)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=2049/tcp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=2049/tcp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=2049/tcp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=2049/tcp)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=54321/tcp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=54321/tcp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=54321/tcp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=54321/tcp)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=5900/tcp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=5900/tcp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=5900/tcp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=5900/tcp)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=5900-6923/tcp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=5900-6923/tcp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=5900-6923/tcp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=5900-6923/tcp)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=5666/tcp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=5666/tcp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=5666/tcp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=5666/tcp)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=16514/tcp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=16514/tcp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=16514/tcp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=16514/tcp)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=662/tcp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=662/tcp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=662/tcp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=662/tcp)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=662/udp)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=662/udp)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=662/udp)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=662/udp)

TASK [Reloads the firewall] ********************************************************************************************************************
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-76.lab.eng.blr.redhat.com]

PLAY RECAP *************************************************************************************************************************************
dhcp35-134.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-21.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-63.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-76.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   


PLAY [gluster_servers] *************************************************************************************************************************

TASK [Start firewalld if not already started] **************************************************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com]
ok: [dhcp35-63.lab.eng.blr.redhat.com]
ok: [dhcp35-21.lab.eng.blr.redhat.com]
ok: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [Add/Delete services to firewalld rules] **************************************************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=glusterfs)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=glusterfs)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=glusterfs)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=glusterfs)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=nlm)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=nlm)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=nlm)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=nlm)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=nfs)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=nfs)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=nfs)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=nfs)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=rpc-bind)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=rpc-bind)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=rpc-bind)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=rpc-bind)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=high-availability)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=high-availability)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=high-availability)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=high-availability)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=mountd)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=mountd)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=mountd)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=mountd)
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=rquota)
ok: [dhcp35-21.lab.eng.blr.redhat.com] => (item=rquota)
ok: [dhcp35-63.lab.eng.blr.redhat.com] => (item=rquota)
ok: [dhcp35-134.lab.eng.blr.redhat.com] => (item=rquota)

TASK [Reloads the firewall] ********************************************************************************************************************
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-76.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]

PLAY RECAP *************************************************************************************************************************************
dhcp35-134.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-21.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-63.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-76.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   


PLAY [cluster_nodes] ***************************************************************************************************************************

TASK [Check if nfs-ganesha is installed] *******************************************************************************************************
[WARNING]: Consider using the yum, dnf or zypper module rather than running 'rpm'.  If you need to use command because yum, dnf or zypper is
insufficient you can add 'warn: false' to this command task or set 'command_warnings=False' in ansible.cfg to get rid of this message.
changed: [dhcp35-76.lab.eng.blr.redhat.com]
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [fail] ************************************************************************************************************************************
skipping: [dhcp35-76.lab.eng.blr.redhat.com]
skipping: [dhcp35-21.lab.eng.blr.redhat.com]
skipping: [dhcp35-63.lab.eng.blr.redhat.com]
skipping: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [Check if corosync is installed] **********************************************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [fail] ************************************************************************************************************************************
skipping: [dhcp35-76.lab.eng.blr.redhat.com]
skipping: [dhcp35-21.lab.eng.blr.redhat.com]
skipping: [dhcp35-63.lab.eng.blr.redhat.com]
skipping: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [Check if pacemaker is installed] *********************************************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [fail] ************************************************************************************************************************************
skipping: [dhcp35-76.lab.eng.blr.redhat.com]
skipping: [dhcp35-21.lab.eng.blr.redhat.com]
skipping: [dhcp35-63.lab.eng.blr.redhat.com]
skipping: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [Check if libntirpc is installed] *********************************************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [fail] ************************************************************************************************************************************
skipping: [dhcp35-76.lab.eng.blr.redhat.com]
skipping: [dhcp35-21.lab.eng.blr.redhat.com]
skipping: [dhcp35-63.lab.eng.blr.redhat.com]
skipping: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [Check if pcs is installed] ***************************************************************************************************************
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-76.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [fail] ************************************************************************************************************************************
skipping: [dhcp35-76.lab.eng.blr.redhat.com]
skipping: [dhcp35-21.lab.eng.blr.redhat.com]
skipping: [dhcp35-63.lab.eng.blr.redhat.com]
skipping: [dhcp35-134.lab.eng.blr.redhat.com]

PLAY RECAP *************************************************************************************************************************************
dhcp35-134.lab.eng.blr.redhat.com : ok=5    changed=5    unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   
dhcp35-21.lab.eng.blr.redhat.com : ok=5    changed=5    unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   
dhcp35-63.lab.eng.blr.redhat.com : ok=5    changed=5    unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   
dhcp35-76.lab.eng.blr.redhat.com : ok=5    changed=5    unreachable=0    failed=0    skipped=5    rescued=0    ignored=0   


PLAY [cluster_nodes] ***************************************************************************************************************************

TASK [Stop kernel NFS] *************************************************************************************************************************
fatal: [dhcp35-76.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Could not find the requested service nfs: host"}
fatal: [dhcp35-134.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Could not find the requested service nfs: host"}
fatal: [dhcp35-21.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Could not find the requested service nfs: host"}
fatal: [dhcp35-63.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Could not find the requested service nfs: host"}

PLAY RECAP *************************************************************************************************************************************
dhcp35-134.lab.eng.blr.redhat.com : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
dhcp35-21.lab.eng.blr.redhat.com : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
dhcp35-63.lab.eng.blr.redhat.com : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
dhcp35-76.lab.eng.blr.redhat.com : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

Ignoring errors...

PLAY [master_node] *****************************************************************************************************************************

TASK [Generate ssh key in one of the nodes in HA cluster] **************************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]

TASK [Copy the public key to the local] ********************************************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]

TASK [Copy the private key to the local] *******************************************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]

PLAY RECAP *************************************************************************************************************************************
dhcp35-76.lab.eng.blr.redhat.com : ok=3    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   


PLAY [gluster_servers] *************************************************************************************************************************

TASK [Copy the public key to remote nodes] *****************************************************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-134.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-21.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-63.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)

TASK [Copy the private key to remote node] *****************************************************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-21.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-134.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-63.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)

TASK [Deploy the pubkey ~/root/.ssh/authorized_keys on all nodes] ******************************************************************************
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-76.lab.eng.blr.redhat.com]
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]

PLAY RECAP *************************************************************************************************************************************
dhcp35-134.lab.eng.blr.redhat.com : ok=3    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-21.lab.eng.blr.redhat.com : ok=3    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-63.lab.eng.blr.redhat.com : ok=3    changed=3    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-76.lab.eng.blr.redhat.com : ok=3    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   


PLAY [master_node] *****************************************************************************************************************************

TASK [Make the volume a gluster shared volume] *************************************************************************************************
fatal: [dhcp35-76.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "volume set: failed: Shared storage volume(gluster_shared_storage) already exists.\n"}
...ignoring

PLAY RECAP *************************************************************************************************************************************
dhcp35-76.lab.eng.blr.redhat.com : ok=1    changed=0    unreachable=0    failed=0    skipped=0    rescued=0    ignored=1   


PLAY [gluster_servers] *************************************************************************************************************************

TASK [Create a user hacluster in all the cluster nodes if not already present] *****************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com]
ok: [dhcp35-63.lab.eng.blr.redhat.com]
ok: [dhcp35-21.lab.eng.blr.redhat.com]
ok: [dhcp35-134.lab.eng.blr.redhat.com]

TASK [Set the hacluster user the same password on all machines] ********************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]
changed: [dhcp35-63.lab.eng.blr.redhat.com]
changed: [dhcp35-21.lab.eng.blr.redhat.com]
changed: [dhcp35-134.lab.eng.blr.redhat.com]

PLAY RECAP *************************************************************************************************************************************
dhcp35-134.lab.eng.blr.redhat.com : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-21.lab.eng.blr.redhat.com : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-63.lab.eng.blr.redhat.com : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-76.lab.eng.blr.redhat.com : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   


PLAY [gluster_servers] *************************************************************************************************************************

TASK [Pcs cluster authenticate the hacluster users in all the nodes] ***************************************************************************
changed: [dhcp35-134.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-63.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-21.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-76.lab.eng.blr.redhat.com] => (item=dhcp35-76.lab.eng.blr.redhat.com)
changed: [dhcp35-21.lab.eng.blr.redhat.com] => (item=dhcp35-21.lab.eng.blr.redhat.com)
changed: [dhcp35-76.lab.eng.blr.redhat.com] => (item=dhcp35-21.lab.eng.blr.redhat.com)
changed: [dhcp35-134.lab.eng.blr.redhat.com] => (item=dhcp35-21.lab.eng.blr.redhat.com)
changed: [dhcp35-63.lab.eng.blr.redhat.com] => (item=dhcp35-21.lab.eng.blr.redhat.com)
changed: [dhcp35-63.lab.eng.blr.redhat.com] => (item=dhcp35-63.lab.eng.blr.redhat.com)
changed: [dhcp35-76.lab.eng.blr.redhat.com] => (item=dhcp35-63.lab.eng.blr.redhat.com)
changed: [dhcp35-134.lab.eng.blr.redhat.com] => (item=dhcp35-63.lab.eng.blr.redhat.com)
changed: [dhcp35-21.lab.eng.blr.redhat.com] => (item=dhcp35-63.lab.eng.blr.redhat.com)
changed: [dhcp35-76.lab.eng.blr.redhat.com] => (item=dhcp35-134.lab.eng.blr.redhat.com)
changed: [dhcp35-63.lab.eng.blr.redhat.com] => (item=dhcp35-134.lab.eng.blr.redhat.com)
changed: [dhcp35-21.lab.eng.blr.redhat.com] => (item=dhcp35-134.lab.eng.blr.redhat.com)
changed: [dhcp35-134.lab.eng.blr.redhat.com] => (item=dhcp35-134.lab.eng.blr.redhat.com)

TASK [Pause for a few seconds] *****************************************************************************************************************
Pausing for 3 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
ok: [dhcp35-76.lab.eng.blr.redhat.com]

PLAY RECAP *************************************************************************************************************************************
dhcp35-134.lab.eng.blr.redhat.com : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-21.lab.eng.blr.redhat.com : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-63.lab.eng.blr.redhat.com : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   
dhcp35-76.lab.eng.blr.redhat.com : ok=2    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0   


PLAY [master_node] *****************************************************************************************************************************

TASK [Create configuration directory for nfs-ganesha] ******************************************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com]

TASK [Copy ganesha.conf to config directory on shared volume] **********************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]

TASK [Creating ganesha-ha.conf file] ***********************************************************************************************************
fatal: [dhcp35-76.lab.eng.blr.redhat.com]: FAILED! => {"changed": false, "checksum": "084e05936d3f492debf10ea2802754a529b6245f", "cur_context": ["system_u", "object_r", "fusefs_t", "s0"], "gid": 0, "group": "root", "input_was": ["system_u", "object_r", "glusterd_var_run_t", "s0"], "mode": "0744", "msg": "invalid selinux context: [Errno 95] Operation not supported", "new_context": ["system_u", "object_r", "glusterd_var_run_t", "s0"], "owner": "root", "path": "/var/run/gluster/shared_storage/nfs-ganesha/.ansible_tmpdwx5e1_5ganesha-ha.conf", "secontext": "system_u:object_r:fusefs_t:s0", "size": 674, "state": "file", "uid": 0}

PLAY RECAP *************************************************************************************************************************************
dhcp35-76.lab.eng.blr.redhat.com : ok=2    changed=1    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

Ignoring errors...

PLAY [gluster_servers] *************************************************************************************************************************

TASK [Define service port] *********************************************************************************************************************
fatal: [dhcp35-76.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Destination /etc/sysconfig/nfs does not exist !", "rc": 257}
fatal: [dhcp35-21.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Destination /etc/sysconfig/nfs does not exist !", "rc": 257}
fatal: [dhcp35-134.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Destination /etc/sysconfig/nfs does not exist !", "rc": 257}
fatal: [dhcp35-63.lab.eng.blr.redhat.com]: FAILED! => {"ansible_facts": {"discovered_interpreter_python": "/usr/libexec/platform-python"}, "changed": false, "msg": "Destination /etc/sysconfig/nfs does not exist !", "rc": 257}

PLAY RECAP *************************************************************************************************************************************
dhcp35-134.lab.eng.blr.redhat.com : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
dhcp35-21.lab.eng.blr.redhat.com : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
dhcp35-63.lab.eng.blr.redhat.com : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   
dhcp35-76.lab.eng.blr.redhat.com : ok=0    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0   

Ignoring errors...

PLAY [master_node] *****************************************************************************************************************************

TASK [Enable nfs-ganesha] **********************************************************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]

TASK [Pause for 30 seconds (takes a while to enable NFS Ganesha)] ******************************************************************************
Pausing for 30 seconds
(ctrl+C then 'C' = continue early, ctrl+C then 'A' = abort)
ok: [dhcp35-76.lab.eng.blr.redhat.com]

TASK [Check NFS Ganesha status] ****************************************************************************************************************
changed: [dhcp35-76.lab.eng.blr.redhat.com]

TASK [Report NFS Ganesha status] ***************************************************************************************************************
skipping: [dhcp35-76.lab.eng.blr.redhat.com]

TASK [Report NFS Ganesha status (If any errors)] ***********************************************************************************************
ok: [dhcp35-76.lab.eng.blr.redhat.com] => {
    "msg": "grep: /var/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf: No such file or directory\ngrep: /var/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf: No such file or directory\nError: error running crm_mon, is pacemaker running?\n  Error: cluster is not available on this node"
}

PLAY RECAP *************************************************************************************************************************************
dhcp35-76.lab.eng.blr.redhat.com : ok=4    changed=2    unreachable=0    failed=0    skipped=1    rescued=0    ignored=0   
================

Comment 3 Prajith 2020-04-13 09:21:38 UTC
There is an upstream bug https://github.com/ansible/ansible/issues/56243 for ansible which causes this issue. This issue is with template module in ansible. 

The work around  to touch the directory that template modules' destination is using. has been implemented as well https://github.com/gluster/gdeploy/pull/551

Comment 4 Prajith 2020-04-14 01:56:26 UTC
Hi,
The packages can be downloaded from here:

Task Info: https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=27905407
Build Info: https://brewweb.engineering.redhat.com/brew/buildinfo?buildID=1165398

Comment 7 Manisha Saini 2020-04-20 19:45:53 UTC
Verified this BZ with

# rpm -qa | grep gdeploy
gdeploy-3.0.0-6.el8rhgs.noarch


# rpm -qa | grep ganesha
nfs-ganesha-gluster-2.7.3-13.el8rhgs.x86_64
nfs-ganesha-debuginfo-2.7.3-13.el8rhgs.x86_64
nfs-ganesha-2.7.3-13.el8rhgs.x86_64
nfs-ganesha-selinux-2.7.3-13.el8rhgs.noarch
nfs-ganesha-debugsource-2.7.3-13.el8rhgs.x86_64
glusterfs-ganesha-6.0-32.el8rhgs.x86_64
nfs-ganesha-gluster-debuginfo-2.7.3-13.el8rhgs.x86_64


Ganesha-ha.conf file is created as part of ganesha setup via Gdeploy. Also setup is successful vua gdeploy. Moving this BZ to verified state

Comment 9 errata-xmlrpc 2020-06-16 05:56:04 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-2020:2577