kolla-ansible/tools/diag
Marc 'risson' Schmitt 839ec629bf
tools: use /usr/bin/env bash instead of /bin/bash
Signed-off-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
Change-Id: I374f7427a4318d00ca474367818117e11789ec13
2021-08-17 14:29:33 +02:00

30 lines
782 B
Bash
Executable File

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