update/software/software
Luis Eduardo Bonatti 378e2010fe Deploy host-list implementation
This commit add some changes on deploy host-list.
Adds a function to query the hostnames from sysinv
to deploy host-list entities during deploy start.
Changes endpoint to GET verb, the endpoint return in case
of no deployment in progress it will an empty list
and at CLI will print "No deploy in progress." In case
there is a deployment in progress the CLI will behave
the same but the endpoint will return the data below:

[{'hostname': '<hostname>',
  'software_release': '<sw_version>',
  'target_release': '<sw_version>',
  'reboot_required': 'str<true/false>',
  'host_state': '<host_deploy_state>'}]

This commit also changes the wait_for_install_complete function
to follow the new state logic.

Note: Software deploy host is affected by this change related
to states and will need a future commit regarding state changes
during deploy start and deploy host itself.

Test Plan:
PASS: Software deploy host-list with/without deployment in progress.
PASS: Deploy_host creation/update/get/delete.
PASS: Collect hostnames to deploy host entities during deploy start.

Story: 2010676
Task: 49586

Change-Id: I7b03df30fd8e326637a3ffc031e0fdf543cb6356
Signed-off-by: Luis Eduardo Bonatti <LuizEduardo.Bonatti@windriver.com>
2024-03-06 11:10:29 -03:00
..
api Deploy host-list implementation 2024-03-06 11:10:29 -03:00
authapi Create 2nd thread to handle USM REST API requests 2024-03-01 14:39:33 +00:00
db Create 2nd thread to handle USM REST API requests 2024-03-01 14:39:33 +00:00
templates USM State Machine 2023-06-29 17:53:39 +00:00
tests Remove duplicate load import script copy 2024-02-28 17:38:51 -03:00
utilities Improve logging for deploy python scripts 2024-02-28 11:00:50 -03:00
__init__.py Package the pecan templates with the code 2023-07-17 15:33:45 +00:00
apt_utils.py Fix pep8 errors 2024-01-23 20:22:42 +00:00
base.py Update unit tests for new software component 2023-05-01 21:09:15 +00:00
certificates.py Setup controller and agent processes for "software" 2023-04-20 19:22:30 +00:00
config.py Use "apt-ostree" to manage software deploy start 2024-01-10 21:23:24 +00:00
constants.py Deploy host-list implementation 2024-03-06 11:10:29 -03:00
exceptions.py Create release_data wrapper classes 2024-02-14 18:35:35 +00:00
messages.py deploy state changed update 2024-02-23 13:43:09 +00:00
ostree_utils.py Add retry logic for mount 2023-11-29 21:09:06 +00:00
release_data.py Create release_data wrapper classes 2024-02-14 18:35:35 +00:00
release_signing.py Setup controller and agent processes for "software" 2023-04-20 19:22:30 +00:00
release_verify.py Setup controller and agent processes for "software" 2023-04-20 19:22:30 +00:00
software_agent.py Create message class to sync deploy state between controllers 2024-02-16 15:51:49 +00:00
software_controller.py Deploy host-list implementation 2024-03-06 11:10:29 -03:00
software_entities.py Deploy host-list implementation 2024-03-06 11:10:29 -03:00
software_functions.py Deploy host-list implementation 2024-03-06 11:10:29 -03:00
software_worker.py Create wrapper to run commands and log structured output 2023-11-24 16:26:07 -03:00
sysinv_utils.py Deploy host-list implementation 2024-03-06 11:10:29 -03:00
utils.py deploy state changed update 2024-02-23 13:43:09 +00:00