Bug 2225141

Summary: Enablement of foreman-plugin-kubevirt fails because of missing rubygem-jsonpath package
Product: Red Hat Satellite Reporter: Jameer Pathan <jpathan>
Component: PackagingAssignee: Patrick Creech <pcreech>
Status: CLOSED ERRATA QA Contact: Jameer Pathan <jpathan>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.14.0CC: egolov, ehelms, lpramuk, pcreech, rlavi
Target Milestone: 6.14.0Keywords: Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: rubygem-jsonpath-1.1.2-1 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-11-08 14:20:07 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:

Description Jameer Pathan 2023-07-24 11:41:05 UTC
Description of problem:
Enablement of foreman-plugin-kubevirt fails because of missing rubygem-jsonpath package.

Version-Release number of selected component (if applicable):
- Satellite 6.14.0 snap 8
- rubygem-kubeclient-4.10.1-1.el8sat.noarch

How reproducible:
- Always

Steps to Reproduce:
1. Enable appstream, baseos, and Satellite repos.
2a. Run "satellite-installer --scenario satellite --enable-foreman-plugin-kubevirt"
OR
2b. yum install rubygem-kubeclient

Actual results:
- satellite-installer fails with "nothing provides (rubygem(jsonpath) >= 1.0 with rubygem(jsonpath) < 2) needed by rubygem-kubeclient-4.10.1-1.el8sat.noarch"

Expected results:
- No error and foreman-plugin-kubevirt is enabled successfully.

Additional info:

# satellite-installer --scenario satellite --enable-foreman-plugin-kubevirt
2023-07-24 05:53:22 [NOTICE] [root] Loading installer configuration. This will take some time.
2023-07-24 05:53:25 [NOTICE] [root] Running installer with log based terminal output at level NOTICE.
2023-07-24 05:53:25 [NOTICE] [root] Use -l to set the terminal output log level to ERROR, WARN, NOTICE, INFO, or DEBUG. See --full-help for definitions.
Package versions are locked. Continuing with unlock.
2023-07-24 05:53:30 [NOTICE] [configure] Starting system configuration.
2023-07-24 05:53:41 [NOTICE] [configure] 250 configuration steps out of 1654 steps complete.
2023-07-24 05:53:44 [NOTICE] [configure] 500 configuration steps out of 2505 steps complete.
2023-07-24 05:53:44 [NOTICE] [configure] 750 configuration steps out of 2505 steps complete.
2023-07-24 05:53:44 [NOTICE] [configure] 1000 configuration steps out of 2505 steps complete.
2023-07-24 05:53:45 [NOTICE] [configure] 1250 configuration steps out of 2505 steps complete.
2023-07-24 05:53:46 [NOTICE] [configure] 1500 configuration steps out of 2507 steps complete.
2023-07-24 05:53:49 [ERROR ] [configure] Execution of '/bin/dnf -d 0 -e 1 -y install rubygem-foreman_kubevirt' returned 1: Error:
2023-07-24 05:53:49 [ERROR ] [configure] Problem: package rubygem-foreman_kubevirt-0.1.9-4.el8sat.noarch requires rubygem(fog-kubevirt) < 1.4, but none of the providers can be installed
2023-07-24 05:53:49 [ERROR ] [configure] - package rubygem-foreman_kubevirt-0.1.9-4.el8sat.noarch requires rubygem(fog-kubevirt) >= 1.3.3, but none of the providers can be installed
2023-07-24 05:53:49 [ERROR ] [configure] - package rubygem-fog-kubevirt-1.3.7-1.el8sat.noarch requires (rubygem(kubeclient) >= 4.9.3 with rubygem(kubeclient) < 5.0.0), but none of the providers can be installed
2023-07-24 05:53:49 [ERROR ] [configure] - conflicting requests
2023-07-24 05:53:49 [ERROR ] [configure] - nothing provides (rubygem(jsonpath) >= 1.0 with rubygem(jsonpath) < 2) needed by rubygem-kubeclient-4.10.1-1.el8sat.noarch
2023-07-24 05:53:49 [ERROR ] [configure] /Stage[main]/Foreman::Plugin::Kubevirt/Foreman::Plugin[kubevirt]/Package[rubygem-foreman_kubevirt]/ensure: change from 'purged' to 'present' failed: Execution of '/bin/dnf -d 0 -e 1 -y install rubygem-foreman_kubevirt' returned 1: Error:
2023-07-24 05:53:49 [ERROR ] [configure] Problem: package rubygem-foreman_kubevirt-0.1.9-4.el8sat.noarch requires rubygem(fog-kubevirt) < 1.4, but none of the providers can be installed
2023-07-24 05:53:49 [ERROR ] [configure] - package rubygem-foreman_kubevirt-0.1.9-4.el8sat.noarch requires rubygem(fog-kubevirt) >= 1.3.3, but none of the providers can be installed
2023-07-24 05:53:49 [ERROR ] [configure] - package rubygem-fog-kubevirt-1.3.7-1.el8sat.noarch requires (rubygem(kubeclient) >= 4.9.3 with rubygem(kubeclient) < 5.0.0), but none of the providers can be installed
2023-07-24 05:53:49 [ERROR ] [configure] - conflicting requests
2023-07-24 05:53:49 [ERROR ] [configure] - nothing provides (rubygem(jsonpath) >= 1.0 with rubygem(jsonpath) < 2) needed by rubygem-kubeclient-4.10.1-1.el8sat.noarch
2023-07-24 05:53:49 [NOTICE] [configure] 1750 configuration steps out of 2510 steps complete.
2023-07-24 05:53:50 [NOTICE] [configure] 2000 configuration steps out of 2516 steps complete.
2023-07-24 05:53:50 [NOTICE] [configure] 2250 configuration steps out of 2516 steps complete.
2023-07-24 05:54:14 [NOTICE] [configure] 2500 configuration steps out of 2516 steps complete.
2023-07-24 05:54:18 [NOTICE] [configure] System configuration has finished.

  There were errors detected during install.
  Please address the errors and re-run the installer to ensure the system is properly configured.
  Failing to do so is likely to result in broken functionality.

  The full log is at /var/log/foreman-installer/satellite.log
Package versions are being locked.


# yum install rubygem-kubeclient
Updating Subscription Management repositories.
Unable to read consumer identity

This system is not registered with an entitlement server. You can use subscription-manager to register.

Satellite 6.14 RHEL8                                                                                                                                                                                   290 kB/s | 3.0 kB     00:00    
Satellite Maintenance 6.14 RHEL8                                                                                                                                                                       439 kB/s | 2.6 kB     00:00    
Error: 
 Problem: conflicting requests
  - nothing provides (rubygem(jsonpath) >= 1.0 with rubygem(jsonpath) < 2) needed by rubygem-kubeclient-4.10.1-1.el8sat.noarch
(try to add '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)

Comment 2 Evgeni Golov 2023-07-26 08:36:57 UTC
This was broken by https://gitlab.cee.redhat.com/satellite/satellite-packaging/-/commit/40d57973e8f0f509cc2c66a48f88ed18a14a1100 as it did not pull in the other changes from https://github.com/theforeman/foreman-packaging/pull/8843

@pcreech FYI ;-)

Comment 3 Jameer Pathan 2023-08-04 11:08:57 UTC
Verified that foreman-plugin-kubevirt gets enabled successfully on Satellite 6.10.0 snap 4.

Comment 6 errata-xmlrpc 2023-11-08 14:20:07 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.14 security and bug fix update), 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:6818