octavia_amp_network does not support IPv6

Bug #1913409 reported by Carsten Koester
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Wishlist
Carsten Koester
Wallaby
Fix Released
Wishlist
Carsten Koester

Bug Description

When letting Kolla-Ansible create the Octavia management network (by setting "octavia_auto_configure" to "true" and defining "octavia_amp_network"), then the associated network is always configured as an IPv4 network, regardless of what address family the provided CIDR and allocation pool addresses are. The "ip_version" parameter, which is provided by os_subnet for this purpose, is not honored.

TASK [octavia : Create loadbalancer management subnet] ********
fatal: [fd00:1::1 -> fd00:2::b]: FAILED! => {"action": "os_subnet", "changed": false, "msg": "BadRequestException: 400: Client Error for url: http://[fd00:2::a]:9696/v2.0/subnets.json, Invalid input for operation: cidr 'fd00:3::/64' does not match the ip_version '4'."}

octavia_amp_network:
  name: "test"
  shared: false
  subnet:
    name: "test-ipv6"
    cidr: "fd00:3::/64"
    gateway_ip: "fd00:3::1"
    allocation_pool_start: "fd00:3::100"
    allocation_pool_end: "fd00:3::200"
    ip_version: 6 # os_subnet parameter, but whether or not this is set here makes no difference

(While debatable whether this is a bug or an enhancement, documentation seems to state that IPv6 is supported throughout Kolla and lists few exceptions - Octavia not being listed as exception.)

Based on a very quick test, in order to resolve this specific issue, the only change required would be for ansible/roles/octavia/tasks/prepare.yml, "Create loadbalancer management subnet", to pass-through the "ip_version" (and ideally also "ipv6_address_mode" and "ipv6_ra_mode") parameters from octavia_amp_network.subnet to the os_subnet module.

Changed in kolla-ansible:
assignee: nobody → Carsten Koester (ckoester)
Revision history for this message
Carsten Koester (ckoester) wrote :
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Wishlist
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 12.0.0.0rc1

This issue was fixed in the openstack/kolla-ansible 12.0.0.0rc1 release candidate.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/victoria)

Fix proposed to branch: stable/victoria
Review: https://review.opendev.org/c/openstack/kolla-ansible/+/789747

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (stable/victoria)

Reviewed: https://review.opendev.org/c/openstack/kolla-ansible/+/789747
Committed: https://opendev.org/openstack/kolla-ansible/commit/54195f46813a1b5a828a9f42a3b9e1f545861f08
Submitter: "Zuul (22348)"
Branch: stable/victoria

commit 54195f46813a1b5a828a9f42a3b9e1f545861f08
Author: Carsten Koester <email address hidden>
Date: Wed Jan 27 02:39:25 2021 -0800

    Add IPv6 configuration options to Octavia management network

    If the Octavia/Amphora management network is created by Kolla, support
    setting the IP address family and IPv6 address/RA mode.

    Closes-Bug: 1913409

    Change-Id: I9f2ef2196654c91596cb5c4b3c157bcee267226a
    (cherry picked from commit bf6d9308aacfe44a32dd1f013d20bdc2f5fd1d18)

tags: added: in-stable-victoria
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla-ansible 11.1.0

This issue was fixed in the openstack/kolla-ansible 11.1.0 release.

wu.chunyang (wuchunyang)
Changed in kolla-ansible:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.