[Openstack] [Neutron] Compute node can't connect to control node

柯俊兆 kojiunjau at gmail.com
Thu Feb 18 10:58:54 UTC 2016


Hi All

When I setting neutron for openstack network, I got some problem and
doesn't know why.

I reference"Neutron Networking with Open vSwitch and Provider Networks
<http://docs.openstack.org/developer/devstack/guides/neutron.html#disabling-next-generation-firewall-tools>"
to setting my openstack network.

Control node is work fine and NIC eth0 IP address can assign to br-ex
successful
Compute node NIC eth0 assign to br-ex failed ,and Compute all API service
can't connect to Control

My compute node local.conf  in below
================ start ================
ubuntu at pismo-192-168-1-98:~/OpenStack/devstack$ more local.conf
[[local|localrc]]
ADMIN_PASSWORD=admin
DATABASE_PASSWORD=admin
RABBIT_PASSWORD=admin
SERVICE_PASSWORD=admin
SERVICE_TOKEN=admin

DEST=/opt/stack

LOGFILE=/opt/stack/logs/stack.sh.log
VERBOSE=True
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs

MULTI_HOST=True
DATABASE_TYPE=mysql

HOST_IP=192.168.1.98
FLAT_INTERFACE=eth1
FIXED_RANGE=10.0.0.0/24
FIXED_NETWORK_SIZE=256
FLOATING_RANGE=192.168.1.0/24
Q_FLOATING_ALLOCATION_POOL=start=192.168.1.221,end=192.168.1.230
SERVICE_HOST=192.168.1.130
MYSQL_HOST=192.168.1.130
RABBIT_HOST=192.168.1.130
GLANCE_HOSTPORT=192.168.1.130:9292
ENABLED_SERVICES=n-cpu,rabbit,q-agt

## Open vSwitch provider networking options
PHYSICAL_NETWORK=default
OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_INTERFACE=eth0
Q_USE_PROVIDER_NETWORKING=True
Q_L3_ENABLED=False


================ end ================


My compute node NIC info in below
================ start ================
ubuntu at pismo-192-168-1-98:~/OpenStack/devstack$ ifconfig
br-ex     Link encap:Ethernet  HWaddr 30:0e:d5:c7:59:3e
          inet6 addr: fe80::1cde:14ff:fed6:1fa1/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:289 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:18096 (18.0 KB)  TX bytes:648 (648.0 B)

br-int    Link encap:Ethernet  HWaddr 46:6b:f2:e5:c9:41
          inet6 addr: fe80::b801:4cff:feb6:cbc2/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

br-tun    Link encap:Ethernet  HWaddr 36:0f:ae:d8:c6:43
          inet6 addr: fe80::f4e4:b9ff:feab:5d1d/64 Scope:Link
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:648 (648.0 B)

eth0      Link encap:Ethernet  HWaddr 30:0e:d5:c7:59:3e
          inet addr:192.168.1.98  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::320e:d5ff:fec7:593e/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:40871 errors:0 dropped:0 overruns:0 frame:0
          TX packets:28210 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:7796067 (7.7 MB)  TX bytes:5086230 (5.0 MB)
          Interrupt:109

eth1      Link encap:Ethernet  HWaddr 30:0e:d5:c7:59:3f
          inet addr:10.0.0.98  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::320e:d5ff:fec7:593f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2538 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3135 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:189631 (189.6 KB)  TX bytes:531277 (531.2 KB)
          Interrupt:112

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:3960 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3960 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:346996 (346.9 KB)  TX bytes:346996 (346.9 KB)


================ end ================

The question are
1.In Open vSwitch provider networking options
PHYSICAL_NETWORK=default  <-- Is mean it use my NIC or  my public network ?

2.PUBLIC_INTERFACE is same with FLAT_INTERFACE?

3.Why the SERVICE_HOST connect failed?
I can ping or connect to SERVICE_HOST via other server,but compute node
can't.

4.My compute node br-ex doesn't be assign eth0's IP,so it can't go out ? If
yes,how to fix it ?


Best Regards,
Jau
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20160218/47b455a4/attachment.html>


More information about the Openstack mailing list