sysinv-agent might report memory after unlocking action was performing,
The DB was updated, but hiera data has not been updated. During this
time, memory report from agent will set ‘vswitch_hugepages_nr’,
‘vm_hugepages_nr_2M’ and ‘vm_hugepages_nr_1G’ values to default 0.
adding protect to ignore agent mem report during unlocking (host is
locked state and ihost_action is 'unlock' or 'force-unlock')
Closes-Bug: 1829403
Signed-off-by: Sun Austin <email address hidden>
Reviewed: https:/ /review. opendev. org/672634 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=85e34657c59 df9b2f18c694bf6 c7ba187e8f062a
Committed: https:/
Submitter: Zuul
Branch: master
commit 85e34657c59df9b 2f18c694bf6c7ba 187e8f062a
Author: Sun Austin <email address hidden>
Date: Thu Jul 25 14:39:38 2019 +0800
Avoid agent mem update during unlocking
sysinv-agent might report memory after unlocking action was performing, hugepages_ nr’, hugepages_ nr_2M’ and ‘vm_hugepages_ nr_1G’ values to default 0.
The DB was updated, but hiera data has not been updated. During this
time, memory report from agent will set ‘vswitch_
‘vm_
adding protect to ignore agent mem report during unlocking (host is
locked state and ihost_action is 'unlock' or 'force-unlock')
Closes-Bug: 1829403
Signed-off-by: Sun Austin <email address hidden>
Change-Id: I3438809782560e 90248a3e63e51aa 0315fcf49d3