Skip to content

IPv6 subnet assignment fails for guest network #7926

Closed

Description

@fermosan
ISSUE TYPE
  • Bug Report
COMPONENT NAME
Networking IP Address provision 
CLOUDSTACK VERSION
4.18
CONFIGURATION

Advanced Zone
VXLAN isolation
Isolated Network with IPv6 Support

OS / ENVIRONMENT

UBUNTU 22.04.3

SUMMARY

When applying a dual stack networking offering to an existing or new network the guest ipv6 network is not properly assigned.
The UI in the Details of the Guest Network is indicating "undefined via 2a0f:ffc0:......".
The Virtual Router has no IPv6 address assigned on the guest network. The public IPv6 address is applied and working as expected.
The Management server log doesn't report any relevant errors.

STEPS TO REPRODUCE

Create a new Zone with VXLAN isolation method
Add host
Define IPv4 / IPv6 guest/public networks
Create a dual stack network offering
Create a new guest network
Create a new VM Instance, assign it to the network and start it

Setup of the PUBLIC network in the Zone
Screenshot 2023-08-31 015017

Setup of the Guest network in the Zone
Screenshot 2023-08-31 015910

Status of Guest Network
Screenshot 2023-08-31 020033


EXPECTED RESULTS
The Guest network should be assigned a /64 IPv6 Prefix
ACTUAL RESULTS

Activity

  1. added this to the 4.18.2.0 milestone on Aug 31, 2023
  2. weizhouapache commented on Aug 31, 2023

    @weizhouapache
    Member

    @shwstppr
    can you please have a look ? thanks

  3. shwstppr commented on Aug 31, 2023

    @shwstppr
    Contributor

    @weizhouapache could be something to do with VXLAN isolation because IPv6 smoke tests seem to be running okay and manual deployment also works. Need to check
    cc @fermosan

  4. weizhouapache commented on Aug 31, 2023

    @weizhouapache
    Member

    @shwstppr thanks for the reply.
    yes, could be.
    the guest ipv6 range should be allocated, no matter what isolation method is used.

  5. fermosan commented on Aug 31, 2023

    @fermosan
    ContributorAuthor

    @shwstppr @weizhouapache A similar setup with VLAN isolation is working as expected. I am not sure if the isolation type makes any noticeable difference.
    Also, if this is something easy to fix can you please include it in the upcoming 4.18.1 since it's kind of critical for our operation.

  6. fermosan commented on Aug 31, 2023

    @fermosan
    ContributorAuthor

    Some more debugging info i just collected (taking a look at database side atm).
    The ip6_guest_prefix_subnet_network_map table has the correct entry for the allocation pointing to network id 205.

    id: 2
    uuid: a09f1e7d-b64b-441c-a36d-e0abd5068cff
    prefix_id: 2
    subnet: 2a0f:xxxx:xxxx:xxxx::/64
    network_id: 205
    state: Allocated
    updated: 2023-08-30 22:19:42
    created: 2023-08-30 22:19:42
    removed: NULL

    Network with ID 205 has no ip6_gateway and ip6_cidr populated.

    id: 205
    name: dualstack network
    uuid: bdfbb100-b9fb-47a3-8b0f-abbb42cb1781
    display_text: dualstack network
    traffic_type: Guest
    broadcast_domain_type: Vxlan
    broadcast_uri: vxlan://103744
    gateway: 10.1.1.1
    cidr: 10.1.1.0/24
    mode: Dhcp
    network_offering_id: 22
    physical_network_id: 200
    data_center_id: 1
    guru_name: VxlanGuestNetworkGuru
    state: Implemented
    related: 205
    domain_id: 1
    account_id: 2
    dns1: NULL
    dns2: NULL
    ip6dns1: NULL
    ip6dns2: NULL
    guru_data: NULL
    set_fields: 0
    acl_type: Account
    network_domain: cs2cloud.internal
    reservation_id: 831389b3-cce4-475c-a7a2-e304280a4c5a
    guest_type: Isolated
    restart_required: 0
    created: 2023-08-30 22:19:42
    removed: NULL
    specify_ip_ranges: 0
    vpc_id: NULL
    ip6_gateway: NULL
    ip6_cidr: NULL
    network_cidr: NULL
    display_network: 1
    network_acl_id: NULL
    streched_l2: 0
    redundant: 0
    external_id: NULL
    public_mtu: 1500
    private_mtu: 1500

    @shwstppr

  7. weizhouapache commented on Aug 31, 2023

    @weizhouapache
    Member

    thanks for the info @fermosan

    @shwstppr has made some changes for ipv6 in ExternalGuestNetworkGuru

    if ((userSpecified.getIp6Cidr() == null && userSpecified.getIp6Gateway() != null) ||
    (userSpecified.getIp6Cidr() != null && userSpecified.getIp6Gateway() == null)) {
    throw new InvalidParameterValueException("ip6gateway and ip6cidr must be specified together.");
    }
    if (userSpecified.getIp6Cidr() != null) {
    config.setIp6Cidr(userSpecified.getIp6Cidr());
    config.setIp6Gateway(userSpecified.getIp6Gateway());
    }
    if (userSpecified.getRouterIpv6() != null) {
    config.setRouterIpv6(userSpecified.getRouterIpv6());
    }

    it looks we need to make similar changes in VxlanGuestNetworkGuru

    cc @shwstppr

  8. shwstppr commented on Aug 31, 2023

    @shwstppr
    Contributor

    Thanks for the pointer @weizhouapache
    Will try to test the change tomorrow

  9. fermosan commented on Aug 31, 2023

    @fermosan
    ContributorAuthor

    @shwstppr Great. Tyvm.

    @weizhouapache If there is a fix can we include it in 4.18.1.0 ?

  10. added a commit that references this issue on Sep 1, 2023
    4292444
  11. soreana commented on Sep 6, 2023

    @soreana
    Member

    @weizhouapache I put this one in the 4.18.1 milestone as its pull request also targeted for that milestone.

  12. modified the milestones: 4.18.2.0, 4.18.1.0 on Sep 6, 2023
  13. weizhouapache commented on Sep 6, 2023

    @weizhouapache
    Member

    @weizhouapache I put this one in the 4.18.1 milestone as its pull request also targeted for that milestone.

    thanks @soreana

  14. added a commit that references this issue on Sep 7, 2023
    f049f54
  15. weizhouapache commented on Sep 7, 2023

    @weizhouapache
    Member

    fixed by #7933

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions