Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1140986

Summary: engine-cleanup: Failed to execute stage 'Misc configuration': 'NoneType' object has no attribute 'execute'
Product: [Retired] oVirt Reporter: Netbulae <info>
Component: ovirt-engine-dwhAssignee: Yedidyah Bar David <didi>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Beňas <pbenas>
Severity: high Docs Contact:
Priority: unspecified    
Version: 3.5CC: bugs, dfediuck, didi, ecohen, gklein, iheim, pbenas, pmatyas, pstehlik, rbalakri, sradco, yeylon, ylavi
Target Milestone: ---Keywords: Reopened
Target Release: 3.5.0   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: integration
Fixed In Version: oVirt-3.5 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-17 12:45:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1118350    
Bug Blocks:    
Attachments:
Description Flags
Engine-cleanup log none

Description Netbulae 2014-09-12 07:40:24 UTC
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:

Comment 1 Netbulae 2014-09-12 08:11:27 UTC
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'

Comment 2 Netbulae 2014-09-12 12:13:47 UTC
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:'[]'

Comment 3 Yedidyah Bar David 2014-09-14 06:35:14 UTC
Will be fixed by http://gerrit.ovirt.org/32820 .

Thanks for the report.

*** This bug has been marked as a duplicate of bug 1118350 ***

Comment 4 Petr Matyáš 2014-09-18 11:55:32 UTC
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.

Comment 5 Petr Matyáš 2014-09-18 11:59:02 UTC
Created attachment 938861 [details]
Engine-cleanup log

Comment 6 Shirly Radco 2014-09-18 19:59:05 UTC
This was resolve in the patch for bug 1118350.
Adding depends on.

Comment 7 Yedidyah Bar David 2014-09-23 09:21:59 UTC
*** Bug 1144846 has been marked as a duplicate of this bug. ***

Comment 8 Yedidyah Bar David 2014-09-23 09:23:36 UTC
Sorry, it's a new bug.

Comment 9 Petr Beňas 2014-10-13 13:16:01 UTC
Verified with automated cleanup test in vt5.

Comment 10 Sandro Bonazzola 2014-10-17 12:45:16 UTC
oVirt 3.5 has been released and should include the fix for this issue.