分享

openstack【juno】入门 【实例篇】二十六:创建实例(neutron)

pig2 发表于 2015-2-26 13:01:58 [显示全部楼层] 只看大图 回帖奖励 阅读模式 关闭右栏 50 222773
贪吃的奶酪 发表于 2015-4-30 13:59:48
创建实例的时候出现
root@controller:/home/jxy# source admin-openrc.sh
root@controller:/home/jxy# nova get-vnc-console demo-instance1 novnc
ERROR (CommandError): No server with a name or ID of 'demo-instance1' exists.
这个问题是怎么回事啊?

点评

demo-instance1已经存在了,换个名字,比如demo-instance2,demo-instance3  发表于 2015-4-30 14:01
回复

使用道具 举报

springse 发表于 2015-4-29 13:32:45
大神  我Openstack创建的虚拟机不能Ping通  那段配置文件也加上了  
QQ图片20150429133130.png
虚拟机网络配置是这个样子的  

有可能是哪有问题呢
错误日志也没找到

谢谢大神了

点评

很多人都遇到了这个问题,据了解应该需要了解下路由器、防火墙、ovs等信息  发表于 2015-4-30 14:01
回复

使用道具 举报

菠萝吹雪 发表于 2015-4-22 10:50:56
Ankse 发表于 2015-4-19 23:33
答案摆着 却没看到,花很大功夫找到解决方法,回来却发现答案都在楼上

我也发现了。。。。
回复

使用道具 举报

Ankse 发表于 2015-4-19 23:33:38
Ankse 发表于 2015-4-19 23:31
我发现我总是自问自答

答案摆着 却没看到,花很大功夫找到解决方法,回来却发现答案都在楼上
回复

使用道具 举报

Ankse 发表于 2015-4-19 23:31:50
回复

使用道具 举报

Ankse 发表于 2015-4-19 23:31:05
Ankse 发表于 2015-4-19 17:21
Error: 创建实例 "demo-instance1" 失败: 请稍后再试 [错误: Build of instance 8ab927a8-4ed0-44e5-989b-5 ...

关于虚拟机启动失败
nova-compute.log:2015-04-19 22:47:41.000 1874 TRACE nova.compute.manager [instance: dd68d637-9dcc-4ed2-bc64-2c100a0f806f] BuildAbortException: Build of instance dd68d637-9dcc-4ed2-bc64-2c100a0f806f aborted: Failed to allocate the network(s), not rescheduling.

解决方法找到稍微简单点的
root@compute1:~# vim /etc/nova/nova.conf
[DEFAULT]
vif_plugging_is_fatal = False
vif_plugging_timeout = 0

service nova-compute restart

回复

使用道具 举报

Ankse 发表于 2015-4-19 17:21:40
Error: 创建实例 "demo-instance1" 失败: 请稍后再试 [错误: Build of instance 8ab927a8-4ed0-44e5-989b-5e6e1f6abf9a aborted: Failed to allocate the network(s), not rescheduling.].
这个需要     启用命名空间和启用删除废弃的命名空间  吗?
回复

使用道具 举报

Ankse 发表于 2015-4-19 17:15:20
Ankse 发表于 2015-4-19 17:07
创建实例时指定的网络ID怎么查看  好像不是列出来的那两个中的一个


第一个实例使用demo-net 租户网络,尽管如此,你需要使用id,而不是使用name

注意到了 ~~
回复

使用道具 举报

Ankse 发表于 2015-4-19 17:07:17
创建实例时指定的网络ID怎么查看  好像不是列出来的那两个中的一个
回复

使用道具 举报

pig2 发表于 2015-4-8 09:39:02
本帖最后由 pig2 于 2015-4-8 09:50 编辑

openstack 创建实例失败原因总结

1.nova-manage service list
其中进程失败

2.网络分配失败

表现1:Spawning new instances fails to allocate the network
表现2:OpenStack juno error: Virtual Interface creation failed

表现3:File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2039, in _do_build_and_run_instance filter_properties) File "/usr/lib/python2.7/dist-packages/nova/compute/manager.py", line 2157, in _build_and_run_instance reason=msg)
表现4:
Build of instance 098387eb-efba-4f21-ae83-a7c27bf77bf2 aborted: Failed to allocate the network(s), not rescheduling.




在计算节点
/etc/nova/nova-compute.conf


增加如下内容:
vif_plugging_timeout = 10
vif_plugging_is_fatal = False


重启
service nova-compute restart




回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条