[tripleo-common] Select Roles workflow
Provide a workflow which is takes a list of role names as input and populates roles_data.yaml in container in Swift with respective roles from 'roles directory'
input: container, array of role names
1) validate that all roles specified as input exist in roles directory
2) for each role name from the input, check if it exists in roles_data.yaml, if yes, use that role definition, if not, get the role definition from roles directory. Use the gathered roles definitions as input to updateRolesWorkflow - this ensures, that configuration of the roles which are already in roles_data.yaml won't get overridden by data from roles directory
3) run updateRolesAction
output: output of updateRolesAction
Blueprint information
- Status:
- Complete
- Approver:
- Emilien Macchi
- Priority:
- Medium
- Drafter:
- Jiri Tomasek
- Direction:
- Approved
- Assignee:
- Ryan Brady
- Definition:
- Approved
- Series goal:
- Accepted for queens
- Implementation:
-
Implemented
- Milestone target:
-
queens-rc1
- Started by
- Brad P. Crochet
- 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.
Omitting step 1 from this workflow based on the following conversation:
<rbrady> step 1: validate that all roles specified as input exist in roles directory
<jtomasek> hi, yes
<rbrady> is covered by step 1 in the update roles workflow
<rbrady> https:/
<rbrady> I would be running the same validation twice
<jtomasek> yes, makes sense, you don't need to run it there explicitly. although you'll probably hit that issue in step 2 if that occurs anyway
<jtomasek> (before even getting to 3 where it would get validated)
Gerrit topic: https:/
Addressed by: https:/
Adds Workflow to List Available Roles
Addressed by: https:/
Adds UpdateRoles Workflow
Addressed by: https:/
Select Roles Workflow
Addressed by: https:/
Validate roles data and network data
Addressed by: https:/
Add a Get Networks workflow
Addressed by: https:/
Add UpdateNetworks workflow
Work Items
Dependency tree

* Blueprints in grey have been implemented.