OpenStack报错:Hostisnotmappedtoanycell
环境说明:
创新互联长期为数千家客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为德令哈企业提供专业的成都做网站、成都网站制作,德令哈网站改版等技术服务。拥有十载丰富建站经验和众多成功案例,为您定制开发。
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
网站名称:OpenStack报错:Hostisnotmappedtoanycell
浏览地址:http://pwwzsj.com/article/jepghg.html