環境說明:
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
問題解決辦法:
控制節點以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
重建實例:
再次新建實例dt04:
實例創建成功,且實例位於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