分享

高手请进,openstack网络问题

odaydayup123 发表于 2013-10-17 21:30:17 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 7 6945
安装完所有服务都是笑脸,但在创建私有网络时就出错了,排查了两周了一直找不到原因,请高手指点。
root@ubuntu:~# nova-manage network list
id      IPv4                    IPv6            start address   DNS1            DNS2            VlanID          project         uuid           
2012-08-15 09:13:33 DEBUG nova.utils [req-16656721-8d32-4b9b-a299-fcc8d29db4c9 None None] backend  from (pid=3726) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
Command failed, please check log for more info
2012-08-15 09:13:33 CRITICAL nova [req-16656721-8d32-4b9b-a299-fcc8d29db4c9 None None] No networks defined.
2012-08-15 09:13:33 TRACE nova Traceback (most recent call last):
2012-08-15 09:13:33 TRACE nova   File "/usr/bin/nova-manage", line 1746, in
2012-08-15 09:13:33 TRACE nova     main()
2012-08-15 09:13:33 TRACE nova   File "/usr/bin/nova-manage", line 1733, in main
2012-08-15 09:13:33 TRACE nova     fn(*fn_args, **fn_kwargs)
2012-08-15 09:13:33 TRACE nova   File "/usr/bin/nova-manage", line 826, in list
2012-08-15 09:13:33 TRACE nova     for network in db.network_get_all(context.get_admin_context()):
2012-08-15 09:13:33 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 760, in network_get_all
2012-08-15 09:13:33 TRACE nova     return IMPL.network_get_all(context)
2012-08-15 09:13:33 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 102, in wrapper
2012-08-15 09:13:33 TRACE nova     return f(*args, **kwargs)
2012-08-15 09:13:33 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1943, in network_get_all
2012-08-15 09:13:33 TRACE nova     raise exception.NoNetworksFound()
2012-08-15 09:13:33 TRACE nova NoNetworksFound: No networks defined.
2012-08-15 09:13:33 TRACE nova
              
               
               

已有(7)人评论

跳转到指定楼层
guwenwu285 发表于 2013-10-17 21:30:52

            你还没有创建网络吧。?
nova-manage network create private --fixed_range_v4=10.10.10.32/27 --num_networks=1 --bridge=br100 --bridge_interface=eth0 --network_size=32
        
回复

使用道具 举报

odaydayup123 发表于 2013-10-17 21:31:50

            谢谢回复,创建了,但创建不上。不知道为什么
        
回复

使用道具 举报

guwenwu285 发表于 2013-10-17 21:32:32

            分析一下创建network之后报错的日志
        
回复

使用道具 举报

odaydayup123 发表于 2013-10-17 21:33:09

            root@ubuntu:~# cat /var/log/nova/nova-manage.log
2012-08-15 09:13:33 DEBUG nova.utils [req-16656721-8d32-4b9b-a299-fcc8d29db4c9 None None] backend  from (pid=3726) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
2012-08-15 09:13:33 CRITICAL nova [req-16656721-8d32-4b9b-a299-fcc8d29db4c9 None None] No networks defined.
2012-08-15 09:13:33 TRACE nova Traceback (most recent call last):
2012-08-15 09:13:33 TRACE nova   File "/usr/bin/nova-manage", line 1746, in
2012-08-15 09:13:33 TRACE nova     main()
2012-08-15 09:13:33 TRACE nova   File "/usr/bin/nova-manage", line 1733, in main
2012-08-15 09:13:33 TRACE nova     fn(*fn_args, **fn_kwargs)
2012-08-15 09:13:33 TRACE nova   File "/usr/bin/nova-manage", line 826, in list
2012-08-15 09:13:33 TRACE nova     for network in db.network_get_all(context.get_admin_context()):
2012-08-15 09:13:33 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/api.py", line 760, in network_get_all
2012-08-15 09:13:33 TRACE nova     return IMPL.network_get_all(context)
2012-08-15 09:13:33 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 102, in wrapper
2012-08-15 09:13:33 TRACE nova     return f(*args, **kwargs)
2012-08-15 09:13:33 TRACE nova   File "/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.py", line 1943, in network_get_all
2012-08-15 09:13:33 TRACE nova     raise exception.NoNetworksFound()
2012-08-15 09:13:33 TRACE nova NoNetworksFound: No networks defined.
2012-08-15 09:13:33 TRACE nova
2012-08-15 09:13:35 DEBUG nova.utils [req-adf470b2-4118-4abf-a3cb-4fa21b3c51fa None None] backend  from (pid=3732) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
2012-08-15 16:15:57 DEBUG nova.utils [-] backend  from (pid=3885) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
2012-08-15 16:15:57 WARNING nova.utils [-] /usr/lib/python2.7/dist-packages/sqlalchemy/pool.py:639: SADeprecationWarning: The 'listeners' argument to Pool (and create_engine()) is deprecated.  Use event.listen().
  Pool.__init__(self, creator, **kw)
2012-08-15 16:15:57 WARNING nova.utils [-] /usr/lib/python2.7/dist-packages/sqlalchemy/pool.py:145: SADeprecationWarning: Pool.add_listener is deprecated.  Use event.listen()
  self.add_listener(l)
2012-08-15 16:16:30 DEBUG nova.utils [req-d3f0720f-6c39-4dce-b5a6-b55aaa1fd9de None None] backend  from (pid=3904) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
2012-08-15 16:16:34 DEBUG nova.utils [req-375b5459-a3ba-4094-bf9b-18a260d599b0 None None] backend  from (pid=3911) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
2012-08-15 16:17:26 DEBUG nova.utils [req-2a15bccd-8e6b-41f3-af05-a79d7985cbcd None None] backend  from (pid=4180) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
2012-08-15 16:19:17 DEBUG nova.utils [req-9bb0d699-2f74-4dc0-9c44-1df02054c23e None None] backend  from (pid=4374) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:658
root@ubuntu:~#
实际上没什么报错信息
        
回复

使用道具 举报

guwenwu285 发表于 2013-10-17 21:33:48

            你后面给的日志是运行nova-manage network list 的报错,
有没有运行nova-manage network create 命令时的错误日志?
        
回复

使用道具 举报

odaydayup123 发表于 2013-10-17 21:34:20

            nova-manage network create 不报错,很奇怪。最后还是没有解决,重装了后可以了。
        
回复

使用道具 举报

odaydayup123 发表于 2013-10-17 21:35:07

            新的问题,openstack下的windows虚拟机创建后没有网卡? 我在制作模板的时候是加了网卡驱动的。但是windows 实例就没有网卡,所以也分配不到ip.  同样的环境, ubuntu的实例就有
回复

使用道具 举报

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

本版积分规则

关闭

推荐上一条 /2 下一条