[tripleo-common] UpdateRoles workflow
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:
- queens-rc1
- Started by
- Julie Pichon
- Completed by
- Emilien Macchi
Related branches
Related bugs
Sprints
Whiteboard
[2017-12-11] Moving back to Queens per ML http://
[2017-12-08] Moving out to Rocky. Please request FFE if this is needed for Queens.
Gerrit topic: https:/
Addressed by: https:/
[WIP] Adds UpdateRoles Workflow
[jpichon 2017.11.16] Setting status to "Started" as there is a WIP patch proposed
Gerrit topic: https:/
Addressed by: https:/
Adds Workflow to List Available Roles
Addressed by: https:/
Validate roles data and network data
Addressed by: https:/
Add a Get Networks workflow
Addressed by: https:/
Add UpdateNetworks workflow
Gerrit topic: https:/
Work Items
Dependency tree
* Blueprints in grey have been implemented.