Bug 1000358
Summary: | KVM/XEN:Can't get the host's consummer uuid in the guest info of SAM server | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Subscription Asset Manager | Reporter: | Liushihui <shihliu> | ||||||||
Component: | candlepin | Assignee: | Tom McKay <tomckay> | ||||||||
Status: | CLOSED WONTFIX | QA Contact: | SAM QE List <sam-qe-list> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 1.3 | CC: | hsun, liliu, mstead, sgao, shihliu, tomckay | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | x86_64 | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2016-03-11 03:30:52 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: | 971511 | ||||||||||
Attachments: |
|
Description
Liushihui
2013-08-23 09:32:30 UTC
Created attachment 789519 [details]
virtuuid
Created attachment 789520 [details]
correct_associate_uuid
Is this working for some guests but not others? Is this something that was working and is not now? Depending on the answer to the questions in comment3, this might be an RFE for katello. If required, the host consumer can be fetched with the following candlepin API call -- the host uuid can be extracted and appended to the katello repsonse. GET /consumers/$guest_uuid/host (In reply to Tom McKay from comment #3) > Is this working for some guests but not others? ---> Only the guest which has registered to SAM server should work Is this something that was working and is not now? ---> Yes, SAM-1.3-20130624.0 hasn't this problem. Then in the SAM-1.3.0-RHEL-6-20130808.0, it has occur a new bug995968 which is related to this problem, After bug995968 fixed, This problem still exist. This issue still exist in SAM-1.3.0-RHEL-6-snapshot5. After comparing with old SAM (SAM-1.3-20130624.0), I found that old SAM will add guest info to host consumer, and will add host info to guest consumer, but latest SAM add a blank guest info to guest consumer which caused this bug, please see the marked section in attachment, thanks. Created attachment 794624 [details]
guest consumer info
Note to developers: Looking at attachment in comment #7, something changed in how consumer json is being generated in katello. Previously the host information was included, then it was removed. This issue should be fixed 1. check host identity on host # subscription-manager identity -> 69950bed-79c1-451d-b88b-05b424673141 2. check guest identity on guest # subscription-manager identity -> 721eb6f7-5034-4148-8608-7836987e8c09 3. run curl with host identity, check guest identity whether exist # curl -u virt-who-test:redhat -k https://subscription.rhn.stage.redhat.com/subscription/consumers/[Host Identity]]/guests |python -mjson.tool 4. run curl with guest identity, check host identity whether exist # curl -u virt-who-test:redhat -k https://subscription.rhn.stage.redhat.com/subscription/consumers/[Guest Identity]/host |python -mjson.tool |