Bug 1058646 - 'yum remove ovirt-engine' deletes pki
Summary: 'yum remove ovirt-engine' deletes pki
Keywords:
Status: CLOSED DUPLICATE of bug 1124737
Alias: None
Product: oVirt
Classification: Retired
Component: ovirt-engine-installer
Version: 3.4
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: ---
: 3.5.0
Assignee: Yedidyah Bar David
QA Contact: bugs@ovirt.org
URL:
Whiteboard: integration
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-28 09:09 UTC by Yedidyah Bar David
Modified: 2014-08-12 14:54 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-08-03 06:18:14 UTC
oVirt Team: ---
Embargoed:


Attachments (Terms of Use)

Description Yedidyah Bar David 2014-01-28 09:09:35 UTC
A normal course of action, especially in a test env, might be:
1. yum install ovirt-engine
2. engine-setup
3. work, including 'yum update ovirt-engine-setup' and 'engine-setup'
4. engine-cleanup
5. yum remove ovirt-engine\*
6. go to step 1

Now, if we do not run engine-cleanup, yum remove does not run it for us, but instead backs up the pki directory and removes it. Then, a later yum install followed by 'engine-setup', will find everything intact, except for the pki, and will run a normal "upgrade", except for recreating pki. This will probably leave the system in a partially-working state - with new pki we'll have to reinstall all hosts.

Now, what's the expected/optimal behavior? I can think of at least two opposing views:

1. Drop the pki remove on yum remove. If we do that, then 'engine-setup; yum remove ovirt-engine\*; yum install ovirt-engine; engine-setup' will behave basically as if yum remove/install was not called.

2. (Optionally?) run engine-cleanup, or some variation of it (e.g. with a suitable answer file), on yum remove.

I personally think that (1.) makes more sense. In any case, I think that one of these should be adopted in favor of the current behavior.

Comment 1 Yedidyah Bar David 2014-08-03 06:18:14 UTC
Closing for now - see the discussion in bug #1124737. We might decide one day to remove more stuff during package removal.

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


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