Debian: Huge pages set in cli not showing up in Horizon Inventory

Bug #1993206 reported by Agustin Carranza
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Medium
Agustin Carranza

Bug Description

Brief Description

After modifying hugepage settings and unlocking the standby controller (controller-0), horizon host details "Memory" tab does not display the hugepages

Severity

standard

Steps to Reproduce

Lock the standby controller-0

Then modify the huge page memory allocations on both proc 0 and 1:

2022-08-31T12:22:24.000 controller-1 -bash: info HISTORY: PID=3459055 UID=1878 system host-list
2022-08-31T12:23:25.000 controller-1 -bash: info HISTORY: PID=3459055 UID=1878 system host-memory-modify -1G 1 controller-0 0
2022-08-31T12:23:48.000 controller-1 -bash: info HISTORY: PID=3459055 UID=1878 system host-memory-modify -1G 1 controller-0 1
2022-08-31T12:24:23.000 controller-1 -bash: info HISTORY: PID=3459055 UID=1878 system host-list
2022-08-31T12:24:38.000 controller-1 -bash: info HISTORY: PID=3459055 UID=1878 system host-memory-modify -1G 4 controller-0 1

Unlock controller-0
2022-08-31T12:25:16.000 controller-1 -bash: info HISTORY: PID=3459055 UID=1878 system host-unlock controller-0
2022-08-31T12:26:07.000 controller-1 -bash: info HISTORY: PID=3459055 UID=1878 system host-list

Expected Behavior

Expect the display in Horizon "memory" tab to match what is set

Actual Behavior

Huge page Memory setting is not showing on the controller that has it configured in the system inventory

see screen grab attached

2022-08-31-12-32-07_aio\puppet.log controller-0

Debug: 2022-08-31 12:32:37 +0000 Automatic Parameter Lookup of 'platform::compute::hugepage::params::nr_hugepages_1G'
2022-08-31T12:32:39.535 Searching for "platform::compute::hugepage::params::nr_hugepages_1G"
2022-08-31T12:32:39.537 Global Data Provider (hiera configuration version 5)
2022-08-31T12:32:39.539 Using configuration "/etc/puppet/hiera.yaml"
2022-08-31T12:32:39.541 Hierarchy entry "yaml"
2022-08-31T12:32:39.543 Path "/tmp/puppet/hieradata/runtime.yaml"
2022-08-31T12:32:39.545 Original path: "runtime.yaml"
2022-08-31T12:32:39.546 Path not found
2022-08-31T12:32:39.548 Path "/tmp/puppet/hieradata/host.yaml"
2022-08-31T12:32:39.550 Original path: "host.yaml"
2022-08-31T12:32:39.552 Found key: "platform::compute::hugepage::params::nr_hugepages_1G" value: "(\"node0:1048576kB:1\" \"node1:1048576kB:4\")"

[sysadmin@controller-1 ~(keystone_admin)]$ system host-memory-list controller-0
------------------------------------------------------------------------------------------------------------------------------------------------+

processor mem_tot mem_platfo mem_ava hugepages(hp)_ vs_hp_ vs_hp_ vs_hp_ vs_hp app_total app_hp_as_p app_hp app_hp app_hp_p app_hp app_hp app_hp_p app_hp_use_1
  al(MiB) rm(MiB) il(MiB) configured size(M total avail _reqd _4K ercentage _total _avail ending_2 _total _avail ending_1 G
          iB) _2M _2M M _1G _1G G
------------------------------------------------------------------------------------------------------------------------------------------------+

0 56048 8000 56048 True 1024 0 0 None 14086144 False 0 0 None 1 1 None True
1 61425 1000 61425 True 1024 0 0 None 14676224 False 0 0 None 4 4 None True
Reproducibility

<Reproducible/Intermittent/Seen once>

State if the issue is 100% reproducible, intermittent or seen once. If it is intermittent, state the frequency of occurrence

System Configuration

Debian AIO-SX

Load info (eg: 2022-03-10_20-00-07)

Build Used: 2022-08-24_18-00-09

Last Pass

Debian new feature testing

(centos 2022-06-25_02-46-51 seems to display it)

Timestamp/Logs

Alarms

Please indicate if there are any alarms observed.

If there are any alarms please list them here

Test Activity

Feature Testing, Regression Testing

Workaround

Describe workaround if available

Revision history for this message
Agustin Carranza (acarranz) wrote :
Changed in starlingx:
assignee: nobody → Agustin Carranza (acarranz)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to gui (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/gui/+/861666

Changed in starlingx:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to gui (master)

Reviewed: https://review.opendev.org/c/starlingx/gui/+/861666
Committed: https://opendev.org/starlingx/gui/commit/1c6b979d862047a02c9152cb15d6ba0737ba4d33
Submitter: "Zuul (22348)"
Branch: master

commit 1c6b979d862047a02c9152cb15d6ba0737ba4d33
Author: Agustin Carranza <email address hidden>
Date: Mon Oct 17 16:43:42 2022 -0300

    Replace strings with booleans in memory details

    Values obtained from the API in memory details are expressed as
    immutable booleans instead of strings like 'True'.
    This change replaces strings with booleans so the conditionals in
    templates are interpreted correctly.

    Test plan
    PASS: Build and install starlingx_dashboard package on a Debian
          deploy.
          Navigate to Host detail, select 'Memory' tab.
          Columns 'Application pages' and 'vSwitch pages' show memory
          details.

    Closes-bug: 1993206

    Signed-off-by: Agustin Carranza <email address hidden>
    Change-Id: Ie896ef596266f079149393b59b3ecfba38a1bbff

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
Changed in starlingx:
importance: Undecided → Medium
tags: added: stx.8.0 stx.gui
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.