Bug 1816147 - no account specified for hosts with custom product attached
Summary: no account specified for hosts with custom product attached
Keywords:
Status: CLOSED DUPLICATE of bug 1834993
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: RH Cloud - Inventory
Version: Unspecified
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: Unspecified
Assignee: Shimon Shtein
QA Contact: Mirek Długosz
URL:
Whiteboard:
Depends On:
Blocks: 1834993
TreeView+ depends on / blocked
 
Reported: 2020-03-23 12:54 UTC by Jan Hutař
Modified: 2020-09-01 11:52 UTC (History)
3 users (show)

Fixed In Version: tfm-rubygem-foreman_rh_cloud-1.0.6
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1834993 (view as bug list)
Environment:
Last Closed: 2020-09-01 11:52:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github theforeman foreman_rh_cloud pull 149 0 None closed BZ 1816147 Select pool with non-empty account 2020-08-31 20:40:31 UTC

Description Jan Hutař 2020-03-23 12:54:13 UTC
Description of problem:
When we are generating inventory json/tarball, some hosts might have empty account field.


Version-Release number of selected component (if applicable):
satellite-6.7.0-6.el7sat.noarch
tfm-rubygem-foreman_inventory_upload-1.0.2-1.el7sat.noarch


How reproducible:
always


Steps to Reproduce:
1. Have a client that consumes two pools:
    # subscription-manager list --consumed | grep -e 'Subscription Name' -e 'Account'
    Subscription Name:   Red Hat Enterprise Linux Server, Standard (Physical or Virtual Nodes)
    Account:             1212729
    Subscription Name:   MyCustomProduct
    Account:             
2. When I generate and upload inventory in RH Inventory -> Manage -> Restart
   it passes
3. Now when I look into the json which was archived, account field is empty:
    # tar xzf /var/lib/foreman/red_hat_inventory/uploads/done/report_for_1.tar.gz
    # cat 5cd1e4a9-6b1d-43b6-bd81-aede6401f5a1.json | json_reformat | grep -e fqdn -e account


Actual results:
            "fqdn": "gprfc009-02.contperf66.local",
            "account": "",


Expected results:
            "fqdn": "gprfc009-02.contperf66.local",
            "account": "1212729",


Additional info:
When we have removed MyCustomProduct subscription (with `subscription-manager remove --pool=8a901f1d70ed75db0170ed91d93731b0`) from the host and restarted inventory generation, it worked as expected.

Comment 5 James Jeffers 2020-09-01 11:52:29 UTC
This was triaged for 6.7.4, but was already included in a 6.7.1, so we are closing this as a duplicate.

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


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