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

Ignore failing deletion of swap #46

Merged
merged 1 commit into from Jan 12, 2019

Conversation

Projects
None yet
2 participants
@jmeridth
Copy link
Contributor

jmeridth commented Dec 24, 2018

Description

Due to using hypriot, which doesn't have dphys-swapfile installed by default, the current deletion process fails. Adding ignore_errors fixes this.

Testing

TASK [kubeadm : Disable Swap] **************************************************************************************************************************************************************************************************************************************************
fatal: [rak8s000]: FAILED! => {"changed": true, "cmd": "dphys-swapfile swapoff && dphys-swapfile uninstall && update-rc.d dphys-swapfile remove", "delta": "0:00:00.005302", "end": "2018-12-24 20:35:44.430288", "msg": "non-zero return code", "rc": 127, "start": "2018-12-24 20:35:44.424986", "stderr": "/bin/sh: 1: dphys-swapfile: not found", "stderr_lines": ["/bin/sh: 1: dphys-swapfile: not found"], "stdout": "", "stdout_lines": []}
...ignoring
Ignore failing deletion of swap
- Due to using hypriot, which doesn't have dphys-swapfile installed by
default, the current deletion process fails.  Adding `ignore_errors`
fixes this.

TASK [kubeadm : Disable Swap] **************************************************************************************************************************************************************************************************************************************************
fatal: [rak8s000]: FAILED! => {"changed": true, "cmd": "dphys-swapfile swapoff && dphys-swapfile uninstall && update-rc.d dphys-swapfile remove", "delta": "0:00:00.005302", "end": "2018-12-24 20:35:44.430288", "msg": "non-zero return code", "rc": 127, "start": "2018-12-24 20:35:44.424986", "stderr": "/bin/sh: 1: dphys-swapfile: not found", "stderr_lines": ["/bin/sh: 1: dphys-swapfile: not found"], "stdout": "", "stdout_lines": []}
...ignoring

@chris-short chris-short merged commit 493a4be into rak8s:master Jan 12, 2019

@chris-short

This comment has been minimized.

Copy link
Member

chris-short commented Jan 12, 2019

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment