openstack:无法从一瞥启动实例

时间:2017-11-21 05:54:04

标签: openstack openstack-nova openstack-neutron openstack-horizon openstack-glance

我们在(Ubuntu LTS服务器16.04.3)单机上使用召唤来设置OpenStack。所有服务都已启动并运行,并且我已成功上传图像。

我们想在具有nfs服务器的远程机器中保存由“glance image-create”创建的这些扫视图像。所以我们配置了glance-api.conf文件,如下所示。

我的glance-api.conf看起来像这样:

Web Browser

在glance控制器节点中,我已经安装了

此目录路径中的

[glance_store] filesystem_store_datadir = /var/lib/glance/images default_store = file remote machine Ip/home/glance/images/

并在glance-api.conf文件中提到了相同的已安装目录路径。

我创建了两个示例专用网络,其中包含一些ip(192.168.1.0和10.221.50.0)但尚未创建公共网络,因为此时我不想从外部访问此VM实例。

当我尝试从仪表板UI以及CLI启动实例时,我遇到了错误。

Error: Failed to perform requested operation on instance "Ubuntu_Hawkbit", the instance has an error status: Please try again later [Error: No valid host was found. There are not enough hosts available.].

注意:我尝试将Instance与不同的专用网络相关联,认为它可能是网络IP地址问题但面临同样的错误。

当我检查/var/log/nova/nova-compute.log日志时,我看到以下错误。

ERROR nova.image.glance [req-1459f1b2-491c-46a2-b803-6ff621a79d30 6ebc7996240c4ce688234f544c9d0116 07427c9d49704357a049b24193ee0a28 - -
   -] Error contacting glance server 'http://10.206.193.159:9292' for 'data', done trying.  
ERROR nova.image.glance CommunicationError:
   Error finding address for
   http://10.206.193.159:9292/v1/images/6c30e2ab-1078-45ad-bed2-3e3a75f6af8c:
   ('Connection aborted.', BadStatusLine("''",))   
ERROR
   nova_lxd.nova.virt.lxd.image
   [req-1459f1b2-491c-46a2-b803-6ff621a79d30
   6ebc7996240c4ce688234f544c9d0116 07427c9d49704357a049b24193ee0a28 - -
   -] [instance: eedc008d-ef34-498d-8774-b3813ce032f4] Failed to upload 6c30e2ab-1078-45ad-bed2-3e3a75f6af8c to LXD: Connection to glance 
ERROR nova_lxd.nova.virt.lxd.operations
   [req-1459f1b2-491c-46a2-b803-6ff621a79d30
   6ebc7996240c4ce688234f544c9d0116 07427c9d49704357a049b24193ee0a28 - -
   -] [instance: eedc008d-ef34-498d-8774-b3813ce032f4] Faild to start container instance-00000020: Connection to glance host
   http://10.206.193.159:9292 failed: Error finding address for
   http://10.206.193.159:9292/v1/images/6c30e2ab-1078-45ad-bed2-3e3a75f6af8c:
   ('Connection aborted.', BadStatusLine("''",))  
ERROR nova.compute.manager [req-1459f1b2-491c-46a2-b803-6ff621a79d30
   6ebc7996240c4ce688234f544c9d0116 07427c9d49704357a049b24193ee0a28 - -
   -] [instance: eedc008d-ef34-498d-8774-b3813ce032f4] Instance failed to spawn

0 个答案:

没有答案