我在安装Essex 版openstack 多节点时遇到不同计算节点的VM之间网络不通问题!

asked 2012-12-18 13:44:35 -0600

open4job gravatar image

大家好!

我在安装Essex 版openstack 多节点时遇到不同计算节点的VM之间网络不通问题! 具体情况是这样的,之前我是把所有的组件都安装在一台机器上的后来不够用了我想扩展一台,可是按官方文档(os-compute-starterguide-trunk.pdf)多节点安装手册安装后,确实也能分配到另外的节点上创建虚拟机,就是不同的计算节点上的虚拟机之网络怎么都不通,不过同一台计算节点上的虚拟机是通的。比如: 在 host1 (150.236.48.135 控制节点) 上有 192.168.4.45,192.168.4.36 在 host2 (150.236.48.205)上有192.168.4.65,192.168.4.66. 192.168.4.45 ping 192.168.4.36 通; 192.168.4.45 ping 192.168.4.65 不通。

不过子要都附上public ip 就通了,比如 192.168.4.45 (150.236.48.56) ping 192.168.4.6 (15.236.48.97) 通,不过我的public ip个数实在有限,只能用private ip才够用啊!

这里是我的配置:

OS:ubuntu 12.04

openstack 版本: Essex

host1 :

网络情况 vi /etc/network/interfaces

auto lo iface lo inet loopback

auto eth0 iface eth0 inet manual up ifconfig eth0 up

auto eth1 iface eth1 inet static address 150.236.48.135 netmask 255.255.255.0 network 150.236.48.0 broadcast 150.236.48.255 gateway 150.236.48.1 dns-nameservers 150.236.48.1

nova 配置 vi /etc/nova/nova.conf

--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=150.236.48.135 --ec2_host=150.236.48.135 --rabbit_host=150.236.48.135 --cc_host=150.236.48.135 --nova_url=http://150.236.48.135:8774/v1.1/ --routing_source_ip=150.236.48.135 --glance_api_servers=150.236.48.135:9292 --image_service=nova.image.glance.GlanceImageService --iscsi_ip_prefix=192.168.4 --sql_connection=mysql://novadbadmin:novasecret@150.236.48.135/nova --ec2_url=http://150.236.48.135:8773/services/Cloud --keystone_ec2_url=http://150.236.48.135:5000/v2.0/ec2tokens --api_paste_config=/etc/nova/api-paste.ini --libvirt_type=kvm --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 --novncproxy_base_url=http://150.236.48.135:6080/vnc_auto.html --vncserver_proxyclient_address=150.236.48.135 --vncserver_listen=150.236.48.135

network specific settings

--network_manager=nova.network.manager.FlatDHCPManager --public_interface=eth1 --flat_interface=eth0 --flat_network_bridge=br100 --fixed_range=192.168.4.1/27 --floating_range=150.236.48.135/27 --network_size=32 --flat_network_dhcp_start=192.168.4.33 --flat_injected=False --force_dhcp_release --iscsi_helper=tgtadm --connection_type=libvirt --root_helper=sudo nova-rootwrap --verbose

host2 () 网络配置 vi /etc/network/interfaces auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 150.236.48.205 netmask 255.255.255.0 network 150.236.48.0 broadcast 150.236.48.255 gateway 150.236.48.1 dns-nameservers 150.236.48.1 auto eth1 iface eth1 inet manual up ifconfig eth1 up

nova 配置 vi /etc/nova/nova.conf

--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=150.236.48.135 --ec2_host=150.236.48.135 --rabbit_host=150.236.48.135 --cc_host=150.236.48.135 --nova_url=http://150.236.48.135:8774/v1.1/ --routing_source_ip=150.236.48.135 --glance_api_servers=150.236.48.135:9292 --image_service=nova.image.glance.GlanceImageService --iscsi_ip_prefix=192.168.4 --sql_connection ... (more)

edit retag flag offensive close merge delete

2 answers

Sort by » oldest newest most voted
0

answered 2012-12-19 06:25:48 -0600

我也遇到了同样的问题,在控制节点物理机上的虚拟机都可以连通ssh,用 nova-manage service list 可以看到计算节点compute scheduler netwoerk服务已经启动,但是 在计算节点物理机上的虚拟机无法连通~~

请指导

edit flag offensive delete link more
0

answered 2012-12-21 02:08:01 -0600

you may check the host1 can ping to host2 or not, if not, I guess it may be a problem of host network configure, if can, you can check the security group, the ICMP rule is set or not, if you want to ping to an instance, the ICMP rule must be set. good luck!

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2012-12-18 13:44:35 -0600

Seen: 305 times

Last updated: Dec 21 '12