Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1339788

Summary: Upgrading sat 6.1.9 with openscap installed to 6.2.0 failed with dependency error
Product: Red Hat Satellite Reporter: sthirugn <sthirugn>
Component: UpgradesAssignee: Eric Helms <ehelms>
Status: CLOSED ERRATA QA Contact: Sachin Ghai <sghai>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.0CC: bbuckingham, bkearney, ehelms, lpramuk, mmccune, sghai, sthirugn, szadok
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: satellite-6.2.0-19.0 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-07-27 11:41:22 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:
Bug Depends On:    
Bug Blocks: 1335807    

Description sthirugn@redhat.com 2016-05-25 21:26:38 UTC
Description of problem:
Upgrading sat 6.1.9 with openscap installed to 6.2.0 failed with dependency error

Version-Release number of selected component (if applicable):
Satellite-6.2.0-GA-Snap13

How reproducible:
Always

Steps to Reproduce:
1. Install Sat 6.1.9 with oscap, try upgrade:

[root@qe-sat6zstream-rhel7 ~]# yum repolist
repo id                                   repo name                                                                          status
rhel-7-server-rpms/x86_64                 Red Hat Enterprise Linux 7 Server (RPMs)                                           10,859
rhel-server-rhscl-7-rpms/x86_64           Red Hat Software Collections RPMs for Red Hat Enterprise Linux 7 Server             4,606
satellite                                 satellite                                                                             415

# cat /etc/yum.repos.d/satellite.repo 
[satellite]
name=satellite
baseurl=http://$dogfoodsatellite/pulp/repos/Sat6-CI/QA/Satellite_RHEL7/custom/Red_Hat_Satellite_6_2_Composes/RHEL7_Satellite_x86_64_os/
enabled=1
gpgcheck=0

# yum update
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@satellite)
           Requires: ruby193-rubygem-rails >= 3.2.8
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-13.0.el7sat.noarch (satellite)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@satellite)
           Requires: ruby193-rubygem-openscap >= 0.4.1
           Removing: ruby193-rubygem-openscap-0.4.2-2.el7sat.noarch (@satellite)
               ruby193-rubygem-openscap = 0.4.2-2.el7sat
           Obsoleted By: rubygem-openscap-0.4.3-3.el7sat.noarch (satellite)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@satellite)
           Requires: ruby193-rubygem-rails < 1:3.3.0
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-13.0.el7sat.noarch (satellite)
               Not found
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@satellite)
           Requires: ruby193-rubygem-rails >= 3.2.8
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-13.0.el7sat.noarch (satellite)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@satellite)
           Requires: ruby193-rubygem-openscap >= 0.4.1
           Removing: ruby193-rubygem-openscap-0.4.2-2.el7sat.noarch (@satellite)
               ruby193-rubygem-openscap = 0.4.2-2.el7sat
           Obsoleted By: rubygem-openscap-0.4.3-3.el7sat.noarch (satellite)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@satellite)
           Requires: ruby193-rubygem-rails < 1:3.3.0
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-13.0.el7sat.noarch (satellite)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Actual results:
Error as shown above

Expected results:
successful upgrade

Additional info:

Comment 1 sthirugn@redhat.com 2016-05-25 21:28:41 UTC
Workaround:
Remove errored package:

# rpm -e ruby193-rubygem-foreman_openscap
# rpm -e ruby193-rubygem-scaptimony

Comment 3 Lukas Pramuk 2016-05-26 09:09:22 UTC
If satellite rpm obsoleted also ruby193-rubygem-foreman_openscap and ruby193-rubygem-scaptimony then package update would succeed...

Comment 7 sthirugn@redhat.com 2016-06-08 12:43:01 UTC
I did not get a chance to work on this bug, as I am working on other priorities.  I am closing this now in favor of other specific bugs, I will reopen if I see this again.

Comment 8 Sachin Ghai 2016-06-30 09:56:33 UTC
Re-opening.. its still reproducible. I didn't find this earlier because in sat6.1 oscap doesn't get installed by default. So I've not installed any of the related packages on my setup. 

But if OSCAP is already installed on 6.1 then on running "yum update" with 6.2 packages, we found a dependency issue as reported in bz description.

Comment 9 Sachin Ghai 2016-06-30 09:57:11 UTC
here is the issue.

--> Processing Dependency: ruby193-rubygem-rails < 1:3.3.0 for package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch
--> Processing Dependency: ruby193-rubygem-rails >= 3.2.8 for package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch
--> Finished Dependency Resolution
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-rails < 1:3.3.0
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-18.0.el7sat.noarch (sat6)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-rails >= 3.2.8
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-18.0.el7sat.noarch (sat6)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-openscap >= 0.4.1
           Removing: ruby193-rubygem-openscap-0.4.2-2.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
               ruby193-rubygem-openscap = 0.4.2-2.el7sat
           Obsoleted By: rubygem-openscap-0.4.3-3.el7sat.noarch (sat6)
               Not found
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-rails < 1:3.3.0
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-18.0.el7sat.noarch (sat6)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-rails >= 3.2.8
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-18.0.el7sat.noarch (sat6)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-openscap >= 0.4.1
           Removing: ruby193-rubygem-openscap-0.4.2-2.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
               ruby193-rubygem-openscap = 0.4.2-2.el7sat
           Obsoleted By: rubygem-openscap-0.4.3-3.el7sat.noarch (sat6)
               Not found

Comment 10 Lukas Pramuk 2016-06-30 10:53:39 UTC
Regarding my comment #3 satellite rpm still do not obsolete:
- ruby193-rubygem-foreman_openscap
- ruby193-rubygem-scaptimony 

and that would fix the issue.
 
# rpm -q satellite
satellite-6.2.0-18.0.el7sat.noarch

# rpm -q --obsoletes satellite
ruby193-rubygem-angular-rails-templates
ruby193-rubygem-hooks
ruby193-rubygem-sprockets
ruby193-rubygem-hashr
ruby193-rubygem-sass
ruby193-rubygem-po_to_json
ruby193-rubygem-strong_parameters
ruby193-rubygem-gettext_i18n_rails_js
ruby193-rubygem-tire
ruby193-rubygem-i18n_data
ruby193-rubygem-uuidtools
ruby193-rubygem-foreman-redhat_access
ruby193-rubygem-actionpack
rubygem-hammer_cli_foreman_docker
ruby193-rubygem-actionmailer
ruby193-rubygem-less-rails
ruby193-rubygem-rails
ruby193-rubygem-railties
ruby193-rubygem-jquery-rails
pulp-nodes-parent
pulp-nodes-child
pulp-nodes-common

Comment 12 Sachin Ghai 2016-07-04 06:54:36 UTC
This is reproducible with Sat6.2 GA snap18.2

steps taken:

1) disable sat6.1 repo
2) enable sat62 snap18.2 repo
3) katello-service stop
4) yum update

--> Processing Dependency: ruby193-rubygem-openscap >= 0.4.1 for package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch
---> Package ruby193-rubygem-rails.noarch 1:3.2.8-2.el7 will be obsoleted
--> Processing Dependency: ruby193-rubygem-rails < 1:3.3.0 for package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch
--> Processing Dependency: ruby193-rubygem-rails >= 3.2.8 for package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch
--> Finished Dependency Resolution
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-rails < 1:3.3.0
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-18.2.el7sat.noarch (sat6)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-openscap >= 0.4.1
           Removing: ruby193-rubygem-openscap-0.4.2-2.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
               ruby193-rubygem-openscap = 0.4.2-2.el7sat
           Obsoleted By: rubygem-openscap-0.4.3-3.el7sat.noarch (sat6)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-rails >= 3.2.8
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-18.2.el7sat.noarch (sat6)
               Not found
**********************************************************************
yum can be configured to try to resolve such errors by temporarily enabling
disabled repos and searching for missing dependencies.
To enable this functionality please set 'notify_only=0' in /etc/yum/pluginconf.d/search-disabled-repos.conf
**********************************************************************

Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-rails < 1:3.3.0
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-18.2.el7sat.noarch (sat6)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-openscap >= 0.4.1
           Removing: ruby193-rubygem-openscap-0.4.2-2.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
               ruby193-rubygem-openscap = 0.4.2-2.el7sat
           Obsoleted By: rubygem-openscap-0.4.3-3.el7sat.noarch (sat6)
               Not found
Error: Package: ruby193-rubygem-scaptimony-0.3.0.1-1.el7sat.noarch (@rhel-7-server-satellite-6.1-rpms)
           Requires: ruby193-rubygem-rails >= 3.2.8
           Removing: 1:ruby193-rubygem-rails-3.2.8-2.el7.noarch (@rhel-server-rhscl-7-rpms)
               ruby193-rubygem-rails = 1:3.2.8-2.el7
           Obsoleted By: satellite-6.2.0-18.2.el7sat.noarch (sat6)
               Not found

Comment 13 Sachin Ghai 2016-07-07 08:20:25 UTC
Verified with sat62 GA snap19. "yum update -y" step was completed and I don't see any dependency issue.

After yum update I see following packages related to scap:

[root@qe-sat6-upgrade-rhel7 ~]# rpm -qa | grep scap
perl-Pod-Escapes-1.04-286.el7.noarch
scap-security-guide-0.1.25-3.el7.noarch
tfm-rubygem-foreman_openscap-0.5.3.14-1.el7sat.noarch
openscap-scanner-1.2.9-5.el7_2.x86_64
puppet-foreman_scap_client-0.3.3-10.el7sat.noarch
rubygem-smart_proxy_openscap-0.5.3.5-1.el7sat.noarch
openscap-1.2.9-5.el7_2.x86_64

Comment 14 Bryan Kearney 2016-07-27 11:41:22 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1501