Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

The OpenStack Contribution Workflow


Published on

by Sean McGinnis, Dell

Published in: Technology
  • Be the first to comment

  • Be the first to like this

The OpenStack Contribution Workflow

  1. 1. The OpenStack Contribution Workflow Sean McGinnis
  2. 2. 2 of 21 The Basics Account Setup and Agreements Launchpad Account Creation Join the OpenStack Foundation “Foundation” membership level, not “community” Register Nick IRC /nick [desired_nick] /msg NickServ REGISTER password
  3. 3. 3 of 21 Code Contibution Setup Account Setup and Agreements Gerrit Login Sign Contributor License Agreement (US Government)
  4. 4. 4 of 21 Hang out on IRC • So much of OpenStack development happens on IRC • Best way to ask questions and discuss issues • Some general channels and project specific channels #openstack-dev #openstack-meeting #openstack-[project] Many IRC clients available for various operating systems as well as Freenode web chat: Clients: HexChat, LimeChat, irssi Web:
  5. 5. 5 of 21 Join the Mailing List Lots of posts for announcements, development issues, etc. General: openstack Development: openstack-dev Announcements: openstack-announce Operators: openstack-operators More details and links to full list of mailing lists here:
  6. 6. 6 of 21 Project Watch List Add interested projects to your watch list to get notifications. Go to
  7. 7. 7 of 21 Add SSH Keys SSH public key must be registered to identify you when you push up code. Typically uses your default in ~/.ssh/ but different key can also be used. Go to
  8. 8. 8 of 21 Code Reviews Reviewing code with Gerrit One of the best places to start! Learn from others changes. See what kinds of issues are pointed out by other reviewers. Share your expertise or just help catch basic coding issues.
  9. 9. 9 of 21 Code Reviews Gerrit Review Layout Lot’s of information!
  10. 10. 10 of 21 Code Reviews Gerrit Review Layout
  11. 11. 11 of 21 Code Reviews Gerrit Review Diff
  12. 12. 12 of 21 Code Reviews Gerrit Review Navigation and Settings
  13. 13. 13 of 21 Bug Tracking Launchpad Bug Management Bugs tracked on the site. Overall list of all bugs in OpenStack projects: Project specific view of bugs: Search for bugs matching an issue you’ve found. Look for bugs you would like to work on.
  14. 14. 14 of 21 Bug Tracking Working with bugs
  15. 15. 15 of 21 Bug Tracking Bug Tags Look for specific categories of bugs by tag. Helpful tags like “low-hanging-fruit” or “documentation” can help you get started.
  16. 16. 16 of 21 Submitting Code Workflow Overview $ git clone $ cd nova $ git checkout –b bug/12345 $ vi nova/ $ vi nova/tests/unit/ $ tox # < Don’t forget this!! $ git add . && git commit $ git review Wait for patch feedback $ vi nova/ $ tox –e pep8 $ git add . && git commit --amend $ git review
  17. 17. 17 of 21 Submitting Code Viewing check queue status
  18. 18. 18 of 21 Submitting Code Rebasing $ git checkout –b bug/12345 $ vi nova/ $ git add . && git commit $ git review Merge Conflict! $ git checkout master $ git pull $ git checkout bug/12345 $ git rebase master $ vi nova/ $ git add nova/ $ git rebase --continue $ git commit --amend $ git review
  19. 19. 19 of 21 Submitting Code Bug Fixes, New Features, and Small Changes Bug Fix git checkout –b bug/12345 In commit message: Closes-bug: #12345 New Feature File blueprint on Launchpad Submit spec and get approved if needed git checkout –b feature_name In commit message: Implements: blueprint blueprint_name Small cleanup or refactoring git checkout –b descriptive_name Make change and commit
  20. 20. 20 of 21 References OpenStack Documentation • How to Contribute Wiki • Developer Manual •