Bug 1328312

Summary: Package install from Satellite includes more packages than actual dependencies
Product: Red Hat Satellite Reporter: Mahesh Taru <mtaru>
Component: OtherAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED WONTFIX QA Contact: Katello QA List <katello-qa-list>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.1.8CC: aruzicka, jbubeck, shaferc1
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-09-04 17:58:24 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:
Attachments:
Description Flags
Task details none

Description Mahesh Taru 2016-04-19 04:06:53 UTC
Description of problem:
When scheduling package install from satellite it includes more packages than the actual dependencies.

Version-Release number of selected component (if applicable):
6.1.8

How reproducible:
Always

Steps to Reproduce:
1. Hosts -> Content Hosts -> Select Host -> Packages -> Package Actions -> Select "Package Install" -> Enter "dovecot" -> Perform
2.
3.

Actual results:
Output:

1:dovecot-mysql-2.0.9-19.el6_7.2.x86_64
1:dovecot-pgsql-2.0.9-19.el6_7.2.x86_64
1:dovecot-2.0.9-19.el6_7.2.x86_64
1:dovecot-devel-2.0.9-19.el6_7.2.x86_64
1:dovecot-pigeonhole-2.0.9-19.el6_7.2.x86_64
postgresql-libs-8.4.20-5.el6_7.x86_64

Expected results:
Only the dovecot package should have been installed.

Additional info:
It seems that when you provide package name satellite takes it as *:package_name-*-*.* and installs all packages from the result.

Also tested with java package.
If one tries to install, for example, "java-1.8.0-openjdk" from Satellite 6 one gets:
Parameters java-1.8.0-openjdk ; system 'redhat-test.mgt.private' ; organization 'OIT Sysops'
Details
1:java-1.8.0-openjdk-demo-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-devel-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-debug-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-demo-debug-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-devel-debug-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-headless-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-javadoc-debug-1.8.0.77-0.b03.el6_7.noarch
1:java-1.8.0-openjdk-javadoc-1.8.0.77-0.b03.el6_7.noarch
1:java-1.8.0-openjdk-headless-debug-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-src-debug-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-1.8.0.77-0.b03.el6_7.x86_64
1:java-1.8.0-openjdk-src-1.8.0.77-0.b03.el6_7.x86_64
ttmkfdir-3.0.9-32.1.el6.x86_64
jpackage-utils-1.7.5-3.14.el6.noarch
xorg-x11-fonts-Type1-7.2-11.el6.noarch
tzdata-java-2016c-1.el6.noarch
giflib-4.1.6-3.1.el6.x86_64

If you do the same thing from yum one gets:
yum install  java-1.8.0-openjdk

Installed:
  java-1.8.0-openjdk.x86_64 1:1.8.0.77-0.b03.el6_7

Dependency Installed:
  giflib.x86_64 0:4.1.6-3.1.el6                         java-1.8.0-openjdk-headless.x86_64 1:1.8.0.77-0.b03.el6_7
  jpackage-utils.noarch 0:1.7.5-3.14.el6                ttmkfdir.x86_64 0:3.0.9-32.1.el6
  tzdata-java.noarch 0:2016c-1.el6                      xorg-x11-fonts-Type1.noarch 0:7.2-11.el6

Comment 2 Bryan Kearney 2016-07-26 15:25:24 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 3 Bryan Kearney 2016-07-26 15:29:53 UTC
Moving 6.2 bugs out to sat-backlog.

Comment 5 Adam Ruzicka 2018-08-14 10:45:29 UTC
Bug still valid in 6.4:

Installed "dovecot" using katello agent, on the target host:

# yum history info 5
Loaded plugins: enabled_repos_upload, package_upload, product-id, search-disabled-repos, subscription-manager
Transaction ID : 5
Begin time     : Tue Aug 14 10:37:12 2018
Begin rpmdb    : 364:ee6f608a33140b4ddca5521728ab77fddd093a22
End time       :            10:37:30 2018 (18 seconds)
End rpmdb      : 370:37bd3aec0b4a7f000c594d49458a423d413e143c
User           : System <unset>
Return-Code    : Success
Transaction performed with:
    Installed     rpm-4.11.3-32.el7.x86_64                    @anaconda/7.5
    Installed     subscription-manager-1.20.11-1.el7_5.x86_64 @rhel-7-server-rpms
    Installed     yum-3.4.3-158.el7.noarch                    @anaconda/7.5
    Installed     yum-metadata-parser-1.1.4-10.el7.x86_64     @anaconda/7.5
Packages Altered:
    Dep-Install clucene-core-2.3.3.4-11.el7.x86_64       @rhel-7-server-rpms
    Install     dovecot-1:2.2.10-8.el7.x86_64            @rhel-7-server-rpms
    Install     dovecot-mysql-1:2.2.10-8.el7.x86_64      @rhel-7-server-rpms
    Install     dovecot-pgsql-1:2.2.10-8.el7.x86_64      @rhel-7-server-rpms
    Install     dovecot-pigeonhole-1:2.2.10-8.el7.x86_64 @rhel-7-server-rpms
    Dep-Install postgresql-libs-9.2.23-3.el7_4.x86_64    @rhel-7-server-rpms

Running yum install dovecot would install just "dovecot" and "clucene-core" as a dependency. Looking at task details (see attachment), this is most likely being done on pulp's side where "dovecot" gets resolved to "*dovecot*".

Comment 6 Adam Ruzicka 2018-08-14 10:46:05 UTC
Created attachment 1475810 [details]
Task details

Comment 7 Bryan Kearney 2018-09-04 17:58:24 UTC
Thank you for your interest in Satellite 6. We have evaluated this request, and we do not expect this to be implemented in the product in the foreseeable future. We are therefore closing this out as WONTFIX. If you have any concerns about this, please feel free to contact Rich Jerrido or Bryan Kearney. Thank you.