当前位置:网站首页>API in Nova
API in Nova
2022-06-25 13:19:00 【Guard of Tuanzi】
1、nova neutralization api Relevant documents / Directory folder has :
api Catalog
Multiple rpcaip.py
Multiple api.py
2、openstack Several kinds of api
Rest api: The open interface of the project .
Local call api(local api): In process method calls , And ordinary Python Method call
Rpcapi.py It is the remote call of a function module api
3、Rest API:RestAPI yes openstack Standard external interface , all API Are defined in official documents .
openstack Medium rest api There are two key technologies for implementation :wsgi and Paste Deployment.
wsgi It's an interface specification . Definition web server and web application Interface between .
Paste Deployment It's a response to wsgi Developed library , Used to configure and load wsgi application and server.openstack All configurations in are made through api-paste.ini Document supply . Through this file, you can directly call Paste Deployment Code to load web server And the above application.
4、openstack service endpoint
Every service (nova,cinder,neutron etc. ) Will be in keystone Register one on service endpoint, This endpoint It's just one. URL. Every rest api Integrity URL It's from this. endpoint+api As defined in the document URI Composed of .
Ps:keystone For each service Definition 3 individual endpoint: One is for the public network (public) The use of ; One is
Intranet oriented (internal) The use of ; Another one is for admi The use of . Usually internal and admin Of endpoint It's the same , It's all used openstack Manage... In the network IP Address .public Need to use the public network IP Address .
5、 Local call api
And remote call api Very similar , Can only be called between processes . There will be one for each service api.py file , This file provides the local call of the service api Interface . Such as compute in api.py. see api.py The file shows , Many of the implementations in this file are actually called by compute Of rpcapi.py
6、 The remote invocation api
Every openstack The project will include multiple functionally independent services (service). Such as nova Will be divided into nova-api,nova-conductor,nova-compute... Besides nova-api Outside , The rest are RPC server.
7、openstack Medium api Usage rule
If it is a cross project call ( Such as nova call keystone,glance etc. ), Use rest api( Through the corresponding python-XXXclient library ). install nova You need to rely on python-cinderclient python-neutronclien python-glanceclient python-keystoneclient, because nova You need to call these rest api. Other projects have similar dependencies .
If it is a cross service call within a project , Then use RPC call , Provided through services rpcapi.py file .
边栏推荐
- OpenStack学习笔记-Glance组件深入了解
- 1024 hydrology
- Custom vertical table
- CUDA error: unspecified launch failure
- Germany holds global food security Solidarity Conference
- Used in time filter (EL table)
- Detailed explanation of string operation functions and memory functions
- An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down
- Three lines of code to simply modify the project code of the jar package
- 时间过滤器(el-table)中使用
猜你喜欢

剑指 Offer II 029. 排序的循环链表
![[AI helps scientific research] fool drawing of loss curve](/img/38/5cb2a3d33a609dab3874215d5f7b5b.png)
[AI helps scientific research] fool drawing of loss curve

Solve the problem that yarn cannot load files in vs Code
![[turn] starting from the end, analyze in detail how to fill in the college entrance examination volunteer](/img/77/715454c8203d722e246ed70e1fe0d8.png)
[turn] starting from the end, analyze in detail how to fill in the college entrance examination volunteer

剑指 Offer II 028. 展平多级双向链表

Summer Ending

leetcode:456. 132 模式【单调栈】

Sword finger offer day 2 linked list (simple)

坡道带来的困惑

揭秘GaussDB(for Redis):全面对比Codis
随机推荐
Restful and RPC
汇编标志位相关知识点(连)
Lexical trap
leetcode:456. 132 模式【单调栈】
Which Chinese virtual human is better? Sullivan, IDC: Xiaobing Baidu Shangtang ranks in the first echelon
OpenStack学习笔记之-Nova组件深入了解
Include what you use to save chaotic header files
Sword finger offer II 028 Flatten multi-level bidirectional linked list
Nova中的api
与生产环境中的 console.log 说再见
KDD 2022 | GraphMAE:自监督掩码图自编码器
字符串入门十八讲合集四
JVM parameter interpretation
Sword finger offer II 025 Adding two numbers in a linked list
Introduction to string 18 lectures Collection 4
Optimization of lazyagg query rewriting in parsing data warehouse
Common colors for drawing
About data storage in memory
德国举行全球粮食安全团结会议
坡道带来的困惑