Remove controllerfs available state check

If controllerfs logical volume size is resized, the state change
to "Available" happens in sysinv audit, which is run when a
final state of deploy activate is reached.

This commit removes the "available" state check after
lv update in activation script. This will help with
activate KPI as it will reduce retries for state change.

Test Plan:
    Pass: Verify state check is skipped after lv update
          when activate script runs

Closes-Bug: 2120362
Change-Id: I6df53f9e984afa84b1aef506090a1289e69d85cb
Signed-off-by: sshathee <shunmugam.shatheesh@windriver.com>
This commit is contained in:
sshathee
2025-08-21 06:34:15 -04:00
parent cc853b8d32
commit 740f1ebd1a
@@ -83,12 +83,12 @@ function resize_platform_controllerfs {
system controllerfs-modify platform=$EXPANDED_PLATFORM_SIZE
for RETRY in $(seq $RESIZE_CHECK_MAX_RETRIES); do
log "Retry $RETRY of $RESIZE_CHECK_MAX_RETRIES, checking if platform filesystem is resized and available..."
log "Retry $RETRY of $RESIZE_CHECK_MAX_RETRIES, checking if platform filesystem is resized..."
OUTPUT=$(system controllerfs-list --column name --column size --column state | grep platform)
_CURRENT_PLATFORM_SIZE=$(echo $OUTPUT | awk '{ print $4; }')
_CURRENT_PLATFORM_STATE=$(echo $OUTPUT | awk -F"'" '{ print $4 }')
log "Current platform fs size/state: ${_CURRENT_PLATFORM_SIZE}/${_CURRENT_PLATFORM_STATE}"
if [[ ($_CURRENT_PLATFORM_SIZE -eq $EXPANDED_PLATFORM_SIZE) && ($_CURRENT_PLATFORM_STATE == "available") ]]; then
if [[ ($_CURRENT_PLATFORM_SIZE -eq $EXPANDED_PLATFORM_SIZE) ]]; then
return 0
fi
# if current size is less than the expanded size, retry the resize command