Bug 1421764 - engine-vacuum needs proper log messages
Summary: engine-vacuum needs proper log messages
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: Database.Core
Version: 4.1.1
Hardware: All
OS: All
medium
low
Target Milestone: ovirt-4.1.2
: 4.1.2
Assignee: Martin Perina
QA Contact: Lukas Svaty
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-13 15:44 UTC by Lukas Svaty
Modified: 2017-05-23 08:16 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-05-23 08:16:23 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.1+
rule-engine: ovirt-4.2+
lsvaty: testing_plan_complete+
mgoldboi: planning_ack+
mperina: devel_ack+
lsvaty: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 74607 0 master MERGED tools: Make engine-vacuum quiet unless verbose requested 2017-04-19 07:12:51 UTC
oVirt gerrit 75624 0 ovirt-engine-4.1 MERGED tools: Make engine-vacuum quiet unless verbose requested 2017-04-19 11:06:57 UTC

Description Lukas Svaty 2017-02-13 15:44:54 UTC
Description of problem:
When running ovirt vacuum only sql commands are written to command line. Either write them with proper descrription or dont write anything. Non educated user about sql does not know what these means.

Version-Release number of selected component (if applicable):
rhevm-4.1.1-0.1.el7.noarch

How reproducible:
100%

Steps to Reproduce:
1. [root@ls-engine1 ~]# engine-vacuum 
VACUUM;

1. [root@ls-engine1 ~]# engine-vacuum -f
VACUUM (FULL);


Actual results:
1. VACUUM;
2. VACUUM (FULL);

Expected results:
1. Running vacuum on database, sql: VACUUM
2. Running full vacuum on database, sql: VACUUM (FULL)

Comment 1 Yaniv Kaul 2017-03-08 19:31:50 UTC
Any updates on this?

Comment 2 Roy Golan 2017-03-09 09:08:10 UTC
You have a -v flag for verbosity, which is exactly what needed. 

```
engine-vacuum -v
...
CPU 0.00s/0.00u sec elapsed 0.00 sec.
INFO:  "pg_toast_1016191": found 0 removable, 0 nonremovable row versions in 0 out of 0 pages
DETAIL:  0 dead row versions cannot be removed yet.
There were 0 unused item pointers.
Skipped 0 pages due to buffer pins.
0 pages are entirely empty.
CPU 0.00s/0.00u sec elapsed 0.00 sec.
VACUUM (VERBOSE);
```

Comment 3 Yaniv Kaul 2017-03-09 09:15:27 UTC
(In reply to Roy Golan from comment #2)
> You have a -v flag for verbosity, which is exactly what needed. 
> 
> ```
> engine-vacuum -v
> ...
> CPU 0.00s/0.00u sec elapsed 0.00 sec.
> INFO:  "pg_toast_1016191": found 0 removable, 0 nonremovable row versions in
> 0 out of 0 pages
> DETAIL:  0 dead row versions cannot be removed yet.
> There were 0 unused item pointers.
> Skipped 0 pages due to buffer pins.
> 0 pages are entirely empty.
> CPU 0.00s/0.00u sec elapsed 0.00 sec.
> VACUUM (VERBOSE);
> ```

So is it going to 4.1.2? Is the bug fixed? What's the status?

Comment 4 Martin Perina 2017-03-09 09:22:32 UTC
As discussed in the past with Roy, we should suppress output if verbose is not specified (displaying "VACUUM;" or "VACUUM (FULL);"). If verbose is specified then we will show full output of the command as mentioned in Comment 2.

@Roy will you prepare the fix or should I assign it to someone else?

Comment 5 Lukas Svaty 2017-05-09 13:29:06 UTC
verified in ovirt-engine-4.1.2.1-0.1.el7.noarch


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