Openstack implementation of the cluster graph.
-
class
watcher.decision_engine.model.model_root.
ModelRoot
(stale=False)[source]
Bases: networkx.classes.digraph.DiGraph
, watcher.decision_engine.model.base.Model
Cluster graph for an Openstack cluster.
-
add_instance
(*args, **kwargs)[source]
-
add_node
(*args, **kwargs)[source]
-
static
assert_instance
(obj)[source]
-
static
assert_node
(obj)[source]
-
delete_instance
(instance, node=None)[source]
-
classmethod
from_xml
(data)[source]
-
get_all_compute_nodes
(*args, **kwargs)[source]
-
get_all_instances
(*args, **kwargs)[source]
-
get_instance_by_uuid
(*args, **kwargs)[source]
-
get_node_by_instance_uuid
(*args, **kwargs)[source]
-
get_node_by_uuid
(*args, **kwargs)[source]
-
get_node_instances
(*args, **kwargs)[source]
-
classmethod
is_isomorphic
(G1, G2)[source]
-
map_instance
(*args, **kwargs)[source]
Map a newly created instance to a node
-
migrate_instance
(*args, **kwargs)[source]
Migrate single instance from source_node to destination_node
Parameters: |
- instance –
- source_node –
- destination_node –
|
Returns: |
|
-
remove_instance
(*args, **kwargs)[source]
-
remove_node
(*args, **kwargs)[source]
-
to_string
()[source]
-
to_xml
()[source]
-
unmap_instance
(*args, **kwargs)[source]
-
class
watcher.decision_engine.model.model_root.
StorageModelRoot
(stale=False)[source]
Bases: networkx.classes.digraph.DiGraph
, watcher.decision_engine.model.base.Model
Cluster graph for an Openstack cluster.
-
add_node
(*args, **kwargs)[source]
-
add_pool
(*args, **kwargs)[source]
-
add_volume
(*args, **kwargs)[source]
-
static
assert_node
(obj)[source]
-
static
assert_pool
(obj)[source]
-
static
assert_volume
(obj)[source]
-
delete_volume
(volume)[source]
-
classmethod
from_xml
(data)[source]
-
get_all_storage_nodes
(*args, **kwargs)[source]
-
get_all_volumes
(*args, **kwargs)[source]
-
get_node_by_name
(*args, **kwargs)[source]
Get a node by node name
-
get_node_by_pool_name
(*args, **kwargs)[source]
-
get_node_pools
(*args, **kwargs)[source]
-
get_pool_by_pool_name
(*args, **kwargs)[source]
-
get_pool_by_volume
(*args, **kwargs)[source]
-
get_pool_volumes
(*args, **kwargs)[source]
-
get_volume_by_uuid
(*args, **kwargs)[source]
-
classmethod
is_isomorphic
(G1, G2)[source]
-
map_pool
(*args, **kwargs)[source]
Map a newly created pool to a node
-
map_volume
(*args, **kwargs)[source]
Map a newly created volume to a pool
Parameters: |
- volume –
Volume object or volume UUID
- pool –
Pool object or pool name
|
-
remove_node
(*args, **kwargs)[source]
-
remove_pool
(*args, **kwargs)[source]
-
remove_volume
(*args, **kwargs)[source]
-
to_string
()[source]
-
to_xml
()[source]
-
unmap_pool
(*args, **kwargs)[source]
Unmap a pool from a node
-
unmap_volume
(*args, **kwargs)[source]
Unmap a volume from a pool
Parameters: |
- volume –
Volume object or volume UUID
- pool –
Pool object or pool name
|