summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Thode <prometheanfire@gentoo.org>2015-08-05 02:35:31 +0000
committerMatthew Thode <prometheanfire@gentoo.org>2015-08-05 02:35:31 +0000
commit9cc82e47c5991fb244626bd97becc533b9a9e461 (patch)
tree909d88b8e4c1c9b65301b89b564a7e92a93ee4db /sys-cluster/neutron
parentremoving old nova (diff)
downloadgentoo-2-9cc82e47c5991fb244626bd97becc533b9a9e461.tar.gz
gentoo-2-9cc82e47c5991fb244626bd97becc533b9a9e461.tar.bz2
gentoo-2-9cc82e47c5991fb244626bd97becc533b9a9e461.zip
removing the old and jankey
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x33ED3FD25AFC78BA)
Diffstat (limited to 'sys-cluster/neutron')
-rw-r--r--sys-cluster/neutron/ChangeLog10
-rw-r--r--sys-cluster/neutron/files/0001-Fixes-bug-in-interface-handling-of-ip_lib.py.patch73
-rw-r--r--sys-cluster/neutron/files/0002-moving-vxlan-module-check-to-sanity-checks-and-makin.patch210
-rw-r--r--sys-cluster/neutron/files/0003-fixes-error-logging-to-use-the-right-exception-paren.patch29
-rw-r--r--sys-cluster/neutron/files/cve-2015-3221_2014.2.3.ebuild151
-rw-r--r--sys-cluster/neutron/neutron-2014.2.3-r1.ebuild211
-rw-r--r--sys-cluster/neutron/neutron-2014.2.9999.ebuild211
7 files changed, 9 insertions, 886 deletions
diff --git a/sys-cluster/neutron/ChangeLog b/sys-cluster/neutron/ChangeLog
index 6e5d0c32e0bc..b2ff3bedc727 100644
--- a/sys-cluster/neutron/ChangeLog
+++ b/sys-cluster/neutron/ChangeLog
@@ -1,6 +1,14 @@
# ChangeLog for sys-cluster/neutron
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/ChangeLog,v 1.68 2015/07/29 23:45:24 prometheanfire Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/ChangeLog,v 1.69 2015/08/05 02:35:31 prometheanfire Exp $
+
+ 05 Aug 2015; Matthew Thode <prometheanfire@gentoo.org>
+ -files/0001-Fixes-bug-in-interface-handling-of-ip_lib.py.patch,
+ -files/0002-moving-vxlan-module-check-to-sanity-checks-and-makin.patch,
+ -files/0003-fixes-error-logging-to-use-the-right-exception-paren.patch,
+ -files/cve-2015-3221_2014.2.3.ebuild, -neutron-2014.2.3-r1.ebuild,
+ -neutron-2014.2.9999.ebuild:
+ removing the old and jankey
*neutron-2015.1.1 (29 Jul 2015)
diff --git a/sys-cluster/neutron/files/0001-Fixes-bug-in-interface-handling-of-ip_lib.py.patch b/sys-cluster/neutron/files/0001-Fixes-bug-in-interface-handling-of-ip_lib.py.patch
deleted file mode 100644
index 23f8cc6621ff..000000000000
--- a/sys-cluster/neutron/files/0001-Fixes-bug-in-interface-handling-of-ip_lib.py.patch
+++ /dev/null
@@ -1,73 +0,0 @@
-From f3100ad343759ad32435766df33b0384cd15629d Mon Sep 17 00:00:00 2001
-From: Matthew Thode <mthode@mthode.org>
-Date: Mon, 9 Feb 2015 11:02:58 -0600
-Subject: [PATCH 1/3] Fixes bug in interface handling of ip_lib.py
-
-ip_lib was parsing tunnel links incorrectly, we know what to delimit on
-when we see interfaces with @NONE in their name
-
-@NONE is appended to the interface name by iproute2 when a tunnel is not
-connected to it's remote endpoint, this patch adds allows for handling
-that situation.
-
-Change-Id: I07d1d297f07857d216649cccf717896574aac301
-Closes-Bug: 1374663
----
- neutron/agent/linux/ip_lib.py | 3 +++
- neutron/tests/unit/test_linux_ip_lib.py | 12 +++++++++---
- 2 files changed, 12 insertions(+), 3 deletions(-)
-
-diff --git a/neutron/agent/linux/ip_lib.py b/neutron/agent/linux/ip_lib.py
-index 1d32a54..b2264d2 100644
---- a/neutron/agent/linux/ip_lib.py
-+++ b/neutron/agent/linux/ip_lib.py
-@@ -109,6 +109,9 @@ class IPWrapper(SubProcessBase):
- if len(tokens) == 3:
- if any(v in tokens[2] for v in VLAN_INTERFACE_DETAIL):
- delimiter = '@'
-+ # tunnel interfaces can have @NONE in their name as well
-+ elif '@NONE' in tokens[1]:
-+ delimiter = '@'
- else:
- delimiter = ':'
- name = tokens[1].rpartition(delimiter)[0].strip()
-diff --git a/neutron/tests/unit/test_linux_ip_lib.py b/neutron/tests/unit/test_linux_ip_lib.py
-index 2b9486d..41f9caa 100644
---- a/neutron/tests/unit/test_linux_ip_lib.py
-+++ b/neutron/tests/unit/test_linux_ip_lib.py
-@@ -70,7 +70,11 @@ LINK_SAMPLE = [
- '14: bar@bar:bar@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 '
- 'qdisc mq state UP qlen 1000'
- '\ link/ether cc:dd:ee:ff:ab:cd brd ff:ff:ff:ff:ff:ff promiscuity 0'
-- '\ vlan protocol 802.1Q id 14 <REORDER_HDR>']
-+ '\ vlan protocol 802.1Q id 14 <REORDER_HDR>',
-+ '15: gre0@NONE: <NOARP> mtu 1476 qdisc noqueue state DOWN mode DEFAULT '
-+ 'group default '
-+ '\ link/gre 0.0.0.0 brd 0.0.0.0 promiscuity 0 '
-+ '\ gre remote any local any ttl inherit nopmtudisc']
-
- ADDR_SAMPLE = ("""
- 2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP qlen 1000
-@@ -221,7 +225,8 @@ class TestIpWrapper(base.BaseTestCase):
- ip_lib.IPDevice('bar:bar'),
- ip_lib.IPDevice('bar@bar'),
- ip_lib.IPDevice('bar:bar@bar'),
-- ip_lib.IPDevice('bar@bar:bar')])
-+ ip_lib.IPDevice('bar@bar:bar'),
-+ ip_lib.IPDevice('gre0')])
-
- self.execute.assert_called_once_with(['o', 'd'], 'link', ('list',),
- 'sudo', None)
-@@ -243,7 +248,8 @@ class TestIpWrapper(base.BaseTestCase):
- ip_lib.IPDevice('bar:bar'),
- ip_lib.IPDevice('bar@bar'),
- ip_lib.IPDevice('bar:bar@bar'),
-- ip_lib.IPDevice('bar@bar:bar')])
-+ ip_lib.IPDevice('bar@bar:bar'),
-+ ip_lib.IPDevice('gre0')])
-
- self.execute.assert_called_once_with(['o', 'd'], 'link', ('list',),
- 'sudo', None)
---
-2.0.5
-
diff --git a/sys-cluster/neutron/files/0002-moving-vxlan-module-check-to-sanity-checks-and-makin.patch b/sys-cluster/neutron/files/0002-moving-vxlan-module-check-to-sanity-checks-and-makin.patch
deleted file mode 100644
index 3b22bec2c265..000000000000
--- a/sys-cluster/neutron/files/0002-moving-vxlan-module-check-to-sanity-checks-and-makin.patch
+++ /dev/null
@@ -1,210 +0,0 @@
-From d6d4b8171908ac08196e7f08395f451168ad19dc Mon Sep 17 00:00:00 2001
-From: Matthew Thode <mthode@mthode.org>
-Date: Wed, 10 Dec 2014 15:12:25 -0600
-Subject: [PATCH 2/3] moving vxlan module check to sanity checks and making
- practical
-
-Instead of checking via modinfo (which only checks if a module is
-available) this checks actual usage, which is a more reliable way of
-testing real world problems.
-
-Change-Id: Ida78652ed50e2cb16fa0ab7194d8468714b99d61
-Closes-Bug: 1339197
----
- neutron/cmd/sanity/checks.py | 10 ++++++++-
- neutron/cmd/sanity_check.py | 25 ++++++++++++++++++++--
- .../linuxbridge/agent/linuxbridge_neutron_agent.py | 11 ----------
- neutron/tests/functional/sanity/test_sanity.py | 5 ++++-
- .../unit/linuxbridge/test_lb_neutron_agent.py | 24 ++-------------------
- 5 files changed, 38 insertions(+), 37 deletions(-)
-
-diff --git a/neutron/cmd/sanity/checks.py b/neutron/cmd/sanity/checks.py
-index da37663..4700668 100644
---- a/neutron/cmd/sanity/checks.py
-+++ b/neutron/cmd/sanity/checks.py
-@@ -25,13 +25,21 @@ from neutron.plugins.openvswitch.common import constants as ovs_const
- LOG = logging.getLogger(__name__)
-
-
--def vxlan_supported(root_helper, from_ip='192.0.2.1', to_ip='192.0.2.2'):
-+def ovs_vxlan_supported(root_helper, from_ip='192.0.2.1', to_ip='192.0.2.2'):
- name = "vxlantest-" + utils.get_random_string(6)
- with ovs_lib.OVSBridge(name, root_helper) as br:
- port = br.add_tunnel_port(from_ip, to_ip, const.TYPE_VXLAN)
- return port != ovs_lib.INVALID_OFPORT
-
-
-+def iproute2_vxlan_supported(root_helper):
-+ ip = ip_lib.IPWrapper(root_helper)
-+ name = "vxlantest-" + utils.get_random_string(4)
-+ port = ip.add_vxlan(name, 3000)
-+ ip.del_veth(name)
-+ return name == port.name
-+
-+
- def patch_supported(root_helper):
- seed = utils.get_random_string(6)
- name = "patchtest-" + seed
-diff --git a/neutron/cmd/sanity_check.py b/neutron/cmd/sanity_check.py
-index 4b1be1b..90bf792 100644
---- a/neutron/cmd/sanity_check.py
-+++ b/neutron/cmd/sanity_check.py
-@@ -25,6 +25,13 @@ from oslo.config import cfg
- LOG = logging.getLogger(__name__)
- cfg.CONF.import_group('AGENT', 'neutron.plugins.openvswitch.common.config')
- cfg.CONF.import_group('OVS', 'neutron.plugins.openvswitch.common.config')
-+<<<<<<< HEAD
-+=======
-+cfg.CONF.import_group('VXLAN', 'neutron.plugins.linuxbridge.common.config')
-+cfg.CONF.import_group('ml2', 'neutron.plugins.ml2.config')
-+cfg.CONF.import_group('ml2_sriov',
-+ 'neutron.plugins.ml2.drivers.mech_sriov.mech_driver')
-+>>>>>>> moving vxlan module check to sanity checks and making practical
-
-
- class BoolOptCallback(cfg.BoolOpt):
-@@ -34,7 +41,7 @@ class BoolOptCallback(cfg.BoolOpt):
-
-
- def check_ovs_vxlan():
-- result = checks.vxlan_supported(root_helper=cfg.CONF.AGENT.root_helper)
-+ result = checks.ovs_vxlan_supported(root_helper=cfg.CONF.AGENT.root_helper)
- if not result:
- LOG.error(_('Check for Open vSwitch VXLAN support failed. '
- 'Please ensure that the version of openvswitch '
-@@ -42,6 +49,15 @@ def check_ovs_vxlan():
- return result
-
-
-+def check_iproute2_vxlan():
-+ result = checks.iproute2_vxlan_supported(
-+ root_helper=cfg.CONF.AGENT.root_helper)
-+ if not result:
-+ LOG.error(_LE('Check for iproute2 VXLAN support failed. Please ensure '
-+ 'that the iproute2 has VXLAN support.'))
-+ return result
-+
-+
- def check_ovs_patch():
- result = checks.patch_supported(root_helper=cfg.CONF.AGENT.root_helper)
- if not result:
-@@ -74,7 +90,9 @@ def check_arp_responder():
- # Define CLI opts to test specific features, with a calback for the test
- OPTS = [
- BoolOptCallback('ovs_vxlan', check_ovs_vxlan, default=False,
-- help=_('Check for vxlan support')),
-+ help=_('Check for OVS vxlan support')),
-+ BoolOptCallback('iproute2_vxlan', check_iproute2_vxlan, default=False,
-+ help=_('Check for iproute2 vxlan support')),
- BoolOptCallback('ovs_patch', check_ovs_patch, default=False,
- help=_('Check for patch port support')),
- BoolOptCallback('nova_notify', check_nova_notify, default=False,
-@@ -92,6 +110,9 @@ def enable_tests_from_config():
-
- if 'vxlan' in cfg.CONF.AGENT.tunnel_types:
- cfg.CONF.set_override('ovs_vxlan', True)
-+ if ('vxlan' in cfg.CONF.ml2.type_drivers or
-+ cfg.CONF.VXLAN.enable_vxlan):
-+ cfg.CONF.set_override('iproute2_vxlan', True)
- if cfg.CONF.AGENT.tunnel_types:
- cfg.CONF.set_override('ovs_patch', True)
- if not cfg.CONF.OVS.use_veth_interconnection:
-diff --git a/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py b/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
-index d9f7f68..b540269 100755
---- a/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
-+++ b/neutron/plugins/linuxbridge/agent/linuxbridge_neutron_agent.py
-@@ -561,19 +561,8 @@ class LinuxBridgeManager:
- return False
- return True
-
-- def vxlan_module_supported(self):
-- try:
-- utils.execute(cmd=['modinfo', 'vxlan'], log_fail_as_error=False)
-- return True
-- except RuntimeError:
-- return False
--
- def check_vxlan_support(self):
- self.vxlan_mode = lconst.VXLAN_NONE
-- if not self.vxlan_module_supported():
-- LOG.error(_('Linux kernel vxlan module and iproute2 3.8 or above '
-- 'are required to enable VXLAN.'))
-- raise exceptions.VxlanNetworkUnsupported()
-
- if self.vxlan_ucast_supported():
- self.vxlan_mode = lconst.VXLAN_UCAST
-diff --git a/neutron/tests/functional/sanity/test_sanity.py b/neutron/tests/functional/sanity/test_sanity.py
-index bbe8911..b959138 100644
---- a/neutron/tests/functional/sanity/test_sanity.py
-+++ b/neutron/tests/functional/sanity/test_sanity.py
-@@ -45,7 +45,10 @@ class SanityTestCaseRoot(functional_base.BaseSudoTestCase):
- self.check_sudo_enabled()
-
- def test_ovs_vxlan_support_runs(self):
-- checks.vxlan_supported(self.root_helper)
-+ checks.ovs_vxlan_supported(self.root_helper)
-+
-+ def test_iproute2_vxlan_support_runs(self):
-+ checks.iproute2_vxlan_supported(self.root_helper)
-
- def test_ovs_patch_support_runs(self):
- checks.patch_supported(self.root_helper)
-diff --git a/neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py b/neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py
-index 1a2bbc4..09a5d78 100644
---- a/neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py
-+++ b/neutron/tests/unit/linuxbridge/test_lb_neutron_agent.py
-@@ -829,11 +829,9 @@ class TestLinuxBridgeManager(base.BaseTestCase):
- self.lbm.delete_vlan("eth1.1")
- self.assertTrue(exec_fn.called)
-
-- def _check_vxlan_support(self, expected, vxlan_module_supported,
-- vxlan_ucast_supported, vxlan_mcast_supported):
-+ def _check_vxlan_support(self, expected, vxlan_ucast_supported,
-+ vxlan_mcast_supported):
- with contextlib.nested(
-- mock.patch.object(self.lbm, 'vxlan_module_supported',
-- return_value=vxlan_module_supported),
- mock.patch.object(self.lbm, 'vxlan_ucast_supported',
- return_value=vxlan_ucast_supported),
- mock.patch.object(self.lbm, 'vxlan_mcast_supported',
-@@ -848,37 +846,19 @@ class TestLinuxBridgeManager(base.BaseTestCase):
-
- def test_check_vxlan_support(self):
- self._check_vxlan_support(expected=lconst.VXLAN_UCAST,
-- vxlan_module_supported=True,
- vxlan_ucast_supported=True,
- vxlan_mcast_supported=True)
- self._check_vxlan_support(expected=lconst.VXLAN_MCAST,
-- vxlan_module_supported=True,
- vxlan_ucast_supported=False,
- vxlan_mcast_supported=True)
-
- self._check_vxlan_support(expected=lconst.VXLAN_NONE,
-- vxlan_module_supported=False,
- vxlan_ucast_supported=False,
- vxlan_mcast_supported=False)
- self._check_vxlan_support(expected=lconst.VXLAN_NONE,
-- vxlan_module_supported=True,
- vxlan_ucast_supported=False,
- vxlan_mcast_supported=False)
-
-- def _check_vxlan_module_supported(self, expected, execute_side_effect):
-- with mock.patch.object(
-- utils, 'execute',
-- side_effect=execute_side_effect):
-- self.assertEqual(expected, self.lbm.vxlan_module_supported())
--
-- def test_vxlan_module_supported(self):
-- self._check_vxlan_module_supported(
-- expected=True,
-- execute_side_effect=None)
-- self._check_vxlan_module_supported(
-- expected=False,
-- execute_side_effect=RuntimeError())
--
- def _check_vxlan_ucast_supported(
- self, expected, l2_population, iproute_arg_supported, fdb_append):
- cfg.CONF.set_override('l2_population', l2_population, 'VXLAN')
---
-2.0.5
-
diff --git a/sys-cluster/neutron/files/0003-fixes-error-logging-to-use-the-right-exception-paren.patch b/sys-cluster/neutron/files/0003-fixes-error-logging-to-use-the-right-exception-paren.patch
deleted file mode 100644
index 59283d48a535..000000000000
--- a/sys-cluster/neutron/files/0003-fixes-error-logging-to-use-the-right-exception-paren.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From bda65afcedcbf44efda5f1e5fa430dd672ef5142 Mon Sep 17 00:00:00 2001
-From: Matthew Thode <mthode@mthode.org>
-Date: Sun, 1 Feb 2015 00:13:59 -0600
-Subject: [PATCH 3/3] fixes error logging to use the right exception parent
- class
-
-looks like this was missed
-
-Closes-Bug: #1416798
-Change-Id: If68c13b550d665dfa24b7380f53bee7f6fccdb23
----
- neutron/plugins/ml2/plugin.py | 1 -
- 1 file changed, 1 deletion(-)
-
-diff --git a/neutron/plugins/ml2/plugin.py b/neutron/plugins/ml2/plugin.py
-index a41ffc2..c7c4c4c 100644
---- a/neutron/plugins/ml2/plugin.py
-+++ b/neutron/plugins/ml2/plugin.py
-@@ -1054,7 +1054,6 @@ class Ml2Plugin(db_base_plugin_v2.NeutronDbPluginV2,
- one())
- except sa_exc.NoResultFound:
- return
-- except exc.MultipleResultsFound:
- LOG.error(_("Multiple ports have port_id starting with %s"),
- port_id)
- return
---
-2.0.5
-
diff --git a/sys-cluster/neutron/files/cve-2015-3221_2014.2.3.ebuild b/sys-cluster/neutron/files/cve-2015-3221_2014.2.3.ebuild
deleted file mode 100644
index 18cf37d92d40..000000000000
--- a/sys-cluster/neutron/files/cve-2015-3221_2014.2.3.ebuild
+++ /dev/null
@@ -1,151 +0,0 @@
-From ac8fb28a920c7a6284d41f7cce054ea1b2e73cb1 Mon Sep 17 00:00:00 2001
-From: Aaron Rosen <aaronorosen@gmail.com>
-Date: Thu, 11 Jun 2015 13:58:16 -0700
-Subject: [PATCH] Disable allowed_address_pair ip 0.0.0.0/0 ::/0 for ipset
-
-Previously, the ipset_manager would pass in 0.0.0.0/0 or ::/0 if
-these addresses were inputted as allowed address pairs. This causes
-ipset to raise an error as it does not work with zero prefix sizes.
-To solve this problem we use two ipset rules to represent this.
-
-This was correctly fixed in a backport to kilo though we did not have the
-cycles to backport this exact fix to juno as in juno additional work needs to
-be done because the iptable and ipset code are interleaved together. This
-patch fixes this issue by disabling one from creating an address pair of
-zero lenght. This patch also provides a small tool which one should run:
-tools/fix_zero_length_ip_prefix.py which changes all zero length address_pair
-rules into two address pair rules of:
-
-Ipv4: 0.0.0.0/1 and 128.0.0.1/1
-IPv6: ::/1' and '8000::/1
-
-to avoid the problem.
-After this patch is merged into juno it will be easier for us to apply
-a better change to allow /0 addresses again in juno.
-
-Closes-bug: 1461054
-Co-Authored-by: Darragh O'Reilly <darragh.oreilly@hp.com>
----
- neutron/extensions/allowedaddresspairs.py | 9 +++-
- .../unit/test_extension_allowedaddresspairs.py | 5 ++
- tools/fix_zero_length_ip_prefix.py | 59 ++++++++++++++++++++++
- 3 files changed, 72 insertions(+), 1 deletion(-)
- create mode 100755 tools/fix_zero_length_ip_prefix.py
-
-diff --git a/neutron/extensions/allowedaddresspairs.py b/neutron/extensions/allowedaddresspairs.py
-index 6588d5f..a773a17 100644
---- a/neutron/extensions/allowedaddresspairs.py
-+++ b/neutron/extensions/allowedaddresspairs.py
-@@ -12,6 +12,7 @@
- # License for the specific language governing permissions and limitations
- # under the License.
-
-+import netaddr
- import webob.exc
-
- from neutron.api.v2 import attributes as attr
-@@ -46,6 +47,10 @@ class AllowedAddressPairExhausted(nexception.BadRequest):
- "exceeds the maximum %(quota)s.")
-
-
-+class AllowedAddressPairsZeroPrefixNotAllowed(nexception.InvalidInput):
-+ message = _("AllowedAddressPair CIDR cannot have prefix length zero")
-+
-+
- def _validate_allowed_address_pairs(address_pairs, valid_values=None):
- unique_check = {}
- if len(address_pairs) > cfg.CONF.max_allowed_address_pair:
-@@ -77,7 +82,9 @@ def _validate_allowed_address_pairs(address_pairs, valid_values=None):
- set(['mac_address', 'ip_address'])))
- raise webob.exc.HTTPBadRequest(msg)
-
-- if '/' in ip_address:
-+ if (netaddr.IPNetwork(ip_address).prefixlen == 0):
-+ raise AllowedAddressPairsZeroPrefixNotAllowed()
-+ elif '/' in ip_address:
- msg = attr._validate_subnet(ip_address)
- else:
- msg = attr._validate_ip_address(ip_address)
-diff --git a/neutron/tests/unit/test_extension_allowedaddresspairs.py b/neutron/tests/unit/test_extension_allowedaddresspairs.py
-index bcaa11b..f15c402 100644
---- a/neutron/tests/unit/test_extension_allowedaddresspairs.py
-+++ b/neutron/tests/unit/test_extension_allowedaddresspairs.py
-@@ -140,6 +140,11 @@ class TestAllowedAddressPairs(AllowedAddressPairDBTestCase):
- self.deserialize(self.fmt, res)
- self.assertEqual(res.status_int, 409)
-
-+ def test_create_port_zero_prefix_ip(self):
-+ address_pairs = [{'mac_address': 'invalid_mac',
-+ 'ip_address': '0.0.0.0/0'}]
-+ self._create_port_with_address_pairs(address_pairs, 400)
-+
- def test_create_port_bad_mac(self):
- address_pairs = [{'mac_address': 'invalid_mac',
- 'ip_address': '10.0.0.1'}]
-diff --git a/tools/fix_zero_length_ip_prefix.py b/tools/fix_zero_length_ip_prefix.py
-new file mode 100755
-index 0000000..dbbafb5
---- /dev/null
-+++ b/tools/fix_zero_length_ip_prefix.py
-@@ -0,0 +1,59 @@
-+"""
-+This script is needed to convert addresses that are zero prefix to be two
-+address of one prefix to avoid a bug that exists in juno where the ipset
-+manager isn't able to handle zero prefix lenght addresses.
-+"""
-+
-+import os
-+import sys
-+
-+import netaddr
-+from neutronclient.v2_0 import client
-+
-+
-+def main():
-+ try:
-+ username = os.environ['OS_USERNAME']
-+ tenant_name = os.environ['OS_TENANT_NAME']
-+ password = os.environ['OS_PASSWORD']
-+ auth_url = os.environ['OS_AUTH_URL']
-+ except KeyError:
-+ print("You need to source your openstack creds file first!")
-+ sys.exit(1)
-+
-+ neutron = client.Client(username=username,
-+ tenant_name=tenant_name,
-+ password=password,
-+ auth_url=auth_url)
-+
-+ ports = neutron.list_ports()
-+ for port in ports['ports']:
-+ new_address_pairs = []
-+ needs_update = False
-+ allowed_address_pairs = port.get('allowed_address_pairs')
-+ if allowed_address_pairs:
-+ for address_pair in allowed_address_pairs:
-+ ip = address_pair['ip_address']
-+ mac = address_pair['mac_address']
-+ if(netaddr.IPNetwork(ip).prefixlen == 0):
-+ needs_update = True
-+ if(netaddr.IPNetwork(ip).version == 4):
-+ new_address_pairs.append({'ip_address': '0.0.0.0/1',
-+ 'mac_address': mac})
-+ new_address_pairs.append({'ip_address': '128.0.0.0/1',
-+ 'mac_address': mac})
-+ elif(netaddr.IPNetwork(ip).version == 6):
-+ new_address_pairs.append({'ip_address': '::/1',
-+ 'mac_address': mac})
-+ new_address_pairs.append({'ip_address': '8000::/1',
-+ 'mac_address': mac})
-+ else:
-+ new_address_pairs.append(address_pair)
-+ if needs_update:
-+ print ("Updating port %s with new address_pairs %s" %
-+ (port['id'], new_address_pairs))
-+ neutron.update_port(
-+ port['id'],
-+ {'port': {'allowed_address_pairs': new_address_pairs}})
-+
-+main()
---
-1.9.1
diff --git a/sys-cluster/neutron/neutron-2014.2.3-r1.ebuild b/sys-cluster/neutron/neutron-2014.2.3-r1.ebuild
deleted file mode 100644
index eeb68995909e..000000000000
--- a/sys-cluster/neutron/neutron-2014.2.3-r1.ebuild
+++ /dev/null
@@ -1,211 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/neutron-2014.2.3-r1.ebuild,v 1.1 2015/07/02 05:43:05 prometheanfire Exp $
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-
-inherit distutils-r1 linux-info user
-
-DESCRIPTION="A virtual network service for Openstack"
-HOMEPAGE="https://launchpad.net/neutron"
-SRC_URI="http://launchpad.net/${PN}/juno/${PV}/+download/${P}.tar.gz"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="dhcp doc l3 metadata openvswitch linuxbridge server test sqlite mysql postgres"
-REQUIRED_USE="|| ( mysql postgres sqlite )"
-
-DEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
- >=dev-python/pbr-0.8[${PYTHON_USEDEP}]
- <dev-python/pbr-1.0[${PYTHON_USEDEP}]
- app-admin/sudo
- test? (
- ${RDEPEND}
- >=dev-python/hacking-0.9.2[${PYTHON_USEDEP}]
- <dev-python/hacking-0.10[${PYTHON_USEDEP}]
- >=dev-python/cliff-1.7.0[${PYTHON_USEDEP}]
- >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
- >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
- >=dev-python/mock-1.0[${PYTHON_USEDEP}]
- >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
- dev-python/ordereddict[${PYTHON_USEDEP}]
- >=dev-python/requests-mock-0.4.0[${PYTHON_USEDEP}]
- >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
- !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
- <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
- >=dev-python/oslo-sphinx-2.2.0[${PYTHON_USEDEP}]
- >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
- >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
- !~dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
- >=dev-python/webtest-2.0[${PYTHON_USEDEP}]
- dev-python/configobj[${PYTHON_USEDEP}]
- )"
-
-RDEPEND="
- dev-python/paste[${PYTHON_USEDEP}]
- >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
- >=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
- !~dev-python/routes-2.0[${PYTHON_USEDEP}]
- >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
- >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
- >=dev-python/eventlet-0.15.1[${PYTHON_USEDEP}]
- <dev-python/eventlet-0.16.0[${PYTHON_USEDEP}]
- >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
- >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
- >=dev-python/requests-2.1.0[${PYTHON_USEDEP}]
- !~dev-python/requests-2.4.0[${PYTHON_USEDEP}]
- >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
- dev-python/jsonrpclib[${PYTHON_USEDEP}]
- dev-python/jinja[${PYTHON_USEDEP}]
- >=dev-python/keystonemiddleware-1.0.0[${PYTHON_USEDEP}]
- >=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}]
- >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]
- <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}]
- sqlite? (
- >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}]
- <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}]
- )
- mysql? (
- dev-python/mysql-python
- >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
- <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
- )
- postgres? (
- dev-python/psycopg:2
- >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
- <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
- )
- >=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
- >=dev-python/python-keystoneclient-0.10.0[${PYTHON_USEDEP}]
- >=dev-python/alembic-0.6.4[${PYTHON_USEDEP}]
- >=dev-python/six-1.7.0[${PYTHON_USEDEP}]
- >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
- >=dev-python/oslo-config-1.4.0[${PYTHON_USEDEP}]
- >=dev-python/oslo-db-1.0.0[${PYTHON_USEDEP}]
- <dev-python/oslo-db-1.1.0[${PYTHON_USEDEP}]
- >=dev-python/oslo-messaging-1.4.0[${PYTHON_USEDEP}]
- !~dev-python/oslo-messaging-1.5.0[${PYTHON_USEDEP}]
- <dev-python/oslo-messaging-1.6.0[${PYTHON_USEDEP}]
- >=dev-python/oslo-rootwrap-1.3.0[${PYTHON_USEDEP}]
- >=dev-python/python-novaclient-2.18.0[${PYTHON_USEDEP}]
- dev-python/pyudev[${PYTHON_USEDEP}]
- sys-apps/iproute2
- net-misc/bridge-utils
- net-firewall/ipset
- openvswitch? ( net-misc/openvswitch )
- dhcp? ( net-dns/dnsmasq[dhcp-tools] )"
-
-PATCHES=(
- "${FILESDIR}/0001-Fixes-bug-in-interface-handling-of-ip_lib.py.patch"
- "${FILESDIR}/0002-moving-vxlan-module-check-to-sanity-checks-and-makin.patch"
- "${FILESDIR}/0003-fixes-error-logging-to-use-the-right-exception-paren.patch"
- "${FILESDIR}/cve-2015-3221_2014.2.3.ebuild"
-)
-
-pkg_setup() {
- linux-info_pkg_setup
- CONFIG_CHECK_MODULES="VLAN_8021Q IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \
- IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 \
- NF_NAT_IPV4 NF_NAT NF_CONNTRACK IP_NF_FILTER IP_NF_IPTABLES NETFILTER_XTABLES"
- if linux_config_exists; then
- for module in ${CONFIG_CHECK_MODULES}; do
- linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel"
- done
- fi
- enewgroup neutron
- enewuser neutron -1 -1 /var/lib/neutron neutron
-}
-
-pkg_config() {
- fperms 0700 /var/log/neutron
- fowners neutron:neutron /var/log neutron
-}
-
-src_prepare() {
- #it's /bin/ip not /sbin/ip
- sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/*
- distutils-r1_src_prepare
-}
-
-python_compile_all() {
- use doc && make -C doc html
-}
-
-python_test() {
- # https://bugs.launchpad.net/neutron/+bug/1234857
- # https://bugs.launchpad.net/swift/+bug/1249727
- # https://bugs.launchpad.net/neutron/+bug/1251657
- # turn multiprocessing off, testr will use it --parallel
- local DISTUTILS_NO_PARALLEL_BUILD=1
- # Move tests out that attempt net connection, have failures
- mv $(find . -name test_ovs_tunnel.py) . || die
- sed -e 's:test_app_using_ipv6_and_ssl:_&:' \
- -e 's:test_start_random_port_with_ipv6:_&:' \
- -i neutron/tests/unit/test_wsgi.py || die
- testr init
- testr run --parallel || die "failed testsuite under python2.7"
-}
-
-python_install() {
- distutils-r1_python_install
- if use server; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-server"
- newconfd "${FILESDIR}/neutron-server.confd" "neutron-server"
- dosym /etc/neutron/plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini
- fi
- if use dhcp; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent"
- newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent"
- fi
- if use l3; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent"
- newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent"
- fi
- if use metadata; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent"
- newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent"
- fi
- if use openvswitch; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent"
- newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent"
- newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup"
- newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup"
- fi
- if use linuxbridge; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent"
- newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent"
- fi
- diropts -m 755 -o neutron -g neutron
- dodir /var/log/neutron /var/lib/neutron
- keepdir /etc/neutron
- insinto /etc/neutron
- insopts -m 0640 -o neutron -g neutron
-
- doins etc/*
- # stupid renames
- rm "${D}etc/neutron/quantum"
- insinto /etc/neutron
- doins -r "etc/neutron/plugins"
- insopts -m 0640 -o root -g root
- doins "etc/rootwrap.conf"
- doins -r "etc/neutron/rootwrap.d"
-
- insinto "/usr/lib64/python2.7/site-packages/neutron/db/migration/alembic_migrations/"
- doins -r "neutron/db/migration/alembic_migrations/versions"
-
- #add sudoers definitions for user neutron
- insinto /etc/sudoers.d/
- insopts -m 0440 -o root -g root
- newins "${FILESDIR}/neutron.sudoersd" neutron
-
- #remove superfluous stuff
- rm -R "${D}/usr/etc/"
-}
-
-python_install_all() {
- use doc && local HTML_DOCS=( doc/build/html/. )
- distutils-r1_python_install_all
-}
diff --git a/sys-cluster/neutron/neutron-2014.2.9999.ebuild b/sys-cluster/neutron/neutron-2014.2.9999.ebuild
deleted file mode 100644
index 98f8b6de1217..000000000000
--- a/sys-cluster/neutron/neutron-2014.2.9999.ebuild
+++ /dev/null
@@ -1,211 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-cluster/neutron/neutron-2014.2.9999.ebuild,v 1.13 2015/04/13 03:27:20 prometheanfire Exp $
-
-EAPI=5
-PYTHON_COMPAT=( python2_7 )
-
-inherit distutils-r1 git-2 linux-info user
-
-DESCRIPTION="A virtual network service for Openstack"
-HOMEPAGE="https://launchpad.net/neutron"
-EGIT_REPO_URI="https://github.com/openstack/neutron.git"
-EGIT_BRANCH="stable/juno"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS=""
-IUSE="dhcp doc l3 metadata openvswitch linuxbridge server test sqlite mysql postgres"
-REQUIRED_USE="|| ( mysql postgres sqlite )"
-
-DEPEND="
- dev-python/setuptools[${PYTHON_USEDEP}]
- >=dev-python/pbr-0.8[${PYTHON_USEDEP}]
- <dev-python/pbr-1.0[${PYTHON_USEDEP}]
- app-admin/sudo
- test? (
- ${RDEPEND}
- >=dev-python/hacking-0.9.2[${PYTHON_USEDEP}]
- <dev-python/hacking-0.10[${PYTHON_USEDEP}]
- >=dev-python/cliff-1.7.0[${PYTHON_USEDEP}]
- >=dev-python/coverage-3.6[${PYTHON_USEDEP}]
- >=dev-python/fixtures-0.3.14[${PYTHON_USEDEP}]
- >=dev-python/mock-1.0[${PYTHON_USEDEP}]
- >=dev-python/subunit-0.0.18[${PYTHON_USEDEP}]
- dev-python/ordereddict[${PYTHON_USEDEP}]
- >=dev-python/requests-mock-0.4.0[${PYTHON_USEDEP}]
- >=dev-python/sphinx-1.1.2[${PYTHON_USEDEP}]
- !~dev-python/sphinx-1.2.0[${PYTHON_USEDEP}]
- <dev-python/sphinx-1.3[${PYTHON_USEDEP}]
- >=dev-python/oslo-sphinx-2.2.0[${PYTHON_USEDEP}]
- >=dev-python/testrepository-0.0.18[${PYTHON_USEDEP}]
- >=dev-python/testtools-0.9.34[${PYTHON_USEDEP}]
- !~dev-python/testtools-1.4.0[${PYTHON_USEDEP}]
- >=dev-python/webtest-2.0[${PYTHON_USEDEP}]
- dev-python/configobj[${PYTHON_USEDEP}]
- )"
-
-RDEPEND="
- dev-python/paste[${PYTHON_USEDEP}]
- >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}]
- >=dev-python/routes-1.12.3[${PYTHON_USEDEP}]
- !~dev-python/routes-2.0[${PYTHON_USEDEP}]
- >=dev-python/anyjson-0.3.3[${PYTHON_USEDEP}]
- >=dev-python/Babel-1.3[${PYTHON_USEDEP}]
- >=dev-python/eventlet-0.15.1[${PYTHON_USEDEP}]
- <dev-python/eventlet-0.16.0[${PYTHON_USEDEP}]
- >=dev-python/greenlet-0.3.2[${PYTHON_USEDEP}]
- >=dev-python/httplib2-0.7.5[${PYTHON_USEDEP}]
- >=dev-python/requests-2.1.0[${PYTHON_USEDEP}]
- !~dev-python/requests-2.4.0[${PYTHON_USEDEP}]
- >=dev-python/iso8601-0.1.9[${PYTHON_USEDEP}]
- dev-python/jsonrpclib[${PYTHON_USEDEP}]
- dev-python/jinja[${PYTHON_USEDEP}]
- >=dev-python/keystonemiddleware-1.0.0[${PYTHON_USEDEP}]
- >=dev-python/netaddr-0.7.12[${PYTHON_USEDEP}]
- >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}]
- <=dev-python/python-neutronclient-3.0.0[${PYTHON_USEDEP}]
- sqlite? (
- >=dev-python/sqlalchemy-0.9.7[sqlite,${PYTHON_USEDEP}]
- <=dev-python/sqlalchemy-0.9.99[sqlite,${PYTHON_USEDEP}]
- )
- mysql? (
- dev-python/mysql-python
- >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
- <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
- )
- postgres? (
- dev-python/psycopg:2
- >=dev-python/sqlalchemy-0.9.7[${PYTHON_USEDEP}]
- <=dev-python/sqlalchemy-0.9.99[${PYTHON_USEDEP}]
- )
- >=dev-python/webob-1.2.3[${PYTHON_USEDEP}]
- >=dev-python/python-keystoneclient-0.10.0[${PYTHON_USEDEP}]
- >=dev-python/alembic-0.6.4[${PYTHON_USEDEP}]
- >=dev-python/six-1.7.0[${PYTHON_USEDEP}]
- >=dev-python/stevedore-1.0.0[${PYTHON_USEDEP}]
- >=dev-python/oslo-config-1.4.0[${PYTHON_USEDEP}]
- >=dev-python/oslo-db-1.0.0[${PYTHON_USEDEP}]
- <dev-python/oslo-db-1.1.0[${PYTHON_USEDEP}]
- >=dev-python/oslo-messaging-1.4.0[${PYTHON_USEDEP}]
- !~dev-python/oslo-messaging-1.5.0[${PYTHON_USEDEP}]
- <dev-python/oslo-messaging-1.6.0[${PYTHON_USEDEP}]
- >=dev-python/oslo-rootwrap-1.3.0[${PYTHON_USEDEP}]
- >=dev-python/python-novaclient-2.18.0[${PYTHON_USEDEP}]
- dev-python/pyudev[${PYTHON_USEDEP}]
- sys-apps/iproute2
- net-misc/bridge-utils
- net-firewall/ipset
- openvswitch? ( net-misc/openvswitch )
- dhcp? ( net-dns/dnsmasq[dhcp-tools] )"
-
-PATCHES=(
- "${FILESDIR}/0001-Fixes-bug-in-interface-handling-of-ip_lib.py.patch"
- "${FILESDIR}/0002-moving-vxlan-module-check-to-sanity-checks-and-makin.patch"
- "${FILESDIR}/0003-fixes-error-logging-to-use-the-right-exception-paren.patch"
-)
-
-pkg_setup() {
- linux-info_pkg_setup
- CONFIG_CHECK_MODULES="VLAN_8021Q IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \
- IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 NF_CONNTRACK_IPV4 NF_DEFRAG_IPV4 \
- NF_NAT_IPV4 NF_NAT NF_CONNTRACK IP_NF_FILTER IP_NF_IPTABLES NETFILTER_XTABLES"
- if linux_config_exists; then
- for module in ${CONFIG_CHECK_MODULES}; do
- linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel"
- done
- fi
- enewgroup neutron
- enewuser neutron -1 -1 /var/lib/neutron neutron
-}
-
-pkg_config() {
- fperms 0700 /var/log/neutron
- fowners neutron:neutron /var/log neutron
-}
-
-src_prepare() {
- #it's /bin/ip not /sbin/ip
- sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/*
- distutils-r1_src_prepare
-}
-
-python_compile_all() {
- use doc && make -C doc html
-}
-
-python_test() {
- # https://bugs.launchpad.net/neutron/+bug/1234857
- # https://bugs.launchpad.net/swift/+bug/1249727
- # https://bugs.launchpad.net/neutron/+bug/1251657
- # turn multiprocessing off, testr will use it --parallel
- local DISTUTILS_NO_PARALLEL_BUILD=1
- # Move tests out that attempt net connection, have failures
- mv $(find . -name test_ovs_tunnel.py) . || die
- sed -e 's:test_app_using_ipv6_and_ssl:_&:' \
- -e 's:test_start_random_port_with_ipv6:_&:' \
- -i neutron/tests/unit/test_wsgi.py || die
- testr init
- testr run --parallel || die "failed testsuite under python2.7"
-}
-
-python_install() {
- distutils-r1_python_install
- if use server; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-server"
- newconfd "${FILESDIR}/neutron-server.confd" "neutron-server"
- dosym /etc/neutron/plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini
- fi
- if use dhcp; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent"
- newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent"
- fi
- if use l3; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent"
- newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent"
- fi
- if use metadata; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent"
- newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent"
- fi
- if use openvswitch; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent"
- newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent"
- newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup"
- newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup"
- fi
- if use linuxbridge; then
- newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent"
- newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent"
- fi
- diropts -m 755 -o neutron -g neutron
- dodir /var/log/neutron /var/lib/neutron
- keepdir /etc/neutron
- insinto /etc/neutron
- insopts -m 0640 -o neutron -g neutron
-
- doins etc/*
- # stupid renames
- rm "${D}etc/neutron/quantum"
- insinto /etc/neutron
- doins -r "etc/neutron/plugins"
- insopts -m 0640 -o root -g root
- doins "etc/rootwrap.conf"
- doins -r "etc/neutron/rootwrap.d"
-
- insinto "/usr/lib64/python2.7/site-packages/neutron/db/migration/alembic_migrations/"
- doins -r "neutron/db/migration/alembic_migrations/versions"
-
- #add sudoers definitions for user neutron
- insinto /etc/sudoers.d/
- insopts -m 0440 -o root -g root
- newins "${FILESDIR}/neutron.sudoersd" neutron
-
- #remove superfluous stuff
- rm -R "${D}/usr/etc/"
-}
-
-python_install_all() {
- use doc && local HTML_DOCS=( doc/build/html/. )
- distutils-r1_python_install_all
-}