[tripleo-common] Enhance List Roles action to provide full contents

Registered by Jiri Tomasek

Enhance existing ListRolesAction which lists roles currently selected for deployment by reaching to deployment plan for roles_data.yaml object to optionally include entire contents of each role rather than just role names.

input: { container: <planName>, detail: true }
output:
[
  {
    name: 'BlockStorage',
    description: 'Cinder Block Storage node role',
    networks: ['InternalApi', 'Storage', 'StorageMgmt'],
    servicesDefault: [ 'OS::TripleO::Services::AuditD', ... ],
    ...
  },
   ...
]

This action differs from ListAvailableRolesAction by reaching to roles_data.yaml rather than to 'roles directory' in Swift container.
'roles directory' - roles available for use in deployment
'roles_data.yaml' - roles which are selected to be used for deployment. Any changes to roles configuration is stored here (e.g. networks assignment). That is why we need to duplicate the data.

Blueprint information

Status:
Complete
Approver:
Emilien Macchi
Priority:
High
Drafter:
Jiri Tomasek
Direction:
Approved
Assignee:
Ryan Brady
Definition:
Approved
Series goal:
Accepted for queens
Implementation:
Implemented
Milestone target:
milestone icon queens-2
Started by
Julie Pichon
Completed by
Julie Pichon

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.openstack.org/#q,topic:bp/tripleo-common-enhance-list-roles-action,n,z

Addressed by: https://review.openstack.org/508514
    [WIP] Enhances Roles List

[jpichon 2017.11.10] The linked review seems to have merged, updating status to Implemented.

(?)

Work Items

Dependency tree

* Blueprints in grey have been implemented.

This blueprint contains Public information 
Everyone can see this information.