[NETVIRT-1432] IPv6 address not getting assigned in subport. Created: 14/Sep/18  Updated: 18/Sep/18  Resolved: 18/Sep/18

Status: Verified
Project: netvirt
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: High
Reporter: RajaRajan Manickam Assignee: Karthikeyan Krishnan
Resolution: Cannot Reproduce Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Priority: High

 Description   

neutron net-create mynet1

neutron net-create mynet2

neutron net-create mynet3

 

 

neutron subnet-create mynet1 10.1.0.0/24 --name net1-snet1

neutron subnet-create mynet2 11.1.0.0/24 --name net2-snet1

neutron subnet-create mynet3 12.1.0.0/24  --name net3-snet1

 

neutron subnet-create mynet1 2001:db8:1111::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac --name net1-snet2

neutron subnet-create mynet2 2001:db8:2222::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac --name net2-snet2

neutron subnet-create mynet3 2001:db8:3333::/64 --ip-version 6 --ipv6-ra-mode slaac --ipv6-address-mode slaac --name net3-snet2

 

 

 

2) 3 ports on different subnet sharing same Mac-address

neutron port-create mynet1 --name parent-port --security-group=raja

parent_mac="$( openstack port show parent-port | awk '/ mac_address / { print $4 }' )"

echo $parent_mac

openstack port create --network mynet2 --mac-address "$parent_mac" port2 --security-group=raja

openstack port create --network mynet3 --mac-address "$parent_mac" port3 --security-group=raja

3) Configuring port0 as trunk and port1 and port2 as sub-ports.

openstack network trunk create --parent-port parent-port trunk-port

openstack network trunk set --subport port=port2,segmentation-type=vlan,segmentation-id=101 trunk-port

openstack network trunk set --subport port=port3,segmentation-type=vlan,segmentation-id=102 trunk-port

 

openstack port create --network mynet1 parent-ipv4

parent_mac="$( openstack port show parent-ipv4 | awk '/ mac_address / { print $4 }' )"

echo $parent_mac

openstack port create --network mynet2 --mac-address "$parent_mac" port2

openstack port create --network mynet3 --mac-address "$parent_mac" port3

4) Configuring port0 as trunk and port1 and port2 as sub-ports.

openstack network trunk create --parent-port parent-ipv4 trunkipv4

openstack network trunk set --subport port=port2,segmentation-type=vlan,segmentation-id=101 trunkipv4

openstack network trunk set --subport port=port3,segmentation-type=vlan,segmentation-id=102 trunkipv4

 

openstack router create router1

 

5) VM booted on trunk port.

 

nova boot --image ubuntu --flavor myhuge --nic port-id=$(neutron port-list | grep 'parent-port' | awk '{print $2}') parent-port --availability-zone nova:cmp001 

 

 

5) Create sub interface(VLAN) on booted ubuntu VM using below commands.

 

vconfig add ens3 101(Same as sub-port VLAN ID)

 

6) Create Router and add all IPv6 subnets to router.



 Comments   
Comment by Karthikeyan Krishnan [ 18/Sep/18 ]
  •  ODL Controller is sending Unsolicited Router Advertisement (URA) packet to all node IP address (ff02::1) periodically to attached trunk and sub-ports networks (As per the shared PCAP and other debug logs)
  • Verified the pcap files for both trunk port and sub-port URA packets which has sent from ODL controller and looks like there is no difference between trunk port and sub-port URA packets (Flags & Other Info)
  • On the VM console, we were able to see those received URA packets.
  • Some how VM sub-interfaces (ens3.101 and ens3.102) are not getting assigned with received IPv6 prefix.

 

As bug submitter confirmed that ubuntu 16.04 q-cow2 image VM is working fine for all trunk and sub-ports IPv6 assignment.

Hence closing this bug. 

Generated at Wed Feb 07 20:24:03 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.