Bug 1754859

Summary: package profile upload seems to be broken on RHEL8.1
Product: Red Hat Enterprise Linux 8 Reporter: qianzhan
Component: subscription-managerAssignee: candlepin-bugs
Status: CLOSED NOTABUG QA Contact: Red Hat subscription-manager QE Team <rhsm-qe>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 8.1CC: candlepin-bugs, cdonnell, csnyder, cww, egolov, jgalipea, jsefler, mmccune, paji, pstehlik, rdrazny, rhsm-qe, satellite6-bugs
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 8.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1742208 Environment:
Last Closed: 2019-09-25 04:49:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1742208    
Bug Blocks: 1741577, 1742822, 1743120    

Comment 1 qianzhan 2019-09-24 09:08:11 UTC
Description of problem:
On Satellite6.6, can not get the errata applications for RHEL8.1 system after install package by dnf.


Version-Release number of selected component (if applicable):
subscription-manager-1.25.15-1.el8.x86_64
tfm-rubygem-katello-3.12.0.26-1.el7sat.noarch
katello-3.12.0-2.el7sat.noarch
candlepin-2.6.9-1.el7sat.noarch

How reproducible:
100%

Steps to Reproduce:
1. Register RHEL-8.1.0-20190918.0 against Satellite6.6-snapshot-22.0, and auto-attach.

[root@kvm-02-guest18 ~]# subscription-manager  register --auto-attach
Registering to: hpe-nehalem-02.hpe2.lab.eng.bos.redhat.com:443/rhsm
Username: admin
Password: 
The system has been registered with ID: 2d161016-099c-478e-9624-fb62691dbb51
The registered system name is: kvm-02-guest18.rhts.eng.brq.redhat.com
Installed Product Current Status:
Product Name: Red Hat Enterprise Linux for x86_64 High Touch Beta
Status:       Subscribed


2. Install a package by dnf successfully.

[root@kvm-02-guest18 ~]# subscription-manager  config | grep profile
   package_profile_on_trans = 1
   report_package_profile = [1]

[root@kvm-02-guest18 ~]# dnf install -y zsh-5.5.1-6.el8
Updating Subscription Management repositories.
Red Hat Enterprise Linux 8 for x86_64 - BaseOS HTB (RPMs)  1.8 kB/s | 2.4 kB     00:01    
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020190322125518:073fa5fe-0.x86_64
 Problem 2: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020190322130042:16b3ab4d-0.x86_64
Dependencies resolved.
===========================================================================================
 Package   Architecture Version              Repository                               Size
===========================================================================================
Installing:
 zsh       x86_64       5.5.1-6.el8          rhel-8-for-x86_64-baseos-htb-rpms       2.9 M

Transaction Summary
===========================================================================================
Install  1 Package

Total download size: 2.9 M
Installed size: 6.9 M
Downloading Packages:
zsh-5.5.1-6.el8.x86_64.rpm                                 1.0 MB/s | 2.9 MB     00:02    
-------------------------------------------------------------------------------------------
Total                                                      999 kB/s | 2.9 MB     00:02     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                   1/1 
  Installing       : zsh-5.5.1-6.el8.x86_64                                            1/1 
  Running scriptlet: zsh-5.5.1-6.el8.x86_64                                            1/1 
  Verifying        : zsh-5.5.1-6.el8.x86_64                                            1/1 
Installed products updated.
Modular dependency problems:

 Problem 1: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBD-SQLite:1.58:8010020190322125518:073fa5fe-0.x86_64
 Problem 2: conflicting requests
  - nothing provides module(perl:5.26) needed by module perl-DBI:1.641:8010020190322130042:16b3ab4d-0.x86_64

Installed:
  zsh-5.5.1-6.el8.x86_64                                                                   

Complete!

3. Check errata application on Satellite:

[root@hpe-nehalem-02 ~]# hammer host errata list --host=kvm-02-guest18.rhts.eng.brq.redhat.com
---|------------|------|-------|------------
ID | ERRATUM ID | TYPE | TITLE | INSTALLABLE
---|------------|------|-------|------------
[root@hpe-nehalem-02 ~]# 


Expected results:
After a package is installed on RHEL8.1 system by dnf, package profile should be uploaded to Satellite6.6.