software-controller and sw-patch-controller both arbitrarily perform
repo rsync from the active controller. This operation deletes the newly
created to-release repo during a DX major release deploy, as the
to-release is first deployed to the standby controller.
This change applies the same change to both services, to verify that the
active controller is actually running the same sw-version before
performing rsync.
This change works together with [1]
TCs:
passed: on a DX system, upgrade from 22.12 to 24.09 then patch to
24.09 with success
Story: 2010676
Task: 51516
[1] https://review.opendev.org/c/starlingx/update/+/938409
Change-Id: I952d1633387512ccdc40dcbc8c062cbe8efedcd6
Signed-off-by: Bin Qian <bin.qian@windriver.com>