Bug 1462143 - Install CNS failed with error variable is undefined
Install CNS failed with error variable is undefined
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
Unspecified Unspecified
urgent Severity urgent
: ---
: 3.6.z
Assigned To: Jose A. Rivera
Wenkai Shi
Depends On:
  Show dependency treegraph
Reported: 2017-06-16 06:08 EDT by Wenkai Shi
Modified: 2017-09-11 15:09 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Fix error when groups.glusterfs_registry is undefined.
Story Points: ---
Clone Of:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Wenkai Shi 2017-06-16 06:08:14 EDT
Description of problem:
Install CNS failed with error variable is undefined

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

How reproducible:

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

Actual results:
# ansible-playbook -i host -v /usr/share/ansible/openshift-ansible/playbooks/byo/config.yml
TASK [openshift_storage_glusterfs : set_fact] **********************************
Friday 16 June 2017  08:37:30 +0000 (0:00:00.853)       0:15:32.891 *********** 
fatal: [master.example.com]: FAILED! => {
    "failed": true


the field 'args' has an invalid value, which appears to include a variable that is undefined. The error was: 'dict object' has no attribute 'glusterfs_registry'

The error appears to have been in '/usr/share/ansible/openshift-ansible/roles/openshift_storage_glusterfs/tasks/glusterfs_registry.yml': line 2, column 3, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

- set_fact:
  ^ here

Expected results:
Installation succeed

Additional info:
Comment 1 Jose A. Rivera 2017-06-16 12:23:19 EDT
ACK. Fix on the way.
Comment 2 Jose A. Rivera 2017-06-16 20:59:32 EDT
This should be resolved once https://github.com/openshift/openshift-ansible/pull/4484 merges.
Comment 3 Jose A. Rivera 2017-06-19 13:55:44 EDT
PR has merged. Moving to ON_QA.
Comment 4 Wenkai Shi 2017-06-21 01:43:02 EDT
Verified with version openshift-ansible-3.6.121-1.git.0.ed0b72c.el7, installation succeed, CNS as registry backend storage works well.

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