Add versioning to Magnum Templates

Registered by Jaycen Grant

Add a method to keep track of the current version of a template(Cluster or NodeGroup).

When a template-create is called the version will be set to 1.

An update command will increase the version number by 1. The previous version will be marked as obsolete.

A Cluster/NodeGroup create command that uses a template will always use the latest version available.

A delete Template command will mark the template for deletion. Once no active resources(Cluster/NodeGroups) that reference a template version exist the template versions will be removed from the database.

Template show and list commands will show the latest version only, unless a version is requested on show.

Additional details of this can be found in the following spec: https://review.openstack.org/392327

Blueprint information

Status:
Not started
Approver:
Adrian Otto
Priority:
Undefined
Drafter:
Jaycen Grant
Direction:
Approved
Assignee:
Jaycen Grant
Definition:
Discussion
Series goal:
None
Implementation:
Deferred
Milestone target:
None

Related branches

Sprints

Whiteboard

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

Addressed by: https://review.openstack.org/392327
    [WIP]Spec for adding template versions

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.