Bug 1761494 - dwh-vacuum fails with 'vacuumdb: command not found'
Summary: dwh-vacuum fails with 'vacuumdb: command not found'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-dwh
Classification: oVirt
Component: Setup
Version: 4.3.6
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: ovirt-4.3.8
: 4.3.8
Assignee: Yedidyah Bar David
QA Contact: Guilherme Santos
URL:
Whiteboard:
Depends On:
Blocks: 1779631
TreeView+ depends on / blocked
 
Reported: 2019-10-14 14:01 UTC by Lucie Leistnerova
Modified: 2020-01-27 12:56 UTC (History)
4 users (show)

Fixed In Version: ovirt-engine-dwh-4.3.8
Clone Of:
Environment:
Last Closed: 2020-01-27 12:56:04 UTC
oVirt Team: Integration
Embargoed:
pm-rhel: ovirt-4.3+
pm-rhel: ovirt-4.4+
pm-rhel: exception+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 104219 0 'None' MERGED tools: dwh-vacuum.sh must enable SCL if used by the engine. 2020-07-15 04:04:51 UTC
oVirt gerrit 104397 0 'None' MERGED packaging: spec: Add sclenv to dwh conf 2020-07-15 04:04:51 UTC
oVirt gerrit 104398 0 'None' MERGED packaging: bin: dwh-vacuum: Source prolog 2020-07-15 04:04:51 UTC
oVirt gerrit 104409 0 'None' MERGED packaging: spec: Add sclenv to dwh conf 2020-07-15 04:04:50 UTC
oVirt gerrit 104410 0 'None' MERGED packaging: bin: dwh-vacuum: Source prolog 2020-07-15 04:04:51 UTC
oVirt gerrit 104411 0 'None' MERGED tools: dwh-vacuum.sh must enable SCL if used by the engine. 2020-07-15 04:04:50 UTC

Description Lucie Leistnerova 2019-10-14 14:01:30 UTC
This bug was initially created as a copy of Bug #1637815

I am copying this bug because: The same need to be fixed for dwh-vacuum



Description of problem:

engine-vacuum fails with 'vacuumdb: command not found'

Version-Release number of selected component (if applicable):
ovirt-engine-4.3.6.7-0.1.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Open an SSH console to the oVirt manager
2. Run 'dwh-vacuum' command

Actual results:
It fails with the error: 
~~~
[root@ovirt ~]# dwh-vacuum
/usr/bin/dwh-vacuum: line 47: vacuumdb: command not found
~~~

Expected results:
It should finish successfully:
~~~
[root@ovirt ~]# dwh-vacuum
vacuumdb: vacuuming database "ovirt_engine_history"
~~~

Additional info:
dwh-vacuum does not load SCL environment.

Comment 1 Adrian Quintero 2019-10-24 03:41:48 UTC
Hi,
Having the same issue:

[root@ovirtengine ~]# rpm -qa |grep ovirt-release
ovirt-release43-4.3.6-1.el7.noarch

/usr/share/ovirt-engine-dwh/bin/dwh-vacuum.sh: line 47: vacuumdb: command not found

Comment 2 Lucie Leistnerova 2019-10-24 05:50:58 UTC
Workaround is to enable scl manually.

scl enable rh-postgresql10 bash

Comment 3 Sandro Bonazzola 2019-10-28 07:08:59 UTC
Have we got a hint on how this regression got into 4.3.6?

Comment 4 RHEL Program Management 2019-10-28 07:09:06 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 5 Yedidyah Bar David 2019-10-28 07:45:23 UTC
(In reply to Sandro Bonazzola from comment #3)
> Have we got a hint on how this regression got into 4.3.6?

I am pretty certain that it's not a new regression, but existed "forever" (since SCL PG introduction in 4.2). The engine bug was reported a year ago, and dwh was simply forgotten. I still didn't try this myself, so not sure, but perhaps dwh-vacuum did work from inside engine-setup (because engine-setup itself runs with sclenv). engine-setup runs it with env=None, which means env is inherited from engine-setup. Also, I have a system with 4.3.5, and verified that 'engine-setup --offline' works (and successfully runs dwh-vacuum), but running 'dwh-vacuum" manually fails as reported in current bug.

Comment 6 Sandro Bonazzola 2019-11-20 10:07:44 UTC
Moved out to 4.3.8, missed 4.3.7 last RC.

Comment 7 Guilherme Santos 2020-01-14 15:54:23 UTC
Verified on:
ovirt-engine-setup-4.3.8.2-0.1.master.el7.noarch

Steps:
1. Run 'dwh-vacuum' command

Results:
Finish successfully with response 'vacuumdb: vacuuming database "ovirt_engine_history"'

Comment 8 Sandro Bonazzola 2020-01-27 12:56:04 UTC
This bugzilla is included in oVirt 4.3.8 release, published on January 27th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.3.8 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.