]> review.fuel-infra Code Review - openstack-build/neutron-build.git/blob - centos7/rpm/SPECS/openstack-neutron.spec
Update version to 8.1.1
[openstack-build/neutron-build.git] / centos7 / rpm / SPECS / openstack-neutron.spec
1 %global service neutron
2
3 Name:           openstack-%{service}
4 Version:        8.1.1
5 Release:        1%{?dist}
6 Epoch:          1
7 Summary:        OpenStack Networking Service
8
9 License:        ASL 2.0
10 URL:            http://launchpad.net/%{service}/
11
12 Source0:        %{service}-%{version}.tar.gz
13 Source1:        %{service}.logrotate
14 Source2:        %{service}-sudoers
15 Source10:       neutron-server.service
16 Source11:       neutron-linuxbridge-agent.service
17 Source12:       neutron-openvswitch-agent.service
18 Source13:       neutron-bgp-dragent.service
19 Source15:       neutron-dhcp-agent.service
20 Source16:       neutron-l3-agent.service
21 Source17:       neutron-metadata-agent.service
22 Source18:       neutron-ovs-cleanup.service
23 Source19:       neutron-macvtap-agent.service
24 Source20:       neutron-metering-agent.service
25 Source21:       neutron-sriov-nic-agent.service
26 Source22:       neutron-netns-cleanup.service
27 Source23:       neutron-netns-cleanup.init
28 Source24:       neutron-ovs-cleanup.init
29 Source29:       neutron-rpc-server.service
30
31 Source31:       conf.README
32 Source32:       neutron-linuxbridge-cleanup.service
33
34 BuildArch:      noarch
35
36 BuildRequires:  git
37 BuildRequires:  python-backports-ssl_match_hostname
38 BuildRequires:  python2-devel
39 BuildRequires:  python-d2to1
40 BuildRequires:  python-keystoneauth1 >= 2.1.0
41 BuildRequires:  python-keystonemiddleware
42 BuildRequires:  python-neutron-lib
43 BuildRequires:  python-novaclient
44 BuildRequires:  python-oslo-concurrency
45 BuildRequires:  python-oslo-config
46 BuildRequires:  python-oslo-db
47 BuildRequires:  python-oslo-log
48 BuildRequires:  python-oslo-messaging
49 BuildRequires:  python-oslo-policy
50 BuildRequires:  python-oslo-rootwrap
51 BuildRequires:  python-oslo-service
52 BuildRequires:  python-pbr
53 BuildRequires:  python-pecan
54 BuildRequires:  python-setuptools
55 BuildRequires:  systemd-units
56
57 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
58
59 # dnsmasq is not a hard requirement, but is currently the only option
60 # when neutron-dhcp-agent is deployed.
61 Requires:       dnsmasq
62 Requires:       dnsmasq-utils
63
64 # radvd is not a hard requirement, but is currently the only option
65 # for IPv6 deployments.
66 Requires:       radvd
67
68 # dibbler is not a hard requirement, but is currently the default option
69 # for IPv6 prefix delegation.
70 #Requires:       dibbler-client
71
72 # conntrack is not a hard requirement, but is currently used by L3 agent
73 # to immediately drop connections after a floating IP is disassociated
74 Requires:       conntrack-tools
75
76 # keepalived is not a hard requirement, but is currently used by DVR L3
77 # agent
78 Requires:       keepalived
79
80 # those are not hard requirements, but are used to implement firewall
81 # drivers.
82 Requires:       ipset
83 Requires:       iptables
84
85 Requires(pre): shadow-utils
86 Requires(post): systemd
87 Requires(preun): systemd
88 Requires(postun): systemd
89
90 Obsoletes:      openstack-%{service}-dev-server
91
92 %description
93 Neutron is a virtual network service for Openstack. Just like
94 OpenStack Nova provides an API to dynamically request and configure
95 virtual servers, Neutron provides an API to dynamically request and
96 configure virtual networks. These networks connect "interfaces" from
97 other OpenStack services (e.g., virtual NICs from Nova VMs). The
98 Neutron API supports extensions to provide advanced network
99 capabilities (e.g., QoS, ACLs, network monitoring, etc.)
100
101
102 %package -n python-%{service}
103 Summary:        Neutron Python libraries
104 Requires:       python-alembic >= 0.8.0
105 Requires:       python-debtcollector >= 1.2.0
106 Requires:       python-eventlet >= 0.18.2
107 Requires:       python-greenlet >= 0.3.2
108 Requires:       python-httplib2 >= 0.7.5
109 Requires:       python-jinja2 >= 2.8
110 Requires:       python-keystoneauth1 >= 2.1.0
111 Requires:       python-keystoneclient >= 1.6.0
112 Requires:       python-keystonemiddleware >= 4.0.0
113 Requires:       python-netaddr >= 0.7.12
114 Requires:       python-neutronclient >= 2.6.0
115 Requires:       python-neutron-lib
116 Requires:       python-novaclient >= 2.29.0
117 Requires:       python-openvswitch
118 Requires:       python-oslo-concurrency >= 3.5.0
119 Requires:       python-oslo-config >= 2:3.7.0
120 Requires:       python-oslo-context >= 0.2.0
121 Requires:       python-oslo-db >= 4.1.0
122 Requires:       python-oslo-i18n >= 2.1.0
123 Requires:       python-oslo-log >= 1.14.0
124 Requires:       python-oslo-messaging >= 4.0.0
125 Requires:       python-oslo-middleware >= 3.0.0
126 Requires:       python-oslo-policy >= 0.5.0
127 Requires:       python-oslo-reports >= 0.6.0
128 Requires:       python-oslo-rootwrap >= 2.0.0
129 Requires:       python-oslo-serialization >= 1.10.0
130 Requires:       python-oslo-service >= 1.0.0
131 Requires:       python-oslo-utils >= 3.5.0
132 Requires:       python-oslo-versionedobjects >= 1.5.0
133 Requires:       python-oslo-context >= 0.2.0
134 Requires:       python-paste
135 Requires:       python-paste-deploy >= 1.5.0
136 Requires:       python-pecan >= 1.0.0
137 Requires:       python-pbr
138 Requires:       python-pyroute2
139 Requires:       python-requests >= 2.8.1
140 Requires:       python-retrying >= 1.2.3
141 Requires:       python-routes >= 1.12.3
142 Requires:       python-ryu >= 3.30
143 Requires:       python-six >= 1.9.0
144 Requires:       python-sqlalchemy >= 1.0.10
145 Requires:       python-stevedore >= 1.5.0
146 Requires:       python-unicodecsv
147 Requires:       python-webob >= 1.2.3
148
149
150
151 %description -n python-%{service}
152 Neutron provides an API to dynamically request and configure virtual
153 networks.
154
155 This package contains the Neutron Python library.
156
157
158 %package -n python-%{service}-tests
159 Summary:        Neutron tests
160 Requires:       python-%{service} = %{epoch}:%{version}-%{release}
161
162
163 %description -n python-%{service}-tests
164 Neutron provides an API to dynamically request and configure virtual
165 networks.
166
167 This package contains Neutron test files.
168
169
170 %package common
171 Summary:        Neutron common files
172 Requires:       python-%{service} = %{epoch}:%{version}-%{release}
173 Requires:       sudo
174
175
176 %description common
177 Neutron provides an API to dynamically request and configure virtual
178 networks.
179
180 This package contains Neutron common files.
181
182
183 %package bgp-dragent
184 Summary:        Neutron BGP Dynamic Routing agent
185 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
186
187
188 %description bgp-dragent
189 Neutron provides an API to dynamically request and configure virtual
190 networks.
191
192 This package contains the Neutron BGP Dynamic Routing agent that will host
193 different BGP speaking drivers and makes the required BGP peering session/s for
194 Neutron.
195
196
197 %package linuxbridge
198 Summary:        Neutron Linuxbridge agent
199 Requires:       bridge-utils
200 Requires:       ebtables
201 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
202
203
204 %description linuxbridge
205 Neutron provides an API to dynamically request and configure virtual
206 networks.
207
208 This package contains the Neutron agent that implements virtual
209 networks using VLAN or VXLAN using Linuxbridge technology.
210
211
212 %package macvtap-agent
213 Summary:        Neutron macvtap agent
214 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
215
216
217 %description macvtap-agent
218 Neutron provides an API to dynamically request and configure virtual
219 networks.
220
221 This package contains the Neutron agent that implements
222 macvtap attachments for libvirt qemu/kvm instances.
223
224
225 %package ml2
226 Summary:        Neutron ML2 plugin
227 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
228 # needed for brocade and cisco drivers
229 Requires:       python-ncclient
230
231
232 %description ml2
233 Neutron provides an API to dynamically request and configure virtual
234 networks.
235
236 This package contains a Neutron plugin that allows the use of drivers
237 to support separately extensible sets of network types and the mechanisms
238 for accessing those types.
239
240
241 %package openvswitch
242 Summary:        Neutron openvswitch plugin
243 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
244 # We require openvswitch when using vsctl to access ovsdb;
245 # but if we use native access, then we just need python bindings.
246 # since we don't know what users actually use, we depend on both.
247 Requires:       openvswitch
248 Requires:       python-openvswitch
249
250
251 %description openvswitch
252 Neutron provides an API to dynamically request and configure virtual
253 networks.
254
255 This package contains the Neutron plugin that implements virtual
256 networks using Open vSwitch.
257
258
259 %package metering-agent
260 Summary:        Neutron bandwidth metering agent
261 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
262
263
264 %description metering-agent
265 Neutron provides an API to measure bandwidth utilization
266
267 This package contains the Neutron agent responsible for generating bandwidth
268 utilization notifications.
269
270
271 %package rpc-server
272 Summary:        Neutron (RPC only) Server
273 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
274
275
276 %description rpc-server
277 Neutron provides an API to dynamically request and configure virtual
278 networks.
279
280 This package contains an alternative Neutron server that handles AMQP RPC
281 workload only.
282
283
284 %package sriov-nic-agent
285 Summary:        Neutron SR-IOV NIC agent
286 Requires:       openstack-%{service}-common = %{epoch}:%{version}-%{release}
287
288
289 %description sriov-nic-agent
290 Neutron allows to run virtual instances using SR-IOV NIC hardware
291
292 This package contains the Neutron agent to support advanced features of
293 SR-IOV network cards.
294
295
296 %package doc
297 Summary:    Documentation for OpenStack Neutron
298 Group:      Documentation
299
300 BuildRequires:  python-sphinx
301 BuildRequires:  python-oslo-sphinx
302 BuildRequires:  python-alembic
303 BuildRequires:  python-debtcollector
304 BuildRequires:  python-eventlet
305 BuildRequires:  python-greenlet
306 BuildRequires:  python-httplib2
307 BuildRequires:  python-jinja2
308 BuildRequires:  python-keystoneclient
309 BuildRequires:  python-keystonemiddleware
310 BuildRequires:  python-netaddr
311 BuildRequires:  python-neutronclient
312 BuildRequires:  python-novaclient
313 BuildRequires:  python-oslo-concurrency
314 BuildRequires:  python-oslo-config
315 BuildRequires:  python-oslo-context
316 BuildRequires:  python-oslo-db
317 BuildRequires:  python-oslo-i18n
318 BuildRequires:  python-oslo-log
319 BuildRequires:  python-oslo-messaging
320 BuildRequires:  python-oslo-middleware
321 BuildRequires:  python-oslo-policy
322 BuildRequires:  python-oslo-rootwrap
323 BuildRequires:  python-oslo-serialization
324 BuildRequires:  python-oslo-service
325 BuildRequires:  python-oslo-utils
326 BuildRequires:  python-oslo-versionedobjects
327 BuildRequires:  python-oslo-context
328 BuildRequires:  python-paste
329 BuildRequires:  python-paste-deploy
330 BuildRequires:  python-pecan
331 BuildRequires:  python-pbr
332 BuildRequires:  python-requests
333 BuildRequires:  python-retrying
334 BuildRequires:  python-routes
335 BuildRequires:  python-six
336 BuildRequires:  python-sqlalchemy
337 BuildRequires:  python-stevedore
338 BuildRequires:  python-webob
339 BuildRequires:  python-testresources
340 BuildRequires:  python-testscenarios
341 BuildRequires:  python-oslotest
342
343 %description doc
344 Documentation for Openstack Neutron.
345
346
347 %prep
348 %autosetup -n %{service}-%{version} -S git
349
350 find %{service} -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +
351
352 # Let's handle dependencies ourseleves
353 rm -f requirements.txt
354
355 # Kill egg-info in order to generate new SOURCES.txt
356 rm -rf neutron.egg-info
357
358
359 %build
360 export SKIP_PIP_INSTALL=1
361 %{__python2} setup.py build
362
363 # Generate configuration files
364 PYTHONPATH=. tools/generate_config_file_samples.sh
365 find etc -name *.sample | while read filename
366 do
367     filedir=$(dirname $filename)
368     file=$(basename $filename .sample)
369     mv ${filename} ${filedir}/${file}
370 done
371
372 %install
373 %{__python2} setup.py install -O1 --skip-build --root %{buildroot}
374
375 # Remove unused files
376 rm -rf %{buildroot}%{python2_sitelib}/bin
377 rm -rf %{buildroot}%{python2_sitelib}/doc
378 rm -rf %{buildroot}%{python2_sitelib}/tools
379
380 # Build HTML docs
381 export PYTHONPATH="$( pwd ):$PYTHONPATH"
382 sphinx-build -b html doc/source html
383
384 # Fix hidden-file-or-dir warnings
385 rm -fr html/.doctrees html/.buildinfo
386
387 # Move rootwrap files to proper location
388 install -d -m 755 %{buildroot}%{_datarootdir}/%{service}/rootwrap
389 mv %{buildroot}/usr/etc/%{service}/rootwrap.d/*.filters %{buildroot}%{_datarootdir}/%{service}/rootwrap
390
391 # Move config files to proper location
392 install -d -m 755 %{buildroot}%{_sysconfdir}/%{service}
393 mv %{buildroot}/usr/etc/%{service}/* %{buildroot}%{_sysconfdir}/%{service}
394 mv %{buildroot}%{_sysconfdir}/%{service}/api-paste.ini %{buildroot}%{_datadir}/%{service}/api-paste.ini
395
396 # The generated config files are not moved automatically by setup.py
397 install -d -m 755 %{buildroot}%{_sysconfdir}/%{service}/plugins/ml2
398
399 mv etc/%{service}.conf %{buildroot}%{_sysconfdir}/%{service}/%{service}.conf
400 for agent in dhcp l3 metadata metering
401 do
402   mv etc/${agent}_agent.ini %{buildroot}%{_sysconfdir}/%{service}/${agent}_agent.ini
403 done
404 for file in linuxbridge_agent ml2_conf ml2_conf_sriov openvswitch_agent sriov_agent
405 do
406   mv etc/%{service}/plugins/ml2/${file}.ini %{buildroot}%{_sysconfdir}/%{service}/plugins/ml2/${file}.ini
407 done
408
409 # Install logrotate
410 install -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/openstack-%{service}
411
412 # Install sudoers
413 install -p -D -m 440 %{SOURCE2} %{buildroot}%{_sysconfdir}/sudoers.d/%{service}
414
415 # Install systemd units
416 install -p -D -m 644 %{SOURCE10} %{buildroot}%{_unitdir}/neutron-server.service
417 install -p -D -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/neutron-linuxbridge-agent.service
418 install -p -D -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/neutron-openvswitch-agent.service
419 install -p -D -m 644 %{SOURCE13} %{buildroot}%{_unitdir}/neutron-bgp-dragent.service
420 install -p -D -m 644 %{SOURCE15} %{buildroot}%{_unitdir}/neutron-dhcp-agent.service
421 install -p -D -m 644 %{SOURCE16} %{buildroot}%{_unitdir}/neutron-l3-agent.service
422 install -p -D -m 644 %{SOURCE17} %{buildroot}%{_unitdir}/neutron-metadata-agent.service
423 install -p -D -m 644 %{SOURCE18} %{buildroot}%{_unitdir}/neutron-ovs-cleanup.service
424 install -p -D -m 644 %{SOURCE19} %{buildroot}%{_unitdir}/neutron-macvtap-agent.service
425 install -p -D -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/neutron-metering-agent.service
426 install -p -D -m 644 %{SOURCE21} %{buildroot}%{_unitdir}/neutron-sriov-nic-agent.service
427 install -p -D -m 644 %{SOURCE22} %{buildroot}%{_unitdir}/neutron-netns-cleanup.service
428 install -p -D -m 644 %{SOURCE29} %{buildroot}%{_unitdir}/neutron-rpc-server.service
429 install -p -D -m 644 %{SOURCE32} %{buildroot}%{_unitdir}/neutron-linuxbridge-cleanup.service
430
431
432 # Install scripts for pacemaker support
433 install -p -D -m 755 %{SOURCE23} %{buildroot}%{_prefix}/lib/ocf/lib/neutron/neutron-netns-cleanup
434 install -p -D -m 755 %{SOURCE24} %{buildroot}%{_prefix}/lib/ocf/lib/neutron/neutron-ovs-cleanup
435
436 # Install README file that describes how to configure services with custom configuration files
437 install -p -D -m 755 %{SOURCE31} %{buildroot}%{_sysconfdir}/%{service}/conf.d/README
438
439 # Setup directories
440 install -d -m 755 %{buildroot}%{_datadir}/%{service}
441 install -d -m 755 %{buildroot}%{_sharedstatedir}/%{service}
442 install -d -m 755 %{buildroot}%{_localstatedir}/log/%{service}
443 install -d -m 755 %{buildroot}%{_localstatedir}/run/%{service}
444
445 # Create and populate configuration directory for L3 agent that is not accessible for user modification
446 mkdir -p %{buildroot}%{_datadir}/%{service}/l3_agent
447 ln -s %{_sysconfdir}/%{service}/l3_agent.ini %{buildroot}%{_datadir}/%{service}/l3_agent/l3_agent.conf
448
449 # Create dist configuration directory for neutron-server (may be filled by advanced services)
450 mkdir -p %{buildroot}%{_datadir}/%{service}/server
451
452 # Create configuration directories for all services that can be populated by users with custom *.conf files
453 mkdir -p %{buildroot}/%{_sysconfdir}/%{service}/conf.d/common
454 for service in server rpc-server ovs-cleanup netns-cleanup linuxbridge-cleanup bgp-dragent macvtap-agent; do
455     mkdir -p %{buildroot}/%{_sysconfdir}/%{service}/conf.d/%{service}-$service
456 done
457 for service in linuxbridge openvswitch dhcp l3 metadata metering sriov-nic; do
458     mkdir -p %{buildroot}/%{_sysconfdir}/%{service}/conf.d/%{service}-$service-agent
459 done
460
461
462 %pre common
463 getent group %{service} >/dev/null || groupadd -r %{service}
464 getent passwd %{service} >/dev/null || \
465     useradd -r -g %{service} -d %{_sharedstatedir}/%{service} -s /sbin/nologin \
466     -c "OpenStack Neutron Daemons" %{service}
467 exit 0
468
469
470 %post
471 %systemd_post neutron-dhcp-agent.service
472 %systemd_post neutron-l3-agent.service
473 %systemd_post neutron-metadata-agent.service
474 %systemd_post neutron-server.service
475 %systemd_post neutron-netns-cleanup.service
476 %systemd_post neutron-ovs-cleanup.service
477 %systemd_post neutron-linuxbridge-cleanup.service
478
479
480 %preun
481 %systemd_preun neutron-dhcp-agent.service
482 %systemd_preun neutron-l3-agent.service
483 %systemd_preun neutron-metadata-agent.service
484 %systemd_preun neutron-server.service
485 %systemd_preun neutron-netns-cleanup.service
486 %systemd_preun neutron-ovs-cleanup.service
487 %systemd_preun neutron-linuxbridge-cleanup.service
488
489
490 %postun
491 %systemd_postun_with_restart neutron-dhcp-agent.service
492 %systemd_postun_with_restart neutron-l3-agent.service
493 %systemd_postun_with_restart neutron-metadata-agent.service
494 %systemd_postun_with_restart neutron-server.service
495
496
497 %post bgp-dragent
498 %systemd_post neutron-bgp-dragent.service
499
500
501 %preun bgp-dragent
502 %systemd_preun neutron-bgp-dragent.service
503
504
505 %postun bgp-dragent
506 %systemd_postun_with_restart neutron-bgp-dragent.service
507
508
509 %post macvtap-agent
510 %systemd_post neutron-macvtap-agent.service
511
512
513 %preun macvtap-agent
514 %systemd_preun neutron-macvtap-agent.service
515
516
517 %postun macvtap-agent
518 %systemd_postun_with_restart neutron-macvtap-agent.service
519
520
521 %post linuxbridge
522 %systemd_post neutron-linuxbridge-agent.service
523 oldconf=%{_sysconfdir}/%{service}/plugins/linuxbridge/linuxbridge_conf.ini
524 newconf=%{_sysconfdir}/%{service}/plugins/ml2/linuxbridge_agent.ini
525 if [ $1 -gt 1 ]; then
526     if [ -e $oldconf ]; then
527         # Imitate noreplace
528         cp $newconf ${newconf}.rpmnew
529         cp $oldconf $newconf
530     fi
531 fi
532
533
534 %preun linuxbridge
535 %systemd_preun neutron-linuxbridge-agent.service
536
537
538 %postun linuxbridge
539 %systemd_postun_with_restart neutron-linuxbridge-agent.service
540
541
542 %post openvswitch
543 %systemd_post neutron-openvswitch-agent.service
544 oldconf=%{_sysconfdir}/%{service}/plugins/openvswitch/ovs_neutron_plugin.ini
545 newconf=%{_sysconfdir}/%{service}/plugins/ml2/openvswitch_agent.ini
546 if [ $1 -gt 1 ]; then
547     if [ -e $oldconf ]; then
548         # Imitate noreplace
549         cp $newconf ${newconf}.rpmnew
550         cp $oldconf $newconf
551     fi
552 fi
553
554
555 %preun openvswitch
556 %systemd_preun neutron-openvswitch-agent.service
557
558
559 %postun openvswitch
560 %systemd_postun_with_restart neutron-openvswitch-agent.service
561
562
563 %post metering-agent
564 %systemd_post neutron-metering-agent.service
565
566
567 %preun metering-agent
568 %systemd_preun neutron-metering-agent.service
569
570
571 %postun metering-agent
572 %systemd_postun_with_restart neutron-metering-agent.service
573
574
575 %post sriov-nic-agent
576 %systemd_post neutron-sriov-nic-agent.service
577
578
579 %preun sriov-nic-agent
580 %systemd_preun neutron-sriov-nic-agent.service
581
582
583 %postun sriov-nic-agent
584 %systemd_postun_with_restart neutron-sriov-nic-agent.service
585
586
587 %files
588 %license LICENSE
589 %{_bindir}/neutron-db-manage
590 %{_bindir}/neutron-debug
591 %{_bindir}/neutron-dhcp-agent
592 %{_bindir}/neutron-ipset-cleanup
593 %{_bindir}/neutron-keepalived-state-change
594 %{_bindir}/neutron-l3-agent
595 %{_bindir}/neutron-linuxbridge-cleanup
596 %{_bindir}/neutron-metadata-agent
597 %{_bindir}/neutron-netns-cleanup
598 %{_bindir}/neutron-ns-metadata-proxy
599 %{_bindir}/neutron-ovs-cleanup
600 %{_bindir}/neutron-pd-notify
601 %{_bindir}/neutron-sanity-check
602 %{_bindir}/neutron-server
603 %{_bindir}/neutron-usage-audit
604 %{_prefix}/lib/ocf/lib/neutron/neutron-netns-cleanup
605 %{_prefix}/lib/ocf/lib/neutron/neutron-ovs-cleanup
606 %{_unitdir}/neutron-dhcp-agent.service
607 %{_unitdir}/neutron-l3-agent.service
608 %{_unitdir}/neutron-metadata-agent.service
609 %{_unitdir}/neutron-server.service
610 %{_unitdir}/neutron-netns-cleanup.service
611 %{_unitdir}/neutron-ovs-cleanup.service
612 %{_unitdir}/neutron-linuxbridge-cleanup.service
613 %attr(-, root, %{service}) %{_datadir}/%{service}/api-paste.ini
614 %dir %{_datadir}/%{service}/l3_agent
615 %dir %{_datadir}/%{service}/server
616 %{_datadir}/%{service}/l3_agent/*.conf
617 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/dhcp_agent.ini
618 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/l3_agent.ini
619 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/metadata_agent.ini
620 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/policy.json
621 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-dhcp-agent
622 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-l3-agent
623 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-metadata-agent
624 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-server
625 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-netns-cleanup
626 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-ovs-cleanup
627 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-linuxbridge-cleanup
628
629
630 %files -n python-%{service}-tests
631 %license LICENSE
632 %{python2_sitelib}/%{service}/tests
633
634
635 %files -n python-%{service}
636 %license LICENSE
637 %{python2_sitelib}/%{service}
638 %{python2_sitelib}/%{service}-*.egg-info
639 %exclude %{python2_sitelib}/%{service}/tests
640
641
642 %files common
643 %license LICENSE
644 %doc README.rst
645 %{_bindir}/neutron-rootwrap
646 %{_bindir}/neutron-rootwrap-daemon
647 %{_bindir}/neutron-rootwrap-xen-dom0
648 %dir %{_sysconfdir}/%{service}
649 %{_sysconfdir}/%{service}/conf.d/README
650 %dir %{_sysconfdir}/%{service}/conf.d
651 %dir %{_sysconfdir}/%{service}/conf.d/common
652 %dir %{_sysconfdir}/%{service}/plugins
653 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/%{service}.conf
654 %config(noreplace) %{_sysconfdir}/%{service}/rootwrap.conf
655 %config(noreplace) %{_sysconfdir}/logrotate.d/*
656 %{_sysconfdir}/sudoers.d/%{service}
657 %dir %attr(0755, %{service}, %{service}) %{_sharedstatedir}/%{service}
658 %dir %attr(0750, %{service}, %{service}) %{_localstatedir}/log/%{service}
659 %dir %{_datarootdir}/%{service}
660 %dir %{_datarootdir}/%{service}/rootwrap
661 %{_datarootdir}/%{service}/rootwrap/debug.filters
662 %{_datarootdir}/%{service}/rootwrap/dhcp.filters
663 %{_datarootdir}/%{service}/rootwrap/ebtables.filters
664 %{_datarootdir}/%{service}/rootwrap/ipset-firewall.filters
665 %{_datarootdir}/%{service}/rootwrap/iptables-firewall.filters
666 %{_datarootdir}/%{service}/rootwrap/l3.filters
667
668
669 %files bgp-dragent
670 %license LICENSE
671 %{_bindir}/neutron-bgp-dragent
672 %{_unitdir}/neutron-bgp-dragent.service
673 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-bgp-dragent
674
675
676 %files linuxbridge
677 %license LICENSE
678 %{_bindir}/neutron-linuxbridge-agent
679 %{_unitdir}/neutron-linuxbridge-agent.service
680 %{_datarootdir}/%{service}/rootwrap/linuxbridge-plugin.filters
681 %dir %{_sysconfdir}/%{service}/plugins/ml2
682 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/plugins/ml2/linuxbridge_agent.ini
683 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-linuxbridge-agent
684
685
686 %files macvtap-agent
687 %license LICENSE
688 %{_bindir}/neutron-macvtap-agent
689 %{_unitdir}/neutron-macvtap-agent.service
690 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-macvtap-agent
691
692
693 %files ml2
694 %license LICENSE
695 %doc %{service}/plugins/ml2/README
696 %dir %{_sysconfdir}/%{service}/plugins/ml2
697 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/plugins/ml2/*.ini
698 %exclude %{_sysconfdir}/%{service}/plugins/ml2/linuxbridge_agent.ini
699 %exclude %{_sysconfdir}/%{service}/plugins/ml2/openvswitch_agent.ini
700
701
702 %files openvswitch
703 %license LICENSE
704 %{_bindir}/neutron-openvswitch-agent
705 %{_unitdir}/neutron-openvswitch-agent.service
706 %{_datarootdir}/%{service}/rootwrap/openvswitch-plugin.filters
707 %dir %{_sysconfdir}/%{service}/plugins/ml2
708 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/plugins/ml2/openvswitch_agent.ini
709 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-openvswitch-agent
710
711
712 %files metering-agent
713 %license LICENSE
714 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/metering_agent.ini
715 %{_unitdir}/neutron-metering-agent.service
716 %{_bindir}/neutron-metering-agent
717 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-metering-agent
718
719
720 %files rpc-server
721 %license LICENSE
722 %{_bindir}/neutron-rpc-server
723 %{_unitdir}/neutron-rpc-server.service
724 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-rpc-server
725
726
727 %files sriov-nic-agent
728 %license LICENSE
729 %{_unitdir}/neutron-sriov-nic-agent.service
730 %{_bindir}/neutron-sriov-nic-agent
731 %config(noreplace) %attr(0640, root, %{service}) %{_sysconfdir}/%{service}/plugins/ml2/sriov_agent.ini
732 %dir %{_sysconfdir}/%{service}/conf.d/%{service}-sriov-nic-agent
733
734
735 %files doc
736 %license LICENSE
737 %doc html
738
739
740 %changelog
741 * Thu Jun 2 2016 Jerzy Mikolajczak <jmikolajczak@mirantis.com> 1:8.1.1-1.el7
742 - Bump version to 8.1.1
743 * Wed May 18 2016 Jerzy Mikolajczak <jmikolajczak@mirantis.com> 1:8.1.0-1.el7
744 - Bump version to 8.1.0
745 * Fri Apr 8 2016 Jerzy Mikolajczak <jmikolajczak@mirantis.com> 1:8.0.0-2.el7
746 - Update specs for Mitaka Final release
747 * Sun Mar 6 2016 Sergey Kolekonov <skolekonov@mirantis.com> 1:8.0.0.0b3-1.el7
748 - Rebuild for Mitaka-b3
749 * Thu Feb 25 2016 Jerzy Mikolajczak <jmikolajczak@mirantis.com> 1:8.0.0.0b2-1%{?dist}~mos2
750 - Update specs for Mitaka release
751 - Remove vendor specific subpackages (mellanox, bigswitch, cisco, etc)
752 - Add neutron-linuxbridge-cleanup service
753 - Add neutron-bgp-dragent service
754 - Add sample config file generation
755 - Add macvtap agent
756 - Add new build/run requirement: python-neutron-lib
757 - Remove neutron-mlnx-agent service
758 - Remove neutron-dev-server service
759 * Fri Dec 18 2015 Sergey Kolekonov <skolekonov@mirantis.com> 1:7.0.1-1%{?dist}~mos8.0.1
760 - Bump version according to the latest tag
761 * Tue Dec 15 2015 Jerzy Mikolajczak <jmikolajczak@mirantis.com> 1:7.0.0-1%{?dist}~mos8.0.1
762 - Add python-openvswitch package dependency
763 * Fri Nov 20 2015 Sergey Kolekonov <skolekonov@mirantis.com> 7.0.0
764 - Remove neutron-dist.conf from packages
765 * Fri Nov 6 2015 Sergey Kolekonov <skolekonov@mirantis.com> 7.0.0
766 - Update specs for 7.0.0 release
767 * Thu Sep 3 2015 Sergey Kolekonov <skolekonov@mirantis.com> 7.0.0.0b3
768 - Update specs for Liberty release