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 1806713 - hypervisor checkin fails with cp_consumer_hypervisor_ukey error
Summary: hypervisor checkin fails with cp_consumer_hypervisor_ukey error
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Candlepin
Version: 6.7.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: 6.8.0
Assignee: satellite6-bugs
QA Contact: Lai
URL:
Whiteboard:
Depends On: 1766345
Blocks: 1774236 1788671 1788672
TreeView+ depends on / blocked
 
Reported: 2020-02-24 19:48 UTC by Jonathon Turel
Modified: 2023-12-15 17:24 UTC (History)
18 users (show)

Fixed In Version: candlepin-3.1.10-1.el7sat
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1766345
Environment:
Last Closed: 2020-10-27 13:00:29 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
before (65.00 KB, image/png)
2020-08-05 17:56 UTC, jcallaha
no flags Details
after (73.84 KB, image/png)
2020-08-05 17:58 UTC, jcallaha
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4366 0 None None None 2020-10-27 13:00:59 UTC

Comment 8 jcallaha 2020-08-05 17:56:04 UTC
Verified in Satellite 6.8 Snap 17

1. Save the virt-who request data below in a file (temp.json)
2. Submit the data to the rhsm async hypervisors api
    curl -k -X POST --cert /etc/pki/consumer/cert.pem --key /etc/pki/consumer/key.pem https://<sathost>/rhsm/hypervisors/Default_Organization -H "Content-Type: application/json" -d @"temp.json"
3. Change the hypervisorId
4. Resubmit the data tot he rhsm api

Results:
    The hypervisors are updated. See attached screenshots for verification



{
    "hypervisors": [
        {
            "hypervisorId": {
                "hypervisorId": "jake.test.hypervisor.one.io"
            },
            "name": "hypervisor-one.io",
            "guestIds": [
                {
                    "guestId": "14cc4791-6725-4b07-ad8a-6587938f3177",
                    "state": 1,
                    "attributes": {
                        "active": 1,
                        "virtWhoType": "esx"
                    }
                },
            ],
            "facts": {
                "hypervisor.type": "VMware ESXi",
                "dmi.system.uuid": "33a134d6-31cb-42ae-ac3c-9347873c19f6",
                "cpu.cpu_socket(s)": "2",
                "hypervisor.cluster": "fake cluster",
                "hypervisor.version": "6.7.0"
            }
        },
        {
            "hypervisorId": {
                "hypervisorId": "jake.test.altered.two.io"
            },
            "name": "hypervisor-two.gov",
            "guestIds": [
                {
                    "guestId": "0f05f5b9-dd03-4bf7-865c-5a3506a36598",
                    "state": 1,
                    "attributes": {
                        "active": 1,
                        "virtWhoType": "esx"
                    }
                },
            ],
            "facts": {
                "hypervisor.type": "VMware ESXi",
                "dmi.system.uuid": "5caa14cf-79c7-4469-ae17-9b30adfbd254",
                "cpu.cpu_socket(s)": "2",
                "hypervisor.cluster": "fake cluseter",
                "hypervisor.version": "6.7.0"
            }
        }
    ]
}

Comment 9 jcallaha 2020-08-05 17:56:26 UTC
Created attachment 1710555 [details]
before

Comment 10 jcallaha 2020-08-05 17:58:04 UTC
Created attachment 1710556 [details]
after

Comment 13 errata-xmlrpc 2020-10-27 13:00:29 UTC
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 (Important: Satellite 6.8 release), 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/RHSA-2020:4366


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