← Back to team overview

openstack team mailing list archive

[openstack] About vm in compute-node cannot be assign IP

 

Hi ALL 

I build a two host’s openstack environment with ubuntu 12.04. One is For
controller and another is for compute-node .

I meet a problem is : The vm in compute-node cannot be assign fixed IP . but
the vm in controller can be assign fixed IP .

 

When I use tcpdump to trace the dhcp request/response , I found this :

On compute-node :

~# tcpdump -i br100 -n port 67 or 68

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode

listening on br100, link-type EN10MB (Ethernet), capture size 65535 bytes

01:13:46.794501 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from
fa:16:3e:50:6d:1c, length 280

01:13:49.799593 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from
fa:16:3e:50:6d:1c, length 280

01:13:52.803964 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from
fa:16:3e:50:6d:1c, length 280

 

~# tcpdump -i br100 -n port 67 or 68

tcpdump: verbose output suppressed, use -v or -vv for full protocol decode

listening on br100, link-type EN10MB (Ethernet), capture size 65535 bytes

01:13:47.995389 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from
fa:16:3e:50:6d:1c, length 280

01:13:47.995785 IP 192.168.4.1.67 > 192.168.4.3.68: BOOTP/DHCP, Reply,
length 309

01:13:51.000454 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from
fa:16:3e:50:6d:1c, length 280

01:13:51.000911 IP 192.168.4.1.67 > 192.168.4.3.68: BOOTP/DHCP, Reply,
length 309

01:13:54.004840 IP 0.0.0.0.68 > 255.255.255.255.67: BOOTP/DHCP, Request from
fa:16:3e:50:6d:1c, length 280

01:13:54.005196 IP 192.168.4.1.67 > 192.168.4.3.68: BOOTP/DHCP, Reply,
length 309

 

>From above , I can found : the vm can send udp request to dnsmasq-server
which on controller. 

BUT when the controller response the request . the compute-node cannot get
it . This is why vm cannot be assign fixed IP on compute-node ,

But on Controller vm can be assign fixed IP .

Even though I know where is going wrong , But I cannot fixed it  -_-#

Could anyone tell me how to fixed this problem ? 

 

Thanks In advance .

 

The follow is my configuration .

 

The part of nova.conf as follow :

# network specific settings

--network_manager=nova.network.manager.FlatDHCPManager

--public_interface=br100

--flat_interface=eth0

--flat_network_bridge=br100

--fixed_range=192.168.4.0/27

--floating_range=192.168.7.208/28

--network_size=32

--flat_injected=false

--force_dhcp_release

 

The network config :

The controller :

auto lo

iface lo inet loopback

auto br100

iface br100 inet static

    bridge_ports    eth0

    bridge_stp      off

    bridge_maxwait  0

    bridge_fd       0

    address 192.168.7.151

    netmask 255.255.255.224

    gateway 192.168.7.158

 

The compute node :

auto lo

iface lo inet loopback

auto br100

iface br100 inet static

    bridge_ports    eth0

    bridge_stp      off

    bridge_maxwait  0

    bridge_fd       0

    address 192.168.7.152

    netmask 255.255.255.224

    gateway 192.168.7.158

 

 

David(李跃洲)

E-MAIL: yuezhou.li@xxxxxxxxxx