随笔分类 -  how to read openstack code

how to read openstack code: controller and resource
摘要:TODO 阅读全文

posted @ 2017-02-09 23:35 kramer 阅读(151) 评论(0) 推荐(0)

how to read openstack code: loading process
摘要:之前我们了解了neutron的结构,plugin 和 extension等信息。这一章我们看一下neutron如何加载这些plugin和extension。也就是neutron的启动过程。本文涉及的代码较多,而且调用过程复杂... 所以你手头最好有一份liberty版本的neutron代码,参考来看 阅读全文

posted @ 2017-02-09 23:30 kramer 阅读(329) 评论(0) 推荐(0)

how to read openstack code: request extension
摘要:We have learned resource extension and action extension. This post we will write a request extension First see two API call curl X POST http://liberty 阅读全文

posted @ 2017-02-09 19:29 kramer 阅读(385) 评论(0) 推荐(0)

how to read openstack code: action extension
摘要:之前我们看过了core plugin, service plugin 还有resource extension。 resource extension的作用是定义新的资源。而我们说过还有两种extension: action extension 跟 request extension。这一章我们将写 阅读全文

posted @ 2017-02-09 18:27 kramer 阅读(278) 评论(0) 推荐(0)

how to read openstack code: service plugin
摘要:We have learned core plugin, service plugin and extension in last post. Now let`s review: Core Plugin Core plugin manage core resources which are netw 阅读全文

posted @ 2017-02-08 19:10 kramer 阅读(352) 评论(0) 推荐(0)

how to read openstack code: Core plugin and resource extension
摘要:本章我们将写一个自己的core plugin 和一个resource extension来加深理解。(阅读本文的前提是你已经理解了restful以及stevedore等内容) 什么是 core plugin neutron的plugin有core和service两种。core plugin实现cor 阅读全文

posted @ 2017-02-07 15:31 kramer 阅读(366) 评论(0) 推荐(0)

how to read openstack code: Neutron architecture
摘要:今天这一章节非常重要。我们知道neutron是一个非常复杂的系统,由很多组件构成。研究这样一个复杂的系统,正确的顺序应该是现在宏观上对其整体结构有所了解,然后再由针对性的对其组件进行深入了解。本章要做的事情就是介绍neutron 宏观上的架构。 首先看一下下图: 人 Neutron Server P 阅读全文

posted @ 2017-01-30 10:14 kramer 阅读(292) 评论(0) 推荐(0)

how to read openstack code : routes
摘要:When coding a web system, you have to think about an important problem, how to map urls to logic. Openstack use routes to solve this problem. What is 阅读全文

posted @ 2017-01-29 15:31 kramer 阅读(300) 评论(0) 推荐(0)

how to read openstack code : stevedore
摘要:学习了WSGI/Paste deploy后,还需要对一些在openstack中一些package有一些了解,才能更好的理解openstack的代码 What is stevedore 我们在写代码的时候通常把一个一个的功能块独立编写,甚至发布一定的规则和接口由第三方编写,然后在运行时根据实际情况来选 阅读全文

posted @ 2017-01-29 09:40 kramer 阅读(403) 评论(0) 推荐(0)

how to read openstack code : paste deploy
摘要:本篇分为以下几个部分 paste 是什么 怎样使用paste paste of neutron paste 是什么 WSGI 是python 中application 和 web server互通的标准。 我们知道了wsgi 中包括 app, middleware , server而且middlew 阅读全文

posted @ 2016-11-29 17:29 kramer 阅读(333) 评论(0) 推荐(0)

how to read openstack code : wsgi
摘要:要读懂本篇,你至少得写过一个python的web程序,并且把它部署到web服务器上过。 什么是wsgi 假设你写了一个python的web程序,并部署到了nginx上,那么一个http request的处理流程一般是下面这样: client/浏览器(发送请求) web服务器(转发该请求) 你的程序( 阅读全文

posted @ 2016-11-29 17:18 kramer 阅读(436) 评论(0) 推荐(0)

how to read openstack code
摘要:本文的目的不是介绍openstack。我们这里假设你已经知道了openstack是什么,能够做什么。所以目的是介绍如何阅读openstack的代码。通过读代码来进一步学习openstack。 转载要求你懂的:) 目的是懂python和web编程的人看完就能懂neutron代码, 如果没达到这个目的, 阅读全文

posted @ 2016-11-29 17:17 kramer 阅读(617) 评论(0) 推荐(0)

导航