VirtualMachineManager[source]¶Bases: octavia.compute.compute_base.ComputeBase
Compute implementation of virtual machines via nova.
attach_network_or_port(compute_id, network_id, ip_address=None, port_id=None)[source]¶Attaching a port or a network to an existing amphora
| Parameters: |
|
|---|---|
| Returns: | nova interface instance |
| Raises: | Exception |
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)[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)[source]¶Retrieve the information in nova of a virtual machine.
| Parameters: | amphora_id – virtual machine UUID |
|---|---|
| Returns: | an amphora object |
| Returns: | fault message or None |
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.