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 2160524 - rubygem-foreman_google cannot be installed during upgrade
Summary: rubygem-foreman_google cannot be installed during upgrade
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Packaging
Version: 6.13.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: 6.13.0
Assignee: Evgeni Golov
QA Contact: Lukas Pramuk
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-01-12 17:15 UTC by Lukas Pramuk
Modified: 2023-05-03 13:24 UTC (History)
4 users (show)

Fixed In Version: satellite-6.13.0-4
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-03 13:24:33 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker SAT-14923 0 None None None 2023-01-15 08:09:09 UTC
Red Hat Product Errata RHSA-2023:2097 0 None None None 2023-05-03 13:24:47 UTC

Description Lukas Pramuk 2023-01-12 17:15:26 UTC
Description of problem:
rubygem-foreman_google cannot be installed due to broken deps and conflicting rpms already present

Version-Release number of selected component (if applicable):
Satellite 6.13.0 Snap 6

How reproducible:
deterministic

Steps to Reproduce:
1. Have 6.12.0 and try to upgrade it to 6.13
2. Install rubygem-foreman_google

# yum install rubygem-foreman_google
Updating Subscription Management repositories.
Last metadata expiration check: 2:10:38 ago on Thu 12 Jan 2023 09:58:48 AM EST.
Error: 
 Problem: package rubygem-google-apis-core-0.9.1-1.el8sat.noarch requires (rubygem(googleauth) >= 0.16.2 with rubygem(googleauth) < 2.a), but none of the providers can be installed
  - package rubygem-google-apis-compute_v1-0.54.0-1.el8sat.noarch requires (rubygem(google-apis-core) >= 0.9.1 with rubygem(google-apis-core) < 2.a), but none of the providers can be installed
  - cannot install both rubygem-googleauth-1.3.0-1.el8sat.noarch and rubygem-googleauth-0.13.1-2.el8sat.noarch
  - package rubygem-foreman_google-1.0.0-1.el8sat.noarch requires (rubygem(google-apis-compute_v1) >= 0.14 with rubygem(google-apis-compute_v1) < 1), but none of the providers can be installed
  - package rubygem-google-api-client-0.33.2-2.el8sat.noarch requires rubygem(googleauth) < 1, but none of the providers can be installed
  - package rubygem-google-api-client-0.33.2-2.el8sat.noarch requires (rubygem(googleauth) >= 0.9 with rubygem(googleauth) < 1), but none of the providers can be installed
  - conflicting requests
  - problem with installed package rubygem-google-api-client-0.33.2-2.el8sat.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)


Actual results:
rpm install fails

Expected results:
rpm install succeeds

Additional info:

# yum list "rubygem*google*" --showd
Updating Subscription Management repositories.
Last metadata expiration check: 2:12:46 ago on Thu 12 Jan 2023 09:58:48 AM EST.
Installed Packages
rubygem-fog-google.noarch                                  1.11.0-2.el8sat              @System 
rubygem-google-api-client.noarch                           0.33.2-2.el8sat              @System
rubygem-google-cloud-env.noarch                            1.3.3-2.el8sat               @System
rubygem-googleauth.noarch                                  0.13.1-2.el8sat              @System
Available Packages
rubygem-foreman_google.noarch                              1.0.0-1.el8sat               sat613    
rubygem-google-apis-compute_v1.noarch                      0.54.0-1.el8sat              sat613    
rubygem-google-apis-core.noarch                            0.9.1-1.el8sat               sat613    
rubygem-google-cloud-common.noarch                         1.1.0-1.el8sat               sat613    
rubygem-google-cloud-compute.noarch                        0.5.0-1.el8sat               sat613    
rubygem-google-cloud-compute-v1.noarch                     1.7.1-1.el8sat               sat613    
rubygem-google-cloud-core.noarch                           1.6.0-1.el8sat               sat613    
rubygem-google-cloud-env.noarch                            1.6.0-1.el8sat               sat613    
rubygem-google-cloud-errors.noarch                         1.3.0-1.el8sat               sat613    
rubygem-google-protobuf.x86_64                             3.21.6-1.el8sat              sat613    
rubygem-googleapis-common-protos.noarch                    1.3.12-1.el8sat              sat613    
rubygem-googleapis-common-protos-types.noarch              1.4.0-1.el8sat               sat613    
rubygem-googleauth.noarch                                  1.3.0-1.el8sat               sat613    
rubygem-hammer_cli_foreman_google.noarch                   1.0.0-1.el8sat               sat613

Comment 1 Lukas Pramuk 2023-01-12 17:34:58 UTC
rubygem-fog-google requires rubygem(google-api-client) < 0.34    
 but other rpms would like to remove that old 6.12 rubygem-google-api-client 0.33.2-2.el8sat

# rpm -e rubygem-google-api-client.noarch 
error: Failed dependencies:
	(rubygem(google-api-client) < 0.34 with rubygem(google-api-client) >= 0.32) is needed by (installed) rubygem-fog-google-1.11.0-2.el8sat.noarch

Workaround?:
 # rpm -e rubygem-google-api-client --nodeps

Comment 2 Lukas Pramuk 2023-01-12 18:14:29 UTC
Update package(s) :                                                   [FAIL]                                                      
Failed executing yum -y --disableplugin=foreman-protector update, exit status 1:
 Updating Subscription Management repositories.                                                                                   
satellite-maintenance                           103 kB/s | 7.6 kB     00:00
Red Hat Enterprise Linux 8 for x86_64 - AppStre  50 MB/s |  52 MB     00:01
Red Hat Enterprise Linux 8 for x86_64 - BaseOS   52 MB/s |  56 MB     00:01
satellite                                       9.7 MB/s | 892 kB     00:00
sat-client                                      2.7 MB/s | 110 kB     00:00                                                       
Error:                                                     
 Problem 1: cannot install both rubygem-fog-core-2.2.4-1.el8sat.noarch and rubygem-fog-core-2.1.0-4.el8sat.noarch                 
  - package rubygem-fog-google-1.11.0-2.el8sat.noarch requires rubygem(fog-core) <= 2.1.0, but none of the providers can be install
ed
  - cannot install the best update candidate for package rubygem-fog-core-2.1.0-4.el8sat.noarch
  - problem with installed package rubygem-fog-google-1.11.0-2.el8sat.noarch

>>> rubygem-fog-google deserves an update too as it requires old (6.12) rubygem-fog-core

Comment 3 Leos Stejskal 2023-01-13 13:47:05 UTC
Hi,
rubygem-fog-google-* should be removed, it has been replaced by rubygem-foreman_google

Comment 4 Ron Lavi 2023-01-15 08:06:11 UTC
It has been dropped in https://github.com/theforeman/foreman-packaging/pull/8748

@pcreech what would be the best way to remove that rubygem-fog-google-*?

Comment 5 Evgeni Golov 2023-01-18 10:05:30 UTC
(In reply to Ron Lavi from comment #4)
> It has been dropped in
> https://github.com/theforeman/foreman-packaging/pull/8748
> 
> @pcreech what would be the best way to remove that rubygem-fog-google-*?

Attached MRs for 6.13 and STREAM to obsolete these.

Comment 8 Lukas Pramuk 2023-01-19 18:17:29 UTC
FailedQA.

as per comment#7

Comment 10 Lukas Pramuk 2023-01-19 18:27:08 UTC
Snap7 error is following:

Update package(s) :                                                   [FAIL]
Failed executing yum -y --disableplugin=foreman-protector update, exit status 1:
 Updating Subscription Management repositories.
satellite-maintenance                           103 kB/s | 7.6 kB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - BaseOS   58 MB/s |  56 MB     00:00    
Red Hat Enterprise Linux 8 for x86_64 - AppStre  45 MB/s |  52 MB     00:01    
satellite                                        16 MB/s | 893 kB     00:00    
sat-client                                      2.0 MB/s | 110 kB     00:00    
Error: 
 Problem: cannot install both rubygem-googleauth-1.3.0-1.el8sat.noarch and rubygem-googleauth-0.13.1-2.el8sat.noarch
  - package rubygem-google-api-client-0.33.2-2.el8sat.noarch requires rubygem(googleauth) < 1, but none of the providers can be installed
  - package rubygem-google-api-client-0.33.2-2.el8sat.noarch requires (rubygem(googleauth) >= 0.9 with rubygem(googleauth) < 1), but none of the providers can be installed
  - cannot install the best update candidate for package rubygem-googleauth-0.13.1-2.el8sat.noarch
  - problem with installed package rubygem-google-api-client-0.33.2-2.el8sat.noarch
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Comment 14 Lukas Pramuk 2023-01-30 09:51:19 UTC
VERIFIED.

@Satellite 6.13.0 Snap8
satellite-common-6.13.0-4.el8sat.noarch

# rpm -q --obsoletes satellite-common
rubygem-fog-google < 1.19.0-2
rubygem-google-api-client < 0.33.2-3

>>> these two new obosletes are enough to allow upgrade from 6.12 to 6.13 succeed

# rpm -qa *google*
rubygem-foreman_google-1.0.1-1.el8sat.noarch
rubygem-googleapis-common-protos-1.3.12-1.el8sat.noarch
rubygem-googleapis-common-protos-types-1.4.0-1.el8sat.noarch
rubygem-google-apis-compute_v1-0.54.0-1.el8sat.noarch
rubygem-google-apis-core-0.9.1-1.el8sat.noarch
rubygem-googleauth-1.3.0-1.el8sat.noarch
rubygem-google-cloud-common-1.1.0-1.el8sat.noarch
rubygem-google-cloud-compute-0.5.0-1.el8sat.noarch
rubygem-google-cloud-compute-v1-1.7.1-1.el8sat.noarch
rubygem-google-cloud-core-1.6.0-1.el8sat.noarch
rubygem-google-cloud-env-1.6.0-1.el8sat.noarch
rubygem-google-cloud-errors-1.3.0-1.el8sat.noarch
rubygem-google-protobuf-3.21.6-1.el8sat.x86_64

>>> successfully upgrade to new google plugin version

Comment 17 errata-xmlrpc 2023-05-03 13:24:33 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 (Important: Satellite 6.13 Release), 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/RHSA-2023:2097


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