Merge ~gnuoy/ubuntu/+source/ovn-octavia-provider:stable/victoria into ~ubuntu-openstack-dev/ubuntu/+source/ovn-octavia-provider:stable/victoria

Proposed by Liam Young
Status: Merged
Merge reported by: Corey Bryant
Merged at revision: 14ae308149200a2328b35289626198b663ca283c
Proposed branch: ~gnuoy/ubuntu/+source/ovn-octavia-provider:stable/victoria
Merge into: ~ubuntu-openstack-dev/ubuntu/+source/ovn-octavia-provider:stable/victoria
Diff against target: 88 lines (+57/-2)
4 files modified
debian/changelog (+7/-2)
debian/files (+1/-0)
debian/patches/fix-ovn-listeners.patch (+48/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Corey Bryant Approve
Review via email: mp+397023@code.launchpad.net

Commit message

Add patch for LP: 1896603

To post a comment you must log in.
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Thanks Liam! Merged. I did refresh the patch with the results of a straight 'git cherry-pick' so that we could pick up the commit message and other details.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
diff --git a/debian/changelog b/debian/changelog
index 2e153db..f7f03bc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,8 +1,13 @@
1ovn-octavia-provider (0.3.0-0ubuntu1.1) UNRELEASED; urgency=medium1ovn-octavia-provider (0.3.0-0ubuntu1.3) groovy; urgency=medium
22
3 [ Corey Bryant ]
3 * d/gbp.conf: Create stable/victoria branch.4 * d/gbp.conf: Create stable/victoria branch.
45
5 -- Corey Bryant <corey.bryant@canonical.com> Tue, 27 Oct 2020 09:39:16 -04006 [ Liam Young ]
7 * d/p/fix-ovn-listeners.patch: Correctly process allowed_cidrs option
8 when creating listeners. LP: #1896603
9
10 -- Liam Young <liam.young@canonical.com> Wed, 27 Jan 2021 14:16:45 +0000
611
7ovn-octavia-provider (0.3.0-0ubuntu1) groovy; urgency=medium12ovn-octavia-provider (0.3.0-0ubuntu1) groovy; urgency=medium
813
diff --git a/debian/files b/debian/files
9new file mode 10064414new file mode 100644
index 0000000..da22be1
--- /dev/null
+++ b/debian/files
@@ -0,0 +1 @@
1ovn-octavia-provider_0.3.0-0ubuntu1.3_source.buildinfo net optional
diff --git a/debian/patches/fix-ovn-listeners.patch b/debian/patches/fix-ovn-listeners.patch
0new file mode 1006442new file mode 100644
index 0000000..222b25c
--- /dev/null
+++ b/debian/patches/fix-ovn-listeners.patch
@@ -0,0 +1,48 @@
1--- a/ovn_octavia_provider/driver.py
2+++ b/ovn_octavia_provider/driver.py
3@@ -58,6 +58,16 @@
4 user_fault_string=msg,
5 operator_fault_string=msg)
6
7+ def _check_for_allowed_cidrs(self, allowed_cidrs):
8+ # TODO(haleyb): add support for this
9+ if isinstance(allowed_cidrs, o_datamodels.UnsetType):
10+ allowed_cidrs = []
11+ if allowed_cidrs:
12+ msg = _('OVN provider does not support allowed_cidrs option')
13+ raise driver_exceptions.UnsupportedOptionError(
14+ user_fault_string=msg,
15+ operator_fault_string=msg)
16+
17 def loadbalancer_create(self, loadbalancer):
18 admin_state_up = loadbalancer.admin_state_up
19 if isinstance(admin_state_up, o_datamodels.UnsetType):
20@@ -138,12 +148,8 @@
21
22 def listener_create(self, listener):
23 self._check_for_supported_protocols(listener.protocol)
24- # TODO(haleyb): add support for this
25- if not isinstance(listener.allowed_cidrs, o_datamodels.UnsetType):
26- msg = _('OVN provider does not support allowed_cidrs option')
27- raise driver_exceptions.UnsupportedOptionError(
28- user_fault_string=msg,
29- operator_fault_string=msg)
30+ self._check_for_allowed_cidrs(listener.allowed_cidrs)
31+
32 admin_state_up = listener.admin_state_up
33 if isinstance(admin_state_up, o_datamodels.UnsetType):
34 admin_state_up = True
35@@ -167,12 +173,7 @@
36 self._ovn_helper.add_request(request)
37
38 def listener_update(self, old_listener, new_listener):
39- # TODO(haleyb): add support for this
40- if not isinstance(new_listener.allowed_cidrs, o_datamodels.UnsetType):
41- msg = _('OVN provider does not support allowed_cidrs option')
42- raise driver_exceptions.UnsupportedOptionError(
43- user_fault_string=msg,
44- operator_fault_string=msg)
45+ self._check_for_allowed_cidrs(new_listener.allowed_cidrs)
46
47 request_info = {'id': new_listener.listener_id,
48 'loadbalancer_id': old_listener.loadbalancer_id,
diff --git a/debian/patches/series b/debian/patches/series
0new file mode 10064449new file mode 100644
index 0000000..06f04b1
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
1fix-ovn-listeners.patch

Subscribers

People subscribed via source and target branches