Open FatmanUK opened 5 months ago
[WARNING]: Error deleting remote temporary files
(rc: 1, stderr: X11 forwarding
Related?
fatal: [k3s-child-06 -> k3s-mother-01]:
UNREACHABLE! => {"changed": false, "msg": "Failed
to create temporary directory. In some cases, you
may have been able to authenticate and did not
have permissions on the target directory. Consider
changing the remote tmp path in ansible.cfg to a
path rooted in \"/tmp\", for more error information
use -vvv. Failed command was: ( umask 77 &&
mkdir -p \"` echo /tmp `\"&& mkdir \"` echo
/tmp/ansible-tmp-1709590387.7094378-21535-2
5183337048722 `\" && echo ansible-
tmp-1709590387.7094378-21535-25183337048722=
\"` echo /tmp/ansible-tmp-1709590387.7094378-2153
5-25183337048722 `\" ), exited with result 1",
"unreachable": true}
Related?
fatal: [k3s-child-01 -> k3s-mother-01({{ network
| ipv4(ip_fourth_byte) | ipv4("address") }})]:
FAILED! => {"attempts": 60, "changed": true, "cmd":
["/usr/local/bin/kubectl", "get", "node",
"k3s-child-01.dreamtrack.test"], "delta":
"0:00:00.123127", "end": "2024-03-04 22:20:27.
834238", "msg": "non-zero return code", "rc": 1,
"start": "2024-03-04 22:20:27.711111", "stderr":
"Error from server (NotFound): nodes
\"k3s-child-01.dreamtrack.test\" not found",
"stderr_lines": ["Error from server (NotFound):
nodes \"k3s-child-01.dreamtrack.test\" not
found"], "stdout": "", "stdout_lines": []}
Related?
TASK [k3s_reboot_slow : Wait for all nodes to exist]
******************************
fatal: [k3s-mother-02 -> k3s-mother-01]: UNREACHABLE!
=> {"changed": false, "msg": "Failed to create temporary
directory. In some cases, you may have been able to
authenticate and did not have permissions on the target directory.
Consider changing the remote tmp path in ansible.cfg to a path
rooted in \"/tmp\", for more error information use -vvv. Failed
command was: ( umask 77 && mkdir -p \"` echo /tmp `\"&&
mkdir \"` echo /tmp/ansible-tmp-1709631714.6867297-1921279
-155302194164978 `\" && echo ansible-tmp-1709631714.6867297
-1921279-155302194164978=\"` echo /tmp/ansible-tmp
-1709631714.6867297-1921279-155302194164978 `\" ), exited
with result 1", "unreachable": true}
At work site. Interesting.
TASK [k3s_reboot_slow : Wait for all nodes to exist]
***************************
fatal: [k3s-child-03 -> k3s-mother-01]: FAILED! =>
{"msg": "Failed to set execute bit on remote files
(rc: 1, err: X11 forwarding request failed\r\nserver
exited unexpectedly\n)"}
...
fatal: [k3s-child-04 -> k3s-mother-01]: FAILED! =>
{"msg": "Failed to set execute bit on remote files
(rc: 1, err: X11 forwarding request failed\r\nserver
exited unexpectedly\n)"}
For tasks that wait or run for a long time without producing output, I found it necessary to add -o ServerAliveInterval=50 to ssh parameters to enable keepalives.
pipelining
Reboot task might be "racy": https://github.com/ostreedev/ostree/pull/1548
Can't be the reboot module --- it's the "wait for nodes" task which is a command.
- name: 'Wait for all nodes to exist'
register: 'reg_nodes'
retries: 120
delay: 20
until: 'reg_nodes is success'
delegate_to: '{{ groups.k3s_primary_masters | first }}'
command:
argv:
- '{{ k3s_binary_dir }}/kubectl'
- 'get'
- 'node'
- '{{ fqdn }}'
Would be fixed by #175 , most likely.
Not forgetting to fork off a ticket for the outputs which don't fit...