Oved Ourfali has uploaded a new change for review.

Change subject: core: unlock_entity.sh fails on authentication
......................................................................

core: unlock_entity.sh fails on authentication

The DB was configured in pg_hba.conf with md5
This means that in order to run this utility properly you should set the
PGPASSWORD or  PGPASSFILE environment variable.

Example:

 \$ PGPASSWORD=xxxxxx ./unlock_entity.sh -t disk -q

I had added this information to the utility help

Change-Id: I6055bec6b91d5eb101e6655ed4eea481a6a082f9
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=1118191
Signed-off-by: Eli Mesika <[email protected]>
(cherry picked from commit ea90fe17b2e6e0c839a54ced0407d99059146fc4)
---
M packaging/dbscripts/unlock_entity.sh
1 file changed, 9 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/32/30632/1

diff --git a/packaging/dbscripts/unlock_entity.sh 
b/packaging/dbscripts/unlock_entity.sh
index 476dd5f..bc510d6 100755
--- a/packaging/dbscripts/unlock_entity.sh
+++ b/packaging/dbscripts/unlock_entity.sh
@@ -25,6 +25,15 @@
     -q            - Query db and display a list of the locked entites.
     ENTITIES      - The list of object names in case of vm/template, UUIDs in 
case of a disk
 
+    NOTE: This utility access the database and should have the
+          corresponding credentals.
+
+          In case that a password is used to access the database PGPASSWORD
+          or PGPASSFILE should be set.
+
+    Example:
+        \$ PGPASSWORD=xxxxxx ./unlock_entity.sh -t disk -q
+
 __EOF__
 }
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I6055bec6b91d5eb101e6655ed4eea481a6a082f9
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: ovirt-engine-3.5
Gerrit-Owner: Oved Ourfali <[email protected]>
Gerrit-Reviewer: Eli Mesika <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to