Bug 1607513 - glusterfs deploy fails with glusterfs_heketi_user_key is undefined
Summary: glusterfs deploy fails with glusterfs_heketi_user_key is undefined
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
urgent
urgent
Target Milestone: ---
: 3.9.z
Assignee: Russell Teague
QA Contact: Johnny Liu
URL:
Whiteboard:
Depends On:
Blocks: 1607949
TreeView+ depends on / blocked
 
Reported: 2018-07-23 15:43 UTC by mmariyan
Modified: 2021-09-09 15:09 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
The gluster playbooks did not properly check that `glusterfs_heketi_user_key` is defined prior to checking its value. The playbooks have been updated to account for this condition.
Clone Of:
: 1607949 (view as bug list)
Environment:
Last Closed: 2018-08-09 22:13:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:2335 0 None None None 2018-08-09 22:13:54 UTC

Description mmariyan 2018-07-23 15:43:58 UTC
Description of problem:

The openshift 3.9 installation with gluster is always failing with the below task. gluster installation used this playbook

[#ansible-playbook -i <inventory> /usr/share/ansible/openshift-ansible/playbooks/openshift-glusterfs/config.yml -vvv]


he Openshift ansible installer breaks with the following error:
  1. Hosts:    xxx.xxx.xxx.com
     Play:     Configure GlusterFS
     Task:     Generate heketi user key
     Message:  The conditional check 'glusterfs_heketi_user_key != glusterfs_heketi_admin_key' failed. The error was: error while evaluating conditional (glusterfs_heketi_user_key != glusterfs_heketi_admin_key): 'glusterfs_heketi_user_key' is undefined

This issue seems more similar to the below upstream issue.

https://github.com/openshift/openshift-ansible/issues/8193

Version-Release number of the following components:

$ rpm -qa | grep ansible
ansible-2.5.1-1.el7.noarch

$oc version
openshift v3.9.33


Actual results:
ansible installer failed

Expected results:

It should get run successfully

Comment 3 Scott Dodson 2018-07-23 19:15:27 UTC
First, please use ansible 2.4 as documented here https://docs.openshift.com/container-platform/3.9/install_config/install/host_preparation.html#host-registration

A workaround would be to set an inventory value for glusterfs_heketi_user_key which is intended to be an autogenerated random string up to 32 characters in length.

https://github.com/openshift/openshift-ansible/pull/9306 is the proposed fix

Comment 5 Anping Li 2018-08-03 06:34:36 UTC
@asambast, As we talked, you have no privilege to view the errata. You need to verify this bug using atomic-openshift-3.9.40-1?

Comment 6 Ashmitha Ambastha 2018-08-06 06:59:55 UTC
Hi, 

I'm deploying the set up and working on this bug at priority. 
Meanwhile, mmariyan , Can you please attach the inventory file you used to deploy when you hit the bug? It's always better to attach the inventory file along with the logs.

Comment 11 errata-xmlrpc 2018-08-09 22:13:49 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-2018:2335


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