redhat-cop / casl-ansible

Ansible automation for Managing OpenShift Container Platform clusters
Apache License 2.0
120 stars 81 forks source link

Install fails if openshift_master_cluster_public_hostname not set #120

Open etsauer opened 7 years ago

etsauer commented 7 years ago

I think this is actually a contrib issue now, but need to look into it further.

Failure summary:

  1. Host:     localhost
     Play:     localhost
     Task:     openshift-ansible-contrib/roles/dns-records : Add public master cluster hostname records to the private A records (single master)
     Message:  The conditional check 'hostvars[groups.masters[0]].openshift_master_cluster_public_hostname is defined' failed. The error was: error while evaluating conditional (hostvars[groups.masters[0]].openshift_master_cluster_public_hostname is defined): list object has no element 0

               The error appears to have been in '/tmp/src/casl-ansible/roles/openshift-ansible-contrib/roles/dns-records/tasks/main.yml': line 12, column 3, but may
               be elsewhere in the file depending on the exact syntax problem.

               The offending line appears to be:

               - name: "Add public master cluster hostname records to the private A records (single master)"
                 ^ here
huddlesj commented 5 years ago

@etsauer I ran into the same error tonight. I had changed the dns suffix in the all.yaml but I had not updated the hosts file. After both match the error went away.