VirtualMachineManager
[source]¶Bases: octavia.compute.compute_base.ComputeBase
Compute implementation of virtual machines via nova.
attach_network_or_port
(compute_id, network_id=None, ip_address=None, port_id=None)[source]¶Attaching a port or a network to an existing amphora
Parameters: |
|
---|---|
Returns: | nova interface instance |
Raises: |
|
build
(name='amphora_name', amphora_flavor=None, image_id=None, image_tag=None, image_owner=None, key_name=None, sec_groups=None, network_ids=None, port_ids=None, config_drive_files=None, user_data=None, server_group_id=None, availability_zone=None)[source]¶Create a new virtual machine.
Parameters: |
|
---|---|
Raises: | ComputeBuildException – if nova failed to build virtual machine |
Returns: | UUID of amphora |
create_server_group
(name, policy)[source]¶Create a server group object
Parameters: |
|
---|---|
Raises: | Generic exception if the server group is not created |
Returns: | the server group object |
delete_server_group
(server_group_id)[source]¶Delete a server group object
Raises: | Generic exception if the server group is not deleted |
---|---|
Parameters: | server_group_id – the uuid of a server group |
detach_port
(compute_id, port_id)[source]¶Detaches a port from an existing amphora.
Parameters: |
|
---|---|
Returns: | None |
get_amphora
(compute_id, management_network_id=None)[source]¶Retrieve the information in nova of a virtual machine.
Parameters: |
|
---|---|
Returns: | an amphora object |
Returns: | fault message or None |
status
(compute_id)[source]¶Retrieve the status of a virtual machine.
Parameters: | compute_id – virtual machine UUID |
---|---|
Returns: | constant of amphora status |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.