分享

急!你们肯定遇到过的No valid host was found. There are not enough hosts avail

我的配置:controller节点4G+50G,compute:4G+50G,用的初始镜像cirros,VMware软件

[mw_shl_code=shell,true]vim /var/log/nova/nova-conductor.log

2020-02-03 18:10:48.489 4623 WARNING nova.scheduler.utils [req-47098f0c-589e-4e8b-8c26-c05ff6f39cb1 d443a4740d5c4fdfa66a5f103f62fb11 63dcf29fb16f4bb784a71e7a474a3213 - - -] [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e] Setting instance to ERROR state.
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [req-47098f0c-589e-4e8b-8c26-c05ff6f39cb1 d443a4740d5c4fdfa66a5f103f62fb11 63dcf29fb16f4bb784a71e7a474a3213 - - -] [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e] Failed to deallocate networks
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e] Traceback (most recent call last):
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]   File "/usr/lib/python2.7/site-packages/nova/conductor/manager.py", line 273, in _cleanup_allocated_networks
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]     context, instance, requested_networks=requested_networks)
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 838, in deallocate_for_instance
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]     self._unbind_ports(context, ports_to_skip, neutron)
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 326, in _unbind_ports
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]     get_client(context, admin=True))
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 141, in get_client
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]     _ADMIN_AUTH = _load_auth_plugin(CONF)
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]   File "/usr/lib/python2.7/site-packages/nova/network/neutronv2/api.py", line 122, in _load_auth_plugin
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e]     raise neutron_client_exc.Unauthorized(message=err_msg)
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e] Unauthorized: Unknown auth type: None
2020-02-03 18:10:48.565 4623 ERROR nova.conductor.manager [instance: 5faa26e0-15a7-4f96-9774-e78f6982572e][/mw_shl_code]

请问各位大佬?这怎么解决?
我各个服务都启动正常,都排查了?




已有(2)人评论

跳转到指定楼层
阿飞 发表于 2020-2-4 06:34:46
Setting instance to ERROR state.

Failed to deallocate networks

No valid host was found. There are not enough hosts avail

通过楼主的帖子发现了以上三个错误,其实应该还有更多的错误,所以建议楼主要综合分析,很多错误是由别的错误引发的。

首先要发现错误,通过下面方法:
openstack排除查找错误的两种方法
https://www.aboutyun.com/forum.php?mod=viewthread&tid=7241

对于网络取消分配,network肯定是有错误的,为何会取消分配。也就是network会有更详细的错误,需要到上面去找ERROR。

Setting instance to ERROR state.是指初始化失败,初始化失败所以要设置instance 为错误状态,既然为错误状态,实例初始化失败,肯定是找不到hosts 的,所以根据上面推测是network引发的。当然如果想更准确的定位,楼主还需要去找更多的ERROR及运行信息

回复

使用道具 举报

肀肀 发表于 2020-2-4 11:30:11
阿飞 发表于 2020-2-4 06:34
Setting instance to ERROR state.

Failed to deallocate networks

谢谢大佬,,,感谢感谢!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条