Bases: oca.pool.PoolElement
allocates a virtual machine description from the given template string
Arguments
Cancels a running VM
Deletes current object from the pool
initiates the instance of the given vmid on the target host
Arguments
Deletes a VM from the pool and DB
Sets a VM to hold state, scheduler will not deploy it
live migrates virtual machine to the target host
Arguments
migrates virtual machine to the target host
Arguments
Retrives object which id equals `id`.
Arguments
Releases a VM from hold state
Resubmits the VM after failure
Redeploy the VM.
Resumes the execution of a saved VM
Sets the disk to be saved in the given image
Arguments
Short string representation of virtual machine LCM state. One of: init, prol, boot, runn, migr, save, save, save, migr, prol, epil, shut, shut, fail, dele, unkn
Short string representation of virtual machine state. One of: init, pend, hold, actv, stop, susp, done, fail
Shutdowns an already deployed VM
Stops a running VM
String representation of virtual machine LCM state. One of: LCM_INIT, PROLOG, BOOT, RUNNING, MIGRATE, SAVE_STOP, SAVE_SUSPEND, SAVE_MIGRATE, PROLOG_MIGRATE, PROLOG_RESUME, EPILOG_STOP, EPILOG, SHUTDOWN, CANCEL, FAILURE, DELETE, UNKNOWN
String representation of virtual machine state. One of: INIT, PENDING, HOLD, ACTIVE, STOPPED, SUSPENDED, DONE, FAILED
Saves a running VM
Bases: oca.pool.Pool
Retrives/Refreshes virtual machine pool information
vm_state
VM state to filter by.
- -2 Any state, including DONE
- -1 Any state, except DONE (Defualt)
- 0 INIT
- 1 PENDING
- 2 HOLD
- 3 ACTIVE
- 4 STOPPED
- 5 SUSPENDED
- 6 DONE
- 7 FAILED