]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible: add some tasks for debugging purpose 1036/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Wed, 30 May 2018 15:25:00 +0000 (17:25 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Wed, 30 May 2018 15:58:29 +0000 (17:58 +0200)
related to ceph/ceph-ansible/pull/2665 and ceph/ceph-ansible/pull/2652

We are seeing too many failures related to yum.
These additional tasks will help us to have more information when a yum
failure occurs.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
scripts/build_utils.sh

index b737306bc49ec680bcbd8f1e0fe84bb63d5f3d85..a5ef16cc688663adb353d19c17f67b2af8173b59 100644 (file)
@@ -729,6 +729,18 @@ write_collect_logs_playbook() {
 - hosts: all
   become: yes
   tasks:
+    - name: get yum repoinfo result
+      command: yum repoinfo
+      failed_when: false
+
+    - name: get date result
+      command: date
+      failed_when: false
+
+    - name: get yum check-update result
+      command: yum check-update
+      failed_when: false
+
     - name: find ceph logs
       command: find /var/log/ceph -name "{{ cluster|default('ceph') }}*.log"
       register: ceph_logs