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

host: added field reported_data #1202

Merged
merged 1 commit into from
Jul 29, 2024

Conversation

pnovotny
Copy link
Contributor

@pnovotny pnovotny commented Jul 1, 2024

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.
@pnovotny pnovotny added CherryPick PR needs CherryPick to previous branches AutoMerge_Cherry_Picked Automatically merge the PR is PRT and all checks are passing 6.15.z labels Jul 1, 2024
@pnovotny pnovotny self-assigned this Jul 1, 2024
@pnovotny pnovotny requested review from pondrejk, lhellebr and a team July 1, 2024 05:08
@pnovotny
Copy link
Contributor Author

pnovotny commented Jul 3, 2024

PRT of the parent PR SatelliteQE/robottelo#15539 passed.

@Gauravtalreja1 Gauravtalreja1 merged commit 419e7f9 into SatelliteQE:master Jul 29, 2024
20 checks passed
github-actions bot pushed a commit that referenced this pull request Jul 29, 2024
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)
ogajduse pushed a commit that referenced this pull request Aug 16, 2024
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.15.z AutoMerge_Cherry_Picked Automatically merge the PR is PRT and all checks are passing CherryPick PR needs CherryPick to previous branches PRT-Passed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants