Skip to content
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

[6.15.z] host: added field reported_data #1208

Merged

Conversation

Satellite-QE
Copy link
Contributor

Cherrypick of PR: #1202

Description of changes

Added new field reported_data to the Host entity.
This field is optional and it is not present for all host instances,
only for those reporting real data, like bare metal hosts and so.

Functional demonstration

Example:

In [1]: from nailgun.entities import Host
In [2]: host = Host().search(query={'search': f'name=sat.instance.addr.com'})[0]
In [3]: host.reported_data
Out [3]:
{
    "boot_time": "2024-06-21 16:44:18 +0200",
    "cores": 6,
    "sockets": 6,
    "disks_total": 107374182400,
    "kernel_version": "5.14.0-427.20.1.el9_4.x86_64",
    "bios_vendor": "SeaBIOS",
    "bios_release_date": "04/01/2014",
    "bios_version": "1.16.1-1.el9"
}

Added new field `reported_data` to the `Host` entity.
This field is optional and it is not present for all host instances.

(cherry picked from commit 419e7f9)
@Satellite-QE Satellite-QE added 6.15.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR No-CherryPick PR doesnt need CherryPick to previous branches labels Jul 29, 2024
@Satellite-QE Satellite-QE added the AutoMerge_Cherry_Picked Automatically merge the PR is PRT and all checks are passing label Jul 29, 2024
@ogajduse ogajduse merged commit 7da2a62 into 6.15.z Aug 16, 2024
21 of 22 checks passed
@ogajduse ogajduse deleted the cherry-pick-6.15.z-419e7f9d4815f47fdb859f9941b8d23f7a059a07 branch August 16, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z Auto_Cherry_Picked GHA has automatically cherrypicked this PR AutoMerge_Cherry_Picked Automatically merge the PR is PRT and all checks are passing No-CherryPick PR doesnt need CherryPick to previous branches
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants