Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Guide to the Development of OpenStack Hacker

2025-02-20 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

I hope this article can unlock the knot that has been haunting you for a long time. If it is a dead knot, please move to https://wiki.openstack.org/wiki/Main_Page.

Learning OpenStack is actually the process of learning various Python libraries.

Post OpenStack design principles on your wall. Https://wiki.openstack.org/wiki/BasicDesignTenets

1 OpenStack Hacker

Attitude: openness, initiative, communication

Influence: ability to speak, write and share

Four modernizations: automation, flow, systematization and documentation

2 basic skills Python

Books:

Python reference Manual

The basic course of python

Tutorial: Codecademy

Challenge: Python Challenge

Documentation: Python v2.7.3 documentation

High-level:

The Hitchhiker's Guide to Python!

Python Module of the Week

Linux

Books:

Brother Bird's Linux cuisine

Advanced programming in Unix Environment

UNIX system programming

Git

Books:

Pro Git

GotGitHub

Tutorial:

TryGit

GitImmersion

Advanced:

Visual-git-guide

A-successful-git-branching-model

The most commonly used git command: Everyday GIT With 20 Commands Or So

Unittest

Tutorial: python unittest

3 OpenStack basic 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.

Basic concepts of OpenStack

Introduction: https://www.openstack.org/software/

Compute administrator's manual (required): http://docs.openstack.org/trunk/openstack-compute/admin/content/ch_getting-started-with-openstack.html

OpenStack End User Guide (required): http://docs.openstack.org/user-guide/content/

Network administrator's manual: http://docs.openstack.org/folsom/openstack-network/admin/content/

Object Storage administrator's manual: http://docs.openstack.org/folsom/openstack-object-storage/admin/content/

OpenStack documents: http://docs.openstack.org/

OpenStack vocabulary: http://docs.openstack.org/glossary/content/glossary.html

Use the command line to manage openstack: http://docs.openstack.org/cli/quick-start/content/index.html

OpenStack Wiki: https://wiki.openstack.org/wiki/Main_Page

Simple installation of OpenStack environment settings

In order to install OpenStack quickly, you need to set up the fastest apt source (or set up yum source) and pypi source.

Set the apt source: http://blog.ubuntusoft.com/ubuntu-update-source.html

Set up the pypi source: http://www.v2ex.com/t/75316

You can also build your own apt and pypi sources:

Set up the apt source:

Http://blog.ef.net/2012/10/26/unbutu-release-upgrade-with-local-apt-mirror.html

Http://www.cnblogs.com/kulin/archive/2012/08/08/2628400.html

Set up the pypi source:

Https://pypi.python.org/pypi/bandersnatch

Devstack installation

Install http://devstack.org using devstack

Read the devstack.sh script http://devstack.org

Use of screen: http://www.9usb.net/201002/linux-screen-mingling.html

Devstack uses screen to manage OpenStack services, so you need to debug OpenStack with screen.

Packstack (RHEL,CentOS) installation

Git warehouse: https://github.com/stackforge/packstack

Quickstart: http://openstack.redhat.com/Quickstart

Deb package installation

Install OpenStack using VirtualBox

Install OpenStack Folsom version (FlatDHCP+Multihost) on Ubuntu 12.04

Ubuntu12.04.2 OpenStack Grizzly installation (Bridge)

Flirting with OpenStack

Pdb:

Http://docs.python.org/2/library/pdb.html

Http://blog.csdn.net/hackerain/article/details/8373597

Http://www.ibm.com/developerworks/cn/linux/l-cn-pythondebugger/

Python basic Library WSGI

Eventlet.wsgi: http://eventlet.net/doc/examples.html#wsgi-server

Webob: http://webob.org/

Pecan: http://pecanpy.org/

Wsme: http://pythonhosted.org/WSME/

Paste: http://pythonpaste.org/

Routes: http://routes.readthedocs.org/en/latest/

Important library

SQLAlchemy: http://www.sqlalchemy.org/

Libvirt: http://libvirt.org/index.html

Logging: http://docs.python.org/2/howto/logging-cookbook.html

Greenlet: http://greenlet.readthedocs.org/en/latest/

Eventlet: http://eventlet.net/

Kombu: http://kombu.readthedocs.org/en/latest/

Oslo.config: https://wiki.openstack.org/wiki/Oslo#oslo.config

Stevedore: http://stevedore.readthedocs.org/en/latest/

TESTING

PythonTestingToolsTaxonomy: http://wiki.python.org/moin/PythonTestingToolsTaxonomy (all in one)

Testtools: https://readthedocs.org/projects/testtools/

Mox: http://code.google.com/p/pymox/wiki/MoxDocumentation

Mock: http://www.voidspace.org.uk/python/mock/

Tox: http://tox.readthedocs.org/en/latest/

Fixtures: https://pypi.python.org/pypi/fixtures

Testscenarios: https://pypi.python.org/pypi/testscenarios/

Nose: https://nose.readthedocs.org/en/latest/

Testrepository: https://testrepository.readthedocs.org/en/latest/MANUAL.html

OpenStack basic components

In OpenStack, there is an important project called Oslo (formerly known as openstack-common), which provides the basic components for other OpenStack projects.

Https://wiki.openstack.org/wiki/Oslo

RPC component

RPC component

Http://blog.ftofficer.com/2010/03/translation-rabbitmq-python-rabbits-and-warrens/

Http://www.rabbitmq.com/tutorials/tutorial-six-python.html

Http://docs.openstack.org/developer/nova/devref/rpc.html

WSGI

Http://archimedeanco.com/wsgi-tutorial/

OpenStack code specification

Python PEP8 specification: http://www.python.org/dev/peps/pep-0008/

OpenStack HACKING specification: https://github.com/openstack-dev/hacking/blob/master/HACKING.rst

Python in-depth learning

Understand the optparse.OptionParser class in python. Http://docs.python.org/library/optparse.html

Understand the collections.Mapping class. Http://docs.python.org/library/collections.html

Analyze shallow copy, deep copy http://blog.csdn.net/winterttr/article/details/2590741http://longmans1985.blog.163.com/blog/static/70605475200991603624942/ http://book.51cto.com/art/200806/77233.htm

In the LoggerAdapter class http://docs.python.org/howto/logging-cookbook.html#context-info.

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

Getting started with Python Decorators http://blog.csdn.net/beckel/article/details/3585352

The difference between Python @ classmethod @ staticmethod. Http://www.libaoyin.com/2013/08/06/pyhton-staticmethod-classmethod/

Five minutes to understand metaclass (Metaclasses) http://www.cnblogs.com/coderzh/archive/2008/12/07/1349735.html

Python knowledge http://canx.me/2011/12/%E4%B8%80%E4%BA%9Bpython/ used in nova

Summary http://ipseek.blog.51cto.com/1041109/802243 of classes in python

Summary http://effbot.org/zone/python-with-statement.htm of with

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

Paste module http://pythonpaste.org/

Python Magic method http://pycoders-weekly-chinese.readthedocs.org/en/latest/issue6/a-guide-to-pythons-magic-methods.html

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

Yield learning

Http://www.pythonclub.org/python-basic/yield

Http://blog.donews.com/limodou/archive/2006/09/04/1028747.aspx

Http://www.ibm.com/developerworks/cn/opensource/os-cn-python-yield/

Http://www.jeffknupp.com/blog/2013/04/07/improve-your-python-yield-and-generators-explained/

4 the overall architecture diagram of OpenStack

Must see:

Http://ken.pepple.info/openstack/2012/09/25/openstack-folsom-architecture/

Http://www.solinea.com/2013/06/15/openstack-grizzly-architecture-revisited/

Http://www.slideshare.net/mirantis/open-stack-architecture-overviewmeetup662013

Workflow Keystone Workflow

Must see:

Https://www.ibm.com/developerworks/community/blogs/e93514d3-c4f0-4aa0-8844-497f370090f5/entry/openstack_keystone_workflow_token_scoping?lang=zh

Http://docs.openstack.org/trunk/openstack-compute/admin/content/keystone-concepts.html

Nova Workflow

Must see:

Https://www.ibm.com/developerworks/community/blogs/e93514d3-c4f0-4aa0-8844-497f370090f5/entry/openstack_nova_api?lang=en

Http://ilearnstack.com/2013/04/26/request-flow-for-provisioning-instance-in-openstack/comment-page-1/

N

OpenStack core project

Brief analysis of each project: analysis of http://www.slideshare.net/randybias/state-of-the-stack-april-2013 core projects:

Keystone:

Http://docs.openstack.org/developer/keystone/

Http://www.slideshare.net/openstackindia/openstack-keystone-identity-service

Glance:

Http://docs.openstack.org/developer/glance/

Nova:

Http://docs.openstack.org/developer/nova/

Https://www.ibm.com/developerworks/community/blogs/e93514d3-c4f0-4aa0-8844-497f370090f5/entry/openstack_nova_scheduler_and_its_algorithm27?lang=en

Cinder:

Http://docs.openstack.org/developer/cinder/

Cinder grizzly deep dive pub

Neutron:

Http://docs.openstack.org/developer/neutron/

Http://www.slideshare.net/openstackindia/openstack-quantum-16710792

Http://www.slideshare.net/lewtucker/openstack-quantum-network-service

Http://www.slideshare.net/openstackindia/openstack-quantum-18418306

Horizon:

Http://docs.openstack.org/developer/horizon/

Swift:

Http://docs.openstack.org/developer/swift/

Http://blog.csdn.net/alex890714/article/details/7314780

Swift Architecture and practice

Oslo:

Analysis of general mechanisms:

Quota: http://blog.csdn.net/hackerain/article/details/8223125

Policy: http://blog.csdn.net/hackerain/article/details/8241691

5 OpenStack deployment / Management OpenStack Automation deployment

Puppet:

Https://wiki.openstack.org/wiki/Puppet-openstack

Https://github.com/stackforge/puppet-openstack

Https://puppetlabs.com/solutions/openstack/

Fule: deployment tools from Mirantis, from bare metal to OpenStack components to HA.

Https://fuel.mirantis.com/

OpenStack monitoring

OpenStack monitoring: http://www.mirantis.com/blog/openstack-monitoring/

6 participate in the OpenStack community

It's all here: https://wiki.openstack.org/wiki/Main_Page

Hilltop: https://review.openstack.org/#/admin/groups

Submit Patch: https://wiki.openstack.org/wiki/How_To_Contribute to the community

Use of gerrit: https://wiki.openstack.org/wiki/Gerrit_Workflow

Review someone else's Patch: https://review.openstack.org

Participate in IRC Meeting:

Https://wiki.openstack.org/wiki/Meetings

Https://wiki.openstack.org/wiki/Mailing_Lists

Https://wiki.openstack.org/wiki/People

Participate in mailing list discussion: https://wiki.openstack.org/wiki/Mailing_Lists

Track the development of OpenStack projects:

Http://www.openstack.org/blog/

Http://planet.openstack.org/

Https://wiki.openstack.org/wiki/Special:RecentChanges

Http://github.com/openstack

Https://github.com/stackforge/ (You will like it)

Https://github.com/openstack-dev/

Https://github.com/openstack-infra

Learn CI: http://ci.openstack.org/

7 OpenStack secondary development

Develop an extended API for Nova:

Https://www.ibm.com/developerworks/community/blogs/e93514d3-c4f0-4aa0-8844-497f370090f5/entry/openstack_nova_api?lang=zh

Https://wiki.openstack.org/wiki/WritingRequestExtensions

Http://stephanfr.com/2013/04/07/creating-an-openstack-keystone-helloworld-extension/

Http://www.cnblogs.com/willier/archive/2013/05/22/3092961.html

Develop the driver for Cinder:

The new driver must meet Minimum Features, refer to the same type of driver, and follow suit.

8 OpenStack biosphere

The company behind OpenStack: http://www.chenshake.com/behind-the-openstack-company

State of The Stack: http://www.slideshare.net/randybias/state-of-the-stack-april-2013 (to the point)

OpenStack contribution ranking: http://stackalytics.com/

OpenStack practice sharing: http://www.mirantis.com/blog/ (mirantis is currently the most successful OpenStack system integrator)

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report