Description of problem:
Satellite is still showing the registered hosts as "unentitled" even the hosts have valid subscriptions attached.
How reproducible:
Easy
Steps to Reproduce:
1. Disable SCA on the Satellite.
2. Register a host without using activation key. Simply run "subscription-manager register" command.
3. The host should have registered to the Satellite and Web UI is showing "unentitled" status.
4. Attach a valid subscription to the host manually or use "subscription-manager attach --auto" command
5. Run the "subscription-manager status" command. The status should be "Valid" or "Insufficient" (temporary subscription if no virt-who is reported)
Actual results:
Web UI still showing the host status as "Unentitled" even the client is subscribed with valid subscriptions or partially subscribed.
Expected results:
Web UI should update the host status
Additional info:
It is because Candlepin sent an event message with empty event data (see below) so Satellite skipped the subscription status update.
~~~
principalType=trusteduser principal=foreman_admin target=COMPLIANCE entityId=xxxxxx-xxxx-xxxx-xxxx-xxxxxxxx type=CREATED owner=xxxxxxxxxxxxxxxxxxxxxx eventData=null
~~~
This is a known bug which has been fixed in candlepin-4.4.5-1.
~~~
https://issues.redhat.com/browse/CANDLEPIN-786
https://github.com/candlepin/candlepin/pull/4532
~~~
QE Tracker for https://issues.redhat.com/browse/SAT-25063
Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=2280181