← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 2116927] Re: Horizon shows all prefix lengths when creating subnet from subnet pool

 

Reviewed:  https://review.opendev.org/c/openstack/horizon/+/956006
Committed: https://opendev.org/openstack/horizon/commit/e2edb40c6233c1d82f4d28e7a898e87967351b3b
Submitter: "Zuul (22348)"
Branch:    master

commit e2edb40c6233c1d82f4d28e7a898e87967351b3b
Author: lajoskatona <lajos.katona@xxxxxxxx>
Date:   Mon Jul 28 12:03:46 2025 +0200

    SDK subnetpools: change prefixlen fields as SDK calls them
    
    Closes-Bug: #2116927
    Change-Id: Ie5fcbe934e4434044b146a724d4cfc907d506b06
    Signed-off-by: lajoskatona <lajos.katona@xxxxxxxx>


** Changed in: horizon
       Status: In Progress => Fix Released

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/2116927

Title:
  Horizon shows all prefix lengths when creating subnet from subnet pool

Status in OpenStack Dashboard (Horizon):
  Fix Released
Status in neutron:
  New

Bug description:
  Greetings,

  When creating a subnet from a subnet pool in Horizon 2024.2, the
  "Network Mask" dropdown shows all possible IPv6 prefix lengths (/1 to
  /128), despite the selected subnet pool having min_prefixlen,
  max_prefixlen, and default_prefixlen all set to /64. Selecting any
  prefix length other than /64 results in a permission denied error, as
  expected.

  In earlier versions of Horizon (e.g. Yoga), only valid prefix lengths within the allowed range were shown in the UI, which was the correct behavior.
  Also the default_prefixlen was shown as "(POOL DEFAULT)" next to the prefix in earlier versions which I dont see in horizon 2024.2 anymore.

  Subnet pool output which I used for testing:

  openstack subnet pool show fe734292-7052-4954-b8ff-f8ebdbfd2b6d
  +-------------------+--------------------------------------+
  | Field             | Value                                |
  +-------------------+--------------------------------------+
  | address_scope_id  | 85880696-811e-4621-8128-2b8673a8e5a9 |
  | created_at        | 2025-05-09T11:26:43Z                 |
  | default_prefixlen | 64                                   |
  | default_quota     | None                                 |
  | description       |                                      |
  | id                | fe734292-7052-4954-b8ff-f8ebdbfd2b6d |
  | ip_version        | 6                                    |
  | is_default        | True                                 |
  | max_prefixlen     | 64                                   |
  | min_prefixlen     | 64                                   |
  | name              | provider_customer_v6                 |
  | prefixes          | 2001:****/48                  |
  | project_id        | 5c5858f4a7294f1eb64e50c0cf2470d6     |
  | revision_number   | 0                                    |
  | shared            | True                                 |
  | tags              |                                      |
  | updated_at        | 2025-05-09T11:26:43Z                 |
  +-------------------+--------------------------------------+

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/2116927/+subscriptions



References