You can check the status of the migration after any phase using the following status
CLI command.
$ python3 vm_cn_migration.py status -h usage: vm_cn_migration.py status [-h] [-o {json}] [input_file] Get migration status of appliance(s) positional arguments: input_file specify input file containing TCA manager and TCA-CP details as a filter. If specified, only those appliance status details are shown options: -h, --help show this help message and exit -o {json}, --output-format{json} formats status
You can see the status of all the appliance which are migrated, in the format of a table as shown in the following example:
|
||||||
---|---|---|---|---|---|---|
|
||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
You can filter specific VM or specific topology using the input file filter. The Input file format is same as specified in the Fill Template File Details section.
Status CLI filter:
python3 vm_cn_migration.py status input.json
You can format the status in JSON using
status CLI json
command as shown in the following example:
python3 vm_cn_migration.py status -o json
Output:
$ python3 vm_cn_migration.py status -o json {'VM_1.2.3.4 ': {'deploy': 'success', 'reason': ''}, 'VM_tcacp-h0313.example.com': {'deploy': 'success', 'migrate': 'failed', 'reason': 'Failed to migrate as unable to power on new VM failed.'}}