Bug 1684195 - [RFE] Add summary section at the end of the log files
Summary: [RFE] Add summary section at the end of the log files
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-hosted-engine-setup
Classification: oVirt
Component: General
Version: ---
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ovirt-4.3.2
: ---
Assignee: Ido Rosenzwig
QA Contact: Liran Rotenberg
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-02-28 16:53 UTC by Ido Rosenzwig
Modified: 2019-03-19 10:03 UTC (History)
4 users (show)

Fixed In Version: ovirt-hosted-engine-setup-2.3.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-03-19 10:03:25 UTC
oVirt Team: Integration
Embargoed:
sbonazzo: ovirt-4.3?
sbonazzo: devel_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 98125 0 ovirt-hosted-engine-setup-2.3 MERGED Add a summary section in ansible log files 2019-03-01 09:00:41 UTC
oVirt gerrit 98142 0 ovirt-hosted-engine-setup-2.3 MERGED Add a summary section in ansible log files 2019-03-01 15:35:04 UTC

Description Ido Rosenzwig 2019-02-28 16:53:41 UTC
Description of problem:

Hosted-engine logs are hard to read and use for debugging a failed deployment.
In addition, because there are ansible tasks that are being skipped and added to the log, it is difficult for a user to track the tasks that were actually got executed and understand the deployment flow.

Thus, we should add a summary section at the end of each ansible log file that will show all the tasks that weren't skipped at the order they were executed.
Also, we should print the duration time for each task, for it is a valuable information that we can use for debugging and statistics.

On a failed deployment we should mark the task that has failed, helping the user find the source of the problem quickly - without searching the entire log for keywords like 'fail', 'error', etc...

Steps to Reproduce:
1. Running: '$ hosted-engine --deploy'
2. In the bottom of each (ansible) log file in /var/log/ovirt-hosted-engine-setup/ the summary section should appear
3.

Comment 2 Liran Rotenberg 2019-03-07 09:50:12 UTC
Verified on:
ovirt-hosted-engine-setup-2.3.6-1.el7ev.noarch

Steps:
1. Deploy HE environment.
2. Check logs under /var/log/ovirt-hosted-engine-setup

Results:
On each log of ansible there is a summary section at the bottom of the log, indicating the time of a task and what the task is.

Comment 3 Sandro Bonazzola 2019-03-19 10:03:25 UTC
This bugzilla is included in oVirt 4.3.2 release, published on March 19th 2019.

Since the problem described in this bug report should be
resolved in oVirt 4.3.2 release, it has been closed with a resolution of CURRENT RELEASE.

If the solution does not work for you, please open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.