Home OpenStack-Ansible Developer Documentation

Contributor Guidelines

Reporting Bugs

Bugs should be filed on Bug Launchpad for OpenStack-Ansible.

When submitting a bug, or working on a bug, please ensure the following criteria are met:

  • The description clearly states or describes the original problem or root cause of the problem.
  • Include historical information on how the problem was identified.
  • Any relevant logs are included.
  • If the issue is a bug that needs fixing in a branch other than master, please note the associated branch within the launchpad issue.
  • The provided information should be totally self-contained. External access to web services/sites should not be needed.
  • Steps to reproduce the problem if possible.


If it’s a bug that needs fixing in a branch in addition to master, add a ‘<release>-backport-potential’ tag (e.g. liberty-backport-potential). There are predefined tags that will auto-complete.


Please leave the status of an issue alone until someone confirms it or a member of the bugs team triages it. While waiting for the issue to be confirmed or triaged the status should remain as New.


Should only be touched if it is a Blocker/Gating issue. If it is, please set to High, and only use Critical if you have found a bug that can take down whole infrastructures. Once the importance has been changed the status should be changed to Triaged by someone other than the bug creator.

Triaging Bugs

Reported bugs need prioritization, confirmation, and shouldn’t go stale. If you care about OpenStack stability but aren’t wanting to actively develop the roles and playbooks used within the OpenStack-Ansible project consider contributing in the area of bug triage, which helps immensely. The whole process is described in the OpenStack Bug Triage Documentation.

General Guidelines for Submitting Code

  • Write good commit messages. We follow the OpenStack “Git Commit Good Practice” guide. if you have any questions regarding how to write good commit messages please review the upstream OpenStack documentation.
  • Changes to the project should be submitted for review via the Gerrit tool, following the workflow documented here.
  • Pull requests submitted through GitHub will be ignored and closed without regard.
  • Patches should be focused on solving one problem at a time. If the review is overly complex or generally large the initial commit will receive a “-2” and the contributor will be asked to split the patch up across multiple reviews. In the case of complex feature additions the design and implementation of the feature should be done in such a way that it can be submitted in multiple patches using dependencies. Using dependent changes should always aim to result in a working build throughout the dependency chain. Documentation is available for advanced gerrit usage too.
  • All patch sets should adhere to the Ansible Style Guide listed here as well as adhere to the Ansible best practices when possible.
  • All changes should be clearly listed in the commit message, with an associated bug id/blueprint along with any extra information where applicable.
  • Refactoring work should never include additional “rider” features. Features that may pertain to something that was re-factored should be raised as an issue and submitted in prior or subsequent patches.
  • New features, breaking changes and other patches of note must include a release note generated using the reno tool.

Working on Features

  • All feature additions/deletions should be accompanied by a blueprint/spec. e.g. adding additional active agents to neutron, developing a new service role, etc...
  • Before creating blueprint/spec an associated ‘Wishlist Bug’ can be raised on launchpad. This issue will be triaged and a determination will be made on how large the change is and whether or not the change warrants a blueprint/spec. Both features and bug fixes may require the creation of a blueprint/spec. This requirement will be voted on by core reviewers and will be based on the size and impact of the change.
  • All blueprints/specs should be voted on and approved by core reviewers before any associated code will be merged. For more information on blueprints/specs please review the OpenStack documentation regarding Working on Specifications and Blueprints.
  • Once the blueprint work is completed the author(s) can request a backport of the blueprint work into a stable branch. Each backport will be evaluated on a case by case basis with cautious consideration based on how the backport affects any existing deployments. See the Backporting section for more information.
  • Any new OpenStack services implemented which have Tempest tests available must be implemented along with suitable functional tests enabled as part of the feature development in order to ensure that any changes to the code base do not break the service functionality.
  • Feature additions must include documentation which provides reference to OpenStack documentation about what the feature is and how it works. The documentation should then describe how it is implemented in OpenStack-Ansible and what configuration options there are.


  • Backporting is defined as the act of reproducing a change from another branch. Unclean/squashed/modified cherry-picks and complete reimplementations are OK.
  • Backporting is often done by using the same code (via cherry picking), but this is not always the case. This method is preferred when the cherry-pick provides a complete solution for the targeted problem.
  • When cherry-picking a commit from one branch to another the commit message should be amended with any files that may have been in conflict while performing the cherry-pick operation. Additionally, cherry-pick commit messages should contain the original commit SHA near the bottom of the new commit message. This can be done with cherry-pick -x. Here’s more information on Submitting a change to a branch for review.
  • Every backport commit must still only solve one problem, as per the guidelines in General Guidelines for Submitting Code.
  • If a backport is a squashed set of cherry-picked commits, the original SHAs should be referenced in the commit message and the reason for squashing the commits should be clearly explained.
  • When a cherry-pick is modified in any way, the changes made and the reasons for them must be explicitly expressed in the commit message.
  • Refactoring work must not be backported to a “released” branch.
  • Backport reviews should be done with due consideration to the effect of the patch on any existing environment deployed by OpenStack-Ansible. The general OpenStack Guidelines for stable branches can be used as a reference.

Ansible Style Guide

When creating tasks and other roles for use in Ansible please create them using the YAML dictionary format.

Example YAML dictionary format:

- name: The name of the tasks
    thing1: "some-stuff"
    thing2: "some-other-stuff"
    - some-tag
    - some-other-tag

Example what NOT to do:

- name: The name of the tasks
  module_name: thing1="some-stuff" thing2="some-other-stuff"
  tags: some-tag
- name: The name of the tasks
  module_name: >
  tags: some-tag

Usage of the “>” and “|” operators should be limited to Ansible conditionals and command modules such as the Ansible shell or command.

Table Of Contents

Previous topic

Extending OpenStack-Ansible

Next topic

Core Reviewers

Project Source

This Page