Red Hat Bugzilla – Bug 1474287
engine-cleanup fails on LooseVersion not having attribute 'version'
Last modified: 2017-12-20 06:31:55 EST
Description of problem:
Engine-cleanup utility fails to execute on latest master.
Exception from log:
2017-07-24 13:15:42,265+0300 DEBUG otopi.context context._executeMethod:142 method exception
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/otopi/context.py", line 132, in _executeMethod
File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-remove/base/core/misc.py", line 112, in _setup
AttributeError: LooseVersion instance has no attribute 'version'
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Run engine-cleanup on engine that was previously set up\
Adding severity high, as this is blocking our ansible repository for integration tools.
Output of engine-cleanup:
[root@system-ge ~]# engine-cleanup
[ INFO ] Stage: Initializing
[ INFO ] Stage: Environment setup
Configuration files: ['/etc/ovirt-engine-setup.conf.d/10-packaging-jboss.conf', '/etc/ovirt-engine-setup.conf.d/10-packaging.conf', '/etc/ovirt-engine-setup.conf.d/20-setup-ovirt-post.conf']
Log file: /var/log/ovirt-engine/setup/ovirt-engine-remove-20170724131541-iwc6rd.log
Version: otopi-1.7.1_master (otopi-1.7.1-0.0.master.20170720151120.git5879c4e.el7.centos)
[ ERROR ] Failed to execute stage 'Environment setup': LooseVersion instance has no attribute 'version'
[ INFO ] Stage: Clean up
Log file is located at /var/log/ovirt-engine/setup/ovirt-engine-remove-20170724131541-iwc6rd.log
[ INFO ] Generating answer file '/var/lib/ovirt-engine/setup/answers/20170724131542-cleanup.conf'
[ INFO ] Stage: Pre-termination
[ INFO ] Stage: Termination
[ ERROR ] Execution of cleanup failed
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.
Is it still failing? Perhaps it's now fixed, by ? Didn't verify myself yet.
Now verified, seems to be solved. Moving to MODIFIED, not sure what's the exact process - we'll probably move to QE only later.
verified in ovirt-engine-4.2.0-0.0.master.20170726123301.gitafc8eb1.el7.centos.noarch
This bugzilla is included in oVirt 4.2.0 release, published on Dec 20th 2017.
Since the problem described in this bug report should be
resolved in oVirt 4.2.0 release, published on Dec 20th 2017, it has been closed with a resolution of CURRENT RELEASE.
If the solution does not work for you, please open a new bug report.