openshift / openshift-ansible

Install and config an OpenShift 3.x cluster
https://try.openshift.com
Apache License 2.0
2.18k stars 2.31k forks source link

GlusterFS install fails on 3.9.44 (works on 3.9.39) #10105

Closed leifmadsen closed 6 years ago

leifmadsen commented 6 years ago

Description

When installing OpenShift with openshift-ansible, the installer will fail on the 3.9.44 tag when installing GlusterFS due to a missing glusterfs_heketi_route variable.

Version
* Ansible 2.6.3
* openshift-ansible-3.9.44-1 tag from git
Steps To Reproduce
  1. deploy with 3.9.44-1 --> failure
  2. deploy with 3.9.39-1 --> success
Expected Results

Install should succeed as it did with 3.9.39.

Observed Results

Describe what is actually happening.

TASK [openshift_storage_glusterfs : Generate GlusterFS StorageClass file] *********************************************************************************************************************************************************************
Monday 17 September 2018  07:43:03 -0400 (0:00:01.816)       0:12:56.237 ****** 
fatal: [openshift-master]: FAILED! => {"changed": false, "msg": "AnsibleUndefinedVariable: 'glusterfs_heketi_route' is undefined"}
Additional Information

inventory

# vim: set ft=dosini shiftwidth=2 tabstop=2 expandtab :
openshift-master ansible_host=master.home.61will.space
openshift-node-1 ansible_host=node1.home.61will.space
openshift-node-2 ansible_host=node2.home.61will.space

[OSEv3:children]
masters
etcd
glusterfs
nodes

[OSEv3:vars]
ansible_become=yes
debug_level=4

# storage
openshift_storage_glusterfs_namespace=glusterfs
openshift_storage_glusterfs_name=storage
openshift_storage_glusterfs_storageclass_default=true

# service broker
openshift_enable_service_catalog=true
openshift_service_catalog_image_version=v3.9

# logging control
logrotate_scripts=[{"name": "syslog", "path": "/var/log/cron\n/var/log/maillog\n/var/log/messages\n/var/log/secure\n/var/log/spooler\n", "options": ["daily", "rotate 4", "size 50M", "compress", "sharedscripts", "missingok"], "scripts": {"postrotate": "/bin/kill -HUP `cat /var/run/syslogd.pid 2> /dev/null` 2> /dev/null || true"}}]

journald_vars_to_replace=[{ "var": "Storage", "val": "persistent" },{ "var": "Compress", "val": "yes" },{ "var": "SyncIntervalSec", "val": "1s" },{ "var": "RateLimitInterval", "val": "1s" },{ "var": "RateLimitBurst", "val": "10000" },{ "var": "SystemMaxUse", "val": "500M" },{ "var": "SystemKeepFree", "val": "20%" },{ "var": "SystemMaxFileSize", "val": "10M" },{ "var": "MaxRetentionSec", "val": "1month" },{ "var": "MaxFileSec", "val": "1day" },{ "var": "ForwardToSyslog", "val": "no" },{ "var": "ForwardToWall", "val": "no" }]

# main setup
openshift_disable_check=disk_availability,memory_availability,docker_image_availability,package_version
openshift_master_identity_providers=[{'name': 'htpasswd_auth', 'login': 'true', 'challenge': 'true', 'kind': 'HTPasswdPasswordIdentityProvider', 'filename': '/etc/origin/master/htpasswd'}]
openshift_deployment_type=origin
openshift_release=v3.9
openshift_pkg_version=-3.9.0-1.el7.git.0.ba7faec
enable_excluders=false
openshift_clock_enabled=true

# hostname setup
openshift_hostname_check=true
openshift_master_default_subdomain=apps.home.61will.space
openshift_master_cluster_hostname=master.home.61will.space
openshift_master_cluster_public_hostname=console.home.61will.space

# ansible service broker
ansible_service_broker_registry_organization=ansibleplaybookbundle
ansible_service_broker_registry_whitelist=[".*-apb$"]
ansible_service_broker_local_registry_whitelist=[".*"]

[masters]
openshift-master

[etcd]
openshift-master

[nodes]
openshift-master openshift_node_labels="{'region': 'infra', 'zone': 'default'}"
openshift-node-[1:2] openshift_node_labels="{'region': 'primary', 'zone': 'default', 'application': 'astricon'}"

[glusterfs]
openshift-master
openshift-node-[1:2]

[glusterfs:vars]
glusterfs_devices=[ "/dev/sdb" ]
r_openshift_storage_glusterfs_use_firewalld=false
r_openshift_storage_glusterfs_firewall_enabled=true
openshift_storage_glusterfs_timeout=900
openshift_storage_glusterfs_wipe=true

[all:vars]
ansible_user=admin
cmcornejocrespo commented 6 years ago

Hi there, I'm having the same issue with origin.. 3.9.39-1 works well

leifmadsen commented 6 years ago

As far as I can tell, it just looks like either a default value hasn't been set in defaults/main.yml or a set_facts is missing that creates the variable.

michaelgugino commented 6 years ago

@jarrpa ptal

jerryhan77 commented 6 years ago

same issue on openshift-ansible-3.9.45-1.

jarrpa commented 6 years ago

PR submitted.