ceph / ceph-medic

find common issues in ceph clusters
MIT License
22 stars 18 forks source link

Test report output, and ensure newlines are added #61

Closed alfredodeza closed 7 years ago

alfredodeza commented 7 years ago

This is the second try to fix this problem:

 node9
   ECOM1: /etc/ceph/ceph.conf does not exist
   ECOM2: ceph executable was not found in common paths when running `which`   ECOM2: ceph executable was not found in common paths when running `which`   ECOM3: /var/lib/ceph could not be parsed: [Errno 2] No such file or directory: '/va mira049                                                               ch file or directory: '/var/lib/ceph'   EMON1: secret key "None" is different than host(s): mira049,mira060,mira021
   WMON2: collocated OSDs found: ceph-40,ceph-46,ceph-49,ceph-7,ceph-8,ceph-12,ceph-18
 mira060                                                               erent than host(s): node9,node3
   WMON2: collocated OSDs found: ceph-1,ceph-69,ceph-25,ceph-26,ceph-27,ceph-22,ceph-23,ceph-10,ceph-66,ceph-74
 node3                                                                 erent than host(s): node9,node3
   WMON2: collocated OSDs found: ceph-5
 mira021                                                               mira021
   WMON2: collocated OSDs found: ceph-5,ceph-6,ceph-11,ceph-15,ceph-17,ceph-19,ceph-20
   EMON1: secret key "AQCRWAtSAAAAABAAtLVEZ9qH0MLCF5hBtOMnQA==" is different than host(s): node9,node3

It now looks like:

 node9
   ECOM1: /etc/ceph/ceph.conf does not exist
   ECOM2: ceph executable was not found in common paths when running `which`
   ECOM3: /var/lib/ceph could not be parsed: [Errno 2] No such file or directory: '/var/lib/ceph'
   EMON1: secret key "None" is different than host(s): mira049,mira060,mira021
 mira049
   WMON2: collocated OSDs found: ceph-40,ceph-46,ceph-49,ceph-7,ceph-8,ceph-12,ceph-18
   EMON1: secret key "AQCRWAtSAAAAABAAtLVEZ9qH0MLCF5hBtOMnQA==" is different than host(s): node9,node3
 mira060
   WMON2: collocated OSDs found: ceph-1,ceph-69,ceph-25,ceph-26,ceph-27,ceph-22,ceph-23,ceph-10,ceph-66,ceph-74
   EMON1: secret key "AQCRWAtSAAAAABAAtLVEZ9qH0MLCF5hBtOMnQA==" is different than host(s): node9,node3
 node3
   WMON2: collocated OSDs found: ceph-5
   EMON1: secret key "None" is different than host(s): mira049,mira060,mira021
 mira021
   WMON2: collocated OSDs found: ceph-5,ceph-6,ceph-11,ceph-15,ceph-17,ceph-19,ceph-20
   EMON1: secret key "AQCRWAtSAAAAABAAtLVEZ9qH0MLCF5hBtOMnQA==" is different than host(s): node9,node3

Added a couple of tests, mainly paving the way to get more tests going, with fixtures that will help mangle the data collected to trigger errors