[tripleo-common] UpdateRoles workflow

Registered by Ana Krivokapić on 2017-03-13

Provide an UpdateRoles workflow to update Roles. It takes data in json format validates its contents and persists them in roles_data.yaml, after successful update, templates are regenerated.

input: containerName, [array of roles in json to update in json]

1) validate the format of input (verify that each role in input has the required attributes set. check README in roles directory in t-h-t), validate that roles in input exist in roles directory in t-h-t
2) validate that Network names assigned to Role exist in network-data.yaml object in Swift container
3) update roles_data.yaml object in Swift with roles from workflow input
4) regenerate templates
5) run ListRolesAction to get updated contents of roles_data.yaml and provide it as output

output: contents of roles_data.yaml in json format

Blueprint information

Status:
Complete
Approver:
Emilien Macchi
Priority:
Medium
Drafter:
Ana Krivokapić
Direction:
Approved
Assignee:
Ryan Brady
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-rc1
Started by
Julie Pichon on 2017-11-16
Completed by
Emilien Macchi on 2018-01-31

Related branches

Sprints

Whiteboard

[2017-12-11] Moving back to Queens per ML http://lists.openstack.org/pipermail/openstack-dev/2017-December/125394.html
[2017-12-08] Moving out to Rocky. Please request FFE if this is needed for Queens.

Gerrit topic: https://review.openstack.org/#q,topic:bp/update-roles-action,n,z

Addressed by: https://review.openstack.org/515045
    [WIP] Adds UpdateRoles Workflow

[jpichon 2017.11.16] Setting status to "Started" as there is a WIP patch proposed

Gerrit topic: https://review.openstack.org/#q,topic:bp/update-networks-action,n,z

Addressed by: https://review.openstack.org/509832
    Adds Workflow to List Available Roles

Addressed by: https://review.openstack.org/508567
    Validate roles data and network data

Addressed by: https://review.openstack.org/509419
    Add a Get Networks workflow

Addressed by: https://review.openstack.org/513463
    Add UpdateNetworks workflow

Gerrit topic: https://review.openstack.org/#q,topic:bp/tripleo-common-select-roles-workflow,n,z

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.