cloud-pak-ocp-4 icon indicating copy to clipboard operation
cloud-pak-ocp-4 copied to clipboard

Error when number of master nodes or worker nodes less than 3

Open hughjfchen opened this issue 2 years ago • 1 comments

The prepare.sh script runs smoothly when there're 3 master nodes and 3 worker nodes at least. However,If I list one master, one worker node as following in the inventory file:

[masters]
10.11.8.252 host="master-1" mac="00:00:0a:0b:08:c3"

[workers]
10.11.8.253 host="worker-1" mac="00:00:0a:0b:08:f0"

I got following error in the step generating dnsmasq.conf :

TASK [Generate dnsmasq.conf file] *************************************************************************************************************************************************************
Tuesday 25 October 2022  00:00:45 -0700 (0:00:00.301)       0:01:19.492 ******* 
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ansible.errors.AnsibleUndefinedVariable: list object has no element 1
fatal: [localhost]: FAILED! => changed=false 
  msg: 'AnsibleUndefinedVariable: list object has no element 1'

hughjfchen avatar Oct 25 '22 07:10 hughjfchen

This also fixed by #38

hughjfchen avatar Oct 26 '22 10:10 hughjfchen