When updating a port with the fixed_ips request the
fixed_configured argument should be set to true when
calling _ipam_get_subnets() so that all subnets are
returned if host is not set.
Otherwise the ip allocation will be deffered and an
empty list of possible subnets for the port is
returned. Which in turn led to raising an error that
the network requires subnets to allocate an IP
address.
Closes-Bug: #1844124
Change-Id: I2e690ea0cf5fa0614e39be2b0e83afad3daa7f48
(cherry picked from commit def8e95aad1e4588c369d537ee66234245eefdf6)
Reviewed: https:/ /review. opendev. org/687518 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=1bab70f909f f60c4dbc72a88b0 1bd9d511647f3c
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 1bab70f909ff60c 4dbc72a88b01bd9 d511647f3c
Author: Harald Jensås <email address hidden>
Date: Mon Sep 16 21:52:51 2019 +0200
fixed_ configured= True when Add/Remove port IPs
When updating a port with the fixed_ips request the configured argument should be set to true when
fixed_
calling _ipam_get_subnets() so that all subnets are
returned if host is not set.
Otherwise the ip allocation will be deffered and an
empty list of possible subnets for the port is
returned. Which in turn led to raising an error that
the network requires subnets to allocate an IP
address.
Closes-Bug: #1844124 614e39be2b0e83a fad3daa7f48 8c369d537ee6623 4245eefdf6)
Change-Id: I2e690ea0cf5fa0
(cherry picked from commit def8e95aad1e458