1.1.1.1.1.1. yardstick.benchmark.contexts package

1.1.1.1.1.1.1. Submodules

1.1.1.1.1.1.2. yardstick.benchmark.contexts.base module

class yardstick.benchmark.contexts.base.Context[source]

Bases: object

Class that represents a context in the logical model

deploy()[source]

Deploy context.

static get(context_type)[source]

Returns instance of a context for context type.

static get_cls(context_type)[source]

Return class of specified type.

static get_server(attr_name)[source]

lookup server info by name from context attr_name: either a name for a server created by yardstick or a dict with attribute name mapping when using external heat templates

init(attrs)[source]

Initiate context.

list = []
undeploy()[source]

Undeploy context.

1.1.1.1.1.1.3. yardstick.benchmark.contexts.dummy module

class yardstick.benchmark.contexts.dummy.DummyContext[source]

Bases: yardstick.benchmark.contexts.base.Context

Class that handle dummy info

deploy()[source]

don’t need to deploy

init(attrs)[source]
undeploy()[source]

don’t need to undeploy

1.1.1.1.1.1.4. yardstick.benchmark.contexts.heat module

class yardstick.benchmark.contexts.heat.HeatContext[source]

Bases: yardstick.benchmark.contexts.base.Context

Class that represents a context in the logical model

deploy()[source]

deploys template into a stack using cloud

flavor

returns application’s default flavor name

image

returns application’s default image name

init(attrs)[source]

initializes itself from the supplied arguments

undeploy()[source]

undeploys stack from cloud

user

return login user name corresponding to image

1.1.1.1.1.1.5. yardstick.benchmark.contexts.model module

Logical model

class yardstick.benchmark.contexts.model.Network(name, context, attrs)[source]

Bases: yardstick.benchmark.contexts.model.Object

Class that represents a network in the logical model

static find_by_route_to(external_network)[source]

finds a network that has a route to the specified network

static find_external_network()[source]

return the name of an external network some network in this context has a route to

has_route_to(network_name)[source]

determines if this network has a route to the named network

list = []
class yardstick.benchmark.contexts.model.Object(name, context)[source]

Bases: object

Base class for classes in the logical model Contains common attributes and methods

dn

returns distinguished name for object

class yardstick.benchmark.contexts.model.PlacementGroup(name, context, policy)[source]

Bases: yardstick.benchmark.contexts.model.Object

Class that represents a placement group in the logical model Concept comes from the OVF specification. Policy should be one of “availability” or “affinity (there are more but they are not supported)”

add_member(name)[source]
static get(name)[source]
map = {}
class yardstick.benchmark.contexts.model.Router(name, network_name, context, external_gateway_info)[source]

Bases: yardstick.benchmark.contexts.model.Object

Class that represents a router in the logical model

class yardstick.benchmark.contexts.model.Server(name, context, attrs)[source]

Bases: yardstick.benchmark.contexts.model.Object

Class that represents a server in the logical model

add_to_template(template, networks, scheduler_hints=None)[source]

adds to the template one or more servers (instances)

flavor

returns a server’s flavor name

image

returns a server’s image name

list = []
yardstick.benchmark.contexts.model.update_scheduler_hints(scheduler_hints, added_servers, placement_group)[source]

update scheduler hints from server’s placement configuration TODO: this code is openstack specific and should move somewhere else

1.1.1.1.1.1.6. yardstick.benchmark.contexts.node module

class yardstick.benchmark.contexts.node.NodeContext[source]

Bases: yardstick.benchmark.contexts.base.Context

Class that handle nodes info

deploy()[source]

don’t need to deploy

init(attrs)[source]

initializes itself from the supplied arguments

undeploy()[source]

don’t need to undeploy

1.1.1.1.1.1.7. Module contents