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

easzctl add-master 执行错误 #490

Closed
waitingsong opened this issue Mar 25, 2019 · 4 comments
Closed

easzctl add-master 执行错误 #490

waitingsong opened this issue Mar 25, 2019 · 4 comments

Comments

@waitingsong
Copy link
Contributor

waitingsong commented Mar 25, 2019

easzctl add-master 10.1.16.9

结果:

[INFO] Action: add a k8s master node : add-master 10.1.16.9
DEPLOY_MODE=multi-master
ERROR! Syntax Error while loading YAML.
  found unexpected ':'

The error appears to have been in '/etc/ansible/tools/21.addmaster.yml': line 31, column 21, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  roles:
  - { role: lb, tags:['restart_lb'] }
                    ^ here

添加node正常,添加master出错

@gjmzj
Copy link
Collaborator

gjmzj commented Mar 26, 2019

感谢反馈,我去确认下

@gjmzj
Copy link
Collaborator

gjmzj commented Mar 26, 2019

应该是ansible版本问题,我 ansible 2.6.4 没有问题;
不过在 roles里面只执行某个tag任务其实也没有实现,比如

roles:
  - { role: lb, tags:['restart_lb'] }

为了兼容你的问题,你可以临时把它改成

roles:
  - lb

@waitingsong
Copy link
Contributor Author

源码是最新,二进制代码是 basic_images_kubeasz_0.4.tar.gz, k8s.1-13-4.tar.gz

 ansible --version
ansible 2.7.9
  config file = /etc/ansible/ansible.cfg
  configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/lib/python2.7/site-packages/ansible
  executable location = /usr/bin/ansible
  python version = 2.7.5 (default, Oct 30 2018, 23:45:53) [GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]

@waitingsong
Copy link
Contributor Author

另, k8s 最新版 v1.14 发布了

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

2 participants