Custom Search

Friday, July 4, 2014

How to OpenStack Puppet Submit Blueprint 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 "puppet-heat" project
#git clone https://github.com/stackforge/puppet-heat.git

5)
#cd puppet-heat

6)
* Test the ssh key setup
* If this not working, complete the step-7 and try this step again.

#git review -s
Enter your gerrit username: sajuptpm

7)
* Optional, if you are trying to submit the code from different machine

* I you already registered your SSH keys to github and Launchpad, copy your "id_rsa" and "id_rsa.pub" to ~/ssh folder of new machine.
#cd ~/.ssh
#scp id_rsa saju@192.168.56.102:~/.ssh
#scp id_rsa.pb saju@192.168.56.102:~/.ssh


8)
My blueprint

https://blueprints.launchpad.net/puppet-heat/+spec/option-to-configure-falvor-in-heat.conf

9)
Create a new branch for our blueprint changes

#cd puppet-heat
#git checkout -b blueprint/option-to-configure-falvor-in-heat.conf


10)
Check the branch

#git branch

11)
make your changes


12)
Commit your changes
#git add file1 file2
#git commit -a


commit messageee
Implements: blueprint option-to-configure-falvor-in-heat.conf


13)

Push changes to https://review.openstack.org
#git review

14)
https://review.openstack.org/104795
https://review.openstack.org/#/c/104795/

15)
Resubmit same patch after some modification

#git commit -a --amend

2 comments:

  1. https://review.openstack.org/#/q/status:open+project:stackforge/puppet-heat,n,z

    ReplyDelete
  2. https://review.openstack.org/#/q/puppet-heat,n,z

    ReplyDelete