OpenStack報錯:Host is not mapped to any cell

環境說明:

openstack版本pike
控制節點主機openstack-controller(ubuntu 16.04.5)
計算節點主機openstack-computer(ubuntu 16.04.5)
鏡像cirros


報錯信息:

新建實例dt01報錯:Host 'openstack-computer' is not mapped to any cell

圖片.png



問題解決辦法:

控制節點以stack用戶執行如下命令:

stack@openstack-controller:~$ nova-manage cell_v2 discover_hosts --verbose 
Option "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".
/usr/local/lib/python2.7/dist-packages/pymysql/cursors.py:166: Warning: (1287, u"'@@tx_isolation' is deprecated and will be removed in a future release. Please use '@@transaction_isolation' instead")
  result = self._query(query)
Found 2 cell mappings.
Skipping cell0 since it does not contain hosts.
Getting computes from cell 'cell1': da859b66-f993-4b79-ac58-58009ad27bea
Found 0 unmapped computes in cell: da859b66-f993-4b79-ac58-58009ad27bea

圖片.png


重建實例:

再次新建實例dt04:

圖片.png

實例創建成功,且實例位於openstack-computer節點。


至此問題解決。


參考:https://ask.openstack.org/en/question/116517/host-is-not-mapped-to-any-cell/

https://docs.openstack.org/nova/latest/user/cells.html#step-by-step-for-common-use-cases



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章