share-image
ESC

Openstack的 cinder 和 nova 组件详解

nova主要组成:

nova-api
nova-scheduler
nova-compute
nova-conductor

cinder主要组成:

cinder-api
cinder-scheduler
cinder-volume

cinder 工作流程

cinder各组件功能:

Cinder-api 是 cinder 服务的 endpoint,提供 rest 接口,负责处理 client 请求,并将 RPC 请求发送至 cinder-scheduler 组件。

nova 工作流程

  • nova-api通过rpc.call向nova-scheduler请求是否有创建虚拟机的资源(Host ID)。

  • nova-scheduler进程侦听消息队列,获取nova-api的请求。

  • nova-scheduler通过查询nova数据库中计算资源的情况,并通过调度算法计算符合虚拟机创建需要的主机。

  • 对于有符合虚拟机创建的主机,nova-scheduler更新数据库中虚拟机对应的物理主机信息。

  • nova-scheduler通过rpc.cast向nova-compute发送对应的创建虚拟机请求的消息。

  • nova-compute会从对应的消息队列中获取创建虚拟机请求的消息。

  • nova-compute通过rpc.call向nova-conductor请求获取虚拟机消息。(Flavor)

  • nova-conductor从消息队队列中拿到nova-compute请求消息。

  • nova-conductor根据消息查询虚拟机对应的信息。

  • nova-conductor从数据库中获得虚拟机对应信息。

  • nova-conductor把虚拟机信息通过消息的方式发送到消息队列中。

  • nova-compute从对应的消息队列中获取虚拟机信息消息。

  • nova-compute通过keystone的RESTfull API拿到认证的token,并通过HTTP请求glance-api获取创建虚拟机所需要镜像。

整体工作流程

文章作者:阿文
文章链接: https://www.awen.me/post/16618.html
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 阿文的博客
本文于 2018-07-05 发布,已超过半年(2765天),请注意甄别内容是否已过期。