StarlingX System Configuration Management
Go to file
Heitor Matsui 360f48cd48 Add --local option to load-import
Currently, load-import uploads .iso and .sig to sysinv-api, which
may be a very slow operation that may cause sysinv-api timeouts,
specially with larger iso sizes.

This commit adds a new --local option that instructs the client
to bypass the step that transfers the load via sysinv-api, instead
sending the .iso and .sig absolute paths on the active controller
filesystem so that conductor uses this information to import the
load locally.

Test Plan
PASS: import the load with --local option and verify:
      - Load information is populated on /var/www/pages/feed
      - Load is updated on the database to importing -> imported
PASS: import the load with --local option passing an invalid file
      format and verify:
      - load-import returns "signature could not be verified" error
      - Conductor logs "signature could not be verified" error
PASS: import the load with --local option passing an invalid file
      path and verify:
      - load-import returns "file not found" error
PASS: import the load with --local option and upgrade AIO-DX
PASS: import the load with --local option on systemcontroller
      and verify load uploaded to /var/www/pages/feed and
      /opt/dc-vault/loads

Regression
PASS: import the load without --local option and verify:
      - Load information is populated on /var/www/pages/feed
      - Load is updated on the database to importing -> imported
PASS: import the load without --local option passing an invalid file
      format and verify:
      - load-import returns "signature could not be verified" error
      - Conductor logs "signature could not be verified" error
PASS: import the load without --local option passing an invalid file
      path and verify:
      - load-import returns "file not found" error

Story: 2009303
Task: 45886

Relates-To: https://review.opendev.org/c/starlingx/distcloud/+/851616

Change-Id: I1fde3799e3eba8cb772c8e01b0b225d8539e1311
Signed-off-by: Heitor Matsui <HeitorVieira.Matsui@windriver.com>
2022-08-01 15:58:17 -03:00
api-ref/source Add runtime reconfiguration of kubelet 2022-06-09 17:59:35 -04:00
config-gate debian: Fix config-gate packaging 2022-03-08 20:19:15 +00:00
controllerconfig Debian - Fix update ca certs command 2022-07-15 17:49:57 -04:00
devstack Remove host hardware sysinv profile 2021-10-18 18:01:40 -03:00
doc Fix tox-docs failing sphinx 2022-05-31 13:56:30 +00:00
releasenotes Remove host hardware sysinv profile 2021-10-18 18:01:40 -03:00
storageconfig Add debian packaging directory for storageconfig 2021-10-18 10:05:38 -03:00
sysinv Add --local option to load-import 2022-08-01 15:58:17 -03:00
tmp/patch-scripts/EXAMPLE_SYSINV/scripts StarlingX open source release updates 2018-05-31 07:35:52 -07:00
tools/docker/images Enable kubernetes SCTPSupport feature 2019-09-03 19:23:05 +00:00
tsconfig apply feature-gate update during upgrade-activate 2022-06-19 08:02:04 +00:00
workerconfig Add debian packaging directory for workerconfig 2021-09-28 09:51:54 -04:00
.gitignore Minor zuul and tox file cleanup after manifest re-org 2019-09-06 15:40:37 -05:00
.gitreview OpenDev Migration Patch 2019-04-19 19:52:42 +00:00
.yamllint clear yamllint errors under stx-config 2018-09-12 21:11:57 +08:00
.zuul.yaml Cleanup tox for python3.9 jobs 2022-03-25 20:32:09 +00:00
bindep.txt py3: Add py39 gate for sysinv 2021-08-27 08:39:06 -04:00
centos_build_layer.cfg Build layering, add layer build config file 2019-10-15 12:29:05 +08:00
centos_dev_wheels.inc Config file changes to add 'tsconfig' after relocation from 'update' 2019-09-05 11:51:05 -04:00
centos_helm.inc Infrastructure and Cluster Monitoring 2019-08-21 17:19:54 -04:00
centos_iso_image.inc Add cert-alarm service 2021-07-22 08:29:23 -04:00
centos_pkg_dirs Add cert-alarm service 2021-07-22 08:29:23 -04:00
centos_pkg_dirs_containers Config file changes for packages relocated to repo 'openstack-armada-app' 2019-09-05 10:42:00 -04:00
centos_stable_wheels.inc Config file changes to add 'tsconfig' after relocation from 'update' 2019-09-05 11:51:05 -04:00
CONTRIBUTORS.wrs StarlingX open source release updates 2018-05-31 07:35:52 -07:00
debian_build_layer.cfg Add debian_build_layer.cfg file 2021-10-05 14:50:08 -04:00
debian_iso_image.inc Add debian_iso_image.inc file 2021-11-04 09:07:23 -04:00
debian_pkg_dirs Add missing packages that have debian directories. 2021-11-01 19:20:40 -04:00
debian_stable_wheels.inc debian: add tsconfig wheel to the build 2022-04-27 10:42:36 -04:00
LICENSE StarlingX open source release updates 2018-05-31 07:35:52 -07:00
README.rst StarlingX open source release updates 2018-05-31 07:35:52 -07:00
test-requirements.txt Calling an additional shell lint command from zuul 2021-06-03 17:35:50 -05:00
tox.ini Calling an additional shell lint command from zuul 2021-06-03 17:35:50 -05:00

stx-config

StarlingX Configuration Management