distcloud/distributedcloud
Victor Romano 6b7b012992 Add the subcloud deploy config option to dcmanager
This commit adds the command "subcloud deploy config" to dcmanager.
It provides similar options as dcmanager subcloud reconfig. However,
the --deploy-config file is optional if it has been provided previously
via subcloud deploy config or subcloud deploy create command.

Test Plan:
  Success cases:
  - PASS: Bootstrap a subcloud then issue "dcmanager subcloud deploy
          config" command with --deploy-config option to apply initial
          config. Verify that the subcloud is successfully configured.
  - PASS: Create a deploy config using dcmanager subcloud deploy create
          with --deploy-config option. Install and bootstrap the
          subcloud then config the subcloud using dcmanger subcloud
          deploy config with --deploy-config option. Verify that the
          subcloud is successfully configured with config options
          provided last.
  - PASS: Bootstrap a subcloud then issue "dcmanager subcloud deploy
          config" command with --deploy-config option to apply an
          erroneous config. Verify that the subcloud fails to be
          configured. Repeat the command this time with a good config
          file and verify that the subcloud is successfully configured.
  - PASS: Apply config passing deploy_config file for a subcloud
          running a previous release (21.12) and verify that
          the subcloud was successfully configured.
  - PASS: Create a subcloud deploy with --deploy-config option,
          install and bootstrap the subcloud then issue "dcmanager
          subcloud deploy config" command without --deploy-config
          option. Verify that the subcloud is successfully configured.
  - PASS: Repeat previous tests but directly call the API (using
          CURL) instead of using the CLI.
  Failure cases:
  - PASS: Verify that it's not possible to run the config if deploy
          state is not 'complete', 'pre-config-failed', 'config-failed',
          'deploy-failed', 'bootstrapped' or in a prestaging state.
          ('deploy-failed' will be removed once 'subcloud reconfig'
           is deprecated)
  - PASS: Verify that it's not possible to run "dcmanager subcloud
          deploy config" command without providing a deploy config file
          if this has never been provided before.
  - PASS: Verify that it's not possible to run the config without
          previously uploading deploy files.
  - PASS: Verify that it's not possible to configure without
          passing the 'sysadmin-password' parameter (using CURL,
          since the CLI will prompt for the password if it's
          omited)
  - PASS: Call the API directly, passing sysadmin-password as plain
          text as opposed to b64encoded and verify that the response
          contains the correct error code and message.

Story: 2010756
Task: 48022

Signed-off-by: Victor Romano <victor.gluzromano@windriver.com>
Change-Id: I65e1cbea1879d49066c2add69cabd04e64216b8f
2023-06-26 15:12:38 -03:00
..
centos Migrate distributedcloud .deb from dl_hooks 2023-01-13 15:46:06 +00:00
dccommon Add extra_boot_params install value for subcloud installs 2023-06-09 12:46:38 -04:00
dcdbsync Implement access control for DC API 2022-09-22 18:26:35 -03:00
dcmanager Add the subcloud deploy config option to dcmanager 2023-06-26 15:12:38 -03:00
dcorch Merge "Update endpoint caches post network reconfig" 2023-03-15 14:47:27 +00:00
debian Update debian package versions to use git commits 2023-02-10 09:05:15 -08:00
etc Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
files Migrate distributedcloud .deb from dl_hooks 2023-01-13 15:46:06 +00:00
ocf Refactor portion of dcmanager into dcmanager-state process 2022-01-27 16:33:41 -05:00
.coveragerc Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
.coveragerc_xml Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
.testr.conf Fix unit test parallelization issues 2021-09-14 10:42:56 -05:00
LICENSE Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
MANIFEST.in Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
README.rst Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
__init__.py Implement the state for Simplex Upgrade 2020-06-19 17:09:07 -04:00
babel.cfg Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
pylint.rc Make Tox compatible to Debian Python3.9 Environment 2022-07-28 12:48:25 -04:00
requirements.txt Adding retries during upgrade complete state 2021-11-25 09:59:37 -06:00
setup.cfg Refactor portion of dcmanager into dcmanager-state process 2022-01-27 16:33:41 -05:00
setup.py Move content to subdir to support relocated packaging 2019-11-04 13:57:02 -05:00
test-requirements-debian.txt Make Tox compatible to Debian Python3.9 Environment 2022-07-28 12:48:25 -04:00
test-requirements.txt Adding retries during upgrade complete state 2021-11-25 09:59:37 -06:00
tox.ini Update tox.ini to point to correct patching code 2023-04-05 14:15:24 +00:00

README.rst

DistributedCloud

Wind River's Distributed Cloud system supports an edge computing solution by providing central management and orchestration for a geographically distributed network of Titanium Cloud systems.