[NETVIRT-1298] IPv4 address not getting assigned with Dual stack VM Created: 04/Jun/18  Updated: 27/Nov/19  Resolved: 27/Nov/19

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

Type: Bug Priority: High
Reporter: RajaRajan Manickam Assignee: Kiran Upadhyaya
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Priority: High

 Description   

IPv4 address not getting assigned with Dual stack VM

Steps:

  1. Create Router
  2. Create Network(mynet1)
  3. Create IPv6 Subnet(S1)
  4. Add IPv6 Subnet to Router
  5. Boot VM1 and check IPv6 address assigned --> PASS
  6. Create IPv4 subnet(s2) and attach to Router
  7. Boot VM2 and check Both IPv4 and IPv6 address assgned.–>PASS
  8. Now login to IPv6 VM(VM1) and check whether it received IPV4 address too, since it become dual stack VM. --> FAIL
    #


 Comments   
Comment by Karthikeyan Krishnan [ 05/Jun/18 ]

Hi Raja,

  As mentioned in the bug description, i understand that VM1 is booted from the IPv6 subnet first and ipv6 address is getting assigned properly as expected. Later IPv4 subnet is created from the same network1(dual stack) and attached to the neutron router and you are expecting VM1 should get IPv4 address as well.

AFAIK VM1 should initiate DHCP discover request for obtaining IPv4 address then only ODL DHCP service will offer the IPv4 address as same as VM1 neutron port. For doing this either you need to do reboot of the VM1 or execute dhcp client request command using "dhclient <interface-name>". 

Please do this process and let me know your observation.

Thanks,

Karthikeyan.

Comment by Karthikeyan Krishnan [ 05/Jun/18 ]

Hi Raja,

  I have identified the problem area for your reported issue. Actual issue is from openstack neutron server is not getting updated with IPv4 address information to existing VM booted neutron port when IPv4 subnet is created later from the existing network as below one of the order for supporting dual stack network. Please open a bug on openstack neutron side for this issue if not existing on openstack neutron project.

Note: I have verified the neutron data base tables (ports, ipallocations) and couldn't see VM port is getting updated with IPv4 address. Verified neutron server log(q-svc) also. Not able to find update for IPv4 address.

Problem Scenario for Dual Stack Network Support:
 Openstack neutron port is not getting updated when IPv4 subnet is created later from the existing network for dual stack network use case.

   N1
     --IPv6 Subnet
            --VM1 (Neutron port contains IPv6 address)
   
     --IPv4 Subnet is created from the existing network N1
          --VM1 neutron port(IPv6 only) ==> Not getting updated with IPv4 address.

Working Scenario for Dual Stack Network Support:
Openstack neutron port is getting updated properly when IPv6 subnet is created later from the existing network for dual stack network use case.

  N1
     --IPv4 Subnet
            --VM1 (Neutron port contains IPv4 address)
   
     --IPv6 Subnet is created from the existing network N1
          --VM1 neutron port (IPv4 & IPv6) ==> Updated with IPv6 address as well. This scenario is properly working as expected.

Thanks & Regards,
Karthikeyan.

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