Due to the validation added on [1], the first attempt to resize
the platform controllerfs may now fail as the script will resize
backup host filesystems prior to resizing platform, thus forcing
subsequent fs resize commands to wait for the agent to report back
to conductor before allowing other filesystem resize commands.
This commit makes the script retry the controllerfs-modify command
during its validation phase if the platform size is different from
the resized size.
Also, because of the possible extra waiting time added until agents
report back, the sleep time during the platform fs validation phase
was bumped up.
Test Plan:
PASS: run upgrade-activate on Standard System Controller, verify
that script runs successfully and backup/platform filesystems
are resized accordingly
PASS: run upgrade-activate on AIO-DX System Controller, verify that
script runs successfully and backup/platform are resized accordingly
Reviewed: https:/ /review. opendev. org/c/starlingx /config/ +/842215 /opendev. org/starlingx/ config/ commit/ 5d36bedaa5f4c5a 28d0fbc079cc22b c437eb562e
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 5d36bedaa5f4c5a 28d0fbc079cc22b c437eb562e
Author: Heitor Matsui <email address hidden>
Date: Tue May 17 15:10:35 2022 -0300
Retry platform resize during upgrade-activate
Due to the validation added on [1], the first attempt to resize
the platform controllerfs may now fail as the script will resize
backup host filesystems prior to resizing platform, thus forcing
subsequent fs resize commands to wait for the agent to report back
to conductor before allowing other filesystem resize commands.
This commit makes the script retry the controllerfs-modify command
during its validation phase if the platform size is different from
the resized size.
Also, because of the possible extra waiting time added until agents
report back, the sleep time during the platform fs validation phase
was bumped up.
[1] https:/ /review. opendev. org/c/starlingx /config/ +/839384
Test Plan:
accordingly
PASS: run upgrade-activate on Standard System Controller, verify
that script runs successfully and backup/platform filesystems
are resized accordingly
PASS: run upgrade-activate on AIO-DX System Controller, verify that
script runs successfully and backup/platform are resized
Closes-bug: 1973817 490fdfd3c6b6866 1082e9dd102
Change-Id: I83dc7ce365d8cd
Signed-off-by: Heitor Matsui <email address hidden>