免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 7866 | 回复: 2
打印 上一主题 下一主题

[OpenStack] instance 启动 无法连接 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-07-08 14:44 |只看该作者 |倒序浏览
1.通过dashboard 启动一个instance 显示 active running。
但vnc 无法连接。提示错误:
Failed to connect to server。

刚启动的时候 可以通过VNC查看,但过几秒就没了。
一开始能看到VNET0.但后面就消失了。
DMESG 错误:
14402.900618] device vnet0 entered promiscuous mode
[14402.917463] br100: port 2(vnet0) entered forwarding state
[14402.917478] br100: port 2(vnet0) entered forwarding state
[14414.568763] br100: port 2(vnet0) entered disabled state
[14414.569656] device vnet0 left promiscuous mode
[14414.569666] br100: port 2(vnet0) entered disabled state
[14415.268045] type=1400 audit(1404800804.484:73): apparmor="STATUS" operation="profile_remove" parent=2565 profile="unconfined" name="libvirt-70f86618-be49-450c-9521-14aa42b7cad5" pid=2566 comm="apparmor_parser"

root@openstack-server1:/var/log/libvirt# tail -f libvirtd.log
2014-07-08 03:22:12.146+0000: 16352: error : qemuMonitorIO:603 : internal error End of file from monitor
2014-07-08 05:30:41.817+0000: 16352: error : qemuMonitorIO:603 : internal error End of file from monitor
2014-07-08 06:01:03.696+0000: 29214: info : libvirt version: 0.9.8
2014-07-08 06:01:03.696+0000: 29214: error : virNetDevGetIndex:656 : Unable to get index for interface vnet0: No such device
2014-07-08 06:01:19.600+0000: 29209: error : qemuMonitorIO:603 : internal error End of file from monitor
2014-07-08 06:04:11.431+0000: 29209: error : qemuMonitorIO:603 : internal error End of file from monitor
2014-07-08 06:17:51.421+0000: 29209: error : qemuMonitorIO:603 : internal error End of file from monitor
2014-07-08 06:17:51.429+0000: 29209: error : virNetDevGetIndex:656 : Unable to get index for interface vnet0: No such device
2014-07-08 06:25:47.924+0000: 29209: error : qemuMonitorIO:603 : internal error End of file from monitor
2014-07-08 06:26:43.789+0000: 29209: error : qemuMonitorIO:603 : internal error End of file from monitor

网络配置:
auto eth1
iface eth1 inet static
address 192.168.137.209
netmask 255.255.255.0
network 192.168.137.0
gateway 192.168.137.1
dns-nameservers 192.168.1.1
broadcast 192.168.137.255



auto eth2
iface eth2 inet manual
up ifconfig eth2 up

auto br100
iface br100 inet static
address 192.168.2.1
netmask 255.255.255.0
bridge_ports eth2
bridge_fd 0
bridge_stp off

nova 配置:
root@openstack-server1:/var/log/libvirt# more /etc/nova/nova.conf
# LOGS/STATE
--debug=True
--dhcpbridge_flagfile=/etc/nova/nova.conf
--dhcpbridge=/usr/bin/nova-dhcpbridge
--logdir=/var/log/nova
--state_path=/var/lib/nova
--lock_path=/run/lock/nova
--allow_admin_api=true
--use_deprecated_auth=false
--auth_strategy=keystone
--scheduler_driver=nova.scheduler.simple.SimpleScheduler
--s3_host=192.168.137.209
--ec2_host=192.168.137.209
--rabbit_host=192.168.137.209
--cc_host=192.168.137.209
--nova_url=http://192.168.137.209:8774/v1.1/
--routing_source_ip=192.168.137.209
--glance_api_servers=192.168.137.209:9292
--image_service=nova.image.glance.GlanceImageService
--iscsi_ip_prefix=192.168.4
--iscsi_ip_address=192.168.137.209
--sql_connection=mysql://novadbadmin:novasecret@192.168.137.209/nova
--ec2_url=http://192.168.137.209:8773/services/Cloud
--keystone_ec2_url=http://192.168.137.209:5000/v2.0/ec2tokens
--api_paste_config=/etc/nova/api-paste.ini
--libvirt_type=qemu
--libvirt_use_virtio_for_bridges=true
--start_guests_on_host_boot=true
--resume_guests_state_on_host_boot=true
# vnc specific configuration
--novnc_enabled=true
--vncproxy_wwwroot=/var/lib/nova/noVNC
--novncproxy_base_url=http://192.168.137.209:6080/vnc_auto.html
--vncserver_proxyclient_address=192.168.137.209
--vncserver_listen=0.0.0.0
# network specific settings
--network_manager=nova.network.manager.FlatDHCPManager
--public_interface=eth1
--flat_interface=eth2
--flat_network_bridge=br100
--fixed_range=192.168.4.1/24
--floating_range=192.168.137.209/27
--network_size=32
--flat_network_dhcp_start=192.168.4.33
--flat_injected=False
--force_dhcp_release=True
--iscsi_helper=tgtadm
--connection_type=libvirt
--root_helper=sudo nova-rootwrap
--verbose=False
#[keystone_authtoken]
--auth_host = openstack-server1
--auth_port = 35357
--auth_protocol = http
--admin_tenant_name = service
--admin_user = nova
--admin_password = nova
--volume_group=nova-volumes
--volume_name_template=volume-%08x

openstack状态:
ils.py:663
Binary           Host                                 Zone             Status     State Updated_At
nova-cert        openstack-server1                    nova             enabled       2014-07-08 06:42:59
nova-compute     openstack-server2                    nova             enabled    XXX   2014-07-08 01:26:45  另外一个节点没开。
nova-scheduler   openstack-server1                    nova             enabled       2014-07-08 06:42:59
nova-compute     openstack-server1                    nova             enabled       2014-07-08 06:43:00
nova-volume      openstack-server1                    nova             enabled       2014-07-08 06:42:59
nova-network     openstack-server1                    nova             enabled       2014-07-08 06:42:59
nova-consoleauth openstack-server1                    nova             enabled       2014-07-08 06:42:59

root@openstack-server1:/var/log/libvirt# nova list
+--------------------------------------+------+--------+---------------------+
|                  ID                  | Name | Status |       Networks      |
+--------------------------------------+------+--------+---------------------+
| 70f86618-be49-450c-9521-14aa42b7cad5 | 111  | ACTIVE | private=192.168.4.3 |
+--------------------------------------+------+--------+---------------------+

root@openstack-server1:/var/log/libvirt# nova-manage network list
id      IPv4                    IPv6            start address   DNS1            DNS2            VlanID          project         uuid           
2014-07-08 14:44:12 DEBUG nova.utils [req-c17d1532-6b9f-48b6-b353-d0dc0337fd0b None None] backend <module 'nova.db.sqlalchemy.api' from '/usr/lib/python2.7/dist-packages/nova/db/sqlalchemy/api.pyc'> from (pid=4511) __get_backend /usr/lib/python2.7/dist-packages/nova/utils.py:663
10      192.168.4.0/24          None            192.168.4.2     8.8.4.4         None            None            None            7f214601-df8f-4ac9-91a5-e0f3f32c7117

论坛徽章:
0
2 [报告]
发表于 2014-07-09 11:20 |只看该作者
没遇到过这种情况,坐等楼下大神来支持

论坛徽章:
0
3 [报告]
发表于 2014-07-16 16:12 |只看该作者
....跟虚拟机安装有关么?请教高手
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP