The host attribute max_cpu_mhz_configured is not set on host with multi-subfunctions

Bug #2058476 reported by Poornima Y N
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Low
Poornima Y N

Bug Description

Setting max_cpu_mhz_configured needs lock-unlock to work, although the attribute doesn't require the host to be lock/unlock.

Expectation:
Without host lock/unlock we need to set the max_cpu_mhz_configured.

Poornima Y N (pyn1)
summary: - The host attribute max_cpu_mhz_configured is not set
+ The host attribute max_cpu_mhz_configured is not set on host with
+ multi-subfunctions
Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to config (master)

Reviewed: https://review.opendev.org/c/starlingx/config/+/913755
Committed: https://opendev.org/starlingx/config/commit/7fc11de9eebef60ef768b33d9183eb8182d99989
Submitter: "Zuul (22348)"
Branch: master

commit 7fc11de9eebef60ef768b33d9183eb8182d99989
Author: Poornima Y N <email address hidden>
Date: Wed Mar 20 07:15:52 2024 -0400

    Modify Host Personality for attribute max_cpu_mhz_configured

    Max_cpu_mhz_personality is the attribute of the host which
    can be configured in host where turbo freq is enabled.In case
    of host whose role is both controller and worker, the personality
    for the attribute was not taken care to include such scenario.

    Made the changes in the sysinv conductor to update the host
    personalities based on the function that node operates, which
    handles the scenario when the host acts as both controller and
    worker node.

    TEST PLAN:
    PASS: Build and deploy ISO on Simplex
    PASS: Check whether the max cpu freq set on a simplex
          Below are the commands:
          system host-show <host_id> | grep is_max_cpu_configurable
          system service-parameter-list --name cpu_max_freq_min_percentage
          system service-parameter-modify platform config cpu_max_freq_min_percentage=<>
          system host-update <host_id> max_cpu_mhz_configured=<value in mhz>

          After above commands check whether cpu is set using below command:
          sudo turbostat

    Closes-Bug: 2058476

    Change-Id: I08a5d1400834afca6a0eeaaa8813ac8d71a9db15
    Signed-off-by: Poornima Y N <email address hidden>

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Low
tags: added: stx.10.0 stx.config
Changed in starlingx:
assignee: nobody → Poornima Y N (pyn1)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.