-
Bug
-
Resolution: Done-Errata
-
Major
-
6.15.0, 6.14.z, 6.15.1
-
False
-
-
False
-
0
-
-
-
Important
-
No Coverage
-
None
Description of problem:
Soon after upgrading the Red Hat Satellite\Capsule 6.15, The global registration method of registration started behaving oddly. The entire process completes but the Host remains in build mode and it's subscription status looks odd as well.
How reproducible:
Always
Is this issue a regression from an earlier version:
Maybe [ as end-user says, the issue started after upgrading to 6.15 ]
Steps to Reproduce:
1. Install and configure a Sat 6.15.z
2. Generate a curl command which should have setup_insights=true in it
3. Execute the command in this way i.e.
set -o pipefail && curl -sS --insecure <the command options> | sed 's/bash/bash -x/g' | bash -x
4. Rerun the same command with setup_insights=false
Actual behavior:
At step 3, The insights-client registration seems to be the last step happening and then the script just calls for cleanup_and_exit function and exits, leaving the host still in build mode. As a matter of fact the expected sub-man refresh or sub-man facts --update commands are also not executed i.e. anything after the insights snippet execution is ignored\skipped
Uploading Insights data.
Successfully uploaded report from client.example.com to account 1111111.
View the Red Hat Insights console at https://console.redhat.com/insights/
+ cleanup_and_exit
+ rm -f /tmp/tmp.4uyjfIngno
+ exit
At step 4, No insights-registration happens, and we see the cleanup_and_exit function is called after this happens:
+ trap - ERR + foreman_curl 'http://satellite.example.com/unattended/built?token=4e36ae3e-915b-4615-8448-352131449f0a' + curl --silent --show-error -o /dev/null --noproxy '*' 'http://satellite.example.com/unattended/built?token=4e36ae3e-915b-4615-8448-352131449f0a' + [[ 0 == 0 ]] + echo 'Host [host.example.com] successfully configured.' Host [host.example.com] successfully configured. + subscription-manager facts --update Successfully updated the system facts.
and that puts the host out of build mode.
Expected behavior:
No options should leave the host in build mode at the end of successful registration, specifically not insights configuration\setup.
Business Impact / Additional info:
Unable to quickly register the systems with satellite and insights due to the bug and the host remains in build mode , so no facts will be processed for the host further.
- account is impacted by
-
SAT-27263 Registering a client with `Update packages` option does not update the package on the system during registration.
- Closed
- is caused by
-
SAT-21037 build_status pending while it is installed
- Closed
- is duplicated by
-
SAT-21037 build_status pending while it is installed
- Closed
- links to
-
RHBA-2024:140284 Important: Satellite 6.16.0 release