Add version support to schema and spec

Registered by Yanyan Hu on 2016-07-29

This blueprint is for adding version support to schema and spec. This function is for keeping backward compatible for policies and profiles with different versions.

Basic ideas:
1. Each property has support version scope specified using 'min_version' and 'max_version';
2. User specifies spec version by defining 'version' field in spec file as usual;
3. When creating profile/policy, spec validation method will check the available version scope of each property schema defined in profile/policy plugin and check whether spec version is in that scope. If not, that means user defines a property that is not supported in given version plugin. In this case, exception will be raised to fail the profile/policy creation and warning message will be sent back to user.

Blueprint information

Status:
Complete
Approver:
Qiming Teng
Priority:
High
Drafter:
Yanyan Hu
Direction:
Approved
Assignee:
Yanyan Hu
Definition:
Approved
Series goal:
Accepted for newton
Implementation:
Implemented
Milestone target:
None
Started by
Qiming Teng on 2016-08-01
Completed by
Qiming Teng on 2017-01-11

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/schema-spec-version-support,n,z

Addressed by: https://review.openstack.org/348709
    [WIP]Add version support to schema and spec

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.