Sandro Bonazzola has uploaded a new change for review.

Change subject: packaging: engine-backup: ignore uuid-ossp errors
......................................................................

packaging: engine-backup: ignore uuid-ossp errors

Change-Id: I4234351cc55d982035e259eecddc2c9749427c96
Signed-off-by: Yedidyah Bar David <d...@redhat.com>
(cherry picked from commit 2d3c5c6baf822f2869121e6337dd80f1b25e1c30)
(cherry picked from commit 67f359d313b8a25c987b2f000b4578206be12b6b)
(cherry picked from commit 8bc851164b4b625d5554dfae9aa68c897110ab34)
---
M packaging/bin/engine-backup.sh
1 file changed, 15 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/54/29954/1

diff --git a/packaging/bin/engine-backup.sh b/packaging/bin/engine-backup.sh
index 835e700..ef0345c 100755
--- a/packaging/bin/engine-backup.sh
+++ b/packaging/bin/engine-backup.sh
@@ -690,10 +690,24 @@
        cat "${psqllog}" >> "${LOG}"  2>&1 \
                || logdie "Failed to append psql log to restore log"
 
-       local IGNORED_ERRORS=$(cat << __EOF | tr '\012' '|' | sed 's/|$//'
+       local IGNORED_ERRORS=$(cat << __EOF | egrep -v '^$|^#' | tr '\012' '|' 
| sed 's/|$//'
 language "plpgsql" already exists
 must be owner of language plpgsql
 must be owner of extension plpgsql
+#
+# older versions of dwh used uuid-ossp, which requires special privs,
+# is not used anymore, and emits the following errors for normal users.
+permission denied for language c
+function public.uuid_generate_v1\(\) does not exist
+function public.uuid_generate_v1mc\(\) does not exist
+function public.uuid_generate_v3\(uuid, text\) does not exist
+function public.uuid_generate_v4\(\) does not exist
+function public.uuid_generate_v5\(uuid, text\) does not exist
+function public.uuid_nil\(\) does not exist
+function public.uuid_ns_dns\(\) does not exist
+function public.uuid_ns_oid\(\) does not exist
+function public.uuid_ns_url\(\) does not exist
+function public.uuid_ns_x500\(\) does not exist
 __EOF
 )
        local numerrors=$(grep 'ERROR: ' "${psqllog}" | grep -Ev 
"${IGNORED_ERRORS}" | wc -l)


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4234351cc55d982035e259eecddc2c9749427c96
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.4.3
Gerrit-Owner: Sandro Bonazzola <sbona...@redhat.com>
Gerrit-Reviewer: Yedidyah Bar David <d...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to