update/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
..
debian Improve logging for deploy start shell scripts 2024-02-28 11:07:03 -03:00
scripts Merge "Improve logging for deploy python scripts" 2024-02-29 13:54:56 +00:00
service-files Create message class to sync deploy state between controllers 2024-02-16 15:51:49 +00:00
software Deploy host-list implementation 2024-03-06 11:10:29 -03:00
.coveragerc Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
Hacking.rst Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
LICENSE Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
README.rst Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
pylint.rc Add version to software-api and software client 2024-02-08 04:23:29 -05:00
requirements.txt Add version to software-api and software client 2024-02-08 04:23:29 -05:00
setup.cfg deploy state changed update 2024-02-23 13:43:09 +00:00
setup.py Bash completion for USM 2023-08-03 16:21:00 +00:00
test-requirements.txt Upload skeleton for unified software management 2023-04-03 14:03:04 +00:00
tox.ini update tox ignore list to skip H904 2023-10-18 17:14:49 +00:00

README.rst

software

StarlingX Unified Software Delivery and Management