Bug 1384325 - Running yum remove ovirt-engine-dwh wants to remove rhevm as well
Summary: Running yum remove ovirt-engine-dwh wants to remove rhevm as well
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine-dwh
Version: 4.0.0
Hardware: Unspecified
OS: Unspecified
high
unspecified
Target Milestone: ---
: ---
Assignee: Yedidyah Bar David
QA Contact: Pavel Stehlik
URL:
Whiteboard:
Depends On:
Blocks: 1351864
TreeView+ depends on / blocked
 
Reported: 2016-10-13 06:38 UTC by Megan Lewis
Modified: 2022-07-01 12:02 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-10-30 11:36:06 UTC
oVirt Team: Metrics
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker RHV-46890 0 None None None 2022-07-01 12:02:50 UTC

Description Megan Lewis 2016-10-13 06:38:39 UTC
Description of problem:
After migrating the data warehouse I was doing the final step of removing the data warehouse from the manager to prevent the data warehouse automatically restarting and the rhevm package was listed as a dependency of ovirt-engine-dwh and if I'd proceeded would have been removed as well. Meaning I wasn't able successfully finish migrating the data warehouse. 

How reproducible:
I've set up multiple managers and tried and it happens each time. 

Steps to Reproduce:
1. Install and configure DWH on a separate machine.  
2. Run yum remove ovirt-engine-dwh on the manager machine. 

Actual results:
Data warehouse is not removed from the manager because I cancel the removal as I don't want the manager removed as well. This means my migration of the data warehouse was not successful because it will restart on the manager. 

Expected results:
The data warehouse packages are removed, the manager stays functional, and the migration of the data warehouse is successfully complete.

Comment 1 Megan Lewis 2016-10-13 06:39:05 UTC
# yum remove ovirt-engine-dwh
Loaded plugins: product-id, search-disabled-repos, subscription-manager,
              : versionlock
Resolving Dependencies
--> Running transaction check
---> Package ovirt-engine-dwh.noarch 0:4.0.2-1.el7ev will be erased
--> Processing Dependency: ovirt-engine-dwh >= 3.6.0 for package: ovirt-engine-dwh-setup-4.0.2-1.el7ev.noarch
--> Running transaction check
---> Package ovirt-engine-dwh-setup.noarch 0:4.0.2-1.el7ev will be erased
--> Processing Dependency: ovirt-engine-dwh-setup >= 4.0 for package: ovirt-engine-setup-plugin-ovirt-engine-4.0.4.4-0.1.el7ev.noarch
--> Running transaction check
---> Package ovirt-engine-setup-plugin-ovirt-engine.noarch 0:4.0.4.4-0.1.el7ev will be erased
--> Processing Dependency: ovirt-engine-setup-plugin-ovirt-engine = 4.0.4.4-0.1.el7ev for package: ovirt-engine-setup-4.0.4.4-0.1.el7ev.noarch
--> Processing Dependency: ovirt-engine-setup-plugin-ovirt-engine >= 4.0.0 for package: rhevm-setup-plugins-4.0.0.2-1.el7ev.noarch
--> Processing Dependency: ovirt-engine-setup-plugin-ovirt-engine = 4.0.4.4-0.1.el7ev for package: ovirt-engine-setup-plugin-vmconsole-proxy-helper-4.0.4.4-0.1.el7ev.noarch
--> Running transaction check
---> Package ovirt-engine-setup.noarch 0:4.0.4.4-0.1.el7ev will be erased
--> Processing Dependency: ovirt-engine-setup >= 4.0.4.4-0.1.el7ev for package: ovirt-engine-4.0.4.4-0.1.el7ev.noarch
---> Package ovirt-engine-setup-plugin-vmconsole-proxy-helper.noarch 0:4.0.4.4-0.1.el7ev will be erased
--> Processing Dependency: ovirt-engine-setup-plugin-vmconsole-proxy-helper >= 4.0.4.4-0.1.el7ev for package: ovirt-engine-vmconsole-proxy-helper-4.0.4.4-0.1.el7ev.noarch
---> Package rhevm-setup-plugins.noarch 0:4.0.0.2-1.el7ev will be erased
--> Processing Dependency: rhevm-setup-plugins >= 4.0.0.2 for package: rhevm-4.0.4.4-0.1.el7ev.noarch
--> Running transaction check
---> Package ovirt-engine.noarch 0:4.0.4.4-0.1.el7ev will be erased
--> Processing Dependency: ovirt-engine = 4.0.4.4-0.1.el7ev for package: ovirt-engine-restapi-4.0.4.4-0.1.el7ev.noarch
--> Processing Dependency: ovirt-engine = 4.0.4.4-0.1.el7ev for package: ovirt-engine-backend-4.0.4.4-0.1.el7ev.noarch
--> Processing Dependency: ovirt-engine = 4.0.4.4-0.1.el7ev for package: ovirt-engine-webadmin-portal-4.0.4.4-0.1.el7ev.noarch
--> Processing Dependency: ovirt-engine = 4.0.4.4-0.1.el7ev for package: ovirt-engine-userportal-4.0.4.4-0.1.el7ev.noarch
--> Processing Dependency: ovirt-engine = 4.0.4.4-0.1.el7ev for package: ovirt-engine-tools-4.0.4.4-0.1.el7ev.noarch
--> Processing Dependency: ovirt-engine = 4.0.4.4-0.1.el7ev for package: ovirt-engine-dbscripts-4.0.4.4-0.1.el7ev.noarch
---> Package ovirt-engine-vmconsole-proxy-helper.noarch 0:4.0.4.4-0.1.el7ev will be erased
---> Package rhevm.noarch 0:4.0.4.4-0.1.el7ev will be erased
--> Processing Dependency: rhevm >= 4.0.0 for package: redhat-support-plugin-rhev-4.0.0-7.el7ev.noarch
--> Running transaction check
---> Package ovirt-engine-backend.noarch 0:4.0.4.4-0.1.el7ev will be erased
---> Package ovirt-engine-dbscripts.noarch 0:4.0.4.4-0.1.el7ev will be erased
---> Package ovirt-engine-restapi.noarch 0:4.0.4.4-0.1.el7ev will be erased
---> Package ovirt-engine-tools.noarch 0:4.0.4.4-0.1.el7ev will be erased
---> Package ovirt-engine-userportal.noarch 0:4.0.4.4-0.1.el7ev will be erased
---> Package ovirt-engine-webadmin-portal.noarch 0:4.0.4.4-0.1.el7ev will be erased
--> Processing Dependency: ovirt-engine-webadmin-portal >= 4.0.2 for package: ovirt-engine-dashboard-1.0.4-1.el7ev.x86_64
---> Package redhat-support-plugin-rhev.noarch 0:4.0.0-7.el7ev will be erased
--> Running transaction check
---> Package ovirt-engine-dashboard.x86_64 0:1.0.4-1.el7ev will be erased
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package             Arch   Version           Repository                   Size
================================================================================
Removing:
 ovirt-engine-dwh    noarch 4.0.2-1.el7ev     @rhel-7-server-rhv-4.0-rpms 2.8 M
Removing for dependencies:
 ovirt-engine        noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 2.6 M
 ovirt-engine-backend
                     noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 7.0 M
 ovirt-engine-dashboard
                     x86_64 1.0.4-1.el7ev     @rhel-7-server-rhv-4.0-rpms  13 M
 ovirt-engine-dbscripts
                     noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 1.3 M
 ovirt-engine-dwh-setup
                     noarch 4.0.2-1.el7ev     @rhel-7-server-rhv-4.0-rpms 237 k
 ovirt-engine-restapi
                     noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 4.3 M
 ovirt-engine-setup  noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms  11 k
 ovirt-engine-setup-plugin-ovirt-engine
                     noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 770 k
 ovirt-engine-setup-plugin-vmconsole-proxy-helper
                     noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms  78 k
 ovirt-engine-tools  noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 344 k
 ovirt-engine-userportal
                     noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 150 M
 ovirt-engine-vmconsole-proxy-helper
                     noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms  30 k
 ovirt-engine-webadmin-portal
                     noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 224 M
 redhat-support-plugin-rhev
                     noarch 4.0.0-7.el7ev     @rhel-7-server-rhv-4.0-rpms  16 k
 rhevm               noarch 4.0.4.4-0.1.el7ev @rhel-7-server-rhv-4.0-rpms 0.0  
 rhevm-setup-plugins noarch 4.0.0.2-1.el7ev   @rhel-7-server-rhv-4.0-rpms  94 k

Transaction Summary
================================================================================
Remove  1 Package (+16 Dependent packages)

Installed size: 406 M
Is this ok [y/N]: N

Comment 3 Yedidyah Bar David 2016-10-25 09:57:05 UTC
Currently, ovirt-engine-dwh-setup requires ovirt-engine-dwh. Meaning, if you want the dwh setup plugin, you need also dwh itself. I think we did this "always", but not sure why. In the past, it made some sense to assume that if a user installed the dwh setup package, the user wants dwh. But in 4.0, we decided that the engine will always require the dwh setup package, so that users will get asked if they want dwh (as dwh is mandatory in 4.0, even though can still be remote). So in principle, we can do one of two things:

1. Just drop this requirement. If user chooses 'yes' to 'Configure DWH?', engine-setup should already work as expected, installing dwh. I didn't test this yet though.

2. Change the docs and drop the instruction to remove dwh. We then might need to add more steps (if missing, didn't check) for making sure dwh is down and disabled.

Sandro, what do you think?

Comment 4 Shirly Radco 2016-10-30 11:36:06 UTC
A change needs to be made to the docs to not instruct the user to remove the service but only stop it.
Also remove it from the boot services.
If the user wants to remove the local database he can also do that after installing on a separate machine.

Comment 6 Sandro Bonazzola 2016-11-23 16:33:27 UTC
I tend to agree with Shirly, let's fix the doc.

Comment 7 Sandro Bonazzola 2016-11-23 16:34:12 UTC
Restoring needinfo dropped by mistake

Comment 8 Megan Lewis 2016-12-06 03:34:54 UTC
The documentation for migrating a Data Warehouse is being tracked in: https://bugzilla.redhat.com/show_bug.cgi?id=1394971

The documentation for installing and configuring a Data Warehouse is being tracked in: https://bugzilla.redhat.com/show_bug.cgi?id=1351864

Please see these bugs for updates on the documentation for these tasks. 

Thanks, 
Megan


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