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

Reset Cluster Fails #23

Open
aaronkjones opened this issue Jul 5, 2019 · 4 comments
Open

Reset Cluster Fails #23

aaronkjones opened this issue Jul 5, 2019 · 4 comments

Comments

@aaronkjones
Copy link
Contributor

Description

Reset cluster playbook fails due to prompt Are you sure you want to proceed? [y/N]

Error

fatal: [rpi-k8s-2]: FAILED! => {"changed": true, "cmd": ["kubeadm", "reset"], "delta": "0:00:00.105217", "end": "2019-07-05 19:16:51.451584", "msg": "non-zero return code", "rc": 1, "start": "2019-07-05 19:16:51.346367", "stderr": "Aborted reset operation", "stderr_lines": ["Aborted reset operation"], "stdout": "[reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.\n[reset] Are you sure you want to proceed? [y/N]: ", "stdout_lines": ["[reset] WARNING: Changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.", "[reset] Are you sure you want to proceed? [y/N]: "]}

Resolution

Use kubeadm reset -f instead of kubeadm reset

mrlesmithjr added a commit that referenced this issue Jul 8, 2019
@mrlesmithjr
Copy link
Owner

@aaronkjones This has been merged. Thanks for catching this. I have not gone through this setup in a while so, hopefully it still works ;)

@mrlesmithjr
Copy link
Owner

Closing this out as this has been merged.

@mrlesmithjr
Copy link
Owner

@aaronkjones I reopened this as I am now seeing this as well. You happen to see this still?

    - name: Resetting K8s Master
      command: kubeadm reset -f
      become: true
TASK [Resetting K8s Slaves] **********************************************************************************************************************************
Wednesday 20 November 2019  00:09:26 -0500 (0:00:08.429)       0:00:08.555 ****
fatal: [rpi-k8s-2]: FAILED! => {"changed": true, "cmd": ["kubeadm", "reset"], "delta": "0:00:01.118793", "end": "2019-11-20 05:09:28.845215", "msg": "non-zero return code", "rc": 1, "start": "2019-11-20 05:09:27.726422", "stderr": "Aborted reset operation", "stderr_lines": ["Aborted reset operation"], "stdout": "[reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.\n[reset] are you sure you want to proceed? [y/N]: ", "stdout_lines": ["[reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.", "[reset] are you sure you want to proceed? [y/N]: "]}
fatal: [rpi-k8s-4]: FAILED! => {"changed": true, "cmd": ["kubeadm", "reset"], "delta": "0:00:01.113352", "end": "2019-11-20 05:09:28.892493", "msg": "non-zero return code", "rc": 1, "start": "2019-11-20 05:09:27.779141", "stderr": "Aborted reset operation", "stderr_lines": ["Aborted reset operation"], "stdout": "[reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.\n[reset] are you sure you want to proceed? [y/N]: ", "stdout_lines": ["[reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.", "[reset] are you sure you want to proceed? [y/N]: "]}
fatal: [rpi-k8s-3]: FAILED! => {"changed": true, "cmd": ["kubeadm", "reset"], "delta": "0:00:01.294705", "end": "2019-11-20 05:09:28.987780", "msg": "non-zero return code", "rc": 1, "start": "2019-11-20 05:09:27.693075", "stderr": "Aborted reset operation", "stderr_lines": ["Aborted reset operation"], "stdout": "[reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.\n[reset] are you sure you want to proceed? [y/N]: ", "stdout_lines": ["[reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.", "[reset] are you sure you want to proceed? [y/N]: "]}
fatal: [rpi-k8s-5]: FAILED! => {"changed": true, "cmd": ["kubeadm", "reset"], "delta": "0:00:01.154693", "end": "2019-11-20 05:09:28.937262", "msg": "non-zero return code", "rc": 1, "start": "2019-11-20 05:09:27.782569", "stderr": "Aborted reset operation", "stderr_lines": ["Aborted reset operation"], "stdout": "[reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.\n[reset] are you sure you want to proceed? [y/N]: ", "stdout_lines": ["[reset] WARNING: changes made to this host by 'kubeadm init' or 'kubeadm join' will be reverted.", "[reset] are you sure you want to proceed? [y/N]: "]}

@mrlesmithjr
Copy link
Owner

I found the issue. The slave nodes did not have kubeadm reset -f as part of the command.

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