Define a tailored Scoper for each CDM

Registered by Vincent Françoise

As of now, we have a single CDM Scoper that is meant to work for all CDM plugins. However, we know that in real life, it's not possible to end up with the same structure for all of them since they can represent disjoint types of resources.

The object of this blueprint would be to:

- Change the audit_scope_handler property implemented in BaseStrategy
- Remove audit_scope_handler from the current BaseStrategy and move it within the CDM collector base as abstract
- Implement a default scope handler that does nothing and that can be used from within the CDM collector base
- Rename the DefaultScope as ComputeScope and override the audit_scope_handler property in the Compute Collector
- Make sure the API exposes a unified Audit Scope format
  -> Define a pluggable list of sections within the unified JSON schema
- ....

At the end each CDM collector would have its own CDMScoper but they should all be exposed as one big standardized JSON schema format so that if a strategy actually uses 2 or more CDMs, then the audit scope given can filter each CDM.

See http://eavesdrop.openstack.org/irclogs/%23openstack-watcher/%23openstack-watcher.2017-03-20.log.html#t2017-03-20T13:37:31

Blueprint information

Status:
Complete
Approver:
Alexander Chadin
Priority:
Medium
Drafter:
Vincent Françoise
Direction:
Approved
Assignee:
Hidekazu Nakamura
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-1
Started by
aditi sharma
Completed by
aditi sharma

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/cdm-scoping,n,z

Addressed by: https://review.openstack.org/482754
    [WIP] CDM Scoping

Addressed by: https://review.openstack.org/496092
    Add cdm-scoping spec

Addressed by: https://review.openstack.org/503171
    [WIP] Add cdm-scoping

Addressed by: https://review.openstack.org/516480
    Update doc and add release note about cdm-scoping

Addressed by: https://review.openstack.org/523296
    Update getting scoped storage CDM

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.