Skip to content

Conversation

@nofaralfasi
Copy link
Contributor

Use correct RHSM fact keys to populate BIOS details on host pages.

Note: RM was not working at the time this PR was created. I will create the RM and attach it to this PR once the issue is resolved.

The BIOS card on the host details page was empty for hosts registered via subscription-manager because the RhsmFactParser was looking for BIOS facts using incorrect key names.

RHSM facts use dot separators (e.g., 'dmi.bios.vendor'), but the parser was incorrectly looking for double-colon separators with an 'all_records' prefix (e.g., 'dmi::bios::all_records::vendor'), which never matched.

This commit fixes the bios method to use the correct RHSM fact keys.

Also fixes the model method's virtual machine detection for consistency with the RHSM fact naming convention.

After this fix, hosts need to re-upload their facts (subscription-manager facts --update) for BIOS data to be populated.

Use correct RHSM fact keys to populate BIOS details on host pages.
Copy link
Member

@chris1984 chris1984 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and I can see the bios info on my dev box now. Thanks @nofaralfasi @ShimShtein can you review and green ack please if it looks good?

Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing as how we missed this, would it make sense to have more of an integration test like we have with Puppet and include a full JSON fixture taken from a VM that we can parse?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants