diff options
| author | Eduardo Gonzalez <dabarren@gmail.com> | 2017-08-29 16:39:30 +0200 |
|---|---|---|
| committer | Eduardo Gonzalez <dabarren@gmail.com> | 2017-08-29 15:54:26 +0000 |
| commit | c27338bf2f7d501d1c0096260a3136c9c974e9c9 (patch) | |
| tree | 96837454fb70a34f207631481981751958ae36b0 /tests | |
| parent | 39e6c55e93c3accd5538e36f0fe1662ba3cc64ae (diff) | |
| download | kolla-ansible-c27338bf2f7d501d1c0096260a3136c9c974e9c9.tar.gz kolla-ansible-c27338bf2f7d501d1c0096260a3136c9c974e9c9.zip | |
Retrieve ceph logs in gate
Check status of ceph cluster
Change-Id: I4919a32794cc75bd3e8f411a219f778238a334ee
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/get_logs.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/get_logs.sh b/tests/get_logs.sh index fe5f8b6b2..25c2ed431 100644 --- a/tests/get_logs.sh +++ b/tests/get_logs.sh @@ -38,6 +38,13 @@ copy_logs() { # docker related information (docker info && docker images && docker ps -a) > ${LOG_DIR}/system_logs/docker-info.txt + # ceph related logs + if [[ $(docker ps --filter name=ceph_mon --format "{{.Names}}") ]]; then + docker exec ceph_mon ceph -s > ${LOG_DIR}/kolla/ceph/ceph_s.txt + docker exec ceph_mon ceph osd df > ${LOG_DIR}/kolla/ceph/ceph_osd_df.txt + docker exec ceph_mon ceph osd tree > ${LOG_DIR}/kolla/ceph/ceph_osd_tree.txt + fi + # Rename files to .txt; this is so that when displayed via # logs.openstack.org clicking results in the browser shows the # files, rather than trying to send it to another app or make you |
