Custom Search

Tuesday, January 6, 2015

How to OpenStack Create Blueprint and Submit Patch Set

http://docs.openstack.org/training-guides/content/operator-getting-started-lab.html

https://wiki.openstack.org/wiki/Gerrit_Workflow

1)
* Install git and pip

#sudo apt-get install git
#sudo apt-get install python-pip




2)
* Install git-review

#sudo pip install git-review

3)
* Configure github


#git config -l

#git config --global user.name "Saju Madhavan"
#git config --global user.email "sajuptpm@gmail.com"
#git config --global core.editor "vim"

#git config -l


4)
Clone the project

#git clone https://github.com/openstack/neutron.git

5)
Goto project folder
#cd neutron

6)
* Test the ssh key setup


#git review -s
Enter your gerrit username: sajuptpm

7)
Goto Your Blueprint

https://blueprints.launchpad.net/neutron/+spec/opencontrail-ipam-extension

8)
Create a new git branch for your blueprint changes

#cd neutron
#git checkout -b blueprint/opencontrail-ipam-extension


9)
Confirm the branch

#git branch

11)
Make your changes and run unittest and pep8 test.


12)
Commit your changes

#git add file1 file2
#git commit -a


... commit message ...
....
....
Implements: blueprint opencontrail-ipam-extension

13)
Push changes to https://review.openstack.org

#git review

14)
Resubmit same patch after some modification
Run unit test and pep8 test.

#git commit -a --amend

15)
Push new changes to https://review.openstack.org

#git review

No comments:

Post a Comment