Merge ~fnordahl/ubuntu/+source/neutron:bug/1881852 into ~ubuntu-server-dev/ubuntu/+source/neutron:master

Proposed by Frode Nordahl
Status: Merged
Merge reported by: Corey Bryant
Merged at revision: ed0083114ae8dfc9aefe0751fda77458913e6bf5
Proposed branch: ~fnordahl/ubuntu/+source/neutron:bug/1881852
Merge into: ~ubuntu-server-dev/ubuntu/+source/neutron:master
Diff against target: 90 lines (+48/-0)
5 files modified
debian/changelog (+10/-0)
debian/control (+1/-0)
debian/neutron-common.install (+1/-0)
debian/patches/fix-neutron-ipset-cleanup-tool.patch (+35/-0)
debian/patches/series (+1/-0)
Reviewer Review Type Date Requested Status
Corey Bryant Approve
Review via email: mp+385036@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Corey Bryant (corey.bryant) :
review: Approve
Revision history for this message
Corey Bryant (corey.bryant) wrote :

Thanks Frode! Merged with minor change to changelog to mention net-tools depis for netstat.

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 4727a95..1a3b85d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,13 @@
1neutron (2:16.0.0-0ubuntu2) UNRELEASED; urgency=medium
2
3 * d/control: Add net-tools dependency for python3-neutron
4 (LP: #1881852).
5 * d/neutron-common.install: Add rootwrap.d/netns-cleanup.filters
6 (LP: #1881852).
7 * d/p/fix-neutron-ipset-cleanup-tool.patch: Fix Traceback (LP: #1881771).
8
9 -- Frode Nordahl <frode.nordahl@canonical.com> Wed, 3 Jun 2020 10:19:56 +0200
10
1neutron (2:16.0.0-0ubuntu1) groovy; urgency=medium11neutron (2:16.0.0-0ubuntu1) groovy; urgency=medium
212
3 * d/watch: Scope to 16.x series.13 * d/watch: Scope to 16.x series.
diff --git a/debian/control b/debian/control
index 63ba976..2331335 100644
--- a/debian/control
+++ b/debian/control
@@ -393,6 +393,7 @@ Architecture: all
393Section: python393Section: python
394Depends:394Depends:
395 iproute2,395 iproute2,
396 net-tools,
396 neutron-common (= ${source:Version}),397 neutron-common (= ${source:Version}),
397 python3-alembic (>= 0.8.10),398 python3-alembic (>= 0.8.10),
398 python3-debtcollector (>= 1.19.0),399 python3-debtcollector (>= 1.19.0),
diff --git a/debian/neutron-common.install b/debian/neutron-common.install
index 4f8f65c..fa84e7a 100644
--- a/debian/neutron-common.install
+++ b/debian/neutron-common.install
@@ -20,5 +20,6 @@ etc/neutron/rootwrap.d/ipset-firewall.filters etc/neutron/rootwrap.d
20etc/neutron/rootwrap.d/iptables-firewall.filters etc/neutron/rootwrap.d20etc/neutron/rootwrap.d/iptables-firewall.filters etc/neutron/rootwrap.d
21etc/neutron/rootwrap.d/l3.filters etc/neutron/rootwrap.d21etc/neutron/rootwrap.d/l3.filters etc/neutron/rootwrap.d
22etc/neutron/rootwrap.d/linuxbridge-plugin.filters22etc/neutron/rootwrap.d/linuxbridge-plugin.filters
23etc/neutron/rootwrap.d/netns-cleanup.filters
23etc/neutron/rootwrap.d/openvswitch-plugin.filters24etc/neutron/rootwrap.d/openvswitch-plugin.filters
24etc/rootwrap.conf etc/neutron25etc/rootwrap.conf etc/neutron
diff --git a/debian/patches/fix-neutron-ipset-cleanup-tool.patch b/debian/patches/fix-neutron-ipset-cleanup-tool.patch
25new file mode 10064426new file mode 100644
index 0000000..8aa52f1
--- /dev/null
+++ b/debian/patches/fix-neutron-ipset-cleanup-tool.patch
@@ -0,0 +1,35 @@
1From: Frode Nordahl <frode.nordahl@canonical.com>
2Date: Tue, 2 Jun 2020 14:55:50 +0000 (+0200)
3Subject: Fix Traceback when running neutron-ipset-cleanup tool
4X-Git-Url: https://review.opendev.org/gitweb?p=openstack%2Fneutron.git;a=commitdiff_plain;h=d57735ae0f01a4c0ae8c81dbdda62e07314face1
5
6Fix Traceback when running neutron-ipset-cleanup tool
7
8Some of the tools dependencies expect the AGENT group to be
9present in the configuration, and at present it is not initialized,
10this patch addresses that.
11
12Change-Id: I1a50e77749aaecc3966c9d238f91a1968ed454ef
13Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
14Closes-Bug: #1881771
15---
16
17diff --git a/neutron/cmd/ipset_cleanup.py b/neutron/cmd/ipset_cleanup.py
18index c6bd40de6a4..9fecf73b586 100644
19--- a/neutron/cmd/ipset_cleanup.py
20+++ b/neutron/cmd/ipset_cleanup.py
21@@ -19,6 +19,7 @@ from oslo_log import log as logging
22 from neutron.agent.linux import utils
23 from neutron.common import config
24 from neutron.conf.agent import cmd as command
25+from neutron.conf.agent import common as agent_config
26
27
28 LOG = logging.getLogger(__name__)
29@@ -31,6 +32,7 @@ def setup_conf():
30 from the main config that do not apply during clean-up.
31 """
32 conf = cfg.CONF
33+ agent_config.register_root_helper(conf=conf)
34 command.register_cmd_opts(command.ip_opts, conf)
35 return conf
diff --git a/debian/patches/series b/debian/patches/series
index 209145c..91262a8 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
1skip-iptest.patch1skip-iptest.patch
2flake8-legacy.patch2flake8-legacy.patch
3fix-neutron-ipset-cleanup-tool.patch

Subscribers

People subscribed via source and target branches