Skip to content

Commit

Permalink
Fix after_kuttl commands so that the output is not truncated
Browse files Browse the repository at this point in the history
The commands run after kuttl were simply redericting the output and not
appending to the file, so if there were multiple commmands run, only the
output of the last one was kept. Instead, append to the file so the
output of all commands is visible.

Temporarily run more after_kuttl commands to debug failing
openstack-operator kuttl tests.
  • Loading branch information
cescgina committed Jan 21, 2025
1 parent 71882dd commit 6506ba0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/playbooks/kuttl/run-kuttl-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
KUBECONFIG: "{{ cifmw_openshift_kubeconfig }}"
PATH: "{{ cifmw_path }}"
ansible.builtin.shell: |
{{ item }} > {{ cifmw_artifacts_basedir }}/logs/cmd_after_{{ operator }}_kuttl.log
{{ item }} >> {{ cifmw_artifacts_basedir }}/logs/cmd_after_{{ operator }}_kuttl.log
loop: "{{ commands_after_kuttl_run }}"
ignore_errors: true

Expand Down
4 changes: 4 additions & 0 deletions zuul.d/kuttl_multinode.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,13 @@
- openstack
commands_before_kuttl_run:
- oc get pv
- oc get pvc
- oc get pv --selector provisioned-by=crc-devsetup --no-headers
- oc get all
commands_after_kuttl_run:
- oc get pv
- oc get pvc
- oc get pv --selector provisioned-by=crc-devsetup --no-headers
- oc get all

- job:
Expand Down

0 comments on commit 6506ba0

Please sign in to comment.