1 |
commit: 161c023bb9086cb59d6a6ebc24ac191f7fd9678a |
2 |
Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Mar 30 15:05:25 2022 +0000 |
4 |
Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com> |
5 |
CommitDate: Wed Mar 30 15:06:05 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=161c023b |
7 |
|
8 |
sys-cluster/neutron: add 20.0.0.0_rc1 |
9 |
|
10 |
Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com> |
11 |
|
12 |
sys-cluster/neutron/Manifest | 1 + |
13 |
sys-cluster/neutron/files/neutron.logrotate | 7 + |
14 |
sys-cluster/neutron/files/neutron.tmpfile | 1 + |
15 |
.../files/openstack-neutron-dhcp-agent.service | 14 ++ |
16 |
.../files/openstack-neutron-l3-agent.service | 14 ++ |
17 |
.../openstack-neutron-linuxbridge-agent.service | 15 ++ |
18 |
.../openstack-neutron-linuxbridge-cleanup.service | 15 ++ |
19 |
.../files/openstack-neutron-metadata-agent.service | 14 ++ |
20 |
.../files/openstack-neutron-metering-agent.service | 14 ++ |
21 |
.../files/openstack-neutron-netns-cleanup.service | 15 ++ |
22 |
.../files/openstack-neutron-ovs-cleanup.service | 16 ++ |
23 |
.../neutron/files/openstack-neutron-server.service | 15 ++ |
24 |
sys-cluster/neutron/neutron-20.0.0.0_rc1.ebuild | 252 +++++++++++++++++++++ |
25 |
13 files changed, 393 insertions(+) |
26 |
|
27 |
diff --git a/sys-cluster/neutron/Manifest b/sys-cluster/neutron/Manifest |
28 |
index 540f994cd..12e3ce6ba 100644 |
29 |
--- a/sys-cluster/neutron/Manifest |
30 |
+++ b/sys-cluster/neutron/Manifest |
31 |
@@ -1,3 +1,4 @@ |
32 |
DIST neutron-17.1.2.tar.gz 12930231 BLAKE2B 865e849fb811b3abf8b589ea5752c9305962ed24bcd69a4998425a1d56abcadd87f224e883269b780655f252d40dd050805782080385d94163b5488ffbdbf52a SHA512 1320c96ba5b3b2de5feb313b564baa7308b3b964c628afa57e60ed8f541549b11ddaa0ea1e4025dc0265ad1d962f0961fdc93924fcdde98c9b7c3c23728a3ebd |
33 |
+DIST neutron-20.0.0.0rc1.tar.gz 13257195 BLAKE2B 1c6fc5574b9d4753bf4d99d3589fb6b49b1f3107b47d0d23da7b5cfd118e90c92ffb9c739342fc3d1f2b075c81deb919aa871ae0a65c09e97b13b34eff4a777b SHA512 6b5b05fe77afc78a503f3c77473ab9bd5ebee692606acb97d2ce499b9580ec03056687496fff72f99b0ed3e1862ad6b6bc013eb5f4186df623d20638a6c0293c |
34 |
DIST neutron-configs-17.1.2.tar.gz 30314 BLAKE2B 885d00259fde0200f6a52d91b18e884012c04cb06e5e4ba6c72b77fbb0a8df30d50efd6db16faa009328eac9b7c5fb31854feb81595a542b4ac5d8172c8056b6 SHA512 cf85a563c417e1fb01f7d329c7021c20782fe67f64c5dfd542deed07e09d6a717e472976df8f1f4c3bb4a6a10e8d8b8300f18e1a3759358b3db12f77dad7bd5b |
35 |
DIST neutron-ml2-plugins-17.1.2.tar.gz 9011 BLAKE2B d9f8cb4d26699ca44a4cf4cd422bd88b9bb5a2138a80fec469021491d87b158502801c2ce79316f52a900877f7706dc93c2a5a5a33c868918effeaa6b65a7931 SHA512 a225310f0f54991a079d515512189b3c08de22c5b13d58960ef24498401fc54b0878ed879d895e696b789e703a0bb3f4a184eccbbfb9ac9fe9447086cb952b37 |
36 |
|
37 |
diff --git a/sys-cluster/neutron/files/neutron.logrotate b/sys-cluster/neutron/files/neutron.logrotate |
38 |
new file mode 100644 |
39 |
index 000000000..c39eca5e9 |
40 |
--- /dev/null |
41 |
+++ b/sys-cluster/neutron/files/neutron.logrotate |
42 |
@@ -0,0 +1,7 @@ |
43 |
+/var/log/neutron/*.log { |
44 |
+ daily |
45 |
+ missingok |
46 |
+ compress |
47 |
+ delaycompress |
48 |
+ copytruncate |
49 |
+} |
50 |
|
51 |
diff --git a/sys-cluster/neutron/files/neutron.tmpfile b/sys-cluster/neutron/files/neutron.tmpfile |
52 |
new file mode 100644 |
53 |
index 000000000..d9a582460 |
54 |
--- /dev/null |
55 |
+++ b/sys-cluster/neutron/files/neutron.tmpfile |
56 |
@@ -0,0 +1 @@ |
57 |
+d /run/neutron 0755 neutron neutron - |
58 |
|
59 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-dhcp-agent.service b/sys-cluster/neutron/files/openstack-neutron-dhcp-agent.service |
60 |
new file mode 100644 |
61 |
index 000000000..a407f5686 |
62 |
--- /dev/null |
63 |
+++ b/sys-cluster/neutron/files/openstack-neutron-dhcp-agent.service |
64 |
@@ -0,0 +1,14 @@ |
65 |
+[Unit] |
66 |
+Description=OpenStack Neutron DHCP Agent |
67 |
+After=syslog.target network.target |
68 |
+ |
69 |
+[Service] |
70 |
+Type=simple |
71 |
+User=neutron |
72 |
+ExecStart=/usr/bin/neutron-dhcp-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-dhcp-agent --log-file /var/log/neutron/dhcp-agent.log |
73 |
+PrivateTmp=false |
74 |
+KillMode=process |
75 |
+Restart=on-failure |
76 |
+ |
77 |
+[Install] |
78 |
+WantedBy=multi-user.target |
79 |
|
80 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-l3-agent.service b/sys-cluster/neutron/files/openstack-neutron-l3-agent.service |
81 |
new file mode 100644 |
82 |
index 000000000..469d3ce17 |
83 |
--- /dev/null |
84 |
+++ b/sys-cluster/neutron/files/openstack-neutron-l3-agent.service |
85 |
@@ -0,0 +1,14 @@ |
86 |
+[Unit] |
87 |
+Description=OpenStack Neutron Layer 3 Agent |
88 |
+After=syslog.target network.target |
89 |
+ |
90 |
+[Service] |
91 |
+Type=simple |
92 |
+User=neutron |
93 |
+ExecStart=/usr/bin/neutron-l3-agent --config-file /usr/share/neutron/neutron-dist.conf --config-dir /usr/share/neutron/l3_agent --config-file /etc/neutron/neutron.conf --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-l3-agent --log-file /var/log/neutron/l3-agent.log |
94 |
+PrivateTmp=false |
95 |
+KillMode=process |
96 |
+Restart=on-failure |
97 |
+ |
98 |
+[Install] |
99 |
+WantedBy=multi-user.target |
100 |
|
101 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-linuxbridge-agent.service b/sys-cluster/neutron/files/openstack-neutron-linuxbridge-agent.service |
102 |
new file mode 100644 |
103 |
index 000000000..957e3bc63 |
104 |
--- /dev/null |
105 |
+++ b/sys-cluster/neutron/files/openstack-neutron-linuxbridge-agent.service |
106 |
@@ -0,0 +1,15 @@ |
107 |
+[Unit] |
108 |
+Description=OpenStack Neutron Linux Bridge Agent |
109 |
+After=syslog.target network.target |
110 |
+ |
111 |
+[Service] |
112 |
+Type=simple |
113 |
+User=neutron |
114 |
+PermissionsStartOnly=true |
115 |
+ExecStart=/usr/bin/neutron-linuxbridge-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-linuxbridge-agent --log-file /var/log/neutron/linuxbridge-agent.log |
116 |
+PrivateTmp=true |
117 |
+KillMode=process |
118 |
+Restart=on-failure |
119 |
+ |
120 |
+[Install] |
121 |
+WantedBy=multi-user.target |
122 |
|
123 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-linuxbridge-cleanup.service b/sys-cluster/neutron/files/openstack-neutron-linuxbridge-cleanup.service |
124 |
new file mode 100644 |
125 |
index 000000000..aeac97497 |
126 |
--- /dev/null |
127 |
+++ b/sys-cluster/neutron/files/openstack-neutron-linuxbridge-cleanup.service |
128 |
@@ -0,0 +1,15 @@ |
129 |
+[Unit] |
130 |
+Description=OpenStack Neutron Linux Bridge Cleanup Utility |
131 |
+After=syslog.target network.target |
132 |
+Before=openstack-neutron-linuxbridge-agent.service openstack-neutron-dhcp-agent.service openstack-neutron-l3-agent.service openstack-nova-compute.service |
133 |
+ |
134 |
+[Service] |
135 |
+Type=oneshot |
136 |
+User=neutron |
137 |
+ExecStart=/usr/bin/neutron-linuxbridge-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-linuxbridge-cleanup --log-file /var/log/neutron/linuxbridge-agent.log |
138 |
+ExecStop=/usr/bin/neutron-linuxbridge-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/linuxbridge_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-linuxbridge-cleanup --log-file /var/log/neutron/linuxbridge-agent.log |
139 |
+PrivateTmp=true |
140 |
+RemainAfterExit=yes |
141 |
+ |
142 |
+[Install] |
143 |
+WantedBy=multi-user.target |
144 |
|
145 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-metadata-agent.service b/sys-cluster/neutron/files/openstack-neutron-metadata-agent.service |
146 |
new file mode 100644 |
147 |
index 000000000..62a3106ce |
148 |
--- /dev/null |
149 |
+++ b/sys-cluster/neutron/files/openstack-neutron-metadata-agent.service |
150 |
@@ -0,0 +1,14 @@ |
151 |
+[Unit] |
152 |
+Description=OpenStack Neutron Metadata Agent |
153 |
+After=syslog.target network.target |
154 |
+ |
155 |
+[Service] |
156 |
+Type=simple |
157 |
+User=neutron |
158 |
+ExecStart=/usr/bin/neutron-metadata-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metadata_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-metadata-agent --log-file /var/log/neutron/metadata-agent.log |
159 |
+PrivateTmp=false |
160 |
+KillMode=process |
161 |
+Restart=on-failure |
162 |
+ |
163 |
+[Install] |
164 |
+WantedBy=multi-user.target |
165 |
|
166 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-metering-agent.service b/sys-cluster/neutron/files/openstack-neutron-metering-agent.service |
167 |
new file mode 100644 |
168 |
index 000000000..618b341c2 |
169 |
--- /dev/null |
170 |
+++ b/sys-cluster/neutron/files/openstack-neutron-metering-agent.service |
171 |
@@ -0,0 +1,14 @@ |
172 |
+[Unit] |
173 |
+Description=OpenStack Neutron Metering Agent |
174 |
+After=syslog.target network.target |
175 |
+ |
176 |
+[Service] |
177 |
+Type=simple |
178 |
+User=neutron |
179 |
+ExecStart=/usr/bin/neutron-metering-agent --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/metering_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-metering-agent --log-file /var/log/neutron/metering-agent.log |
180 |
+PrivateTmp=false |
181 |
+KillMode=process |
182 |
+Restart=on-failure |
183 |
+ |
184 |
+[Install] |
185 |
+WantedBy=multi-user.target |
186 |
|
187 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-netns-cleanup.service b/sys-cluster/neutron/files/openstack-neutron-netns-cleanup.service |
188 |
new file mode 100644 |
189 |
index 000000000..71b9ee48e |
190 |
--- /dev/null |
191 |
+++ b/sys-cluster/neutron/files/openstack-neutron-netns-cleanup.service |
192 |
@@ -0,0 +1,15 @@ |
193 |
+[Unit] |
194 |
+Description=OpenStack Neutron Netns Cleanup Utility |
195 |
+After=syslog.target network.target openvswitch.service |
196 |
+Before=openstack-neutron-openvswitch-agent.service openstack-neutron-dhcp-agent.service openstack-neutron-l3-agent.service openstack-nova-compute.service |
197 |
+ |
198 |
+[Service] |
199 |
+Type=oneshot |
200 |
+User=neutron |
201 |
+ExecStart=/usr/bin/neutron-netns-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-netns-cleanup --log-file /var/log/neutron/dhcp-agent.log |
202 |
+ExecStop=/usr/bin/neutron-netns-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/dhcp_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-netns-cleanup --force --log-file /var/log/neutron/dhcp-agent.log |
203 |
+PrivateTmp=false |
204 |
+RemainAfterExit=yes |
205 |
+ |
206 |
+[Install] |
207 |
+WantedBy=multi-user.target |
208 |
|
209 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-ovs-cleanup.service b/sys-cluster/neutron/files/openstack-neutron-ovs-cleanup.service |
210 |
new file mode 100644 |
211 |
index 000000000..720792525 |
212 |
--- /dev/null |
213 |
+++ b/sys-cluster/neutron/files/openstack-neutron-ovs-cleanup.service |
214 |
@@ -0,0 +1,16 @@ |
215 |
+[Unit] |
216 |
+Description=OpenStack Neutron Open vSwitch Cleanup Utility |
217 |
+After=syslog.target network.target openvswitch.service |
218 |
+Before=openstack-neutron-openvswitch-agent.service openstack-neutron-dhcp-agent.service openstack-neutron-l3-agent.service openstack-nova-compute.service |
219 |
+ |
220 |
+[Service] |
221 |
+Type=oneshot |
222 |
+User=neutron |
223 |
+ExecStart=/usr/bin/neutron-ovs-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-ovs-cleanup --log-file /var/log/neutron/openvswitch-agent.log |
224 |
+ExecStop=/usr/bin/neutron-ovs-cleanup --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-ovs-cleanup --log-file /var/log/neutron/openvswitch-agent.log |
225 |
+PrivateTmp=true |
226 |
+RemainAfterExit=yes |
227 |
+TimeoutSec=0 |
228 |
+ |
229 |
+[Install] |
230 |
+WantedBy=multi-user.target |
231 |
|
232 |
diff --git a/sys-cluster/neutron/files/openstack-neutron-server.service b/sys-cluster/neutron/files/openstack-neutron-server.service |
233 |
new file mode 100644 |
234 |
index 000000000..275202b61 |
235 |
--- /dev/null |
236 |
+++ b/sys-cluster/neutron/files/openstack-neutron-server.service |
237 |
@@ -0,0 +1,15 @@ |
238 |
+[Unit] |
239 |
+Description=OpenStack Neutron Server |
240 |
+After=syslog.target network.target |
241 |
+[Service] |
242 |
+Type=notify |
243 |
+User=neutron |
244 |
+ExecStart=/usr/bin/neutron-server --config-file /usr/share/neutron/neutron-dist.conf --config-file /etc/neutron/neutron.conf --config-file /etc/neutron/plugin.ini --config-dir /etc/neutron/conf.d/common --config-dir /etc/neutron/conf.d/neutron-server --log-file /var/log/neutron/server.log |
245 |
+PrivateTmp=true |
246 |
+NotifyAccess=all |
247 |
+KillMode=process |
248 |
+Restart=on-failure |
249 |
+TimeoutStartSec=0 |
250 |
+ |
251 |
+[Install] |
252 |
+WantedBy=multi-user.target |
253 |
|
254 |
diff --git a/sys-cluster/neutron/neutron-20.0.0.0_rc1.ebuild b/sys-cluster/neutron/neutron-20.0.0.0_rc1.ebuild |
255 |
new file mode 100644 |
256 |
index 000000000..40c4358f9 |
257 |
--- /dev/null |
258 |
+++ b/sys-cluster/neutron/neutron-20.0.0.0_rc1.ebuild |
259 |
@@ -0,0 +1,252 @@ |
260 |
+# Copyright 1999-2022 Gentoo Authors |
261 |
+# Distributed under the terms of the GNU General Public License v2 |
262 |
+ |
263 |
+EAPI=8 |
264 |
+ |
265 |
+MYP="${P//_/}" |
266 |
+PYTHON_COMPAT=( python3_{8..9} ) |
267 |
+ |
268 |
+inherit distutils-r1 linux-info systemd tmpfiles |
269 |
+ |
270 |
+DESCRIPTION="A virtual network service for Openstack" |
271 |
+HOMEPAGE=" |
272 |
+ https://launchpad.net/neutron |
273 |
+ https://opendev.org/openstack/neutron |
274 |
+ https://pypi.org/project/neutron/ |
275 |
+" |
276 |
+SRC_URI="https://tarballs.openstack.org/${PN}/${MYP}.tar.gz" |
277 |
+S="${WORKDIR}/${MYP}" |
278 |
+ |
279 |
+KEYWORDS="" |
280 |
+LICENSE="Apache-2.0" |
281 |
+SLOT="0" |
282 |
+IUSE="compute-only dhcp haproxy ipv6 l3 metadata openvswitch linuxbridge server sqlite +mysql postgres" |
283 |
+ |
284 |
+RDEPEND=" |
285 |
+ >=dev-python/pbr-4.0.0[${PYTHON_USEDEP}] |
286 |
+ >=dev-python/paste-2.0.2[${PYTHON_USEDEP}] |
287 |
+ >=dev-python/pastedeploy-1.5.0-r1[${PYTHON_USEDEP}] |
288 |
+ >=dev-python/routes-2.3.1[${PYTHON_USEDEP}] |
289 |
+ >=dev-python/debtcollector-1.19.0[${PYTHON_USEDEP}] |
290 |
+ >=dev-python/decorator-4.1.0[${PYTHON_USEDEP}] |
291 |
+ >=dev-python/eventlet-0.26.1[${PYTHON_USEDEP}] |
292 |
+ >=dev-python/pecan-1.3.2[${PYTHON_USEDEP}] |
293 |
+ >=dev-python/httplib2-0.9.1[${PYTHON_USEDEP}] |
294 |
+ >=dev-python/requests-2.18.0[${PYTHON_USEDEP}] |
295 |
+ >=dev-python/jinja-2.10[${PYTHON_USEDEP}] |
296 |
+ >=dev-python/keystonemiddleware-5.1.0[${PYTHON_USEDEP}] |
297 |
+ >=dev-python/netaddr-0.7.18[${PYTHON_USEDEP}] |
298 |
+ >=dev-python/netifaces-0.10.4[${PYTHON_USEDEP}] |
299 |
+ >=dev-python/neutron-lib-2.20.0[${PYTHON_USEDEP}] |
300 |
+ >=dev-python/python-neutronclient-7.8.0[${PYTHON_USEDEP}] |
301 |
+ >=dev-python/tenacity-6.0.0[${PYTHON_USEDEP}] |
302 |
+ >=dev-python/webob-1.8.2[${PYTHON_USEDEP}] |
303 |
+ >=dev-python/keystoneauth-3.14.0[${PYTHON_USEDEP}] |
304 |
+ >=dev-python/alembic-1.6.5[${PYTHON_USEDEP}] |
305 |
+ >=dev-python/stevedore-2.0.1[${PYTHON_USEDEP}] |
306 |
+ >=dev-python/oslo-cache-1.26.0[${PYTHON_USEDEP}] |
307 |
+ >=dev-python/oslo-concurrency-3.26.0[${PYTHON_USEDEP}] |
308 |
+ >=dev-python/oslo-config-8.0.0[${PYTHON_USEDEP}] |
309 |
+ >=dev-python/oslo-context-2.22.0[${PYTHON_USEDEP}] |
310 |
+ >=dev-python/oslo-db-4.44.0[${PYTHON_USEDEP}] |
311 |
+ >=dev-python/oslo-i18n-3.20.0[${PYTHON_USEDEP}] |
312 |
+ >=dev-python/oslo-log-4.5.0[${PYTHON_USEDEP}] |
313 |
+ >=dev-python/oslo-messaging-7.0.0[${PYTHON_USEDEP}] |
314 |
+ >=dev-python/oslo-middleware-3.31.0[${PYTHON_USEDEP}] |
315 |
+ >=dev-python/oslo-policy-3.10.1[${PYTHON_USEDEP}] |
316 |
+ >=dev-python/oslo-privsep-2.3.0[${PYTHON_USEDEP}] |
317 |
+ >=dev-python/oslo-reports-1.18.0[${PYTHON_USEDEP}] |
318 |
+ >=dev-python/oslo-rootwrap-5.15.0[${PYTHON_USEDEP}] |
319 |
+ >=dev-python/oslo-serialization-2.25.0[${PYTHON_USEDEP}] |
320 |
+ >=dev-python/oslo-service-2.8.0[${PYTHON_USEDEP}] |
321 |
+ >=dev-python/oslo-upgradecheck-1.3.0[${PYTHON_USEDEP}] |
322 |
+ >=dev-python/oslo-utils-4.8.0[${PYTHON_USEDEP}] |
323 |
+ >=dev-python/oslo-versionedobjects-1.35.1[${PYTHON_USEDEP}] |
324 |
+ >=dev-python/osprofiler-2.3.0[${PYTHON_USEDEP}] |
325 |
+ >=dev-python/os-ken-2.0.0[${PYTHON_USEDEP}] |
326 |
+ >=dev-python/os-resource-classes-1.1.0[${PYTHON_USEDEP}] |
327 |
+ >=dev-python/ovs-2.10.0[${PYTHON_USEDEP}] |
328 |
+ >=dev-python/ovsdbapp-1.15.0[${PYTHON_USEDEP}] |
329 |
+ >=dev-python/packaging-20.4[${PYTHON_USEDEP}] |
330 |
+ >=dev-python/psutil-5.3.0[${PYTHON_USEDEP}] |
331 |
+ >=dev-python/pyroute2-0.6.4[${PYTHON_USEDEP}] |
332 |
+ >=dev-python/pyopenssl-17.1.0[${PYTHON_USEDEP}] |
333 |
+ >=dev-python/python-novaclient-9.1.0[${PYTHON_USEDEP}] |
334 |
+ >=dev-python/openstacksdk-0.31.2[${PYTHON_USEDEP}] |
335 |
+ >=dev-python/python-designateclient-2.7.0[${PYTHON_USEDEP}] |
336 |
+ >=dev-python/os-vif-1.15.1[${PYTHON_USEDEP}] |
337 |
+ >=dev-python/futurist-1.2.0[${PYTHON_USEDEP}] |
338 |
+ >=dev-python/tooz-1.58.0[${PYTHON_USEDEP}] |
339 |
+ |
340 |
+ compute-only? ( |
341 |
+ >=dev-python/sqlalchemy-1.3.23[${PYTHON_USEDEP}] |
342 |
+ ) |
343 |
+ dhcp? ( net-dns/dnsmasq[dhcp-tools] ) |
344 |
+ haproxy? ( net-proxy/haproxy ) |
345 |
+ ipv6? ( |
346 |
+ net-misc/radvd |
347 |
+ >=net-misc/dibbler-1.0.1 |
348 |
+ ) |
349 |
+ mysql? ( |
350 |
+ >=dev-python/pymysql-0.7.6[${PYTHON_USEDEP}] |
351 |
+ >=dev-python/sqlalchemy-1.3.23[${PYTHON_USEDEP}] |
352 |
+ ) |
353 |
+ openvswitch? ( net-misc/openvswitch ) |
354 |
+ postgres? ( |
355 |
+ >=dev-python/psycopg-2.5.0[${PYTHON_USEDEP}] |
356 |
+ >=dev-python/sqlalchemy-1.3.23[${PYTHON_USEDEP}] |
357 |
+ ) |
358 |
+ sqlite? ( |
359 |
+ >=dev-python/sqlalchemy-1.3.23[sqlite,${PYTHON_USEDEP}] |
360 |
+ ) |
361 |
+ |
362 |
+ acct-group/neutron |
363 |
+ acct-user/neutron |
364 |
+ dev-python/pyudev[${PYTHON_USEDEP}] |
365 |
+ net-misc/bridge-utils |
366 |
+ net-misc/iputils[arping] |
367 |
+ net-firewall/conntrack-tools |
368 |
+ net-firewall/ebtables |
369 |
+ net-firewall/ipset |
370 |
+ net-firewall/iptables |
371 |
+ sys-apps/iproute2 |
372 |
+" |
373 |
+DEPEND=" |
374 |
+ ${RDEPEND} |
375 |
+ app-admin/sudo |
376 |
+" |
377 |
+BDEPEND=" |
378 |
+ test? ( |
379 |
+ >=dev-python/fixtures-3.0.0[${PYTHON_USEDEP}] |
380 |
+ >=dev-python/subunit-1.0.0[${PYTHON_USEDEP}] |
381 |
+ >=dev-python/testtools-2.2.0[${PYTHON_USEDEP}] |
382 |
+ >=dev-python/testresources-2.0.0[${PYTHON_USEDEP}] |
383 |
+ >=dev-python/testscenarios-0.4[${PYTHON_USEDEP}] |
384 |
+ >=dev-python/webtest-2.0.27[${PYTHON_USEDEP}] |
385 |
+ >=dev-python/oslotest-3.2.0[${PYTHON_USEDEP}] |
386 |
+ >=dev-python/stestr-1.0.0[${PYTHON_USEDEP}] |
387 |
+ >=dev-python/ddt-1.0.1[${PYTHON_USEDEP}] |
388 |
+ ) |
389 |
+" |
390 |
+ |
391 |
+distutils_enable_tests pytest |
392 |
+ |
393 |
+REQUIRED_USE=" |
394 |
+ !compute-only? ( |
395 |
+ || ( mysql postgres sqlite ) |
396 |
+ ) |
397 |
+ compute-only? ( |
398 |
+ !mysql !postgres !sqlite !dhcp !l3 !metadata !server |
399 |
+ || ( openvswitch linuxbridge ) |
400 |
+ ) |
401 |
+ test? ( mysql ) |
402 |
+" |
403 |
+ |
404 |
+pkg_pretend() { |
405 |
+ linux-info_pkg_setup |
406 |
+ CONFIG_CHECK_MODULES="VLAN_8021Q IP6_NF_FILTER IP6_NF_IPTABLES IP_NF_TARGET_REJECT \ |
407 |
+ IP_NF_MANGLE IP_NF_TARGET_MASQUERADE NF_NAT_IPV4 NF_DEFRAG_IPV4 NF_NAT NF_CONNTRACK \ |
408 |
+ IP_NF_FILTER IP_NF_IPTABLES NETFILTER_XTABLES" |
409 |
+ if linux_config_exists; then |
410 |
+ for module in ${CONFIG_CHECK_MODULES}; do |
411 |
+ linux_chkconfig_present ${module} || ewarn "${module} needs to be enabled in kernel" |
412 |
+ done |
413 |
+ fi |
414 |
+} |
415 |
+ |
416 |
+pkg_config() { |
417 |
+ fperms 0700 /var/log/neutron |
418 |
+ fowners neutron:neutron /var/log neutron |
419 |
+} |
420 |
+ |
421 |
+src_prepare() { |
422 |
+ sed -i '/^hacking/d' test-requirements.txt || die |
423 |
+ # it's /bin/ip not /sbin/ip |
424 |
+ sed -i 's/sbin\/ip\,/bin\/ip\,/g' etc/neutron/rootwrap.d/* || die |
425 |
+ distutils-r1_python_prepare_all |
426 |
+} |
427 |
+ |
428 |
+python_compile_all() { |
429 |
+ ./tools/generate_config_file_samples.sh || die |
430 |
+ oslopolicy-sample-generator --config-file=etc/oslo-policy-generator/policy.conf || die |
431 |
+} |
432 |
+ |
433 |
+python_install_all() { |
434 |
+ distutils-r1_python_install_all |
435 |
+ |
436 |
+ newinitd "${FILESDIR}/neutron.initd" "neutron-server" |
437 |
+ newconfd "${FILESDIR}/neutron-server.confd" "neutron-server" |
438 |
+ dosym ../../plugin.ini /etc/neutron/plugins/ml2/ml2_conf.ini |
439 |
+ newinitd "${FILESDIR}/neutron.initd" "neutron-dhcp-agent" |
440 |
+ newconfd "${FILESDIR}/neutron-dhcp-agent.confd" "neutron-dhcp-agent" |
441 |
+ newinitd "${FILESDIR}/neutron.initd" "neutron-l3-agent" |
442 |
+ newconfd "${FILESDIR}/neutron-l3-agent.confd" "neutron-l3-agent" |
443 |
+ newinitd "${FILESDIR}/neutron.initd" "neutron-metadata-agent" |
444 |
+ newconfd "${FILESDIR}/neutron-metadata-agent.confd" "neutron-metadata-agent" |
445 |
+ newinitd "${FILESDIR}/neutron.initd" "neutron-openvswitch-agent" |
446 |
+ newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-openvswitch-agent" |
447 |
+ newinitd "${FILESDIR}/neutron.initd" "neutron-ovs-cleanup" |
448 |
+ newconfd "${FILESDIR}/neutron-openvswitch-agent.confd" "neutron-ovs-cleanup" |
449 |
+ newinitd "${FILESDIR}/neutron.initd" "neutron-linuxbridge-agent" |
450 |
+ newconfd "${FILESDIR}/neutron-linuxbridge-agent.confd" "neutron-linuxbridge-agent" |
451 |
+ |
452 |
+ for svc in {dhcp,l3,linuxbridge,metadata,metering}_agent {linuxbridge,netns,ovs}_cleanup server ; do |
453 |
+ systemd_dounit "${FILESDIR}/openstack-neutron-${svc}.service" |
454 |
+ done |
455 |
+ |
456 |
+ diropts -m 755 -o neutron -g neutron |
457 |
+ dodir /var/log/neutron /var/lib/neutron |
458 |
+ keepdir /etc/neutron |
459 |
+ insinto /etc/neutron |
460 |
+ insopts -m 0640 -o neutron -g neutron |
461 |
+ |
462 |
+ insinto /etc/neutron |
463 |
+ doins etc/api-paste.ini |
464 |
+ doins etc/policy.yaml.sample |
465 |
+ |
466 |
+ for i in l3 dhcp metadata metering neutron_ovn_metadata ; do |
467 |
+ doins "etc/${i}_agent.ini.sample" |
468 |
+ done |
469 |
+ |
470 |
+ doins "etc/neutron.conf.sample" |
471 |
+ doins "etc/neutron/ovn.ini.sample" |
472 |
+ |
473 |
+ doins -r "etc/neutron/plugins" |
474 |
+ insopts -m 0640 -o root -g root |
475 |
+ doins "etc/rootwrap.conf" |
476 |
+ doins -r "etc/neutron/rootwrap.d" |
477 |
+ |
478 |
+ newtmpfiles "${FILESDIR}/neutron.tmpfile" neutron.conf |
479 |
+ |
480 |
+ insinto /etc/logrotate.d |
481 |
+ newins "${FILESDIR}/neutron.logrotate" neutron.conf |
482 |
+ |
483 |
+ #add sudoers definitions for user neutron |
484 |
+ insinto /etc/sudoers.d/ |
485 |
+ insopts -m 0440 -o root -g root |
486 |
+ newins "${FILESDIR}/neutron.sudoersd" neutron |
487 |
+ |
488 |
+ # correcting perms |
489 |
+ fowners neutron:neutron -R "/etc/neutron" |
490 |
+ fperms o-rwx -R "/etc/neutron/" |
491 |
+ |
492 |
+ #remove superfluous stuff |
493 |
+ rm -R "${D}/usr/etc/" |
494 |
+} |
495 |
+ |
496 |
+python_install() { |
497 |
+ distutils-r1_python_install |
498 |
+ # copy migration conf file (not coppied on install via setup.py script) |
499 |
+ python_moduleinto neutron/db/migration/alembic_migrations |
500 |
+ python_domodule "neutron/db/migration/alembic_migrations/versions" |
501 |
+} |
502 |
+ |
503 |
+pkg_postinst() { |
504 |
+ elog |
505 |
+ elog "neutron-server's conf.d file may need updating to include additional ini files" |
506 |
+ elog "We currently assume the ml2 plugin will be used but do not make assumptions" |
507 |
+ elog "on if you will use openvswitch or linuxbridge (or something else)" |
508 |
+ elog |
509 |
+ elog "Other conf.d files may need updating too, but should be good for the default use case" |
510 |
+ elog |
511 |
+} |