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
1diff --git a/debian/changelog b/debian/changelog
2index 4727a95..1a3b85d 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,13 @@
6+neutron (2:16.0.0-0ubuntu2) UNRELEASED; urgency=medium
7+
8+ * d/control: Add net-tools dependency for python3-neutron
9+ (LP: #1881852).
10+ * d/neutron-common.install: Add rootwrap.d/netns-cleanup.filters
11+ (LP: #1881852).
12+ * d/p/fix-neutron-ipset-cleanup-tool.patch: Fix Traceback (LP: #1881771).
13+
14+ -- Frode Nordahl <frode.nordahl@canonical.com> Wed, 3 Jun 2020 10:19:56 +0200
15+
16 neutron (2:16.0.0-0ubuntu1) groovy; urgency=medium
17
18 * d/watch: Scope to 16.x series.
19diff --git a/debian/control b/debian/control
20index 63ba976..2331335 100644
21--- a/debian/control
22+++ b/debian/control
23@@ -393,6 +393,7 @@ Architecture: all
24 Section: python
25 Depends:
26 iproute2,
27+ net-tools,
28 neutron-common (= ${source:Version}),
29 python3-alembic (>= 0.8.10),
30 python3-debtcollector (>= 1.19.0),
31diff --git a/debian/neutron-common.install b/debian/neutron-common.install
32index 4f8f65c..fa84e7a 100644
33--- a/debian/neutron-common.install
34+++ b/debian/neutron-common.install
35@@ -20,5 +20,6 @@ etc/neutron/rootwrap.d/ipset-firewall.filters etc/neutron/rootwrap.d
36 etc/neutron/rootwrap.d/iptables-firewall.filters etc/neutron/rootwrap.d
37 etc/neutron/rootwrap.d/l3.filters etc/neutron/rootwrap.d
38 etc/neutron/rootwrap.d/linuxbridge-plugin.filters
39+etc/neutron/rootwrap.d/netns-cleanup.filters
40 etc/neutron/rootwrap.d/openvswitch-plugin.filters
41 etc/rootwrap.conf etc/neutron
42diff --git a/debian/patches/fix-neutron-ipset-cleanup-tool.patch b/debian/patches/fix-neutron-ipset-cleanup-tool.patch
43new file mode 100644
44index 0000000..8aa52f1
45--- /dev/null
46+++ b/debian/patches/fix-neutron-ipset-cleanup-tool.patch
47@@ -0,0 +1,35 @@
48+From: Frode Nordahl <frode.nordahl@canonical.com>
49+Date: Tue, 2 Jun 2020 14:55:50 +0000 (+0200)
50+Subject: Fix Traceback when running neutron-ipset-cleanup tool
51+X-Git-Url: https://review.opendev.org/gitweb?p=openstack%2Fneutron.git;a=commitdiff_plain;h=d57735ae0f01a4c0ae8c81dbdda62e07314face1
52+
53+Fix Traceback when running neutron-ipset-cleanup tool
54+
55+Some of the tools dependencies expect the AGENT group to be
56+present in the configuration, and at present it is not initialized,
57+this patch addresses that.
58+
59+Change-Id: I1a50e77749aaecc3966c9d238f91a1968ed454ef
60+Signed-off-by: Frode Nordahl <frode.nordahl@canonical.com>
61+Closes-Bug: #1881771
62+---
63+
64+diff --git a/neutron/cmd/ipset_cleanup.py b/neutron/cmd/ipset_cleanup.py
65+index c6bd40de6a4..9fecf73b586 100644
66+--- a/neutron/cmd/ipset_cleanup.py
67++++ b/neutron/cmd/ipset_cleanup.py
68+@@ -19,6 +19,7 @@ from oslo_log import log as logging
69+ from neutron.agent.linux import utils
70+ from neutron.common import config
71+ from neutron.conf.agent import cmd as command
72++from neutron.conf.agent import common as agent_config
73+
74+
75+ LOG = logging.getLogger(__name__)
76+@@ -31,6 +32,7 @@ def setup_conf():
77+ from the main config that do not apply during clean-up.
78+ """
79+ conf = cfg.CONF
80++ agent_config.register_root_helper(conf=conf)
81+ command.register_cmd_opts(command.ip_opts, conf)
82+ return conf
83diff --git a/debian/patches/series b/debian/patches/series
84index 209145c..91262a8 100644
85--- a/debian/patches/series
86+++ b/debian/patches/series
87@@ -1,2 +1,3 @@
88 skip-iptest.patch
89 flake8-legacy.patch
90+fix-neutron-ipset-cleanup-tool.patch

Subscribers

People subscribed via source and target branches