Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1400697 - use /rhsm api to update content host facts
use /rhsm api to update content host facts
Status: CLOSED ERRATA
Product: Red Hat Satellite 6
Classification: Red Hat
Component: Uncategorized (Show other bugs)
6.2.0
Unspecified Unspecified
high Severity medium (vote)
: 6.2.7
: Unused
Assigned To: Tom McKay
jcallaha
: Triaged
Depends On:
Blocks: 1405493
  Show dependency treegraph
 
Reported: 2016-12-01 16:26 EST by Tom McKay
Modified: 2017-01-26 05:46 EST (History)
4 users (show)

See Also:
Fixed In Version: tfm-rubygem-hammer_cli_csv-2.2.1.1-1
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1405493 (view as bug list)
Environment:
Last Closed: 2017-01-26 05:46:49 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
verification screenshot (38.24 KB, image/png)
2017-01-16 16:55 EST, jcallaha
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Foreman Issue Tracker 17453 None None None 2016-12-01 16:26 EST
Red Hat Product Errata RHBA-2017:0197 normal SHIPPED_LIVE Satellite 6.2.7 Async Bug Release 2017-01-26 10:38:38 EST

  None (edit)
Description Tom McKay 2016-12-01 16:26:42 EST
Use PUT /rhsm/consumers/:id to update facts in candlepin. This will allow hypervisors to set their socket count correctly for subscription usage.
Comment 1 Tom McKay 2016-12-01 16:26:46 EST
Created from redmine issue http://projects.theforeman.org/issues/17453
Comment 2 Tom McKay 2016-12-01 16:26:51 EST
Upstream bug assigned to tomckay@redhat.com
Comment 4 Ivan Necas 2016-12-01 17:38:56 EST
Updating component based on upstream
Comment 5 Bryan Kearney 2016-12-01 18:00:47 EST
Upstream bug assigned to tomckay@redhat.com
Comment 6 Bryan Kearney 2016-12-01 18:00:49 EST
Upstream bug component is Uncategorized
Comment 7 Bryan Kearney 2016-12-01 18:00:52 EST
Upstream bug assigned to tomckay@redhat.com
Comment 9 Bryan Kearney 2016-12-14 12:00:49 EST
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17453 has been resolved.
Comment 10 Bryan Kearney 2016-12-16 14:07:43 EST
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17453 has been resolved.
Comment 11 Bryan Kearney 2016-12-16 14:09:06 EST
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17453 has been resolved.
Comment 12 Bryan Kearney 2016-12-16 14:15:20 EST
Moving this bug to POST for triage into Satellite 6 since the upstream issue http://projects.theforeman.org/issues/17453 has been resolved.
Comment 13 jcallaha 2017-01-16 16:54:43 EST
Verified in Satellite 6.2.7 Snap 1

Successfully submitted a PUT request to /rhsm/consumers, updating the number of cores per cpu socket to 12. See attached screenshot for verification. Additionally, see below for the updated fact seen for this consumer.

{
    "id": "8a9084ef58ea58620158ec413ba67b36",
    "uuid": "fe00d96d-9eb4-4896-b6a7-4c4cb23e7b24",
    "name": "abcdefg",
    "username": "foreman_admin",
    "entitlementStatus": "invalid",
    "serviceLevel": "",
    "releaseVer": {
        "releaseVer": null
    },
    "idCert": {
        "key": "",
        "cert": "",
        "id": "8a9084ef58ea58620158ec413c847b39",
        "serial": {
            "id": 4965830198058643801,
            "revoked": false,
            "collected": false,
            "expiration": "2032-12-11T05:00:47.925+0000",
            "serial": 4965830198058643801,
            "created": "2016-12-11T05:00:47.925+0000",
            "updated": "2016-12-11T05:00:47.925+0000"
        },
        "created": "2016-12-11T05:00:48.132+0000",
        "updated": "2016-12-11T05:00:48.132+0000"
    },
    "type": {
        "id": "1000",
        "label": "system",
        "manifest": false
    },
    "owner": {
        "id": "8a9084ef58abf2880158abf2fbb10001",
        "key": "Default_Organization",
        "displayName": "Default Organization",
        "href": "/owners/Default_Organization"
    },
    "environment": {
        "owner": {
            "id": "8a9084ef58abf2880158abf2fbb10001",
            "key": "Default_Organization",
            "displayName": "Default Organization",
            "href": "/owners/Default_Organization"
        },
        "name": "Library/6_tools",
        "description": null,
        "id": "1-55",
        "environmentContent": [
            {
                "id": "8a9084ef58d480e40158e3fd98c35487",
                "contentId": "168",
                "enabled": null,
                "created": "2016-12-09T14:29:57.571+0000",
                "updated": "2016-12-09T14:29:57.571+0000"
            },
            {
                "id": "8a9084ef58d480e40158e3fd98c45489",
                "contentId": "1673",
                "enabled": null,
                "created": "2016-12-09T14:29:57.572+0000",
                "updated": "2016-12-09T14:29:57.572+0000"
            },
            {
                "id": "8a9084ef58d480e40158e0703a990337",
                "contentId": "1480534994421",
                "enabled": null,
                "created": "2016-12-08T21:56:41.241+0000",
                "updated": "2016-12-08T21:56:41.241+0000"
            },
            {
                "id": "8a9084ef58d480e40158e3fd98c45488",
                "contentId": "3026",
                "enabled": null,
                "created": "2016-12-09T14:29:57.572+0000",
                "updated": "2016-12-09T14:29:57.572+0000"
            },
            {
                "id": "8a9084ef58d480e40158e3fd98c05485",
                "contentId": "2396",
                "enabled": null,
                "created": "2016-12-09T14:29:57.568+0000",
                "updated": "2016-12-09T14:29:57.568+0000"
            },
            {
                "id": "8a9084ef58d480e40158e0703a980336",
                "contentId": "1480534939157",
                "enabled": null,
                "created": "2016-12-08T21:56:41.240+0000",
                "updated": "2016-12-08T21:56:41.240+0000"
            },
            {
                "id": "8a9084ef58d480e40158e0703a920335",
                "contentId": "1480534955957",
                "enabled": null,
                "created": "2016-12-08T21:56:41.234+0000",
                "updated": "2016-12-08T21:56:41.234+0000"
            },
            {
                "id": "8a9084ef58d480e40158e3fd98c25486",
                "contentId": "166",
                "enabled": null,
                "created": "2016-12-09T14:29:57.570+0000",
                "updated": "2016-12-09T14:29:57.570+0000"
            }
        ],
        "created": "2016-12-08T21:56:21.322+0000",
        "updated": "2016-12-08T21:56:21.322+0000"
    },
    "entitlementCount": 0,
    "facts": {
        "_timestamp": "2017-01-16T16:49:48-05:00",
        "cpu.core(s)_per_socket": "12"
    },
    "lastCheckin": null,
    "installedProducts": [
        {
            "id": "8a9084ef58ea58620158ec413ba67b37",
            "productId": "69",
            "productName": "Red Hat Enterprise Linux Server",
            "version": "6.8",
            "arch": "x86_64",
            "status": "red",
            "startDate": null,
            "endDate": null,
            "created": "2016-12-11T05:00:47.910+0000",
            "updated": "2016-12-11T05:00:47.910+0000"
        }
    ],
    "canActivate": false,
    "guestIds": [],
    "capabilities": [],
    "hypervisorId": null,
    "contentTags": [],
    "autoheal": true,
    "dev": false,
    "href": "/consumers/fe00d96d-9eb4-4896-b6a7-4c4cb23e7b24",
    "created": "2016-12-11T05:00:47.910+0000",
    "updated": "2017-01-16T21:49:50.679+0000"
}
Comment 14 jcallaha 2017-01-16 16:55 EST
Created attachment 1241429 [details]
verification screenshot
Comment 16 errata-xmlrpc 2017-01-26 05:46:49 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:0197

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