Bug 1337859
Summary: | virt-who will show "Communication with subscription manager failed with code 500" for hyper-v mode | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Satellite | Reporter: | Eko <hsun> | ||||
Component: | API | Assignee: | Partha Aji <paji> | ||||
Status: | CLOSED ERRATA | QA Contact: | Katello QA List <katello-qa-list> | ||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | Unspecified | CC: | bbuckingham, bkearney, cwelton, hsun, mmccune, paji, rnovacek, sgao, shihliu, tomckay, zhunting | ||||
Target Milestone: | Unspecified | Keywords: | Triaged | ||||
Target Release: | Unused | ||||||
Hardware: | x86_64 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | rubygem-katello-3.0.0.53-1 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2016-07-27 11:26:58 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | |||||||
Bug Blocks: | 1115190 | ||||||
Attachments: |
|
Description
Eko
2016-05-20 09:30:24 UTC
virt-who is getting error 500 from candlepin, reassigning. ERROR: null value in column "host_id" violates not-null constraint : INSERT INTO "katello_subscription_facets" ("autoheal", "registered_at", "uuid") VALUES ($1, $2, $3) RETURNING "id" Looks like an issue with the katello API given the error about inserting into the katello_subscription_facets table. Please attach foreman-debug logs Created attachment 1161321 [details]
foreman debug info
still can reproduce with Satellite-6.2.0-RHEL-7-20160601.0 build. 1). run virt-who with hyper-v first time, the info can be sent normally 2). re-run virt-who again, send info failed with "INSERT INTO "katello_subscription_facets" ... 3). unregister the hypervisor uuid from WebUI, choose "Completely deletes the host record and removes all reporting, provisioning, and configuration information. " 4). re-run virt-who with hyper-v, the info can be sent the result is if the hyper-v hypervisor UUID is already exist in sat6.2 database, restart vrit-who to send info failed. still can reproduce with Satellite-6.2.0-RHEL-7-20160607.1 build. virt-who + hyper-v testing blocked reproduced with Satellite-6.2.0-RHEL-7-20160610.0 build. satellite-6.2.0-15.1.beta.el7sat.noarch I tried: 1. register a physical system 2. register a libvirt vm running on that system 3. run virt-who --one-shot --debug which succeeds 4. re-run virt-who --one-shot --debug which succeeds 5. remove vm using ui, removing completely 6. virt-who works 7. re-register vm 8. virt-who works I am unsure how to proceed in reproducing this. This is being moved to POST as it depends on the code in https://bugzilla.redhat.com/show_bug.cgi?id=1340088 and should be retested when that bug lands. verified with Satellite-6.2.0-RHEL-7-20160707.1, virt-who can send hyper-v host/guests info to sat server normally. 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-2016:1501 |