The prestage release can be either the previous or current release for
a subcloud. Checking the prestage release individually on thousands of
subclouds is impractical. Therefore, a new column called "prestage
versions" is added to the output of the "dcmanager subcloud list'
command. Besides, decoupling prestage status from deploy status.
This commit also introduces the following changes:
- 'backup datetime' column removal and addition of 'prestage status'
column to 'dcmanager subcloud list' output.
- 'dcmanager subcloud show' and similar commands now display 'prestage
status' and 'prestage versions' columns in their output.
- New '-d/--detail' option is added to 'dcmanager subcloud list' to
display all columns of the subclouds.
- '-c/--column' option of 'dcmanager subcloud list' can be used to
specify the column(s) of the subclouds. eg. -c column1 -c column2 ...
Test plan:
PASS: Verify the correct "prestage status" and "prestage versions"
output of the "dcmanager subcloud list" command.
PASS: Verify the correct output of the new arguments -d/--detail and
-c/--column.
Depends-On: https://review.opendev.org/c/starlingx/distcloud/+/904541
Story: 2010611
Task: 49369
Change-Id: I8d127220fcd705dca542afeca2ac8f19f20172a1
Signed-off-by: lzhu1 <li.zhu@windriver.com>