Skip to content
Snippets Groups Projects
Commit c27338bf authored by Eduardo Gonzalez's avatar Eduardo Gonzalez
Browse files

Retrieve ceph logs in gate

Check status of ceph cluster

Change-Id: I4919a32794cc75bd3e8f411a219f778238a334ee
parent 39e6c55e
No related branches found
No related tags found
No related merge requests found
...@@ -38,6 +38,13 @@ copy_logs() { ...@@ -38,6 +38,13 @@ copy_logs() {
# docker related information # docker related information
(docker info && docker images && docker ps -a) > ${LOG_DIR}/system_logs/docker-info.txt (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 # Rename files to .txt; this is so that when displayed via
# logs.openstack.org clicking results in the browser shows the # logs.openstack.org clicking results in the browser shows the
# files, rather than trying to send it to another app or make you # files, rather than trying to send it to another app or make you
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment