贡献参与大致分为两个过程

浏览器页面操作

按下图中的url找到地址输入,并点击红框中的url:
最新的Openstack贡献参与教程
然后你会看到如下页面:
最新的Openstack贡献参与教程

最新的Openstack贡献参与教程
在下图你会看到整个贡献的一个流程:
最新的Openstack贡献参与教程
这里插播下openstack function user的注册,下面会用到:
最新的Openstack贡献参与教程
把下图的内容填写完成,Affiliations(供职方,就是你上班的公司)
最新的Openstack贡献参与教程
完成后注册下Ubuntu账户:
最新的Openstack贡献参与教程
最新的Openstack贡献参与教程
最新的Openstack贡献参与教程
按下图上传你使用机器的SSHkey,mac上SSHkey一般在你的用户目录的.ssh文件夹下(/Users/mrrobot/.ssh/id_rsa.pub),没有的话用ssh-******这个命令行工具生成下
在这里顺便完善下Persional Info
最新的Openstack贡献参与教程

最新的Openstack贡献参与教程

最新的Openstack贡献参与教程
这里浏览上的操作就差不多了。

本地命令行操作

未完。。。
Step 3: Set up the local development environment
Set up the Eclipse environment:
Install Ubuntu 11.10 or 11.10+ with python.
Install git: sudo apt-get install git.
Install Eclipse.
Install PyDev plugin for Eclipse.
On the Eclipse window, click Help > Install New Software.
Configure the python interpreter for Eclipse. In the Work with field, enter http://pydev.org/updates and click Add.
Check PyDev.
Click Next until you reach the Review Licences window. Accept the terms of the license and click Finish.
Install EGit plugin for Eclipse.
On the Eclipse window, click Help > Install New Software.
In the Work with field, enter http://download.eclipse.org/egit/updates and click Add.
Check Eclipse EGit under Eclipse Git Team Provider.
Click Next until you reach the Review Licences window. Accept the terms of the license and click Finish.
Set up the code base.
Using devstack:
Open the terminal, go to a target directory and run the following to get the devstack code:
1
git clone git://github.com/openstack-dev/devstack.git
Create a file named localrc under the devstack directory just created. Find information on how to configure localrc on DevStack website.
Run ./stack.sh. The default workplace is /opt/stack, which can be manually changed. When devstack runs successfully for the first time, you can find all the code under /opt/stack.
An alternative method is to download a specific project instead of cloning all the projects. Using the project Keystone as an example:
Open the terminal, go to a target directory (e.g. /opt/stack) and run the following to get the keystone code:
1
git clone https://github.com/openstack/keystone.git
Import the project(s) into Eclipse: Run Eclipse and set the workspace to the directory saving all the projects(/opt/stack).
Create the PyDev project: Click File > New > PyDev project. Give it the same name as the project, like keystone and click Finish.
Synchronize the project with Egit: In Eclipse, right-click the project (keystone), click Team > Share project, then click Next and Finish.
After the above steps, you should be able to see [keystone master] after your project name in Eclipse.
Run unit tests
Run all the unit tests for a project:
Open a terminal and go to the project directory, for example, keystone.
Run the command ./run_tests.sh. When asked if want to create a virtual environment, choose Y or N.
Test a single case:
Open a terminal and go to the project directory, for example, keystone.
Run the command ./run_tests.sh , for example, ./run_tests.sh /opt/stack/keystone/tests/test_backend.py.
Test a single case:
Open a terminal and go to the project directory, for example, keystone.
Run the command ./run_tests.sh :, for example, ./run_tests.sh /opt/stack/keystone/tests/test_backend.py:CommonHelperTests.
Test a single method:
Open a terminal and go to the project directory, for example, keystone.
Run the command ./run_tests.sh :., for example:
1
2
./run_tests.sh
/opt/stack/keystone/tests/test_backend.py:CommonHelperTests.test_format_helper_raises_malformed_on_incomplete_format

.
Run the OpenStack services
Run all the services by Devstack:
Open a terminal and go to the devstack directory.
Run the command ./stack.sh. In localrc, specify the services to be run, for example, ENABLED_SERVICES=key,c-api,c-vol,c-sch,mysql,rabbit.
Run ./unstack.sh to shut down all the services.
After ./stack.sh is successfully run for the first time, you can also run ./rejoin-stack.sh to run all the specified services.
Run the services in Eclipse. Using Keystone as an example:
Set up a debug configuration for keystone in Eclipse. Right-click the script keystone—all under bin, click Debug as > Debug Configurations, as shown in Figure 3.
Figure 3. Debug configuration

相关文章: