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
Ensure idempotence #306
Ensure idempotence #306
Conversation
I have one cluster this doesn't fix: 70.37.61.214 which should actually be: 70.37.59.121 |
Also: 70.37.59.121 which should be: 70.37.60.126 |
Looks like if node1 was originally something different, ~docker/.ssh/authorized_keys on the nodes 2 and 3 probably need to be re-copied from node1. |
I think the off-by-one was due to a mis-merge or mis-split of files of IPs. |
I've generated all my items for the workshop at OSCON, but it's probably worth vetting this and getting it in, in general. |
Just to keep track of what we just discussed live: When I initially wrote the scripts, I wanted to make it possible to re-run them during the workshop, e.g. to fix a catastrophic deployment issue. Therefore, I tried as best as I could to not affect clusters that work correctly. This PR would execute We have (at least) the following options:
WDYT? |
I'm fine with this (although the flag switch also sounds simple).
I think your initial assumptions are valid, though! (Now that I understand them.)
I think this may be the simplest to implement?
This appears to be more complicated than we really need? |
I'd go with a It should be fairly easy to implement; want me to do it? |
Probably
Regretfully I have zero bandwidth right now, so although I don't want you to have to do unnecessary labor, I cannot do it right now. |
When I had an off-by-one error in the IPs file, I ended up with unexpected results:
The /etc/hosts file would preserve incorrect previous mappings of nodeN and an IP (and this is a problem if they must be grouped correctly to be able to reach each other, for security-group reasons)
k8s would preserve previous erroneous attempts at cluster configuration
This is my attempt to make a re-run with a group of different IPs actually succeed. Works in my testing but I'm interested in what you think, @jpetazzo.