bf0dffe467
Newer kernels have a write-only 'demote' file in the sysfs hugepages directory. The hugepagereport action uses a wildcard grep command to read all files in these directories. Since the 'demote' file is write-only, grep fails with a "Permission denied" error, causing the action and the functional tests to fail. This patch refactors the action to explicitly target only the relevant metrics: 'nr_hugepages', 'free_hugepages', and 'surplus_hugepages'. Closes-Bug: #2137526 Change-Id: I65cb8e4161bd5a6ca777ccd8aeeb88a61f7a294d Signed-off-by: sjhaveri <satya.jhaveri@canonical.com>