[tripleo-common] Select Roles workflow

Registered by Jiri Tomasek on 2017-09-15

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:
milestone icon queens-rc1
Started by
Brad P. Crochet on 2017-12-11
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.

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://blueprints.launchpad.net/tripleo/+spec/update-roles-action
<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://review.openstack.org/#q,topic:bp/tripleo-common-select-roles-workflow,n,z

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

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

Addressed by: https://review.openstack.org/528282
    Select Roles Workflow

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

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.