Bug 964197 - fkvalidator.sh - some args are not honoured
Summary: fkvalidator.sh - some args are not honoured
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 3.3.0
Assignee: Eli Mesika
QA Contact: Pavel Stehlik
URL:
Whiteboard: infra
Depends On:
Blocks: 986922
TreeView+ depends on / blocked
 
Reported: 2013-05-17 13:56 UTC by Pavel Stehlik
Modified: 2016-02-10 19:01 UTC (History)
10 users (show)

Fixed In Version: is7
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 986922 (view as bug list)
Environment:
Last Closed:
oVirt Team: Infra
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 17015 0 None None None Never

Description Pavel Stehlik 2013-05-17 13:56:01 UTC
Description of problem:
 fkvalidator.sh doesn't respect arguments (-v -l) eg:
 "/usr/share/ovirt-engine/scripts/dbutils/fkvalidator.sh -s localhost -d engine -u engine -l /tmp/fk.log -v" shows output: 
"Constraint violation found in  step (job_id)".

The constraint violation is correct, however no verbose log nor log file is created. Same bahaviour in standalone usage of those 2 args.

Version-Release number of selected component (if applicable):
rhevm-setup-3.2.0-10.26.rc.el6ev.noarch

How reproducible:
100%

Steps to Reproduce:
1. see https://bugzilla.redhat.com/show_bug.cgi?id=893459#c0
2.
3.
  
Actual results:


Expected results:
I'd expect to see whole record(s) from DB (at least in case of '-v') as this can indicate some more troubles in system. 
Also log file should be created & should contain an output.

Additional info:
logfile is not even created by using simple '-l' (without any optional path/filename).

Comment 3 Eli Mesika 2013-06-24 09:02:54 UTC
Pavel , a simple and quick solution is to add for each violation the query syntax of how to get the violated records.

This will be added in teh case that -v is used

Example :

Constraint violation found in  event_subscriber (event_up_name) 
Query : select event_up_name from event_subscriber where event_up_name not in (select event_up_name  from event_map);

This query can be copied and run by psql to get the violated records.

Is that acceptabe ???

Comment 6 Eli Mesika 2013-07-22 13:02:24 UTC
fixed in commit: 5a1c143

Comment 8 Itamar Heim 2014-01-21 22:32:44 UTC
Closing - RHEV 3.3 Released

Comment 9 Itamar Heim 2014-01-21 22:32:49 UTC
Closing - RHEV 3.3 Released


Note You need to log in before you can comment on or make changes to this bug.