Description of problem: On Centos 6.5 with ovirt rc2, I run engine-cleanup and it fails: [ INFO ] Clearing Engine database engine [ INFO ] Backing up database localhost:ovirt_engine_history to '/var/lib/ovirt-engine-dwh/backups/dwh-20140912093621.lUk9fP.dump'. [ INFO ] Clearing DWH database ovirt_engine_history [ ERROR ] Failed to execute stage 'Misc configuration': 'NoneType' object has no attribute 'execute' [ INFO ] Stage: Clean up Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-remove-20140912093543-pv9tuz.log [ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20140912093628-cleanup.conf' [ INFO ] Stage: Pre-termination [ INFO ] Stage: Termination [ ERROR ] Execution of cleanup failed Version-Release number of selected component (if applicable): 3.5rc2 How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
2014-09-12 09:38:46 DEBUG otopi.context context._executeMethod:138 Stage misc METHOD otopi.plugins.ovirt_engine_remove.ovirt_engine_dwh.db.single_etl.Plugin._misc 2014-09-12 09:38:46 DEBUG otopi.context context._executeMethod:152 method exception Traceback (most recent call last): File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod method['method']() File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-remove/ovirt-engine-dwh/db/single_etl.py", line 48, in _misc name=engine_db_timekeeping.DB_KEY_UUID File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/dwh/engine_db_timekeeping.py", line 33, in getValueFromTimekeeping result = statement.execute( AttributeError: 'NoneType' object has no attribute 'execute' 2014-09-12 09:38:46 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Misc configuration': 'NoneType' object has no attribute 'execute' 2014-09-12 09:38:46 DEBUG otopi.transaction transaction.abort:131 aborting 'DWH Engine database Transaction'
2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:490 ENVIRONMENT DUMP - BEGIN 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/aborted=bool:'False' 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/debug=int:'0' 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/error=bool:'True' 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/exceptionInfo=list:'[(<type 'exceptions.AttributeError'>, AttributeError("'NoneType' object has no attribute 'execute'",), <traceback object at 0x2564b90>)]' 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/executionDirectory=str:'/root' 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/log=bool:'True' 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/pluginGroups=str:'otopi:ovirt-engine-common:ovirt-engine-remove' 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/pluginPath=str:'/usr/share/otopi/plugins:/usr/share/ovirt-engine/setup/bin/../plugins' 2014-09-12 14:06:38 DEBUG otopi.context context.dumpEnvironment:500 ENV BASE/suppressEnvironmentKeys=list:'[]'
Will be fixed by http://gerrit.ovirt.org/32820 . Thanks for the report. *** This bug has been marked as a duplicate of bug 1118350 ***
What version of dwh do you think it's fixed in? Because I have ovirt-engine-dwh-3.5.0-0.11.el6.noarch where setup is working, but cleanup is not.
Created attachment 938861 [details] Engine-cleanup log
This was resolve in the patch for bug 1118350. Adding depends on.
*** Bug 1144846 has been marked as a duplicate of this bug. ***
Sorry, it's a new bug.
Verified with automated cleanup test in vt5.
oVirt 3.5 has been released and should include the fix for this issue.