-
Bug
-
Resolution: Unresolved
-
Critical
-
None
-
6.17.0
-
8
-
False
-
sat-proton
-
None
-
None
-
None
-
To Do
Description of problem:
When registering an image mode hosts, many errors can rise with the actual registration flow as it could try to install packages with DNF:
* The install insights-client flag could cause the setup script to fail, reporting the host in error
* Installing packages could lead to errors
* Flagging "Update packages" will again end up with an error
How reproducible:
Create a global registration script leaving defaults unchanged (Configure REX enabled, Configure Insights enabled) leads to the registration script partially failing:
bash-5.1# set -o pipefail && curl --silent --show-error --insecure 'https://satellite.rh-lab.labs/register?activation_keys=RHEL9+-+PROD&download_utility=curl&force=true&hostgroup_id=1&ignore_subman_errors=false&location_id=2&operatingsystem_id=8&organization_id=1&update_packages=true' --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo0LCJpYXQiOjE3NTAxNjkwNDYsImp0aSI6ImZkMTUzZmI2Zjc0OGJkMDliZjc5MmRlNjg2YWU4ZTU0MmYyY2ZjZjM0ZWFkMTkwMDY2ZWY4YTFjNmM3OGZiMDgiLCJleHAiOjE3NTAxODM0NDYsInNjb3BlIjoicmVnaXN0cmF0aW9uI2dsb2JhbCByZWdpc3RyYXRpb24jaG9zdCJ9.sVxbzMy9FzM-TfLCFilBpPBg2feRRNltB2e0pRQiomI' | bash # # Running registration # Unregistering from: satellite.rh-lab.labs:443/rhsm System has been unregistered. All local data removed subscription-manager is already installed! The system has been registered with ID: 2ad84648-f863-431c-8f42-adee368bd4ff The registered system name is: localhost.localdomain # Running [localhost.localdomain] host initial configuration /sbin/restorecon # # Installing Insights client # Updating Subscription Management repositories. Red Hat Enterprise Linux 9 for x86_64 - AppStream (RPMs) 89 kB/s | 4.5 kB 00:00 Red Hat Satellite Client 6 for RHEL 9 x86_64 (RPMs) 68 kB/s | 3.8 kB 00:00 EPEL 9 70 kB/s | 2.3 kB 00:00 Red Hat Enterprise Linux 9 for x86_64 - BaseOS (RPMs) 91 kB/s | 4.1 kB 00:00 Dependencies resolved. =========================================================================================================================================================================================================================================================================================================================== Package Architecture Version Repository Size =========================================================================================================================================================================================================================================================================================================================== Installing: insights-client noarch 3.2.8-1.el9 rhel-9-for-x86_64-appstream-rpms 1.3 M Installing dependencies: pciutils x86_64 3.7.0-7.el9 rhel-9-for-x86_64-baseos-rpms 96 kTransaction Summary =========================================================================================================================================================================================================================================================================================================================== Install 2 PackagesTotal download size: 1.3 M Installed size: 1.7 M This bootc system is configured to be read-only. Pass --transient to perform this transaction in a transient overlay which will reset when the system reboots. Operation aborted. Host [localhost.localdomain] initial configuration failed Successfully updated the system facts.
Is this issue a regression from an earlier version:
Steps to Reproduce:
1. Go in Hosts -> Register Hosts
2. Add an activation key leave defaults
3. Register the image mode system
Actual behavior:
System is registered but the status results in error and from the Insights-client setup the script will stop executing
Expected behavior:
The registration script should expect a flag to select if an image mode host is going to be registered, which inhibits:
* Packages installation
* Package update
* Insights-client configuration
* Any other step that could use DNF to perform operations
Business Impact / Additional info:
- relates to
-
SAT-35308 Running Ansible Roles on an Image Mode host will fail if any packages tries to install
-
- New
-