From Fedora Project Wiki
No edit summary
Line 157: Line 157:


== Scope ==
== Scope ==
* Proposal owners:
=== Proposal owners ===
<!-- What work do the feature owners have to accomplish to complete the feature in time for release?  Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?-->


* Other developers: N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
Proposal owners shall have to:
<!-- What work do other developers have to accomplish to complete the feature in time for release?  Is it a large change affecting many parts of the distribution or is it a very isolated change? What are those changes?-->
* Determine what the "Engine" will be after evaluation and working with the Fedora RelEng and Infrastructure teams for advisement.
* Deploy RelEng Automation Workflow Engine
** Fully automated deployment in Fedora Infrastructure Ansible
* Document Workflow Automation
** How workflows are created
** How to run workflows
** How new contributors can get started


* Release engineering: N/A (not a System Wide Change)  <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
=== Task matrix ===
<!-- Does this feature require coordination with release engineering (e.g. changes to installer image generation or update package delivery)?  Is a mass rebuid required?  If a rel-eng ticket exists, add a link here.
Please work with releng prior to feature submission, and ensure that someone is on board to do any process development work and testing; don't just assume that a bullet point in a change puts someone else on the hook.-->
** [[Fedora_Program_Management/ReleaseBlocking/Fedora{{FedoraVersionNumber|next}}|List of deliverables]]: N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
<!-- Please check the list of Fedora release deliverables and list all the differences the feature brings -->


* Policies and guidelines: N/A (not a System Wide Change) <!-- REQUIRED FOR SYSTEM WIDE CHANGES -->
This is a [https://en.wikipedia.org/wiki/Responsibility_assignment_matrix RACI matrix] for tasks required to implement the [[Changes/ReleaseEngineeringAutomationWorkflowEngine|RelEng Automation Workflow Engine]]. Work is tracked in Taiga: http://taiga.cloud.fedoraproject.org/project/acarter-fedora-docker-atomic-tooling/wiki/home
<!-- Do the packaging guidelines or other documents need to be updated for this feature?  If so, does it need to happen before or after the implementation is done?  If a FPC ticket exists, add a link here. -->


* Trademark approval: N/A (not needed for this Change)
 
<!-- If your Change may require trademark approval (for example, if it is a new Spin), file a ticket ( https://fedorahosted.org/council/ ) requesting trademark approval from the Fedora Council. This approval will be done via the Council's consensus-based process. -->
==== Is this current? ====
 
It is, as of <!-- this is an automatic macro — you don't need to change this line -->  {{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}
 
==== Definitions ====
 
Here, we're using what Wikipedia calls "[https://en.wikipedia.org/wiki/Responsibility_assignment_matrix#RACI_.28alternative_scheme.29 RACI (alternative scheme)]":
 
 
:; ''Responsible''
:: The person responsible for the performance of the task. There should be exactly one person with this assignment for each task.
 
:; ''Assists''
:: Those who assist completion of the task.
 
:; ''Consulted''
:: Those whose opinions are sought; and with whom there is two-way communication.
 
:; ''Informed''
:: Those who are kept up-to-date on progress; and with whom there is one-way communication.
 
== Task Table ==
{{admon/note|This an early cut. Please feel free to add new tasks as appropriate — just let one of the coordinators know.}}
 
{|
! scope="col"| Task
! scope="col"| Subtask
! scope="col"| Responsible
! scope="col"| Assists
! scope="col"| Consulted
! scope="col"| Informed
! scope="col"| Current Status
|-
| <!-- task      -->
| <!-- subtask    -->
| <!-- responsible-->
| <!-- assists    -->
| <!-- consulted  -->
| <!-- informed  -->
| <!-- status    -->
|-
| <!-- task      --> Determine what the "Engine" will be
| <!-- responsible--> [[User:Maxamillion| Adam Miller]]
| <!-- assists    -->
| <!-- consulted  -->
| <!-- informed  -->
| <!-- status    -->0%
|-
| <!-- task      -->
| <!-- subtask    --> Evaluate engine options, consult with Fedora RelEng and Infra teams for feedback
| <!-- responsible--> [[User:Maxamillion| Adam Miller]]
| <!-- assists    -->
| <!-- consulted  -->
| <!-- informed  -->
| <!-- status    -->0%
|-
| <!-- task      --> Deploy Engine solution, including ansible playbooks added for Fedora Infrastructure Ansible repo
| <!-- responsible--> [[User:Maxamillion| Adam Miller]]
| <!-- assists    -->
| <!-- consulted  -->
| <!-- informed  -->
| <!-- status    -->0%
|-
| <!-- task      -->
| <!-- subtask    --> Document the Engine solution final design
| <!-- responsible--> [[User:Maxamillion| Adam Miller]]
| <!-- assists    -->
| <!-- consulted  -->
| <!-- informed  -->
| <!-- status    -->0%
|-
| <!-- task      --> Document Automation Workflows end-to-end
| <!-- subtask    -->
| <!-- responsible--> [[User:Maxamillion| Adam Miller]]
| <!-- assists    -->
| <!-- consulted  -->
| <!-- informed  -->
| <!-- status    -->0%
|-
|-
|}
 
== Glossary of Nicknames ==
 
* maxamillion [[User:Maxamillion| Adam Miller]]
 
== Various Task Notes ==
 
=== Functional Requirements ===
 
The following features are functional requirements
 
* Role Based Access Control
** Users in certain groups are allowed to execute only certain workflows)
** This will enable the self-service component
* Public central logging
** Workflow tasks should be logged centrally and historic runs of workflows can be publicly viewed in a central location
 
=== Other developers ===
* (anything here)?
 
=== Release engineering ===
* Deploy the "Engine"
 
=== Policies and guidelines ===
* Need to determine who can create/run workflows
* Define guidelines for writing workflows


== Upgrade/compatibility impact ==
== Upgrade/compatibility impact ==

Revision as of 14:04, 3 June 2016


Release Engineering Automation Workflow Engine

Summary

Centralized entry point, logging, and dash board for pre-defined Automated Workflow tasks used by the Release Engineering team with delegation and self-service tasks for members of various teams who normally depend on Release Engineering for various tasks.

Owner

  • Name: Adam Miller
  • Email: maxamillion@fedoraproject.org
  • Release notes owner:

Current status

  • Targeted release: Fedora 25
  • Last updated: 2016-06-03
  • Tracker bug: <will be assigned by the Wrangler>

Detailed Description

+--------------+                                            +----------------+
|              |                 +------------+             |                |
|  AutoCloud   |<----------------+            +------------>+   Taskotron    |
|              |                 |   fedmsg   |             |                |
|              +---------------->|            |<------------+                |
+--------------+                 |            |             +----------------+
                                 +------------+
                                      ^
                                      |
                                      |
                                      |
                                      |
                                      |
                                      |
                   +------------------+-----------------+
                   |                                    |
                   |      Release Engineering           +----------------+
                   |      Workflow Automation Engine    |                |
                   |                                    |                |
                   +------------------+-----------------+                |
                         |            |                                  |
                         |            |                                  |
       +-----------------+            |                                  |
       |                              |                                  |
       |                              |                                  |
       V                              V                                  |
+-------------+                   +--------------+                       |
|             |                   |              |                       |
|    bodhi    |                   |              |                       |
|             |                   |    pungi     |                       |
+-------------+                   |              |                       |
                                  |              |                       |
                                  +----------+---+                       |
                                       ^     |                           V
                                       |     |                +---------------+
                                       |     |                |               |
                                       |     +--------------->|     koji      |
                                       |                      |               |
                                       +----------------------+               |
                                                              +---------------+


Currently Fedora Release Engineering Automation tasks are performed by various scripts run on various machines within the Fedora Infrastructure with no real centralized logging. Some of these are automated by chron jobs and some run by hand by request of various members within the Fedora Community, normally around Fedora Test Days. Finding information about old tasks is not always the easiest of things to do and the delegation of tasks is currently not available. The goal here is to provide a solution that removes those barriers.

Workflows will be executed and potentially orchestrate actions between multiple other systems or tools such as bodhi, pungi, and koji. Fedmsgs will be emitted with information about the start and completion of workflows along with metadata about them.

In the event of a compose, certain fedmsg output will be picked up by taskotron and autocloud to perform various levels of testing.

Functional Requirements

The following features are functional requirements

  • Integration with fedmsg
  • Integration with FAS
  • Role Based Access Control
    • Users in certain FAS groups are allowed to execute only certain workflows)
    • This will enable the self-service component
  • Public central logging
    • Workflow tasks should be logged centrally and historic runs of workflows can be publicly viewed in a central location


Technical Implementation

Everything will be powered by Ansible as this is a toolchain that both Fedora Infrastucture and Fedora Release Engineering is familiar with and has been using heavily for automation tasks. We are simply aiming to solve a new automation problem space with the same tool and a different set of rules/policy.

https://www.ansible.com/

The main component that will define the workflows is going to be Ansible Playbooks.

Ansible

Tasks or sets of tasks should be in an "Include Playbook" such that they are not meant to stand on their own but should be included by other Playbooks or an Ansible Role.

Workflow Playbooks should effectively be "glue" that supply necessary variables to make the "Include Playbooks" and Roles useful for the Workflow at hand.

Ansible Execution

A goal of this proposal is to have a way to execute tasks or jobs that can be centralized, role based

The software that becomes the "Workflow Engine" itself is currently being evaluated, this will be the thing that actually executes the Ansible playbooks. The following options are being looked at:

Benefit to Fedora

The goal here is the benefit the Fedora Contributor Community at large by making certain processes within Release Engineering be able to be more rapidly iterated upon, allowing for changes to processes to become more flexible. Another goal is to make Fedora Release Engineering more approachable by making it easier to contribute to work we d and make it easier for new members of the community to join in the Fedora Release Engineering group.

Scope

Proposal owners

Proposal owners shall have to:

  • Determine what the "Engine" will be after evaluation and working with the Fedora RelEng and Infrastructure teams for advisement.
  • Deploy RelEng Automation Workflow Engine
    • Fully automated deployment in Fedora Infrastructure Ansible
  • Document Workflow Automation
    • How workflows are created
    • How to run workflows
    • How new contributors can get started

Task matrix

This is a RACI matrix for tasks required to implement the RelEng Automation Workflow Engine. Work is tracked in Taiga: http://taiga.cloud.fedoraproject.org/project/acarter-fedora-docker-atomic-tooling/wiki/home


Is this current?

It is, as of 2016-06-03

Definitions

Here, we're using what Wikipedia calls "RACI (alternative scheme)":


Responsible
The person responsible for the performance of the task. There should be exactly one person with this assignment for each task.
Assists
Those who assist completion of the task.
Consulted
Those whose opinions are sought; and with whom there is two-way communication.
Informed
Those who are kept up-to-date on progress; and with whom there is one-way communication.

Task Table

Note.png
This an early cut. Please feel free to add new tasks as appropriate — just let one of the coordinators know.
Task Subtask Responsible Assists Consulted Informed Current Status
Determine what the "Engine" will be Adam Miller 0%
Evaluate engine options, consult with Fedora RelEng and Infra teams for feedback Adam Miller 0%
Deploy Engine solution, including ansible playbooks added for Fedora Infrastructure Ansible repo Adam Miller 0%
Document the Engine solution final design Adam Miller 0%
Document Automation Workflows end-to-end Adam Miller 0%

Glossary of Nicknames

Various Task Notes

Functional Requirements

The following features are functional requirements

  • Role Based Access Control
    • Users in certain groups are allowed to execute only certain workflows)
    • This will enable the self-service component
  • Public central logging
    • Workflow tasks should be logged centrally and historic runs of workflows can be publicly viewed in a central location

Other developers

  • (anything here)?

Release engineering

  • Deploy the "Engine"

Policies and guidelines

  • Need to determine who can create/run workflows
  • Define guidelines for writing workflows

Upgrade/compatibility impact

N/A (not a System Wide Change)

How To Test

N/A (not a System Wide Change)

User Experience

N/A (not a System Wide Change)

Dependencies

N/A (not a System Wide Change)

Contingency Plan

  • Contingency mechanism: N/A (not a System Wide Change)
  • Contingency deadline: N/A (not a System Wide Change)
  • Blocks release? No
  • Blocks product? N/At

Documentation

Documentation once written will be in the Fedora Release Engineering Docs site.

Release Notes