New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DISCOVERY-325: Add virtual_host_uuid #121
Conversation
virtual_host_uuid field is added to reflect the hypervisor identity (subiscription_manager_id) of a system's hypervisor (which is typically collected by virt-who). https://issues.redhat.com/browse/DISCOVERY-325
d53945d
to
bd9b29f
Compare
Here are the System Profile validation results using Prod data.
Validating against this PR's spec:
|
Here are the System Profile validation results using Prod data.
Validating against this PR's spec:
|
Here are the System Profile validation results using Prod data.
Validating against this PR's spec:
|
Here are the System Profile validation results using Prod data.
Validating against this PR's spec:
|
Hmm, dippy-bot leaving multiple comments in a row is a new one. I'll look into that. |
…_uuid (#3043) Jira issue: [SWATCH-1929](https://issues.redhat.com/browse/SWATCH-1929) ## Description Add support for the recently added system profile fact virtual_host_uuid (RedHatInsights/inventory-schemas#121) which replaces legacy facts rhsm.VM_HOST_UUID. ## Testing 1.- podman-compose up 2.- Create hosts for orgId=16790890 in Insights database ``` ./bin/insert-mock-hosts --hbi --clear --org 16790890 --account account123 --num-guests 1 --hypervisor-id 123456 ``` 3.- DEV_MODE=true SUBSCRIPTION_SYNC_ENABLED=true ENABLE_SYNCHRONOUS_OPERATIONS=true ./gradlew :bootRun 4.- Perform tally snapshot: ```bash http PUT ":8000/api/rhsm-subscriptions/v1/internal/rpc/tally/snapshots/16790890" \ Origin:console.redhat.com \ x-rh-swatch-synchronous-request:true \ x-rh-swatch-psk:placeholder \ x-rh-identity:$(echo -n '{"identity":{"account_number":"","type":"User","user":{"is_org_admin":true},"internal":{"org_id":"16790890"}}}' | base64 -w 0) ``` 5.- Query the created hosts in the swatch database and confirm the virtual_host_uuid has been used: `SELECT hypervisor_uuid FROM hosts;` It should be 123456.
virtual_host_uuid field is added to reflect the hypervisor identity (subiscription_manager_id) of a system's hypervisor (which is typically collected by virt-who).
https://issues.redhat.com/browse/DISCOVERY-325