Bases: object
This method creates a new image from a given instance.
It waits for this image to be in ‘active’ state before returning. It returns the unique UUID of the created image if successful, None otherwise.
Parameters: |
|
---|
This method creates a new instance
It also creates, if requested, a new floating IP and associates it with the new instance It returns the unique id of the created instance.
This method deletes a given instance.
Parameters: | instance_id – the unique id of the instance to delete. |
---|
This method returns the unique id of the provided network name
This method does a live migration of a given instance
This method uses the Nova built-in live_migrate() action to do a live migration of a given instance.
It returns True if the migration was successful, False otherwise.
Parameters: |
|
---|
This method stops a given instance.
Parameters: | instance_id – the unique id of the instance to stop. |
---|
Waits for server to be in a specific state
The state can be one of the following : active, stopped
Parameters: |
|
---|
Waits for instance to be in a specific status
The status can be one of the following : BUILD, ACTIVE, ERROR, VERIFY_RESIZE, SHUTOFF
Parameters: |
|
---|
Wait until volume reaches given status.
Parameters: |
|
---|
This method migrates a given instance
using an image of this instance and creating a new instance from this image. It saves some configuration information about the original instance : security group, list of networks, list of attached volumes, floating IP, ... in order to apply the same settings to the new instance. At the end of the process the original instance is deleted. It returns True if the migration was successful, False otherwise.
Parameters: |
|
---|