2012-08-03 5 views
2

devstack 스크립트를 사용하여 다중 노드 openstak을 설치했습니다. VM을 실행할 수 있지만 네트워킹 문제는 한 VM에서 다른 VM으로 ssh/ping 할 수 없습니다. 다른 호스트에서 실행할 수없는 호스트 (control1, computeX)에서만 VM으로 ssh 할 수 있습니다. 어떤 제안?openstack 네트워킹이 VM에서 ping/ssh 할 수 없습니다.

nova-compute  control1        nova    enabled :-) 
nova-cert  control1        nova    enabled :-) 
nova-network  control1        nova    enabled :-) 
nova-scheduler control1        nova    enabled :-) 
nova-consoleauth control1        nova    enabled :-) 
nova-compute  compute1        nova    enabled :-) 
nova-volume  compute1        nova    enabled :-) 
nova-network  compute1        nova    enabled :-) 
nova-compute  compute2        nova    enabled :-) 
nova-volume  compute2        nova    enabled :-) 
nova-network  compute2        nova    enabled :-) 

제어 1은/etc/네트워크/인터페이스

# The loopback network interface 
auto lo 
iface lo inet loopback 

# The primary network interface 
auto eth0 
iface eth0 inet static 
address 172.16.0.1 
#address 172.16.0.101 
netmask 255.255.255.0 
network 172.16.0.0 
broadcast 172.16.0.255 
gateway 172.16.0.254 
dns-nameservers 8.8.8.8 


auto eth1 
iface eth1 inet static 
address 11.0.0.4 
netmask 255.255.255.0 
network 11.0.0.0 
broadcast 11.0.0.255 

compute1은/etc/네트워크/인터페이스

# The loopback network interface 
auto lo 
iface lo inet loopback 

# The primary network interface 
auto eth0 
iface eth0 inet static 
address 172.16.0.2 
netmask 255.255.255.0 
network 172.16.0.0 
broadcast 172.16.0.255 
gateway 172.16.0.254 
dns-nameservers 8.8.8.8 


auto eth1 
iface eth1 inet static 
address 11.0.0.5 
netmask 255.255.255.0 
network 11.0.0.0 
broadcast 11.0.0.255 

제어 1 /etc/nova/nova.conf

[DEFAULT] 
verbose=True 
auth_strategy=keystone 
allow_resize_to_same_host=True 
root_helper=sudo /usr/local/bin/nova-rootwrap /etc/nova/rootwrap.conf 
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler 
dhcpbridge_flagfile=/etc/nova/nova.conf 
fixed_range=10.1.0.0/16 
s3_host=172.16.0.1 
s3_port=3333 
network_manager=nova.network.manager.FlatDHCPManager 
osapi_compute_extension=nova.api.openstack.compute.contrib.standard_extensions 
my_ip=172.16.0.1 
public_interface=eth0 
vlan_interface=eth0 
flat_network_bridge=br100 
flat_interface=eth1 
sql_connection=mysql://root:[email protected]/nova?charset=utf8 
libvirt_type=qemu 
libvirt_cpu_mode=none 
instance_name_template=instance-%08x 
novncproxy_base_url=http://172.16.0.1:6080/vnc_auto.html 
xvpvncproxy_base_url=http://172.16.0.1:6081/console 
vncserver_listen=127.0.0.1 
vncserver_proxyclient_address=127.0.0.1 
api_paste_config=/etc/nova/api-paste.ini 
image_service=nova.image.glance.GlanceImageService 
ec2_dmz_host=172.16.0.1 
rabbit_host=172.16.0.1 
rabbit_password=supersecret 
glance_api_servers=172.16.0.1:9292 
force_dhcp_release=True 
multi_host=True 
send_arp_for_ha=True 
use_syslog=True 
logging_context_format_string=%(asctime)s %(levelname)s %(name)s [%(request_id)s %(user_name)s %(project_name)s] %(instance)s%(message)s 
volume_api_class=nova.volume.cinder.API 
compute_driver=libvirt.LibvirtDriver 
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver 
enabled_apis=ec2,osapi_compute,metadata 

답변

0

시도해보십시오 network_manager = nov a.network.manager.FlatDHCPManager를 network_manager = nova.network.manager.FlatManager로 변경하고 network_manager 설정에 대한 다른 구성을 시도하십시오. 그것은 FLatManager가 여기에서 작동해야한다고 말합니다 : http://docs.openstack.org/trunk/openstack-compute/admin/content/configuring-flat-networking.html 그리고 FLatDHCPManager와 비슷합니다. 그래서 실제 이더넷 카드에 바인딩되어있는 것처럼 보이는 문제는 확실하지 않습니다.

1

당신은 핑 (ping) 및 SSH를 사용하려면 기본 OpenStack은 보안 그룹에 규칙을 추가해야 할 수도 있습니다

nova secgroup-add-rule default icmp -1 -1 0.0.0.0/0 
nova secgroup-add-rule default tcp 22 22 0.0.0.0/0 

첫 번째 규칙은 인터넷 제어 메시지 프로토콜 VM 인스턴스 (ICMP) (ping 명령) 할 수 있습니다. 두 번째 규칙은 SSH에서 사용하는 22 포트를 통한 TCP 연결을 활성화합니다.

관련 문제