During an upgrade from Rel. 7 to Rel. 8 the upgrade-activate failed
and after some time it was executed again. In the second
upgrade-activate execution, the update_platform_nfs_ip_references
was called again, but it failed because plat_nfs_ip was empty.
It happened because this function was already executed once and at
the end of it the plat_nfs_ip is removed from system.yaml
So if this variable is empty, it means that upgrade-activate was
called again and there is nothing to do.
Test plan
PASS AIO-DX upgrade from Rel 7 to 8
PASS manual change in this function changing the plat_nfs_ip
value to: $plat_nfs_ip = undef $plat_nfs_ip = ''
And executing the upgrade-activate and confirm that
commands were not executed
Reviewed: https:/ /review. opendev. org/c/starlingx /stx-puppet/ +/879684 /opendev. org/starlingx/ stx-puppet/ commit/ 27f08b3e31e9352 67a83cf643a7b92 4383982e79
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 27f08b3e31e9352 67a83cf643a7b92 4383982e79
Author: Fabiano Mercer <email address hidden>
Date: Wed Apr 5 17:04:41 2023 -0300
Ignore platform_nfs cmds if plat_nfs_ip is empty
During an upgrade from Rel. 7 to Rel. 8 the upgrade-activate failed activate execution, the update_ platform_ nfs_ip_ references
and after some time it was executed again. In the second
upgrade-
was called again, but it failed because plat_nfs_ip was empty.
It happened because this function was already executed once and at
the end of it the plat_nfs_ip is removed from system.yaml
So if this variable is empty, it means that upgrade-activate was
called again and there is nothing to do.
Test plan
$plat_ nfs_ip = undef
$plat_ nfs_ip = ''
PASS AIO-DX upgrade from Rel 7 to 8
PASS manual change in this function changing the plat_nfs_ip
value to:
And executing the upgrade-activate and confirm that
commands were not executed
Partial-Bug: #2015392
Signed-off-by: Fabiano Mercer <email address hidden> d88125daf1195e8 ac14b104e17
Change-Id: I1e9a9e31ab33b1