Bug 1580282

Summary: unnecessary rpm packages are still installed even switch off those rpm package install.
Product: OpenShift Container Platform Reporter: Johnny Liu <jialiu>
Component: InstallerAssignee: Scott Dodson <sdodson>
Status: CLOSED DUPLICATE QA Contact: Johnny Liu <jialiu>
Severity: medium Docs Contact:
Priority: medium    
Version: 3.10.0CC: aos-bugs, jokerman, mmccomas
Target Milestone: ---Keywords: Regression
Target Release: 3.10.z   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-02 20:18:30 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:
Attachments:
Description Flags
installation log with inventory file embedded none

Description Johnny Liu 2018-05-21 07:20:44 UTC
Created attachment 1439420 [details]
installation log with inventory file embedded

Description of problem:

Version-Release number of the following components:
openshift-ansible-3.10.0-0.47.0.git.0.c018c8f.el7.noarch

How reproducible:
Always

Steps to Reproduce:
1. Setting osn_storage_plugin_deps=[] to trigger an installation
2.
3.

Actual results:
After installation, the following storage plugin packages are still installed.
[root@ip-172-18-3-166 ~]# rpm -q ceph-common
ceph-common-0.94.5-2.el7.x86_64
[root@ip-172-18-3-166 ~]# rpm -q iscsi-initiator-utils
iscsi-initiator-utils-6.2.0.874-7.el7.x86_64
[root@ip-172-18-3-166 ~]# rpm -q glusterfs-fuse
glusterfs-fuse-3.8.4-53.el7.x86_64


Expected results:
No GlusterFS/Ceph/iSCSI storage plugin rpm packages are installed when osn_storage_plugin_deps is set to empty

Additional info:
Checked the whole install log, these storage plugins are installed by "install needed rpm" task. That is because "ceph-common, iscsi-initiator-utils, glusterfs-fuse" are set by default for "default_r_openshift_node_image_prep_packages" var in roles/openshift_node/defaults/main.yml, all the packages are listed in "default_r_openshift_node_image_prep_packages" var would be installed at "install needed rpm" task.

This does not happen with 3.9.

Comment 1 Scott Dodson 2018-05-21 13:55:04 UTC
This is a regression in 3.10 due to how we're installing all packages during a set of tasks that are related to image building where it makes sense to install all packages.

I don't think this is going to cause any actual problems in a working environment so marking 3.10.z

Comment 2 Johnny Liu 2018-06-19 11:04:33 UTC
Not only storage plugin, cockpit rpm packages are also installed by node bootstap playbook even I set osm_use_cockpit=false.

cockpit-ws
cockpit-system
cockpit-docker
cockpit-bridge

There is an individual role - in roles/cockpit/tasks/main.yml to run cockpit install.

Comment 3 Scott Dodson 2018-08-02 20:18:30 UTC

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