Add wait support to more commands #72
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Several more CLI (and API) commands would benefit from a
--wait
flag to block them until the task is complete.Off-hand some examples:
pvc vm shutdown
/pvc vm restart
(wait until out ofshutdown
state)pvc vm migrate
/pvc vm move
/pvc vm unmigrate
(wait until out ofmigrate
state)pvc node primary
/pvc node secondary
(wait until new primary is established; might be tricky as this is not relayed)changed milestone to %1
changed the description
changed milestone to %2
mentioned in commit
78780039de
mentioned in commit
45040a5635
mentioned in commit
07577a52a9
mentioned in commit
99f579e41a
Implemented the first two options; the third will require more work, investigating.
mentioned in commit
0aefafa7f7
mentioned in commit
8678dedfea
Option 3 on the API side turned out to not be possible, since the API terminates during the state transition. It might be possible to implement as a client-only function.
Option 3 might work better if the domain state was set to "transitioning" on the primary node during the cutover; would be a bit more complex but provide better visibility into the state on both sides of the API switchover.
Flow would be something like:
mentioned in commit
d2a5fe59c0
closed via commit
39ce704969