|
Scenario:
---------
Validating dual stack Ipv4 and IPv6 address assignment to Neutron VM:
Configure a Network N1 with multiple subnets with S1 IPv6 address and S2 IPv4 address.
N1 : S1 2001:db8:cafe::/64 and S2 1.1.1.0/24
In IPv6 case, the openstack controller will do the DHCP service, ODL will still act as DHCP service for IPv4.
VM's after booting up doesn't receive dhcp offer.
Packet capture shows,there is a Packet_IN message with DHCP discover message. But the controller hasn’t send any Packet_out with dhcp offer.
$ ifconfig
eth0 Link encap:Ethernet HWaddr FA:16:3E:C7:97:75
inet6 addr: 2001:db8:cafe:0:f816:3eff:fec7:9775/64 Scope:Global
inet6 addr: fe80::f816:3eff:fec7:9775/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1041 errors:0 dropped:962 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:117396 (114.6 KiB) TX bytes:1204 (1.1 KiB)
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:16436 Metric:1
RX packets:12 errors:0 dropped:0 overruns:0 frame:0
TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1020 (1020.0 B) TX bytes:1020 (1020.0 B)
stack@css1-controller:~/devstack$ nova list
--------------------------------------------------------------------------------------------------------------------+
| ID |
Name |
Status |
Task State |
Power State |
Networks |
--------------------------------------------------------------------------------------------------------------------+
| b7a17c73-e68f-47e8-9260-72491552ec77 |
VM2 |
ACTIVE |
|
Running |
N1=2001:db8:cafe:0:f816:3eff:fec7:9775, 1.1.1.4 |
Neutron port has the required IPv4 address in Neutron port configuration, please find the output.
http://10.164.225.166:8181/apidoc/explorer/index.html#!/neutron(2015-07-12)/GET_ports_get_30
{
"uuid": "e43829cb-d112-45c2-8596-15e7db628195",
"device-id": "b7a17c73-e68f-47e8-9260-72491552ec77",
"tenant-id": "f56a2c5e-16c1-4443-90ae-c156da08f2bd",
"security-groups": [
"2b77b631-3936-4a27-b376-aa1b65e20e12"
],
"network-id": "f3770907-22ae-441a-9fbf-657ae03f13f5",
"neutron-portsecurity:port-security-enabled": true,
"device-owner": "compute:nova",
"fixed-ips": [
{
"subnet-id": "26444a3d-5574-4273-afc9-4cd8e21a9e4d",
"ip-address": "2001:db8:cafe:0:f816:3eff:fec7:9775"
}
,
{
"subnet-id": "b5c8ef12-b6da-48dc-bb5f-d24fdb3755a4",
"ip-address": "1.1.1.4"
}
],
root@Ovs1-controller:~# ./ovs
dec13a00-dfb8-4bfb-89c8-e541b1e31e06
Manager "tcp:10.164.225.166:6640"
is_connected: true
Bridge br-int
Controller "tcp:10.164.225.166:6653"
is_connected: true
fail_mode: secure
Port br-int
Interface br-int
type: internal
Port "tunfddbb5b308e"
Interface "tunfddbb5b308e"
type: vxlan
options:
{key=flow, local_ip="20.0.0.9", remote_ip="20.0.0.10"}
Port "tap8e00e020-e9"
Interface "tap8e00e020-e9"
type: internal
Port "vhue43829cb-d1"
Interface "vhue43829cb-d1"
type: dpdkvhostuser
Bridge br-ex
Port br-ex
Interface br-ex
type: internal
Bridge "BR1"
Port "dpdk0"
Interface "dpdk0"
type: dpdk
Port "BR1"
Interface "BR1"
type: internal
ovs_version: "2.6.1.css4.R1A~728f871"
OFPT_FEATURES_REPLY (OF1.3) (xid=0x2): dpid:000040ab25db8c58
n_tables:254, n_buffers:256
capabilities: FLOW_STATS TABLE_STATS PORT_STATS GROUP_STATS QUEUE_STATS
OFPST_PORT_DESC reply (OF1.3) (xid=0x3):
27(tunfddbb5b308e): addr:8a:5a:e4:e1:f1:f5
config: 0
state: LIVE
speed: 0 Mbps now, 0 Mbps max
28(tap8e00e020-e9): addr:00:00:00:00:20:5c
config: PORT_DOWN
state: LINK_DOWN
speed: 0 Mbps now, 0 Mbps max
30(vhue43829cb-d1): addr:00:00:00:00:00:00
config: 0
state: LIVE
speed: 0 Mbps now, 0 Mbps max
LOCAL(br-int): addr:40:ab:25:db:8c:58
config: 0
state: LIVE
current: 10MB-FD COPPER
speed: 10 Mbps now, 0 Mbps max
OFPT_GET_CONFIG_REPLY (OF1.3) (xid=0x5): frags=normal miss_send_len=0
Please find the attachment :
1. Flows
2. Interface state
3. Karaf logs
4. pcap logs
Thanks,
Arun
|