openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #12672
Can't ping instances in remote node .
Hi, all.
I have two nodes
installation.
Server1 runs all the components of Nova, Glance,Keystone and Horizon
(OpenStack Dashboard). Server2 runs only nova-compute.
I am using FlatDHCP
mode with a single network interface per
node.
network config :
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 10.2.70.106
netmask 255.255.255.0
network 10.2.70.0
broadcast 10.2.70.255
gateway 10.2.70.1
dns-nameservers 10.3.10.151
auto br100
iface br100 inet static
address 192.168.3.1
netmask 255.255.255.0
bridge_stp off
bridge_fd 0
Alter I assigned
floating ip to instances , I can ping to instances which running on server 1
but I do it with instances are running
on server 2.
My nova.conf :
root@cloudca3:/home/cloudca3#
clear
root@cloudca3:/home/cloudca3#
cat /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=10.2.70.106
--ec2_host=10.2.70.106
--rabbit_host=10.2.70.106
--cc_host=10.2.70.106
--nova_url=http://10.2.70.106:8774/v1.1/
--routing_source_ip=10.2.70.106
--glance_api_servers=10.2.70.106:9292
--image_service=nova.image.glance.GlanceImageService
--iscsi_ip_prefix=192.168.4
--sql_connection=mysql://novadbadmin:passwordcloud@127.0.0.1/nova
--ec2_url=http://10.2.70.106:8773/services/Cloud
--keystone_ec2_url=http://10.2.70.106: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://10.2.70.106:6080/vnc_auto.html
--vncserver_proxyclient_address=10.2.70.106
--vncserver_listen=10.2.70.106
# network specific
settings
--network_manager=nova.network.manager.FlatDHCPManager
--public_interface=br100
--flat_interface=eth0
--flat_network_bridge=br100
--fixed_range=192.168.4.1/27
#--floating_range=10.2.70.106/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
Check with "ip addr " command :
3: virbr0:
<NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN
link/ether 4e:08:87:24:c5:78 brd
ff:ff:ff:ff:ff:ff
inet 192.168.122.1/24 brd 192.168.122.255
scope global virbr0
5: br100:
<BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP
link/ether 50:e5:49:14:d6:f9 brd
ff:ff:ff:ff:ff:ff
inet 192.168.4.33/27 brd 192.168.4.63 scope
global br100
inet 192.168.3.1/24 brd 192.168.3.255 scope
global br100
inet 10.2.70.106/24 brd 10.2.70.255 scope
global br100
inet 10.2.70.129/32 scope global br100
inet 10.2.70.130/32 scope global br100
inet 10.2.70.131/32 scope global br100
inet6 fe80::4ca2:a8ff:fe57:a569/64 scope
link
valid_lft forever preferred_lft forever
Nat rule :
Chain
nova-network-PREROUTING (1 references)
pkts bytes target prot opt in out source destination
0 0 DNAT tcp -- * * 0.0.0.0/0 169.254.169.254 tcp dpt:80
to:10.2.70.106:8775
3363 279K DNAT all -- * * 0.0.0.0/0 10.2.70.129 to:192.168.4.34
5 240 DNAT all -- * * 0.0.0.0/0 10.2.70.130 to:192.168.4.41
0 0 DNAT all -- * * 0.0.0.0/0 10.2.70.131 to:192.168.4.40
Chain
nova-network-float-snat (1 references)
pkts bytes target prot opt in out source destination
11 660 SNAT all -- * * 192.168.4.34 0.0.0.0/0 to:10.2.70.129
2 120 SNAT all -- * * 192.168.4.41 0.0.0.0/0 to:10.2.70.130
5 300 SNAT all -- * * 192.168.4.40 0.0.0.0/0 to:10.2.70.131
Chain
nova-network-OUTPUT (1 references)
pkts bytes target prot opt in out source destination
17 1020 DNAT all -- * * 0.0.0.0/0 10.2.70.129 to:192.168.4.34
0 0 DNAT all -- * * 0.0.0.0/0 10.2.70.130 to:192.168.4.41
0 0 DNAT all -- * * 0.0.0.0/0 10.2.70.131 to:192.168.4.40