系统集成虚拟化OpenStack

算节点上只能ping通该实例内部IP,ping不通浮动IP

采用单网卡多节点模式部署,控制节点上安装nova-network服务,计算节点未安装nova-network服务。
目前可以在控制节点及计算节点正常创建实例,并可以正常分配内部IP及手动分配浮动IP。在控制节点上可以正常ping通所有节点上的虚拟机实例IP。
存在的问题:
1、在控制节点上可以ping通计算节点上创建的虚拟机实例浮动IP。但在计算节点上只能ping通该实例内部IP,ping不通浮动IP。
参与73

56同行回答

zhanghao001122zhanghao001122项目经理北京休伦科技有限公司
计算节点上没有nova-network服务,那个br100是你手动创建的吗?显示全部
计算节点上没有nova-network服务,那个br100是你手动创建的吗?收起
软件开发 · 2015-05-20
浏览2026
gaombenetgaombenet系统工程师家里蹲
回复 13# zhanghao001122 root@hwnode1:/home/ubuntu# routeKernel IP routing tableDestination     Gateway         Genmask         Flags Metric Ref    Use Ifacedefa...显示全部
回复 13# zhanghao001122
root@hwnode1:/home/ubuntu# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         110.1.20.254    0.0.0.0         UG    0      0        0 br100
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
192.168.200.0   *               255.255.255.0   U     0      0        0 br100
110.1.20.0      *               255.255.255.0   U     0      0        0 br100收起
系统集成 · 2015-05-20
浏览1965
gaombenetgaombenet系统工程师家里蹲
回复 12# zhanghao001122 [img][/img]显示全部
回复 12# zhanghao001122
[img]

无标题.png

[/img]收起
系统集成 · 2015-05-20
浏览1998
zhanghao001122zhanghao001122项目经理北京休伦科技有限公司
还有,看看你控制节点的路由条目显示全部
还有,看看你控制节点的路由条目收起
软件开发 · 2015-05-20
浏览2011
zhanghao001122zhanghao001122项目经理北京休伦科技有限公司
你这个架构好奇怪呀,呵呵你设置一下安全组看看,允许计算节点IP的ICMP通过.显示全部
你这个架构好奇怪呀,呵呵

你设置一下安全组看看,允许计算节点IP的ICMP通过.收起
软件开发 · 2015-05-20
浏览2041
gaombenetgaombenet系统工程师家里蹲
回复 9# zhanghao001122 控制节点root@hwnode1:/home/ubuntu# routeKernel IP routing tableDestination     Gateway         Genmask         Flags Metric Ref    Use If...显示全部
回复 9# zhanghao001122
控制节点
root@hwnode1:/home/ubuntu# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         110.1.20.254    0.0.0.0         UG    0      0        0 br100
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
192.168.200.0   *               255.255.255.0   U     0      0        0 br100
110.1.20.0      *               255.255.255.0   U     0      0        0 br100
root@hwnode1:/home/ubuntu# more /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
auto p1p1
iface p1p1 inet static
address 110.1.20.21
netmask 255.255.255.0
network 110.1.20.0
gateway 110.1.20.254

计算节点
root@hwnode2:/home/ubuntu# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         110.1.20.254    0.0.0.0         UG    0      0        0 br100
192.168.122.0   *               255.255.255.0   U     0      0        0 virbr0
192.168.200.0   hwnode2         255.255.255.0   UG    0      0        0 br100
110.1.20.0      *               255.255.255.0   U     0      0        0 br100
root@hwnode2:/home/ubuntu# more /etc/network/interfaces
# This file describes the network interfaces available on your system

# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback
auto p1p1
iface p1p1 inet static
address 110.1.20.22
netmask 255.255.255.0
network 110.1.20.0
gateway 110.1.20.254收起
系统集成 · 2015-05-20
浏览1963
gaombenetgaombenet系统工程师家里蹲
回复 7# zhanghao001122 没有使用multi-host模式,只在控制节点1上安装了nova-network服务,计算节点没有安装nova-network服务。详细看nova.conf配置文件控制节点:[DEFAULT]# LOGSverbose=Truedebug=Falselogdir=/var/log/nova# STATEauth_strategy=keystonestate_path=/var/...显示全部
回复 7# zhanghao001122
没有使用multi-host模式,只在控制节点1上安装了nova-network服务,计算节点没有安装nova-network服务。详细看nova.conf配置文件
控制节点:
[DEFAULT]

# LOGS
verbose=True
debug=False
logdir=/var/log/nova

# STATE
auth_strategy=keystone
state_path=/var/lib/nova
lock_path=/run/lock/nova
rootwrap_config=/etc/nova/rootwrap.conf

# PASTE FILE
api_paste_config=/etc/nova/api-paste.ini

# RABBIT
rabbit_host=127.0.0.1
rabbit_port=5672
rpc_backend = nova.openstack.common.rpc.impl_kombu
rabbit_userid=guest
rabbit_password=guest

# SCHEDULER
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler

# NETWORK
network_manager=nova.network.manager.FlatDHCPManager
force_dhcp_release=True
dhcpbridge_flagfile=/etc/nova/nova.conf
dhcpbridge=/usr/bin/nova-dhcpbridge
firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
my_ip=110.1.20.21
public_interface=br100
vlan_interface=p1p1
flat_network_bridge=br100
flat_interface=p1p1
dnsmasq_config_file=/etc/nova/dnsmasq-nova.conf
fixed_range=''
enable_ipv6=False
metadata_host=127.0.0.1

# GLANCE
image_service=nova.image.glance.GlanceImageService
glance_api_servers=110.1.20.21:9292
glance_host=110.1.20.21

# CINDER
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900
snapshot_image_format=qcow2
iscsi_helper=tgtadm

# COMPUTE
network_api_class = nova.network.api.API
security_group_api = nova
compute_manager=nova.compute.manager.ComputeManager
connection_type=libvirt
compute_driver=libvirt.LibvirtDriver
libvirt_type=kvm
libvirt_inject_key=false
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
remove_unused_base_images=true
remove_unused_resized_minimum_age_seconds=3600
remove_unused_original_minimum_age_seconds=3600
checksum_base_images=false
start_guests_on_host_boot=true
resume_guests_state_on_host_boot=true
volumes_path=/var/lib/nova/volumes

# QUOTAS
quota_security_groups=50
quota_fixed_ips=40
quota_instances=20
force_config_drive=false
cpu_allocation_ratio=16.0
ram_allocation_ratio=1.5

# KEYSTONE
keystone_ec2_url=http://110.1.20.21:5000/v2.0/ec2tokens

# VNC CONFIG
my_ip=110.1.20.21
novnc_enabled=true
novncproxy_base_url=http://110.1.20.21:6080/vnc_auto.html
xvpvncproxy_base_url=http://110.1.20.21:6081/console
novncproxy_host=110.1.20.21
novncproxy_port=6080
vncserver_listen=110.1.20.21
vncserver_proxyclient_address=110.1.20.21

# OTHER
osapi_max_limit=1000

# APIs
enabled_apis=ec2,osapi_compute,metadata
osapi_compute_extension = nova.api.openstack.compute.contrib.standard_extensions
ec2_workers=4
osapi_compute_workers=4
metadata_workers=4
osapi_volume_workers=4
osapi_compute_listen=110.1.20.21
osapi_compute_listen_port=8774
ec2_listen=110.1.20.21
ec2_listen_port=8773
ec2_host=110.1.20.21
ec2_private_dns_show_ip=True

[database]
connection = mysql://nova:novapw@110.1.20.21/nova

[keystone_authtoken]
auth_uri = http://110.1.20.21:5000
auth_host = 110.1.20.21
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = novapw
计算节点
[DEFAULT]

# LOGS
verbose=True
debug=False
logdir=/var/log/nova

# STATE
auth_strategy=keystone
state_path=/var/lib/nova
lock_path=/run/lock/nova
rootwrap_config=/etc/nova/rootwrap.conf

# PASTE FILE
api_paste_config=/etc/nova/api-paste.ini

# RABBIT
rabbit_host=110.1.20.21
rabbit_port=5672
rpc_backend = nova.openstack.common.rpc.impl_kombu
rabbit_userid=guest
rabbit_password=guest

# SCHEDULER
compute_scheduler_driver=nova.scheduler.filter_scheduler.FilterScheduler

# NETWORK
# network_manager=nova.network.manager.FlatDHCPManager
# force_dhcp_release=True
# dhcpbridge_flagfile=/etc/nova/nova.conf
# dhcpbridge=/usr/bin/nova-dhcpbridge
# firewall_driver=nova.virt.libvirt.firewall.IptablesFirewallDriver
# my_ip=p1p1
# public_interface=br100
# vlan_interface=p1p1
# flat_network_bridge=br100
# flat_interface=p1p1
# dnsmasq_config_file=/etc/nova/dnsmasq-nova.conf
# enable_ipv6=False

# GLANCE
image_service=nova.image.glance.GlanceImageService
glance_api_servers=110.1.20.21:9292
glance_host=110.1.20.21

# CINDER
volume_api_class=nova.volume.cinder.API
osapi_volume_listen_port=5900
snapshot_image_format=qcow2
iscsi_helper=tgtadm

# COMPUTE
network_api_class = nova.network.api.API
security_group_api = nova
compute_manager=nova.compute.manager.ComputeManager
connection_type=libvirt
compute_driver=libvirt.LibvirtDriver
libvirt_type=kvm
libvirt_inject_key=false
root_helper=sudo nova-rootwrap /etc/nova/rootwrap.conf
remove_unused_base_images=true
remove_unused_resized_minimum_age_seconds=3600
remove_unused_original_minimum_age_seconds=3600
checksum_base_images=false
start_guests_on_host_boot=true
resume_guests_state_on_host_boot=true
volumes_path=/var/lib/nova/volumes

# QUOTAS
quota_security_groups=50
quota_fixed_ips=40
quota_instances=20
force_config_drive=false
cpu_allocation_ratio=16.0
ram_allocation_ratio=1.5

# KEYSTONE
keystone_ec2_url=http://110.1.20.21:5000/v2.0/ec2tokens

# VNC CONFIG
my_ip=110.1.20.22
novnc_enabled=true
novncproxy_base_url=http://110.1.20.21:6080/vnc_auto.html
xvpvncproxy_base_url=http://110.1.20.21:6081/console
novncproxy_host=110.1.20.22
novncproxy_port=6080
vncserver_listen=110.1.20.22
vncserver_proxyclient_address=110.1.20.22

# OTHER
osapi_max_limit=1000

# APIs
enabled_apis=ec2,osapi_compute,metadata
osapi_compute_extension = nova.api.openstack.compute.contrib.standard_extensions
ec2_workers=4
osapi_compute_workers=4
metadata_workers=4
osapi_volume_workers=4
osapi_compute_listen=p1p1
osapi_compute_listen_port=8774
ec2_listen=p1p1
ec2_listen_port=8773
ec2_host=p1p1
ec2_private_dns_show_ip=True

[database]
connection = mysql://nova:novapw@110.1.20.21/nova

[keystone_authtoken]
auth_uri = http://110.1.20.21:5000
auth_host = 110.1.20.21
auth_port = 35357
auth_protocol = http
admin_tenant_name = service
admin_user = nova
admin_password = novapw收起
系统集成 · 2015-05-20
浏览6148
zhanghao001122zhanghao001122项目经理北京休伦科技有限公司
把你的计算和控制节点的路由条路也贴出来看看.显示全部
把你的计算和控制节点的路由条路也贴出来看看.收起
软件开发 · 2015-05-20
浏览5716
zhanghao001122zhanghao001122项目经理北京休伦科技有限公司
把你的网络分配的信息,网卡分配的信息,稍微再详细一点.显示全部
把你的网络分配的信息,网卡分配的信息,稍微再详细一点.收起
软件开发 · 2015-05-20
浏览5665
zhanghao001122zhanghao001122项目经理北京休伦科技有限公司
哦哦,我明白了,你用的不是multi-host模式吧?显示全部
哦哦,我明白了,你用的不是multi-host模式吧?收起
软件开发 · 2015-05-20
浏览5698

提问者

gaombenet
系统工程师家里蹲
擅长领域: 云管平台虚拟化云计算

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2015-05-19
  • 关注会员:1 人
  • 问题浏览:52963
  • 最近回答:2015-05-28
  • X社区推广