Bug 1371501

Summary: remove deprecated changedbowner.sh script
Product: [oVirt] ovirt-engine Reporter: Sharon Naftaly <snaftaly>
Component: Database.CoreAssignee: Eli Mesika <emesika>
Status: CLOSED CURRENTRELEASE QA Contact: Lucie Leistnerova <lleistne>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 4.0.0CC: bugs, eedri, emesika, gklein, mperina, oourfali
Target Milestone: ovirt-4.1.0-alphaFlags: rule-engine: ovirt-4.1+
rule-engine: planning_ack+
mperina: devel_ack+
pstehlik: testing_ack+
Target Release: 4.1.0.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-01 14:59:55 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1324882    

Description Sharon Naftaly 2016-08-30 11:07:53 UTC
Description of problem:

When running the script changedbowner.sh found in the ovirt-engine repo (ovirt-engine-4.0 branch) under packaging/setup/dbutils on, the script hangs, and the operation never finishes, unless aborted manually.


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1. run the following command on a database named engine:
./changedbowner.sh -d engine -f postgres -t engine

Actual results:
script hangs

Expected results:
script finishes successfully

Comment 1 Oved Ourfali 2016-09-05 12:18:00 UTC
Eli - do we even support this utility?

Comment 2 Eli Mesika 2016-09-06 09:15:35 UTC
(In reply to Oved Ourfali from comment #1)
> Eli - do we even support this utility?

As far as I know this procedure was created in order to support a case in which the backup was created with a different user other than 'engine' and the restore is done with an engine user , in that case we will have permissions issues unless we are using this utility on the backup source before the restore and change the ownership to engine 

I don't remember that we ever said that we are stopping to support that, the script is part of our DbUtils

Comment 3 Eli Mesika 2016-09-08 13:54:06 UTC
The utility is no longer supported , it will be removed from the dbutils directory and this BZ will be closed as WONTFIX

Comment 5 Sandro Bonazzola 2016-12-12 14:03:49 UTC
The fix for this issue should be included in oVirt 4.1.0 beta 1 released on December 1st. If not included please move back to modified.

Comment 6 Lucie Leistnerova 2017-01-18 10:42:01 UTC
script removed

verified in ovirt-engine-4.1.0-0.4.master.20170117182028.git4678f8c.el7.centos.noarch