共計 669 個字符,預計需要花費 2 分鐘才能閱讀完成。
這期內容當中丸趣 TV 小編將會給大家帶來有關如何 Start Instance 操作,文章內容豐富且以專業的角度為大家分析和敘述,閱讀完這篇文章希望大家可以有所收獲。
通過日志文件詳細分析 instance start 操作。
下面是 start instance 的流程圖
向 nova-api 發送請求
nova-api 發送消息
nova-compute 執行操作
下面我們詳細討論每一個步驟。
向 nova-api 發送請求
客戶(可以是 OpenStack 最終用戶,也可以是其他程序)向 API(nova-api)發送請求:“幫我啟動這個 Instance”
查看日志 /opt/stack/logs/n-api.log
nova-api 發送消息
nova-api 向 Messaging(RabbitMQ)發送了一條消息:“啟動這個 Instance”查看源代碼 /opt/stack/nova/nova/compute/api.py 的 2002 行,方法是 start。
self.compute_rpcapi.start_instance() 的作用就是向 RabbitMQ 上 nova-compute 的消息隊列里發送一條 start instance 的消息。
nova-compute 執行操作
查看日志 /opt/stack/logs/n-cpu.log
開始啟動
準備虛擬網卡
準備 instance 的 XML 文件
準備 instance 鏡像文件
成功啟動
上述就是丸趣 TV 小編為大家分享的如何 Start Instance 操作了,如果剛好有類似的疑惑,不妨參照上述分析進行理解。如果想知道更多相關知識,歡迎關注丸趣 TV 行業資訊頻道。