octavia.compute.drivers.noop_driver package

octavia.compute.drivers.noop_driver package

Submodules

octavia.compute.drivers.noop_driver.driver module

class NoopComputeDriver[source]

Bases: octavia.compute.compute_base.ComputeBase

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, config_drive_files=None, user_data=None, port_ids=None, server_group_id=None)[source]

Build a new amphora.

Parameters:
  • name – Optional name for Amphora
  • amphora_flavor – Optionally specify a flavor
  • image_id – ID of the base image for the amphora instance
  • image_tag – tag of the base image for the amphora instance
  • key_name – Optionally specify a keypair
  • sec_groups – Optionally specify list of security groups
  • network_ids – A list of network IDs to attach to the amphora
  • config_drive_files – An optional dict of files to overwrite on the server upon boot. Keys are file names (i.e. /etc/passwd) and values are the file contents (either as a string or as a file-like object). A maximum of five entries is allowed, and each file must be 10k or less.
  • user_data – Optional user data to pass to be exposed by the metadata server this can be a file type object as well or a string
  • server_group_id – Optional server group id(uuid) which is used for anti_affinity feature
Raises:

ComputeBuildException – if compute failed to build amphora

Returns:

UUID of amphora

create_server_group(name, policy)[source]

Create a server group object

Parameters:
  • name – the name of the server group
  • policy – the policy of the server group
Returns:

the server group object

delete(compute_id)[source]

Delete the specified amphora

Parameters:compute_id – The id of the amphora to delete
delete_server_group(server_group_id)[source]

Delete a server group object

Parameters:server_group_id – the uuid of a server group
get_amphora(compute_id)[source]

Retrieve an amphora object

Parameters:compute_id – the id of the desired amphora
Returns:the amphora object
Returns:fault message or None
status(compute_id)[source]

Check whether the specified amphora is up

Parameters:compute_id – the ID of the desired amphora
Returns:The compute “status” response (“ONLINE” or “OFFLINE”)
class NoopManager[source]

Bases: object

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, config_drive_files=None, user_data=None, port_ids=None, server_group_id=None)[source]
create_server_group(name, policy)[source]
delete(compute_id)[source]
delete_server_group(server_group_id)[source]
get_amphora(compute_id)[source]
status(compute_id)[source]

Module contents

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.