1. 程式人生 > >OpenStack Create Instances

OpenStack Create Instances

com ova ron proc ffffff 網絡相關 操作 tor size

技術分享圖片

  1. dashboard 或是 CLI 從用戶處獲得認證信息(用戶名及密碼),然後轉成REST 的API 發送給 Keystone, 並等待返回結果。Keystone會返回一個token, 然後用於後續的操作。
  2. dashboard 或是 CLI 使用上步的token發送基於REST的創建Instance的命令給nova-api。
  3. nova-api 使用token對操作的API進行權限認證。
  4. nova-api 根據當前參數和數據據進行比較,檢查沖突項。並且會在數據庫中 建立一條記錄
  5. nova-api 發送RPC請求到queue, 交給調度器(Scheduler)處理
  6. 調度器從queue裏把消息取出來
  7. 調度器根據各種Filter來進行篩選,從有效的主機中選出一個可用的主機。並且發送RPC請求到queue中。
  8. 本地的主機從queue中取出RCP請求消息
  9. nova-computer發送RPC請求給nova-conductor獲取host相關的信息,並且更新數據庫中instance的狀態
  10. nova-conductor取出消息
  11. nova-conductor從數據庫中取出信息並且返回給nova-computer
  12. nova-computer發送REST請求給Glance, 用以獲取Image的信息並且從Image的存儲設備上下載對應的Image
  13. Glance通過token去Kenstone進行認證,並且下載Image到Host
  14. nova-computer發送REST請求給Neutron獲取網絡相關信息
  15. Neutron通過token去Kenstone進行認證,並返回相關信息
  16. nova-computer發送REST請求Cinder獲取硬盤相關的信息
  17. Cinder通過token去Kenstone進行認證,並返回相關信息
  18. nova-computer生成相關的信息,然後調用Hyervisor去啟動Instance**

OpenStack Create Instances