-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
6.15.0
Description of problem:
Registering a client with `Update packages` option does not update the package on the system during registration.
Version-Release number of selected component (if applicable):
Satellite 6.15.2
How reproducible:
- Always
Steps to Reproduce:
- Create a registration curl command with default options but enable Update packages option.
- Register the client using the command.
- Create a registration curl command with default options but enable Update packages option and set Setup Insights to No.
- Register the client using the command
Actual behavior:
Generate a curl command with admin user. All the options were set to default except Insecure and Update packages
# Rendered with following template parameters:
# User: [admin]
# Organization: [RedHat]
# Location: [Pune]
# Update packages: [true]
# Activation keys: [GENERAL]
Package update does not happen after the Insights client install.
# set -o pipefail && curl -sS --insecure 'https://satellite.example.com/register?activation_keys=GENERAL&location_id=2&organization_id=1&update_packages=true' -H 'Authorization: Bearer TOKEN' | bash # # Running registration # The system has been registered with ID: 4a488046-f56a-4193-bc72-70adc8730aea The registered system name is: test-172-20-0-140.example.com # Running [test-172-20-0-140.example.com] host initial configuration /usr/sbin/restorecon Relabeled /root/.ssh from unconfined_u:object_r:ssh_home_t:s0 to system_u:object_r:ssh_home_t:s0 Relabeled /root/.ssh/authorized_keys from unconfined_u:object_r:ssh_home_t:s0 to system_u:object_r:ssh_home_t:s0 # # Installing Insights client # Updating Subscription Management repositories. Waiting for process with pid 1749 to finish. Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 55 MB/s | 66 MB 00:01 Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 43 MB/s | 60 MB 00:01 EPEL8 79 kB/s | 2.3 kB 00:00 Package insights-client-3.2.2-2.el8.noarch is already installed. Dependencies resolved. Nothing to do. Complete! Successfully registered host test-172-20-0-140.example.com Automatic scheduling for Insights has been enabled. Starting to collect Insights data for test-172-20-0-140.example.com Writing RHSM facts to /etc/rhsm/facts/insights-client.facts ... Uploading Insights data. Successfully uploaded report from test-172-20-0-140.example.com to account 540155. View the Red Hat Insights console at https://console.redhat.com/insights/
And, updates are available for the system:
# dnf check-update Updating Subscription Management repositories. EPEL8 99 kB/s | 2.3 kB 00:00 Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 121 kB/s | 4.5 kB 00:00 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 64 kB/s | 4.1 kB 00:00 libsemanage.x86_64 2.9-9.el8_6 rhel-8-for-x86_64-baseos-rpms python3-libsemanage.x86_64 2.9-9.el8_6 rhel-8-for-x86_64-baseos-rpms
Generate another curl command with admin user. All the options were set to default except Setup Insights and Update packages . Setup Insights was set to No.
# Rendered with following template parameters: # User: [admin] # Organization: [RedHat] # Location: [Pune] # Setup Insights: [false] # Update packages: [true] # Activation keys: [GENERAL]
When Setup Insights is set to No, the Updating packages occurs on the system.
# set -o pipefail && curl -sS --insecure 'https://satellite.example.com/register?activation_keys=GENERAL&location_id=2&organization_id=1&setup_insights=false&update_packages=true' -H 'Authorization: Bearer TOKEN' | bash # # Running registration # The system has been registered with ID: a3eb7f95-d7fb-483b-afd9-8a500313b8cc The registered system name is: test-172-20-0-140.example.com # Running [test-172-20-0-140.example.com] host initial configuration /usr/sbin/restorecon Relabeled /root/.ssh from unconfined_u:object_r:ssh_home_t:s0 to system_u:object_r:ssh_home_t:s0 Relabeled /root/.ssh/authorized_keys from unconfined_u:object_r:ssh_home_t:s0 to system_u:object_r:ssh_home_t:s0 Refreshing subscription data All local data refreshed # # Updating packages # Updating Subscription Management repositories. Waiting for process with pid 1765 to finish. EPEL8 88 kB/s | 2.3 kB 00:00 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 62 MB/s | 66 MB 00:01 Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs) 57 MB/s | 60 MB 00:01 Last metadata expiration check: 0:00:01 ago on Fri Aug 16 05:00:57 2024. Dependencies resolved. ================================================================================================================================================================================== Package Architecture Version Repository Size ================================================================================================================================================================================== Upgrading: libsemanage x86_64 2.9-9.el8_6 rhel-8-for-x86_64-baseos-rpms 168 k python3-libsemanage x86_64 2.9-9.el8_6 rhel-8-for-x86_64-baseos-rpms 128 k Transaction Summary ================================================================================================================================================================================== Upgrade 2 Packages Total download size: 296 k Downloading Packages: (1/2): libsemanage-2.9-9.el8_6.x86_64.rpm 2.7 MB/s | 168 kB 00:00 (2/2): python3-libsemanage-2.9-9.el8_6.x86_64.rpm 1.9 MB/s | 128 kB 00:00 ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 4.2 MB/s | 296 kB 00:00 Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs) 4.9 MB/s | 5.0 kB 00:00 Importing GPG key 0xFD431D51: Userid : "Red Hat, Inc. (release key 2) <security@redhat.com>" Fingerprint: 567E 347A D004 4ADE 55BA 8A5F 199E 2F91 FD43 1D51 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Key imported successfully Importing GPG key 0xD4082792: Userid : "Red Hat, Inc. (auxiliary key) <security@redhat.com>" Fingerprint: 6A6A A7C9 7C88 90AE C6AE BFE2 F76F 66C3 D408 2792 From : /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release Key imported successfully Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Upgrading : libsemanage-2.9-9.el8_6.x86_64 1/4 Upgrading : python3-libsemanage-2.9-9.el8_6.x86_64 2/4 Cleanup : python3-libsemanage-2.9-9.el8.x86_64 3/4 Cleanup : libsemanage-2.9-9.el8.x86_64 4/4 Running scriptlet: libsemanage-2.9-9.el8.x86_64 4/4 Verifying : libsemanage-2.9-9.el8_6.x86_64 1/4 Verifying : libsemanage-2.9-9.el8.x86_64 2/4 Verifying : python3-libsemanage-2.9-9.el8_6.x86_64 3/4 Verifying : python3-libsemanage-2.9-9.el8.x86_64 4/4 Installed products updated. Upgraded: libsemanage-2.9-9.el8_6.x86_64 python3-libsemanage-2.9-9.el8_6.x86_64 Complete! Host [test-172-20-0-140.example.com] successfully configured. Successfully updated the system facts.
Expected behavior:
The packages should be updated when Update packages is enabled.
- impacts account
-
SAT-26417 Host remains in build mode during registration when setup_insights is set to true
- Closed