Skip to content

Instantly share code, notes, and snippets.

@aufi
Created February 4, 2022 13:19
Show Gist options
  • Save aufi/391ba715777d96b1e54dcdc9944cff5e to your computer and use it in GitHub Desktop.
Save aufi/391ba715777d96b1e54dcdc9944cff5e to your computer and use it in GitHub Desktop.
oc get plan plan1 | jq -r ".items[0] .status.migration.vms[0].pipeline"
[
{
"completed": "2022-01-19T12:34:34Z",
"description": "Initialize migration.",
"name": "Initialize",
"progress": {
"completed": 1,
"total": 1
},
"started": "2022-01-19T12:33:45Z"
},
{
"annotations": {
"unit": "MB"
},
"completed": "2022-01-19T12:39:39Z",
"description": "Transfer disks.",
"name": "DiskTransfer",
"phase": "Pending",
"progress": {
"completed": 8192,
"total": 8192
},
"reason": "Bound",
"started": "2022-01-19T12:36:36Z",
"tasks": [
{
"annotations": {
"unit": "MB"
},
"completed": "2022-01-19T12:39:39Z",
"name": "[datastore13] maufart-centos-13/maufart-centos-13.vmdk",
"phase": "Completed",
"progress": {
"completed": 8192,
"total": 8192
},
"reason": "Bound",
"started": "2022-01-19T12:36:36Z"
}
]
},
{
"completed": "2022-01-19T12:43:16Z",
"description": "Convert image to kubevirt.",
"name": "ImageConversion",
"progress": {
"completed": 1,
"total": 1
},
"started": "2022-01-19T12:39:46Z"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment