diff options
| author | Mauricio Lima <mauriciolimab@gmail.com> | 2016-04-15 15:26:10 -0400 |
|---|---|---|
| committer | Mauricio Lima <mauriciolimab@gmail.com> | 2016-05-06 07:20:03 -0400 |
| commit | 7323eca726752e916b0cc97a3ee8fd5e8014974c (patch) | |
| tree | 6b490dd4adeb7c91d6ca8f44f5eed57d52ac38c0 /tools/diag | |
| parent | a4104c2aecea4aa50638661dbf1cc3ecdd4dd63a (diff) | |
| download | kolla-7323eca726752e916b0cc97a3ee8fd5e8014974c.tar.gz kolla-7323eca726752e916b0cc97a3ee8fd5e8014974c.zip | |
Diagnostics for Environment
Change-Id: I99726387d8daf99e85e5502e27710de60c0066bc
Implements: blueprint diag-env
Diffstat (limited to 'tools/diag')
| -rwxr-xr-x | tools/diag | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tools/diag b/tools/diag new file mode 100755 index 000000000..a01d4752f --- /dev/null +++ b/tools/diag @@ -0,0 +1,29 @@ +#!/bin/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 |
