The watcher.decision_engine.model.collector.cinder Module

The watcher.decision_engine.model.collector.cinder Module

class watcher.decision_engine.model.collector.cinder.CinderClusterDataModelCollector(config, osc=None)[source]

Bases: watcher.decision_engine.model.collector.base.BaseClusterDataModelCollector

Cinder cluster data model collector

The Cinder cluster data model collector creates an in-memory representation of the resources exposed by the storage service.

execute()[source]

Build the storage cluster data model

get_audit_scope_handler(audit_scope)[source]
class watcher.decision_engine.model.collector.cinder.ModelBuilder(osc)[source]

Bases: object

Build the graph-based model

This model builder adds the following data” - Storage-related knowledge (Cinder)

add_storage_node(node)[source]
add_storage_pool(pool)[source]
build_storage_node(node)[source]

Build a storage node from a Cinder storage node

Parameters:node (Service) – A storage node
execute()[source]

Instantiates the graph with the openstack cluster data.

The graph is populated along 2 layers: virtual and physical. As each new layer is built connections are made back to previous layers.

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.