commit 8b23b33d2ca127fcd43fef019ccdbcc500ff0d08
Author: Al Bailey <email address hidden>
Date: Tue Dec 13 20:01:23 2022 +0000
Reduce the number of partition DB updates
When the partition code receives a partition structure
from sysinv-agent, the fields are strings.
The database fields are integers, so the comparison
always considers the values to be mis-matched and attempts
to update the database.
This can cause stale 'size' values from the agent query
to overwrite the DB during a partition resize operation.
Test Plan:
PASS: create and update several partitions
PASS: verify that the 'PART update' log is not created
once for every partition when doing a partition update.
Closes-Bug: #1999586
Signed-off-by: Al Bailey <email address hidden>
Change-Id: I3113e60a09951aa0efc5a6e549b1614976f75f35
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/867567 /opendev. org/starlingx/ config/ commit/ 8b23b33d2ca127f cd43fef019ccdbc c500ff0d08
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8b23b33d2ca127f cd43fef019ccdbc c500ff0d08
Author: Al Bailey <email address hidden>
Date: Tue Dec 13 20:01:23 2022 +0000
Reduce the number of partition DB updates
When the partition code receives a partition structure
from sysinv-agent, the fields are strings.
The database fields are integers, so the comparison
always considers the values to be mis-matched and attempts
to update the database.
This can cause stale 'size' values from the agent query
to overwrite the DB during a partition resize operation.
Test Plan:
PASS: create and update several partitions
PASS: verify that the 'PART update' log is not created
once for every partition when doing a partition update.
Closes-Bug: #1999586 a0efc5a6e549b16 14976f75f35
Signed-off-by: Al Bailey <email address hidden>
Change-Id: I3113e60a09951a