Some time ago with patches [1] and [2] we trimmed extra_dhcp_opt name
and value to first newline character before using them in the dnsmasq
and later added API validator to not allow such names and/or values with
newline character in it at all.
This patch adds upgrade check to warn users if they have old entries
with newline characters in the database already.
Reviewed: https:/ /review. opendev. org/c/openstack /neutron/ +/824641 /opendev. org/openstack/ neutron/ commit/ ef97019c92e96d0 bb17785daaf570b 04c68be500
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit ef97019c92e96d0 bb17785daaf570b 04c68be500
Author: Slawek Kaplonski <email address hidden>
Date: Thu Jan 13 20:35:53 2022 +0100
Add upgrade check for extra DHCP options
Some time ago with patches [1] and [2] we trimmed extra_dhcp_opt name
and value to first newline character before using them in the dnsmasq
and later added API validator to not allow such names and/or values with
newline character in it at all.
This patch adds upgrade check to warn users if they have old entries
with newline characters in the database already.
Related-Bug: #1939733
[1] https:/ /review. opendev. org/c/openstack /neutron/ +/806746 /review. opendev. org/c/openstack /neutron- lib/+/811708
[2] https:/
Change-Id: I9a45d918b5a90f 8fc50a9ec43b2a6 7cf582eb369