diff options
author | Chris Evich <cevich@redhat.com> | 2019-09-30 17:25:30 -0400 |
---|---|---|
committer | Chris Evich <cevich@redhat.com> | 2019-10-01 08:54:50 -0400 |
commit | 0b5100ff79c422bf21d9ecc25107be9150881ca7 (patch) | |
tree | 61ba529b6cde15050742f8c14c69133f679b40a4 /contrib | |
parent | 5d344db8d776190568df9c3b73fd22b632c9c135 (diff) | |
download | podman-0b5100ff79c422bf21d9ecc25107be9150881ca7.tar.gz podman-0b5100ff79c422bf21d9ecc25107be9150881ca7.tar.bz2 podman-0b5100ff79c422bf21d9ecc25107be9150881ca7.zip |
Cirrus: Show names/versions of critical packages
Adds an output to all testing tasks which lists the names/versions of
critical/essential packages present on the VM.
Signed-off-by: Chris Evich <cevich@redhat.com>
Diffstat (limited to 'contrib')
-rwxr-xr-x | contrib/cirrus/logcollector.sh | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/contrib/cirrus/logcollector.sh b/contrib/cirrus/logcollector.sh index 425a619b0..3393ac9b5 100755 --- a/contrib/cirrus/logcollector.sh +++ b/contrib/cirrus/logcollector.sh @@ -32,5 +32,42 @@ case $1 in df) showrun df -lhTx tmpfs ;; ginkgo) showrun cat $CIRRUS_WORKING_DIR/test/e2e/ginkgo-node-*.log ;; journal) showrun journalctl -b ;; + packages) + case $OS_RELEASE_ID in + fedora*) + PKG_LST_CMD='rpm -q --qf=%{N}-%{V}-%{R}-%{ARCH}\n' + PKG_NAMES=(\ + container-selinux \ + containernetworking-plugins \ + containers-common \ + criu \ + golang \ + podman \ + slirp4netns \ + ) + if [[ "$OS_RELEASE_VER" -lt "31" ]]; then + PKG_NAMES+=(runc) + else + PKG_NAMES+=(crun) + fi + ;; + ubuntu*) + PKG_LST_CMD='dpkg-query --show --showformat=${Package}-${Version}-${Architecture}\n' + PKG_NAMES=(\ + containernetworking-plugins \ + containers-common \ + cri-o-runc \ + criu \ + golang \ + libvarlink \ + podman \ + skopeo \ + slirp4netns \ + ) + ;; + *) bad_os_id_ver ;; + esac + $PKG_LST_CMD ${PKG_NAMES[@]} | sort -u + ;; *) die 1 "Warning, $(basename $0) doesn't know how to handle the parameter '$1'" esac |