Files
kolla-ansible/tools/diag
Michal Nasiadka 180721846e Remove egrep usage from scripts
egrep: warning: egrep is obsolescent; using grep -E

Change-Id: I4df0d520546da141cafc15e9464149059fdc06a6
Signed-off-by: Michal Nasiadka <mnasiadka@gmail.com>
2025-07-21 12:31:40 +00:00

32 lines
896 B
Bash
Executable File

#!/usr/bin/env bash
container_engine="${1:-docker}"
echo "##### System Identification #####"
grep -Ew 'PRETTY_NAME|VERSION_ID' /etc/os-release
echo "##### ${container_engine^} Version #####"
$container_engine --version
echo "##### ${container_engine^} Info #####"
$container_engine info
echo "##### Ansible Version #####"
ansible --version
echo "##### List installed packages, including editables #####"
pip list
echo "##### Globals.yml file #####"
grep -Ew 'kolla_base_distro|openstack_release' /etc/kolla/globals.yml
cat /etc/kolla/globals.yml | grep ^enable_
echo "##### ${container_engine^} Images #####"
$container_engine images -a --filter "label=kolla_version" --filter "dangling=false" --format "{{.ID}} - {{.Repository}}:{{.Tag}} - {{.CreatedSince}}"
echo "##### All ${container_engine^} Containers #####"
$container_engine ps -a
echo "##### Ip Link Show #####"
ip link show