Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-25063

[Regression]Satellite is not updating subscription status of the registered hosts

XMLWordPrintable

    • Important
    • Yes

      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
      ~~~

          There are no Sub-Tasks for this issue.

              jira-bugzilla-migration RH Bugzilla Integration
              rhn-support-hyu Hao Chang Yu
              Shubham Ganar Shubham Ganar
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: