diff options
| author | Michał Nasiadka <mnasiadka@gmail.com> | 2021-01-19 11:27:59 +0100 |
|---|---|---|
| committer | Michał Nasiadka <mnasiadka@gmail.com> | 2021-03-02 17:49:12 +0100 |
| commit | 65a16a08e2d8f25a1dfa3038eb0eb12e5d742057 (patch) | |
| tree | 9b01da246288a514f801548ec58b4a6adab713b1 /tests/get_logs.sh | |
| parent | a8981a79aac09ab5529245a6348c0ed83e3a0211 (diff) | |
| download | kolla-ansible-65a16a08e2d8f25a1dfa3038eb0eb12e5d742057.tar.gz kolla-ansible-65a16a08e2d8f25a1dfa3038eb0eb12e5d742057.zip | |
CI: Move from ceph-ansible to cephadm
Change-Id: I81a4f8f8b8faa7559740531bb16d8aec7fc23f9b
Diffstat (limited to 'tests/get_logs.sh')
| -rw-r--r-- | tests/get_logs.sh | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/tests/get_logs.sh b/tests/get_logs.sh index 6ba860592..a26043b99 100644 --- a/tests/get_logs.sh +++ b/tests/get_logs.sh @@ -78,15 +78,10 @@ copy_logs() { # docker related information (docker info && docker images && docker ps -a && docker network ls && docker inspect $(docker ps -aq)) > ${LOG_DIR}/system_logs/docker-info.txt - # ceph-ansible related logs + # cephadm related logs mkdir -p ${LOG_DIR}/ceph - for container in $(docker ps --filter name=ceph-mon --format "{{.Names}}"); do - docker exec ${container} ceph --connect-timeout 5 -s > ${LOG_DIR}/ceph/ceph_s.txt - # NOTE(yoctozepto): osd df removed on purpose to avoid CI POST_FAILURE due to a possible hang: - # as of ceph mimic it hangs when MON is operational but MGR not - # its usefulness is mediocre and having POST_FAILUREs is bad - docker exec ${container} ceph --connect-timeout 5 osd tree > ${LOG_DIR}/ceph/ceph_osd_tree.txt - done + sudo cephadm shell -- ceph --connect-timeout 5 -s > ${LOG_DIR}/ceph/ceph_s.txt + sudo cephadm shell -- ceph --connect-timeout 5 osd tree > ${LOG_DIR}/ceph/ceph_osd_tree.txt # bifrost related logs if [[ $(docker ps --filter name=bifrost_deploy --format "{{.Names}}") ]]; then |
