Add support for USM local patch installation

Add support for installing a patch release to local host that is a
simplex or duplex system and fully installed. Installation should
support both locked or unlocked controller. This is similar to the
pre-bootstrap case, except that controller will have hostname,
networking etc. enabled.

This change will add a 'install-local' mode, that is enabled by
software command 'software install-local'. In this mode normal
software commands upload|start|deploy host|deploy activate|deploy
complete|deploy delete, can be used to install patch releases to
local controller.

The 'install-local' mode will be exited on successful completion of
'software deploy delete' or using 'software install-local --delete'

Test Plan:
PASS: Verify local patch deployment to SX in locked & unlocked mode
PASS: Verify local patch deployment to DX in locked & unlocked mode
PASS: Verify normal patch deployment in SX & DX

Story: 2010676
Task: 50612

Change-Id: I56674656dc9d5efbee7639459a8cea71fdaecf0f
Signed-off-by: Joseph Vazhappilly <joseph.vazhappillypaily@windriver.com>
This commit is contained in:
Joseph Vazhappilly
2024-07-16 00:49:59 -04:00
parent adba179af3
commit 1823f0c71e
9 changed files with 135 additions and 110 deletions

View File

@@ -26,6 +26,7 @@ class PatchService(object):
self.mcast_addr = None
self.socket_lock = None
self.pre_bootstrap = True
self.install_local = True
def update_config(self):
# Implemented in subclass