Skip to content

Commit 97f7c54

Browse files
committed
disable k3s logs temporary
1 parent b32c647 commit 97f7c54

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

  • tests/playbooks/roles/fetch-logs/tasks

tests/playbooks/roles/fetch-logs/tasks/main.yaml

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,4 @@
1414
filename=${filename%".service"}
1515
sudo journalctl -u $unit --no-pager > /root/logs/${filename}.log
1616
done;
17-
18-
- name: Get k3s master floating IP
19-
shell:
20-
executable: /bin/bash
21-
cmd: |
22-
set +x; source {{ devstack_workdir }}/openrc demo demo > /dev/null
23-
openstack floating ip list --port {{ master_port_name }} -c "Floating IP Address" -f value
24-
register: fip
25-
26-
- name: Set fact for k3s master floating IP
27-
set_fact:
28-
k3s_fip: "{{ fip.stdout }}"
29-
30-
- name: Fetch k3s logs
31-
shell:
32-
executable: /bin/bash
33-
cmd: |
34-
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i {{ ansible_user_dir }}/.ssh/id_rsa ubuntu@{{ k3s_fip }} sudo journalctl -u k3s.service --no-pager > /root/logs/k3s.log
17+

0 commit comments

Comments
 (0)