Change in ovirt-engine[master]: ensure restored engine db objects are owned by engine user

emesika at redhat.com emesika at redhat.com
Wed Apr 3 10:41:21 UTC 2013


Eli Mesika has submitted this change and it was merged.

Change subject: ensure restored engine db objects are owned by engine user
......................................................................


ensure restored engine db objects are owned by engine user

When restoring a DB from a 3.1 system that upgraded from 3.0, onto
another 3.1 system that wasn't upgraded from 3.0, then you encounter
permission denied messages from postgresql because the engine DB objects
are owned by the postgres user instead of the engine user.

This patch checks to see if the engine DB objects are owned by the
engine user and if not, alters the ownership.

Change-Id: I5f16f66066d9056c97a32f180c02d8bd248d1eac
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=923614
Signed-off-by: Mark Huth <mhuth at redhat.com>
---
M backend/manager/dbscripts/dbcustomfunctions.sh
M backend/manager/dbscripts/restore.sh
2 files changed, 29 insertions(+), 1 deletion(-)

Approvals:
  Eli Mesika: Verified; Looks good to me, approved


--
To view, visit http://gerrit.ovirt.org/13377
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I5f16f66066d9056c97a32f180c02d8bd248d1eac
Gerrit-PatchSet: 3
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Mark Huth <mhuth at redhat.com>
Gerrit-Reviewer: Eli Mesika <emesika at redhat.com>
Gerrit-Reviewer: Mark Huth <mhuth at redhat.com>



More information about the Engine-commits mailing list