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

NodeID of pump/drainer is not import and keep consistent when import from ansible #797

Closed
july2993 opened this issue Sep 21, 2020 · 4 comments
Labels
ansible Categorizes issue as related to tidb-ansible help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. status/discuss Indicates that the issue is in discussion, if no reply for long time, the issue will be closed. type/bug Categorizes issue as related to a bug.
Milestone

Comments

@july2993
Copy link
Contributor

Bug Report

Please answer these questions before submitting your issue. Thanks!

  1. What did you do?

import a cluster from ansible.
restart pump or drainer.

  1. What did you expect to see?
    ./binlogctl -cmd pumps or ./binlogctl -cmd drainers
    things keep the same as use ansible before.

  2. What did you see instead?

new instance of pump/drainer with the new NodeID(the one we see from tiup cluster display)

ansible use the {host}:port, and when imported to tiup, we use the {ip:port} and NodeID

  1. What version of TiUP are you using (tiup --version)?
@july2993 july2993 added type/bug Categorizes issue as related to a bug. help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Sep 21, 2020
@lucklove
Copy link
Member

We can get the real id from pump and drainer api.
I think we can transform the tiup-node-id to ansible-node-id via these apis before we take any action on pump and drainer.

@lucklove lucklove added the status/discuss Indicates that the issue is in discussion, if no reply for long time, the issue will be closed. label Oct 19, 2020
@july2993
Copy link
Contributor Author

should add a NodeID field in spec, and set it when import form ansible

@lucklove lucklove added this to the v1.2.3 milestone Oct 26, 2020
@glkappe
Copy link
Contributor

glkappe commented Oct 27, 2020

Regarding this improvement, I hope to ensure that the modification of tiup_node-id is consistent with the official document (also consistent with the deployment of tidb-ansible), It is recommended to continue to use host:port to set unspecified pump_node-id,and avoid secondary learning

https://docs.pingcap.com/zh/tidb/stable/tidb-binlog-configuration-file#node-id

Thanks, please feel free to contact me if you have any questions

@lucklove
Copy link
Member

@glkappe We want to change it to ip:port because all instances in TiUP is addressed by ip:port pair, if Drainer not, it breaks the consistency.

@lonng lonng modified the milestones: v1.2.3, v1.3.1 Nov 4, 2020
@lucklove lucklove added the ansible Categorizes issue as related to tidb-ansible label Dec 10, 2020
@lucklove lucklove modified the milestones: v1.3.1, v1.2.4 Dec 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ansible Categorizes issue as related to tidb-ansible help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. status/discuss Indicates that the issue is in discussion, if no reply for long time, the issue will be closed. type/bug Categorizes issue as related to a bug.
Projects
None yet
Development

No branches or pull requests

4 participants