-
Feature Request
-
Resolution: Unresolved
-
Major
-
6.18.0
If a host is being registered in this way:
set -o pipefail && curl --silent --show-error --insecure 'https://satellite618.lab.example.com/register?activation_keys=Capsule&download_utility=curl&force=false&location_id=2&organization_id=1&setup_insights=false&update_packages=false' --header 'Authorization: Bearer $TOKEN' | bash
The host is registered successfully but InventorySync::Async::InventoryFullSync ( Sync all inventory status button ) fails to identify that host as a syncable host or rather detects it as a disconnected host.
On the other hand, if we use the "Generate and upload report" option, it includes the host in the reported data.
Environment:
Red Hat Satellite 6.18.0 ( stream 106 )
Steps to reproduce:
- Install Satellite 6.18
- setup some content and activation keys in it
- Register a host, but make sure to disable insights during registration, via global registration method
- Insights --> Inventory Upload --> Click on "Sync all inventory status"
- Insights --> Inventory Upload --> Expand the Organization --> Click on "Generate and upload report" and then inspect the report from /var/lib/foreman/red_hat_inventory/uploads/done location.
Actual Behavior:
The "Sync all inventory status" action triggers InventorySync::Async::InventoryFullSync and after a while WebUI shows:
~~~
Success
Hosts with subscription in organization: 1
Successfully synced hosts: 0
Disconnected hosts: 1
~~~
The "Generate and upload report" option works correctly and reports the host back to c.rh.c
Expected behavior:
Even if insights would be disabled ( host_registration_insights is false ), as long as host_registration_insights_inventory is true, any and every type of inventory sync should work.
Additional notes:
If we simply toggle host_registration_insights to true for the same host, and then try "Sync all inventory status" action , It will now successfully sync the host:
~~~
Success
Hosts with subscription in organization: 1
Successfully synced hosts: 1
Disconnected hosts: 0
~~~