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/687515 /git.openstack. org/cgit/ openstack/ neutron/ commit/ ?id=a59bc98edd0 b86705ee3c6b709 8bbe242c583316
Committed: https:/
Submitter: Zuul
Branch: stable/train
commit a59bc98edd0b867 05ee3c6b7098bbe 242c583316
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