![]() This commit creates a class to wrap the main subprocess commands used by USM, that are 'run', 'check_output' and 'check_call' so that their returned information is logged into a json file. The purpose of this file is to enable each deployment history to be recovered in an easier way on the future. The json files are stored inside directories named under the corresponding release, and have a file named under the deployment stage in which the object was instantiated, e.g.: /opt/software/summary/starlingx_24.03.0/deploy_precheck.json These files can grow incrementally in case multiple commands are executed under the same deployment stage. The wrapper functions have the same name as the ones from the 'subprocess' library and behave exactly the same way. The subprocess functions used on the code currenly will be replaced by a follow-up commit. Test Plan PASS: manually replace subprocess functions on USM code, run the respective commands and verify: - Command is executed successfully - Output and behavior is maintained - The json file is created with the expected directory, filename and content Story: 2010676 Task: 48955 Change-Id: Iccf1aef1b0cc064399163eeb58c23fa065a6dab5 Signed-off-by: Heitor Matsui <heitorvieira.matsui@windriver.com> |
||
---|---|---|
api-ref/source | ||
apt-ostree/debian | ||
cgcs-patch | ||
devstack | ||
doc | ||
enable-dev-patch | ||
extras/scripts | ||
patch-alarm | ||
patch-boot-args | ||
patch-scripts | ||
releasenotes | ||
software | ||
software-client | ||
sw-patch | ||
.gitignore | ||
.gitreview | ||
.zuul.yaml | ||
CONTRIBUTORS.wrs | ||
LICENSE | ||
README.rst | ||
bindep.txt | ||
centos_build_layer.cfg | ||
centos_dev_wheels.inc | ||
centos_iso_image.inc | ||
centos_pkg_dirs | ||
centos_stable_wheels.inc | ||
debian_build_layer.cfg | ||
debian_iso_image.inc | ||
debian_pkg_dirs | ||
debian_stable_wheels.inc | ||
pylint.rc | ||
requirements.txt | ||
test-requirements.txt | ||
tox.ini |
README.rst
stx-update
StarlingX Software Management