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-etcd 添加etcd节点报错 #743

Closed
soul-F opened this issue Nov 25, 2019 · 3 comments
Closed

./easzctl add-etcd 添加etcd节点报错 #743

soul-F opened this issue Nov 25, 2019 · 3 comments
Labels

Comments

@soul-F
Copy link

soul-F commented Nov 25, 2019

image
etcd查询状态信息: ansible 返回是存在 ETCD_CLUSTER_STATUS.stderr

导致
- name: get a running ectd node
shell: 'echo -e "{{ ETCD_CLUSTER_STATUS.stdout }}"|grep "is healthy"|sed -n "1p"|cut -d: -f2|cut -d/ -f3'
register: RUNNING_NODE

无法取到 {{ RUNNING_NODE }}

我修改为
shell: 'echo -e "{{ ETCD_CLUSTER_STATUS.stderr}}"|grep "is healthy"|sed -n "1p"|cut -d: -f2|cut -d/ -f3'
运行正常

@gjmzj
Copy link
Collaborator

gjmzj commented Nov 25, 2019

感谢反馈🙏
不过这里不要简单的改成 stderr,而是要两种情况都考虑,毕竟正常情况是在 stdout里面的;
详见d28628d87fab6af89c651e38abb1b9989eb27855

@github-actions
Copy link

This issue is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale label Jan 24, 2023
@github-actions
Copy link

This issue was closed because it has been inactive for 14 days since being marked as stale.

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

No branches or pull requests

2 participants