当前位置:网站首页>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 .
边栏推荐
- Qt显示FFmpeg解码的图片
- Serevlt初识
- J2EE from entry to earth 01 MySQL installation
- . NET in China - What's New in . NET
- Sword finger offer 04 Find in 2D array
- C # switch between Chinese and English input methods
- Confusion caused by the ramp
- Capabilities required by architects
- 剑指offer 第 3 天字符串(简单)
- [pit avoidance means "difficult"] to realize editable drag and drop sorting of protable
猜你喜欢

WIN10环境下配置pytorch

Analyse de l'optimisation de la réécriture des requêtes lazyagg de l'entrepôt

Django framework - caching, signaling, cross site request forgery, cross domain issues, cookie session token

几分钟上线一个网站 真是神器

Golang keyboard input statement scanln scanf code example

Sword finger offer day 2 linked list (simple)
Module 5 (microblog comments)
![[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

leetcode - 384. Scramble array

Summer Ending
随机推荐
Native JS --- infinite scrolling
leetcode:918. 环形子数组的最大和【逆向思维 + 最大子数组和】
Detailed explanation of string operation functions and memory functions
Restful and RPC
[pit avoidance means "difficult"] the antd form dynamic form is deleted, and the first line is displayed by default
Stockage des données en mémoire
Django framework - caching, signaling, cross site request forgery, cross domain issues, cookie session token
Heavyweight live | bizdevops: the way to break the technology situation under the tide of digital transformation
Analyse de l'optimisation de la réécriture des requêtes lazyagg de l'entrepôt
中国虚拟人哪家强?沙利文、IDC:小冰百度商汤位列第一梯队
Sword finger offer II 032 Effective anagrams
解析数仓lazyagg查询重写优化
Pointer, it has to say that the subject
时间过滤器(el-table)中使用
KVM 脚本管理 —— 筑梦之路
Back test of quantitative trading - example of futures CTA strategy (tqzfuturerenkoscalpingstrategy)
Summer Ending
Common colors for drawing
Custom vertical table
15 basic SEO skills to improve ranking