Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1425052 - Host associated subscription links are incorrect as well as the associated host in RH Subscriptions
Summary: Host associated subscription links are incorrect as well as the associated ho...
Keywords:
Status: CLOSED DUPLICATE of bug 1406450
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Hosts - Content
Version: 6.2.7
Hardware: x86_64
OS: Linux
high
high
Target Milestone: Unspecified
Assignee: John Mitsch
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-02-20 12:57 UTC by Marcel Gazdík
Modified: 2021-09-09 12:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-04-08 07:01:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 18707 0 Normal Rejected Host associated subscription links are incorrect as well as the associated host in RH Subscriptions 2020-06-13 19:41:52 UTC

Description Marcel Gazdík 2017-02-20 12:57:19 UTC
Description of problem:
  Link to subscription listed in the Content host -> Subscriptions are pointing to an incorrect subscription or even to non-existing subscription. Also the page RH Subscriptions -> (Subscription) -> Associations -> Hosts does not show any associated host mainly for the VDC subscription.

Version-Release number of selected component (if applicable):
Satellite 6.2.7

How reproducible:
  On system with multiple subscriptions, install new HyperVisor, attach VDC subscription with some other available subscriptions for sake of debug. You will be able to see wrong links in the content host detail page as well as no host associated for the VDC subscription on the RH Subscriptions page although there is clearly mentioned that the subscription is being consumed.


Actual results:
  1) Links in Content Hosts -> Detail of the host -> Subscriptions to the subscription detail page are wrong.
  2) Associated hosts list in RH Subscriptions -> Subscription detail -> Associations -> Hosts are not listed

Expected results:
  1) Link will be corrected
  2) Page will list all hosts to which was the subscription assigned

Additional info:
  The reason for the 1) issue, probably even both issues is discrepancy between subscription_id and id in the API JSON response, where the subscription_id for the link is being used instead of id. 
  Example:
API Response snippet:
~~~
quantity_consumed: 1,
id: 4,
cp_id: "8a8a8a84503ca5bc01503cf0bf8f01ef",
subscription_id: 2,
name: "Employee SKU",
start_date: "2013-04-24T04:00:00.000+0000",
end_date: "2022-01-01T04:59:59.000+0000",
available: 2,
quantity: 6,
consumed: 4,
account_number: 540155,
contract_number: 10169621,
support_level: "Self-Support",
product_id: "ES0113909",
sockets: 128,
cores: null,
ram: null,
instance_multiplier: 1,
stacking_id: null,
multi_entitlement: null,
type: "NORMAL",
product_name: "Employee SKU",
unmapped_guest: false,
virt_only: false
~~~

Links in the WebUI generated based on the above response:
~~~
https://sat.example.com/subscriptions/2/info
~~~

The ID in the above link should be 4 in this case.

Comment 2 Brad Buckingham 2017-02-27 18:58:01 UTC
Created redmine issue http://projects.theforeman.org/issues/18707 from this bug

Comment 3 Satellite Program 2017-03-15 20:01:34 UTC
Upstream bug assigned to jomitsch

Comment 4 Kenny Tordeurs 2017-04-08 07:01:31 UTC

*** This bug has been marked as a duplicate of bug 1406450 ***


Note You need to log in before you can comment on or make changes to this bug.