Bug 1975491 - [Assisted-4.8] [Staging][Network latency] host_requirements api should contain network thresholds
Summary: [Assisted-4.8] [Staging][Network latency] host_requirements api should contai...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: assisted-installer
Version: 4.8
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: 4.9.0
Assignee: Jordi Gil
QA Contact: Yuri Obshansky
URL:
Whiteboard: AI-Team-Projects AI-Cloud
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-23 19:21 UTC by Lital Alon
Modified: 2021-10-18 17:36 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-10-18 17:36:28 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift assisted-service pull 2132 0 None open Bug 1975491: Added network latency and packet loss to /host-requirements 2021-07-02 01:05:46 UTC
Red Hat Product Errata RHSA-2021:3759 0 None None None 2021-10-18 17:36:42 UTC

Description Lital Alon 2021-06-23 19:21:20 UTC
Description of problem:
host_requirements API: 
https://api.stage.openshift.com/api/assisted-install/v1/host_requirements

Resulting:
{
    "master": {
        "cpu_cores": 4,
        "disk_size_gb": 20,
        "installation_disk_speed_threshold_ms": 10,
        "ram_gib": 16
    },
    "worker": {
        "cpu_cores": 2,
        "disk_size_gb": 20,
        "installation_disk_speed_threshold_ms": 10,
        "ram_gib": 8
    }
}

The issue is that it doesn't contain network_latency_threshold_ms and packet_loss_percentage.
This can be helpful for automation purposes (use threshold from API, per role, rather then using hard coded values)


Version-Release number of selected component (if applicable):
Staging, v1.0.22.1

Comment 1 Lital Alon 2021-06-23 19:25:38 UTC
Note that those values can be taken from .../clusters/5ad7bbd4-be9e-4bc3-96c6-6a6e505c00ec/host-requirements
this return per host HW info, but it require to parse each host and compare its id
[
    {
        "host_id": "107e23a9-62fb-4e7d-8e1c-ebf53fe982b9",
        "ocp": {
            "cpu_cores": 2,
            "disk_size_gb": 20,
            "installation_disk_speed_threshold_ms": 10,
            "network_latency_threshold_ms": 1000,
            "packet_loss_percentage": 10,
            "ram_mib": 8192
        },
        "operators": null,
        "total": {
            "cpu_cores": 2,
            "disk_size_gb": 20,
            "installation_disk_speed_threshold_ms": 10,
            "network_latency_threshold_ms": 1000,
            "packet_loss_percentage": 10,
            "ram_mib": 8192
        }
    },
...
]

Comment 2 Jordi Gil 2021-06-29 15:56:10 UTC
PR created to address this issue:
https://github.com/openshift/assisted-service/pull/2132

Comment 4 Lital Alon 2021-07-19 09:47:47 UTC
Verified on Integration

Comment 8 errata-xmlrpc 2021-10-18 17:36:28 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2021:3759


Note You need to log in before you can comment on or make changes to this bug.