Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
hughjfchen opened this issue Oct 25, 2022 · 1 comment
Open

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

hughjfchen opened this issue Oct 25, 2022 · 1 comment

Comments

@hughjfchen
Copy link

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
Copy link
Author

This also fixed by #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant