diff options
| author | Jan Gutter <github@jangutter.com> | 2023-10-23 18:34:19 +0100 |
|---|---|---|
| committer | Jan Gutter <github@jangutter.com> | 2023-10-24 00:26:24 +0100 |
| commit | bd2b69e6f82a62d08f40dffd53d279d1dedbc0b5 (patch) | |
| tree | bcf97d0437e9d60df73dab6caf5b1ce2d1a6a1b8 /tests/playbooks | |
| parent | 3ffa439fa37bca94d47fae4db2c3fdaad93f52e1 (diff) | |
| download | kolla-bd2b69e6f82a62d08f40dffd53d279d1dedbc0b5.tar.gz kolla-bd2b69e6f82a62d08f40dffd53d279d1dedbc0b5.zip | |
CI: fix podman info log collection
* capture podman config
* podman info needs sudo permissions
* before this fix, the podman info command failed with:
Error: cannot set up namespace using "/usr/bin/newuidmap":
should have setuid or have filecaps setuid: exit status 1
Change-Id: Ib3fe039a8c35421b56eedbd2d5197217b4a15a9a
Diffstat (limited to 'tests/playbooks')
| -rw-r--r-- | tests/playbooks/post.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/playbooks/post.yml b/tests/playbooks/post.yml index ddb96fa03..7245b7ba8 100644 --- a/tests/playbooks/post.yml +++ b/tests/playbooks/post.yml @@ -38,6 +38,9 @@ sudo cp -r /var/lib/containers/storage/volumes/kolla_logs/_data kolla_logs fi fi + if sudo test -d /etc/containers; then + sudo cp -r /etc/containers etc_containers + fi # sudo config sudo cp -r /etc/sudoers.d ./ @@ -60,7 +63,7 @@ ps -eo user,pid,ppid,lwp,%cpu,%mem,size,rss,cmd > ps.txt # docker related information - ({{ container_engine }} info && {{ container_engine }} system df && {{ container_engine }} system df -v) > {{ container_engine }}-info.txt + (sudo {{ container_engine }} info && sudo {{ container_engine }} system df && sudo {{ container_engine }} system df -v) > {{ container_engine }}-info.txt sudo cp -r /etc/kolla kolla_configs |
