Bug 1975491

Summary: [Assisted-4.8] [Staging][Network latency] host_requirements api should contain network thresholds
Product: OpenShift Container Platform Reporter: Lital Alon <lalon>
Component: assisted-installerAssignee: Jordi Gil <jgil>
assisted-installer sub component: assisted-service QA Contact: Yuri Obshansky <yobshans>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: unspecified CC: aos-bugs
Version: 4.8Keywords: Triaged
Target Milestone: ---   
Target Release: 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: AI-Team-Projects AI-Cloud
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-18 17:36:28 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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