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 <[email protected]>
---
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 <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
Gerrit-Reviewer: Mark Huth <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to