Seagate / halon

High availability solution
Apache License 2.0
1 stars 0 forks source link

gitlab: collect halon.decision.log and system.log #1538

Closed vvv closed 5 years ago

vvv commented 5 years ago

This fixes 7de80de34ec39b9342094f605c380e910fadcaa0.

chumakd commented 5 years ago

@vvv see this example of a failed job, halon.decision.log is there among the collected artifacts:

http://gitlab.mero.colo.seagate.com/mero/halon/-/jobs/4715/artifacts/browse

vvv commented 5 years ago

resolved all discussions

vvv commented 5 years ago

OK, this makes sense.

chumakd commented 5 years ago

currently, halon.decision.log will be saved as job artifact only for failed jobs, because in such cases halon-cleanup service doesn't get to remove the logs on the VM

chumakd commented 5 years ago

@vvv that's because it's removed at the end of every h0 run-st test by halon-cleanup service:

cmu halon-cleanup[7848]: Removing /var/log/halon.decision.log
cmu halon-cleanup[7848]: Removing /var/log/halon.trace.log

so there is nothing to fetch from VM when after_script is executed

chumakd commented 5 years ago

merged

vvv commented 5 years ago
$ unzip -l halon_job_4610__ST_singlenode__logs.zip 
Archive:  halon_job_4610__ST_singlenode__logs.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
   366266  03-13-2019 00:18   st-single_syslog.log
---------                     -------
   366266                     1 file
$ unzip -l halon_job_4611__ST_multinode__logs.zip 
Archive:  halon_job_4611__ST_multinode__logs.zip
  Length      Date    Time    Name
---------  ---------- -----   ----
   207051  03-13-2019 00:25   st-multi_syslog.log
---------                     -------
   207051                     1 file

@dmitriy.chumak halon.decision.log is missing.

vvv commented 5 years ago

mentioned in merge request #1534

chumakd commented 5 years ago

looks good, will merge after checking artifacts archive naming, after pipeline has completed

chumakd commented 5 years ago

added 1 commit

Compare with previous version