Bug 1773704
Summary: | engine-cleanup is removing all files listed in "uninstall.conf" irrespective of the options provided | ||
---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | nijin ashok <nashok> |
Component: | ovirt-engine | Assignee: | Yedidyah Bar David <didi> |
Status: | CLOSED ERRATA | QA Contact: | Petr Matyáš <pmatyas> |
Severity: | high | Docs Contact: | |
Priority: | high | ||
Version: | 4.3.6 | CC: | audgiri, didi, gveitmic, mkalinin, mmartinv, mtessun, rdlugyhe, Rhev-m-bugs |
Target Milestone: | ovirt-4.3.8 | Keywords: | ZStream |
Target Release: | 4.3.8 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | ovirt-engine-4.3.8.2 | Doc Type: | Bug Fix |
Doc Text: |
Previously, version 4.3 introduced a change to engine-cleanup that removed all file groups, even if the user asked to remove only specific ones. As a result, engine-cleanup removed all files written by engine-setup. The current release fixes this issue so engine-cleaup removes only the file groups the user asks it to remove. However, note that partial cleanup is still not supported - engine-cleanup still unconditionally reverts other changes made by engine-setup. Partial cleanup was requested in bug 1060529, but was deferred due to lack of interest.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2020-02-13 15:24:47 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | Integration | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
nijin ashok
2019-11-18 18:52:42 UTC
I am going to fix current bug, but please note that partial cleanup is not supported, see also bug 1060529 (closed deferred). In particular, e.g.: - Files that engine-setup _changed_ (as opposed to fully-wrote) are still reverted (and not asked about) - Services are stopped and disabled - All uninstall files are removed (which prevents a future engine-setup/engine-cleanup from knowing what previous engine-setups did) So, bottom line: All you get from current bug fix is what was asked for - to only remove file groups that the user asked to remove. Sorry for the regression introduced by https://gerrit.ovirt.org/#/c/95492/ . It was definitely accidental, despite partial cleanup not being supported. Thank you for the quick fix. (In reply to Yedidyah Bar David from comment #3) > I am going to fix current bug, but please note that partial cleanup is not > supported, see also bug 1060529 (closed deferred). > Just talking in a user point of view, if it's not supported why we are giving options to remove individual components while running the engine-cleanup? If partial cleanup is not supported, we should just ask one confirmation and blow everything instead of asking the user what to remove. (In reply to nijin ashok from comment #4) > Thank you for the quick fix. > > (In reply to Yedidyah Bar David from comment #3) > > I am going to fix current bug, but please note that partial cleanup is not > > supported, see also bug 1060529 (closed deferred). > > > > Just talking in a user point of view, if it's not supported why we are > giving options to remove individual components while running the > engine-cleanup? I am not sure, that's a good question. I guess we simply arrived at a stable point during development of bug 1060529 and decided to expose it, despite not being complete. I think I'll now add a note about this. Pushed this: https://gerrit.ovirt.org/105239 I wonder if I should instead add warn/text to the question "remove all?" itself. > If partial cleanup is not supported, we should just ask one > confirmation and blow everything instead of asking the user what to remove. Perhaps. BTW, bug 1060529 was opened mainly for moving DWH (and also Reports, at the time) to a separate machine. Since this was the only realistic use-case, and we solved it easily using documentation, there was never pressure to complete it. In the 3 years between the last useful patch for it and it being closed, no-one asked to get it solved. (In reply to Yedidyah Bar David from comment #5) > BTW, bug 1060529 was opened mainly for moving DWH (and also Reports, at the > time) > to a separate machine. Since this was the only realistic use-case, and we > solved > it easily using documentation, there was never pressure to complete it. In > the 3 > years between the last useful patch for it and it being closed, no-one asked > to > get it solved. The user who faced the current issue(attached case) was removing websocket proxy as it was using insecure ciphers and they were not actually using the webscocket functionality. Thank you for adding a warning in the cleanup process and I think it will be a temporary measure to avoid the users running partial cleanup. Removing the warning patch and moving to MODIFIED. INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following reason: [Tag 'ovirt-engine-4.3.8.0' doesn't contain patch 'https://gerrit.ovirt.org/105239'] gitweb: https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=shortlog;h=refs/tags/ovirt-engine-4.3.8.0 For more info please contact: rhv-devops (In reply to RHV Bugzilla Automation and Verification Bot from comment #9) > INFO: Bug status wasn't changed from MODIFIED to ON_QA due to the following > reason: > > [Tag 'ovirt-engine-4.3.8.0' doesn't contain patch > 'https://gerrit.ovirt.org/105239'] It indeed wasn't merged to 4.3 yet. Moving to QE anyway, that patch is not mandatory (and links current bug with 'Related-To', not 'Bug-Url'). INFO: Bug status (ON_QA) wasn't changed but the folowing should be fixed: [Tag 'ovirt-engine-4.3.8.1' doesn't contain patch 'https://gerrit.ovirt.org/105239'] gitweb: https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=shortlog;h=refs/tags/ovirt-engine-4.3.8.1 For more info please contact: rhv-devops Verified on ovirt-engine-4.3.8.1-0.1.master.el7.noarch Is there a reason why the warning message is still not in the build? Maybe you can consider removing that patch from this bug. (In reply to Petr Matyáš from comment #13) > Verified on ovirt-engine-4.3.8.1-0.1.master.el7.noarch > > Is there a reason why the warning message is still not in the build? Maybe > you can consider removing that patch from this bug. I decided to open for this bug 1781095. For some reason when I press the "garbage" icon next to it, this does nothing, didn't check why. INFO: Bug status (VERIFIED) wasn't changed but the folowing should be fixed: [Tag 'ovirt-engine-4.3.8.2' doesn't contain patch 'https://gerrit.ovirt.org/105847'] gitweb: https://gerrit.ovirt.org/gitweb?p=ovirt-engine.git;a=shortlog;h=refs/tags/ovirt-engine-4.3.8.2 For more info please contact: rhv-devops Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2020:0498 |