Bug 1298596 - [ ERROR ] Failed to execute stage 'Misc configuration': Command '/usr/share/ovirt-engine/dbscripts/schema.sh' failed to execute
[ ERROR ] Failed to execute stage 'Misc configuration': Command '/usr/share/o...
Status: CLOSED NOTABUG
Product: ovirt-engine
Classification: oVirt
Component: Setup.EngineCommon (Show other bugs)
3.6.2.5
Unspecified Unspecified
unspecified Severity urgent (vote)
: ---
: ---
Assigned To: Sandro Bonazzola
Pavel Stehlik
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-14 09:09 EST by Jiri Belka
Modified: 2016-01-14 12:10 EST (History)
7 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-01-14 12:10:02 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---
rule-engine: planning_ack?
rule-engine: devel_ack?
rule-engine: testing_ack?


Attachments (Terms of Use)

  None (edit)
Description Jiri Belka 2016-01-14 09:09:32 EST
Description of problem:

engine-setup
...
[ INFO  ] Creating/refreshing Engine database schema
[ ERROR ] Failed to execute stage 'Misc configuration': Command '/usr/share/ovirt-engine/dbscripts/schema.sh' failed to execute
[ INFO  ] Yum Performing yum transaction rollback
[ INFO  ] Yum Status: Downloading Packages



2016-01-14 14:42:53 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine.db.schema plugin.executeRaw:878 execute-result: ['/usr/share/ovirt-engine/dbscripts/schema.sh', '-s', 'localhost', '-p', '5432', '-u', 'engi
ne', '-d', 'engine', '-l', '/var/log/ovirt-engine/setup/ovirt-engine-setup-20160114144121-d8xeep.log', '-c', 'apply'], rc=1
2016-01-14 14:42:53 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine.db.schema plugin.execute:936 execute-output: ['/usr/share/ovirt-engine/dbscripts/schema.sh', '-s', 'localhost', '-p', '5432', '-u', 'engine'
, '-d', 'engine', '-l', '/var/log/ovirt-engine/setup/ovirt-engine-setup-20160114144121-d8xeep.log', '-c', 'apply'] stdout:
Creating schema engine@localhost:5432/engine
Saving custom users permissions on database objects...

2016-01-14 14:42:53 DEBUG otopi.plugins.ovirt_engine_setup.ovirt_engine.db.schema plugin.execute:941 execute-output: ['/usr/share/ovirt-engine/dbscripts/schema.sh', '-s', 'localhost', '-p', '5432', '-u', 'engine'
, '-d', 'engine', '-l', '/var/log/ovirt-engine/setup/ovirt-engine-setup-20160114144121-d8xeep.log', '-c', 'apply'] stderr:
FATAL: Operation aborted, found duplicate version: 09099999

2016-01-14 14:42:53 DEBUG otopi.context context._executeMethod:156 method exception
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/otopi/context.py", line 146, in _executeMethod
    method['method']()
  File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-setup/ovirt-engine/db/schema.py", line 291, in _misc
    oenginecons.EngineDBEnv.PGPASS_FILE
  File "/usr/lib/python2.6/site-packages/otopi/plugin.py", line 946, in execute
    command=args[0],
RuntimeError: Command '/usr/share/ovirt-engine/dbscripts/schema.sh' failed to execute
2016-01-14 14:42:53 ERROR otopi.context context._executeMethod:165 Failed to execute stage 'Misc configuration': Command '/usr/share/ovirt-engine/dbscripts/schema.sh' failed to execute


Version-Release number of selected component (if applicable):
rhevm-setup-3.6.2.5-0.1.el6.noarch

How reproducible:
100%

Steps to Reproduce:
1. upgrade to 3.6.2-9 rpms
2. engine-setup
3.

Actual results:
failure of engine-setup

Expected results:
should work

Additional info:
Comment 2 Yedidyah Bar David 2016-01-14 10:22:10 EST
(In reply to Jiri Belka from comment #0)
> '-c', 'apply'] stderr:
> FATAL: Operation aborted, found duplicate version: 09099999

Are you sure that's not a left-over from a previous test you did?

We do not normally have such numbers.

Please provide output of:

ls -l /usr/share/ovirt-engine/dbscripts/upgrade/
Comment 3 Jiri Belka 2016-01-14 12:10:02 EST
Yes, PEBKAC. Sorry for the noise.

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