标签归档:python

OpenStack Hacker养成指南

0 阅读指南

1 OpenStack Hacker

  • 态度:开放、主动、沟通
  • 影响力:能说、能写、能分享
  • 四化:自动化、流程化、系统化、文档化

 

2 基础技能

Python

Linux

Git

Unittest

3 OpenStack 基础

The 5-minute Overview

OpenStack is a global collaboration of developers and cloud computing technologists producing the ubiquitous open source cloud computing platform for public and private clouds. The project aims to deliver solutions for all types of clouds by being simple to implement, massively scalable, and feature rich. The technology consists of a series of interrelated projects delivering various components for a cloud infrastructure solution. OpenStackcontrols large pools of compute, storage, and networking resources throughout a datacenter, all managed through a dashboard that gives administrators control while empowering their users to provision resources through a web interface.

1

OpenStack 基本概念

简单安装 OpenStack

环境设置

为了快速安装OpenStack,你要设置最快的apt源(或者设置yum源)和pypi源。

你也可以搭建自己的apt源和pypi源:

devstack 安装

devstack使用screen管理OpenStack各个服务,所以你要用screen调试OpenStack。

packstack(RHEL,CentOS) 安装

deb包安装

 

调戏 OpenStack

Python基本库

WSGI

重要的库

TESTING

OpenStack基础组件

在OpenStack中,有一个重要的项目叫做Oslo(原名是openstack-common),给OpenStack其他项目提供基础组件。

RPC组件

WSGI

OpenStack 代码规范

Python 深入学习

理解python中optparse.OptionParser类。
http://docs.python.org/library/optparse.html

理解collections.Mapping类。
http://docs.python.org/library/collections.html

分析浅拷贝,深拷贝
http://blog.csdn.net/winterttr/article/details/2590741
http://longmans1985.blog.163.com/blog/static/70605475200991603624942/
http://book.51cto.com/art/200806/77233.htm

LoggerAdapter类
http://docs.python.org/howto/logging-cookbook.html#context-info中。

介绍rabbitmq
http://blog.ftofficer.com/2010/03/translation-rabbitmq-python-rabbits-and-warrens/
http://kombu.readthedocs.org/en/latest/introduction.html#synopsis

Python Decorators入门
http://blog.csdn.net/beckel/article/details/3585352

Python @classmethod @staticmethod的区别。

http://www.libaoyin.com/2013/08/06/pyhton-staticmethod-classmethod/

五分钟理解元类(Metaclasses)
http://www.cnblogs.com/coderzh/archive/2008/12/07/1349735.html

nova中用到的python知识
http://canx.me/2011/12/%E4%B8%80%E4%BA%9Bpython/

python中类的总结
http://ipseek.blog.51cto.com/1041109/802243

with的总结
http://effbot.org/zone/python-with-statement.htm

Pool类
http://nullege.com/codes/search/eventlet.pools.Pool

paste模块
http://pythonpaste.org/

python魔术方法
http://pycoders-weekly-chinese.readthedocs.org/en/latest/issue6/a-guide-to-pythons-magic-methods.html

Routes模块
http://routes.readthedocs.org/en/latest/index.html

yield学习

4 OpenStack 整体架构

架构图

工作流

Keystone Workflow

Nova Workflow

OpenStack 核心项目

对各个项目简要分析:http://www.slideshare.net/randybias/state-of-the-stack-april-2013

核心项目的分析:

通用机制的分析:

5 OpenStack 部署/管理

OpenStack 自动化部署

OpenStack 监控

6 参与 OpenStack 社区

都在这里:https://wiki.openstack.org/wiki/Main_Page

7 OpenStack 二次开发

8 OpenStack 生态圈

转自http://www.ustack.com