nova: Cleanup specfile

This is a basic cleanup and also a sync with the approach we are using
for other spec templates (eg the defaultconf). Also some of the SUSE
stuff we currently have downstream was added.

Change-Id: I88dbdd9981b05f65b1d6f3b0f0cb0a7fb29b296b
This commit is contained in:
Thomas Bechtold 2019-04-12 12:18:37 +02:00
parent b7ab7abe98
commit 2dc1598191
8 changed files with 209 additions and 82 deletions

View File

@ -1,25 +0,0 @@
[DEFAULT]
log_dir = /var/log/nova
state_path = /var/lib/nova
lock_path = /var/lib/nova/tmp
dhcpbridge = /usr/bin/nova-dhcpbridge
dhcpbridge_flagfile = /usr/share/nova/nova-dist.conf
dhcpbridge_flagfile = /etc/nova/nova.conf
force_dhcp_release = True
injected_network_template = /usr/share/nova/interfaces.template
libvirt_nonblocking = True
libvirt_inject_partition = -1
network_manager = nova.network.manager.FlatDHCPManager
compute_driver = libvirt.LibvirtDriver
firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
rootwrap_config = /etc/nova/rootwrap.conf
use_stderr = False
[database]
connection = mysql+pymysql://nova:nova@localhost/nova
max_retries = -1
[keystone_authtoken]
auth_host = 127.0.0.1
auth_port = 35357
auth_protocol = http

View File

@ -0,0 +1 @@
options nbd nbds_max=64

View File

@ -0,0 +1,2 @@
nbd
vhost-net

View File

@ -12,27 +12,30 @@ Summary: OpenStack Compute (nova)
License: {{ license('Apache-2.0') }} License: {{ license('Apache-2.0') }}
URL: https://launchpad.net/nova URL: https://launchpad.net/nova
Source0: {{ source|basename }} Source0: {{ source|basename }}
Source1: nova-dist.conf Source1: openstack-nova.defaultconf
Source3: nova.logrotate Source3: nova.logrotate
Source4: nova-polkit.pkla Source4: nova-polkit.pkla
Source6: nova-polkit.rules Source6: nova-polkit.rules
Source7: nova-sudoers Source7: nova-sudoers
Source8: unittests.blacklist Source8: unittests.blacklist
Source10: openstack-nova-api.service Source9: nova.modules
Source10: nova.modprobe
Source11: openstack-nova-api.service
Source12: openstack-nova-compute.service Source12: openstack-nova-compute.service
Source13: openstack-nova-network.service Source13: openstack-nova-network.service
Source14: openstack-nova-scheduler.service Source14: openstack-nova-scheduler.service
Source15: openstack-nova-xvpvncproxy.service Source15: openstack-nova-xvpvncproxy.service
Source16: openstack-nova-console.service Source16: openstack-nova-console.service
Source17: openstack-nova-consoleauth.service Source17: openstack-nova-consoleauth.service
Source18: openstack-nova-metadata-api.service Source18: openstack-nova-api-metadata.service
Source19: openstack-nova-conductor.service Source19: openstack-nova-conductor.service
Source20: openstack-nova-cells.service Source20: openstack-nova-cells.service
Source21: openstack-nova-spicehtml5proxy.service Source21: openstack-nova-spicehtml5proxy.service
Source22: openstack-nova-novncproxy.service Source22: openstack-nova-novncproxy.service
Source23: openstack-nova-serialproxy.service Source23: openstack-nova-serialproxy.service
Source24: openstack-nova-os-compute-api.service Source24: openstack-nova-api-os-compute.service
Source25: wsgi-nova-placement-api.conf Source26: wsgi-nova-placement-api.conf
Source27: nova.tmpfiles
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: intltool BuildRequires: intltool
BuildRequires: openstack-macros BuildRequires: openstack-macros
@ -323,6 +326,24 @@ standard hardware configurations and seven major hypervisors.
This package contains the Nova services providing This package contains the Nova services providing
console access services to Virtual Machines. console access services to Virtual Machines.
%package consoleauth
Summary: OpenStack Nova consoleauth access services
Group: Applications/System
Requires: %{name} = %{epoch}:%{version}-%{release}
%description consoleauth
OpenStack Compute (codename Nova) is open source software designed to
provision and manage large networks of virtual machines, creating a
redundant and scalable cloud computing platform. It gives you the
software, control panels, and APIs required to orchestrate a cloud,
including running instances, managing networks, and controlling access
through users and projects. OpenStack Compute strives to be both
hardware and hypervisor agnostic, currently supporting a variety of
standard hardware configurations and seven major hypervisors.
This package contains the Nova services providing
consoleauth access services to Virtual Machines.
%package network %package network
Summary: OpenStack Nova Network control service Summary: OpenStack Nova Network control service
Group: Applications/System Group: Applications/System
@ -365,6 +386,25 @@ standard hardware configurations and seven major hypervisors.
This package contains the Nova noVNC Proxy service that can proxy This package contains the Nova noVNC Proxy service that can proxy
VNC traffic over browser websockets connections. VNC traffic over browser websockets connections.
%package xvpvncproxy
Summary: OpenStack Nova XVP VNC proxy service
Group: Applications/System
Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: novnc
%description xvpvncproxy
OpenStack Compute (codename Nova) is open source software designed to
provision and manage large networks of virtual machines, creating a
redundant and scalable cloud computing platform. It gives you the
software, control panels, and APIs required to orchestrate a cloud,
including running instances, managing networks, and controlling access
through users and projects. OpenStack Compute strives to be both
hardware and hypervisor agnostic, currently supporting a variety of
standard hardware configurations and seven major hypervisors.
This package contains the Nova VNC Proxy service that can proxy
VNC traffic over browser websockets connections.
%package scheduler %package scheduler
Summary: OpenStack Nova VM distribution service Summary: OpenStack Nova VM distribution service
Group: Applications/System Group: Applications/System
@ -489,35 +529,40 @@ install -p -D -m 644 build/sphinx/man/*.1 %{buildroot}%{_mandir}/man1/
# Setup directories # Setup directories
install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova
install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/images
install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/buckets install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/buckets
install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/instances install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/instances
install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/keys install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/keys
install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/networks install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/networks
install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/tmp install -d -m 750 %{buildroot}%{_localstatedir}/lib/nova/tmp
install -d -m 750 %{buildroot}%{_localstatedir}/log/nova install -d -m 750 %{buildroot}%{_localstatedir}/log/nova
install -d -m 700 %{buildroot}%{_rundir}/nova
# systemd tmpfiles
install -D -m 644 %{SOURCE27} %{buildroot}/%_tmpfilesdir/%name.conf
# WSGI apache config for nova-placement-api # WSGI apache config for nova-placement-api
%if 0%{?rdo} %if 0%{?rdo}
# adjust paths to WSGI scripts # adjust paths to WSGI scripts
sed -i 's#/local/bin#/bin#' %{SOURCE25} sed -i 's#/local/bin#/bin#' %{SOURCE26}
sed -i 's#apache2#httpd#' %{SOURCE25} sed -i 's#apache2#httpd#' %{SOURCE26}
%endif %endif
# Install apache configuration files # Install apache configuration files
install -d -m 755 %{buildroot}%{apache_site_dir} install -d -m 755 %{buildroot}%{apache_site_dir}
install -p -D -m 644 %{SOURCE25} %{buildroot}%{_datarootdir}/nova/wsgi-nova-placement-api.conf install -p -D -m 644 %{SOURCE26} %{buildroot}%{_datarootdir}/nova/wsgi-nova-placement-api.conf
install -p -D -m 644 %{SOURCE25} %{buildroot}%{apache_site_dir}/nova-placement-api.conf install -p -D -m 644 %{SOURCE26} %{buildroot}%{apache_site_dir}/nova-placement-api.conf
# Install config files # Install config files
install -d -m 755 %{buildroot}%{_sysconfdir}/nova install -d -m 755 %{buildroot}%{_sysconfdir}/nova
install -d -m 755 %{buildroot}%{_sysconfdir}/nova/nova.conf.d install -d -m 755 %{buildroot}%{_sysconfdir}/nova/nova.conf.d
install -p -D -m 640 %{SOURCE1} %{buildroot}%{_datarootdir}/nova/nova-dist.conf install -p -D -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/nova/nova.conf.d/010-nova.conf
install -p -D -m 640 etc/nova/api-paste.ini %{buildroot}%{_sysconfdir}/nova/api-paste.ini install -p -D -m 640 etc/nova/api-paste.ini %{buildroot}%{_sysconfdir}/nova/api-paste.ini
install -p -D -m 640 etc/nova/cells.json %{buildroot}%{_sysconfdir}/nova/cells.json install -p -D -m 640 etc/nova/cells.json %{buildroot}%{_sysconfdir}/nova/cells.json
install -p -D -m 640 etc/nova/logging_sample.conf %{buildroot}%{_sysconfdir}/nova/logging.conf install -p -D -m 640 etc/nova/logging_sample.conf %{buildroot}%{_sysconfdir}/nova/logging.conf
install -p -D -m 640 etc/nova/nova.conf.sample %{buildroot}%{_sysconfdir}/nova/nova.conf install -p -D -m 640 etc/nova/nova.conf.sample %{buildroot}%{_sysconfdir}/nova/nova.conf
install -p -D -m 640 etc/nova/policy.yaml.sample %{buildroot}%{_sysconfdir}/nova/policy.yaml install -p -D -m 640 etc/nova/policy.yaml.sample %{buildroot}%{_sysconfdir}/nova/policy.yaml
install -p -D -m 640 etc/nova/rootwrap.conf %{buildroot}%{_sysconfdir}/nova/rootwrap.conf install -p -D -m 640 etc/nova/rootwrap.conf %{buildroot}%{_sysconfdir}/nova/rootwrap.conf
# delete installed conf files in usr/etc # delete installed conf files in usr/etc
rm -rf %{buildroot}%{_prefix}%{_sysconfdir}/ rm -rf %{buildroot}%{_prefix}%{_sysconfdir}/
@ -528,39 +573,63 @@ vendor = %{?dist}
product = OpenStack Nova product = OpenStack Nova
package = %{release} package = %{release}
EOF EOF
# Install completion, logrotate and policykit
# install logrotate
install -p -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name} install -p -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
# install completion
install -p -D -m 644 tools/nova-manage.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/openstack-nova-manage.sh install -p -D -m 644 tools/nova-manage.bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/openstack-nova-manage.sh
# install polkit
%if 0%{?rdo} %if 0%{?rdo}
install -d -m 755 %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d install -d -m 755 %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d
install -p -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nova.pkla install -p -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nova.pkla
%endif %endif
install -d -m 755 %{buildroot}%{_sysconfdir}/polkit-1/rules.d install -D -m 644 %{SOURCE6} %{buildroot}%{_datadir}/polkit-1/rules.d/10-openstack-nova-compute.rules
install -p -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/polkit-1/rules.d/50-nova.rules
# Install sudoers # install modules/modprobe
install -p -D -m 440 %{SOURCE7} %{buildroot}%{_sysconfdir}/sudoers.d/%{name} install -D -m 644 %{SOURCE9} %{buildroot}%{_libexecdir}/modules-load.d/openstack-nova-compute.conf
# Install initscripts for Nova services install -D -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/modprobe.d/openstack-nova-compute
install -p -D -m 755 %{SOURCE10} %{buildroot}%{_unitdir}/openstack-nova-api.service
install -p -D -m 755 %{SOURCE12} %{buildroot}%{_unitdir}/openstack-nova-compute.service # install sudoers
install -p -D -m 755 %{SOURCE13} %{buildroot}%{_unitdir}/openstack-nova-network.service install -p -D -m 440 %{SOURCE7} %{buildroot}%{_sysconfdir}/sudoers.d/%{name}
install -p -D -m 755 %{SOURCE14} %{buildroot}%{_unitdir}/openstack-nova-scheduler.service
install -p -D -m 755 %{SOURCE15} %{buildroot}%{_unitdir}/openstack-nova-xvpvncproxy.service # install systemd service files
install -p -D -m 755 %{SOURCE16} %{buildroot}%{_unitdir}/openstack-nova-console.service install -p -D -m 755 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}-api.service
install -p -D -m 755 %{SOURCE17} %{buildroot}%{_unitdir}/openstack-nova-consoleauth.service install -p -D -m 755 %{SOURCE12} %{buildroot}%{_unitdir}/%{name}-compute.service
install -p -D -m 755 %{SOURCE18} %{buildroot}%{_unitdir}/openstack-nova-metadata-api.service install -p -D -m 755 %{SOURCE13} %{buildroot}%{_unitdir}/%{name}-network.service
install -p -D -m 755 %{SOURCE19} %{buildroot}%{_unitdir}/openstack-nova-conductor.service install -p -D -m 755 %{SOURCE14} %{buildroot}%{_unitdir}/%{name}-scheduler.service
install -p -D -m 755 %{SOURCE20} %{buildroot}%{_unitdir}/openstack-nova-cells.service install -p -D -m 755 %{SOURCE15} %{buildroot}%{_unitdir}/%{name}-xvpvncproxy.service
install -p -D -m 755 %{SOURCE21} %{buildroot}%{_unitdir}/openstack-nova-spicehtml5proxy.service install -p -D -m 755 %{SOURCE16} %{buildroot}%{_unitdir}/%{name}-console.service
install -p -D -m 755 %{SOURCE22} %{buildroot}%{_unitdir}/openstack-nova-novncproxy.service install -p -D -m 755 %{SOURCE17} %{buildroot}%{_unitdir}/%{name}-consoleauth.service
install -p -D -m 755 %{SOURCE23} %{buildroot}%{_unitdir}/openstack-nova-serialproxy.service install -p -D -m 755 %{SOURCE18} %{buildroot}%{_unitdir}/%{name}-api-metadata.service
install -p -D -m 755 %{SOURCE24} %{buildroot}%{_unitdir}/openstack-nova-os-compute-api.service install -p -D -m 755 %{SOURCE19} %{buildroot}%{_unitdir}/%{name}-conductor.service
install -p -D -m 755 %{SOURCE20} %{buildroot}%{_unitdir}/%{name}-cells.service
install -p -D -m 755 %{SOURCE21} %{buildroot}%{_unitdir}/%{name}-spicehtml5proxy.service
install -p -D -m 755 %{SOURCE22} %{buildroot}%{_unitdir}/%{name}-novncproxy.service
install -p -D -m 755 %{SOURCE23} %{buildroot}%{_unitdir}/%{name}-serialproxy.service
install -p -D -m 755 %{SOURCE24} %{buildroot}%{_unitdir}/%{name}-api-os-compute.service
# install symlinks on SUSE
%if 0%{?suse_version}
mkdir -p %{buildroot}%{_sbindir}
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-api
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-compute
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-network
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-scheduler
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-xvpvncproxy
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-console
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-consoleauth
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-api-metadata
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-conductor
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-cells
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-spicehtml5proxy
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-novncproxy
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-serialproxy
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}-api-os-compute
%endif
# Install rootwrap files in /usr/share/nova/rootwrap
mkdir -p %{buildroot}%{_datarootdir}/nova/rootwrap/
install -p -D -m 644 etc/nova/rootwrap.d/* %{buildroot}%{_datarootdir}/nova/rootwrap/
cp -a etc/nova/rootwrap.d/ %{buildroot}%{_sysconfdir}/nova/ cp -a etc/nova/rootwrap.d/ %{buildroot}%{_sysconfdir}/nova/
# Install pid directory
install -d -m 750 %{buildroot}%{_rundir}/nova
%fdupes %{buildroot}/%{python2_sitelib} %fdupes %{buildroot}/%{python2_sitelib}
%if 0%{?with_tests} %if 0%{?with_tests}
@ -580,12 +649,15 @@ testr run --load-list=list
%pre %pre
%openstack_pre_user_group_create nova nova -s /bin/bash %openstack_pre_user_group_create nova nova -s /bin/bash
%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%pre compute %pre compute
usermod -a -G qemu nova usermod -a -G qemu nova
#POST actions #POST actions
%post api %post api
%systemd_post %{name}-api.service %{name}-metadata-api.service %{name}-os-compute-api.service %systemd_post %{name}-api.service %{name}-api-metadata.service %{name}-api-os-compute.service
%post placement-api %post placement-api
%systemd_post %{apache_name}.service %systemd_post %{apache_name}.service
@ -603,7 +675,10 @@ usermod -a -G qemu nova
%systemd_post %{name}-conductor.service %systemd_post %{name}-conductor.service
%post console %post console
%systemd_post %{name}-console.service %{name}-consoleauth.service %{name}-xvpvncproxy.service %systemd_post %{name}-console.service
%post consoleauth
%systemd_post %{name}-consoleauth.service
%post network %post network
%systemd_post %{name}-network.service %systemd_post %{name}-network.service
@ -611,6 +686,9 @@ usermod -a -G qemu nova
%post novncproxy %post novncproxy
%systemd_post %{name}-novncproxy.service %systemd_post %{name}-novncproxy.service
%post xvpvncproxy
%systemd_post %{name}-xvpvncproxy.service
%post scheduler %post scheduler
%systemd_post %{name}-scheduler.service %systemd_post %{name}-scheduler.service
@ -622,7 +700,7 @@ usermod -a -G qemu nova
#PREUN actions #PREUN actions
%preun api %preun api
%systemd_preun %{name}-api.service %{name}-metadata-api.service %{name}-os-compute-api.service %systemd_preun %{name}-api.service %{name}-api-metadata.service %{name}-api-os-compute.service
%preun cells %preun cells
%systemd_preun %{name}-cells.service %systemd_preun %{name}-cells.service
@ -637,7 +715,10 @@ usermod -a -G qemu nova
%systemd_preun %{name}-conductor.service %systemd_preun %{name}-conductor.service
%preun console %preun console
%systemd_preun %{name}-console.service %{name}-consoleauth.service %{name}-xvpvncproxy.service %systemd_preun %{name}-console.service
%preun consoleauth
%systemd_preun %{name}-consoleauth.service
%preun network %preun network
%systemd_preun %{name}-network.service %systemd_preun %{name}-network.service
@ -645,6 +726,9 @@ usermod -a -G qemu nova
%preun novncproxy %preun novncproxy
%systemd_preun %{name}-novncproxy.service %systemd_preun %{name}-novncproxy.service
%preun xvpvncproxy
%systemd_preun %{name}-xvpvncproxy.service
%preun scheduler %preun scheduler
%systemd_preun %{name}-scheduler.service %systemd_preun %{name}-scheduler.service
@ -656,7 +740,7 @@ usermod -a -G qemu nova
#POSTUN actions #POSTUN actions
%postun api %postun api
%systemd_postun_with_restart %{name}-api.service %{name}-metadata-api.service %{name}-os-compute-api.service %systemd_postun_with_restart %{name}-api.service %{name}-api-metadata.service %{name}-api-os-compute.service
%postun placement-api %postun placement-api
%systemd_postun_with_restart %{apache_name}.service %systemd_postun_with_restart %{apache_name}.service
@ -674,7 +758,10 @@ usermod -a -G qemu nova
%systemd_postun_with_restart %{name}-conductor.service %systemd_postun_with_restart %{name}-conductor.service
%postun console %postun console
%systemd_postun_with_restart %{name}-console.service %{name}-consoleauth.service %{name}-xvpvncproxy.service %systemd_postun_with_restart %{name}-console.service
%postun consoleauth
%systemd_postun_with_restart %{name}-consoleauth.service
%postun network %postun network
%systemd_postun_with_restart %{name}-network.service %systemd_postun_with_restart %{name}-network.service
@ -682,6 +769,9 @@ usermod -a -G qemu nova
%postun novncproxy %postun novncproxy
%systemd_postun_with_restart %{name}-novncproxy.service %systemd_postun_with_restart %{name}-novncproxy.service
%postun xvpvncproxy
%systemd_postun_with_restart %{name}-xvpvncproxy.service
%postun scheduler %postun scheduler
%systemd_postun_with_restart %{name}-scheduler.service %systemd_postun_with_restart %{name}-scheduler.service
@ -695,9 +785,6 @@ usermod -a -G qemu nova
%defattr(-,root,root,-) %defattr(-,root,root,-)
%license LICENSE %license LICENSE
%doc README.rst %doc README.rst
%dir %{_datarootdir}/nova/
%dir %{_datarootdir}/nova/rootwrap
%attr(-, root, nova) %{_datarootdir}/nova/nova-dist.conf
%dir %{_sysconfdir}/nova %dir %{_sysconfdir}/nova
%dir %{_sysconfdir}/nova/rootwrap.d %dir %{_sysconfdir}/nova/rootwrap.d
%dir %{_localstatedir}/lib/nova %dir %{_localstatedir}/lib/nova
@ -707,9 +794,10 @@ usermod -a -G qemu nova
%dir %{_localstatedir}/lib/nova/networks %dir %{_localstatedir}/lib/nova/networks
%dir %{_localstatedir}/lib/nova/tmp %dir %{_localstatedir}/lib/nova/tmp
%dir %attr(0750, nova, root) %{_localstatedir}/log/nova %dir %attr(0750, nova, root) %{_localstatedir}/log/nova
%dir %attr(0750, nova, root) %{_rundir}/nova
%{_sysconfdir}/bash_completion.d/openstack-nova-manage.sh %{_sysconfdir}/bash_completion.d/openstack-nova-manage.sh
%{_sysconfdir}/nova/release %{_sysconfdir}/nova/release
%_tmpfilesdir/%name.conf
%dir %{_sysconfdir}/nova/nova.conf.d/
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sudoers.d/%{name} %config(noreplace) %{_sysconfdir}/sudoers.d/%{name}
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/api-paste.ini %config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/api-paste.ini
@ -717,6 +805,7 @@ usermod -a -G qemu nova
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/nova.conf %config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/nova.conf
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/policy.yaml %config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/policy.yaml
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/rootwrap.conf %config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/rootwrap.conf
%config(noreplace) %attr(0640, root, nova) %{_sysconfdir}/nova/nova.conf.d/010-nova.conf
%{_bindir}/nova-manage %{_bindir}/nova-manage
%{_bindir}/nova-policy %{_bindir}/nova-policy
%{_bindir}/nova-rootwrap %{_bindir}/nova-rootwrap
@ -732,14 +821,25 @@ usermod -a -G qemu nova
%files api %files api
%license LICENSE %license LICENSE
%config %{_sysconfdir}/nova/rootwrap.d/api-metadata.filters %config %{_sysconfdir}/nova/rootwrap.d/api-metadata.filters
%{_bindir}/nova-api* %{_bindir}/nova-api-wsgi
%{_bindir}/nova-metadata-wsgi %{_bindir}/nova-metadata-wsgi
%{_unitdir}/%{name}-*api.service %{_bindir}/nova-api
%{_datarootdir}/nova/rootwrap/api-metadata.filters %{_bindir}/nova-api-metadata
%{_bindir}/nova-api-os-compute
%{_unitdir}/%{name}-api.service
%{_unitdir}/%{name}-api-metadata.service
%{_unitdir}/%{name}-api-os-compute.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-api-metadata
%{_sbindir}/rc%{name}-api
%{_sbindir}/rc%{name}-api-os-compute
%endif
%files placement-api %files placement-api
%license LICENSE %license LICENSE
%{_bindir}/nova-placement-api %{_bindir}/nova-placement-api
%dir %{apache_site_dir}
%dir %{_datarootdir}/nova/
%{apache_site_dir}/nova-placement-api.conf %{apache_site_dir}/nova-placement-api.conf
%{_datarootdir}/nova/wsgi-nova-placement-api.conf %{_datarootdir}/nova/wsgi-nova-placement-api.conf
@ -748,29 +848,48 @@ usermod -a -G qemu nova
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/cells.json %config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/cells.json
%{_bindir}/nova-cells %{_bindir}/nova-cells
%{_unitdir}/%{name}-cells.service %{_unitdir}/%{name}-cells.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-cells
%endif
%files compute %files compute
%license LICENSE %license LICENSE
%{_bindir}/nova-compute %{_bindir}/nova-compute
%{_unitdir}/%{name}-compute.service
%{_datarootdir}/nova/rootwrap/compute.filters
%config %{_sysconfdir}/nova/rootwrap.d/compute.filters %config %{_sysconfdir}/nova/rootwrap.d/compute.filters
%if 0%{?rdo} %if 0%{?rdo}
%config(noreplace) %{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nova.pkla %config(noreplace) %{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nova.pkla
%endif %endif
%config(noreplace) %{_sysconfdir}/polkit-1/rules.d/50-nova.rules %{_datadir}/polkit-1/rules.d/10-openstack-nova-compute.rules
%{_libexecdir}/modules-load.d/openstack-nova-compute.conf
%{_sysconfdir}/modprobe.d/openstack-nova-compute
%{_unitdir}/%{name}-compute.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-compute
%endif
%files conductor %files conductor
%license LICENSE %license LICENSE
%{_bindir}/nova-conductor %{_bindir}/nova-conductor
%{_unitdir}/%{name}-conductor.service %{_unitdir}/%{name}-conductor.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-conductor
%endif
%files console %files console
%license LICENSE %license LICENSE
%{_bindir}/nova-console* %{_bindir}/nova-console
%{_bindir}/nova-xvpvncproxy %{_unitdir}/%{name}-console.service
%{_unitdir}/%{name}-console*.service %if 0%{?suse_version}
%{_unitdir}/%{name}-xvpvncproxy.service %{_sbindir}/rc%{name}-console
%endif
%files consoleauth
%license LICENSE
%{_bindir}/nova-consoleauth
%{_unitdir}/%{name}-consoleauth.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-consoleauth
%endif
%files network %files network
%license LICENSE %license LICENSE
@ -778,27 +897,49 @@ usermod -a -G qemu nova
%{_bindir}/nova-network %{_bindir}/nova-network
%{_bindir}/nova-dhcpbridge %{_bindir}/nova-dhcpbridge
%{_unitdir}/%{name}-network.service %{_unitdir}/%{name}-network.service
%{_datarootdir}/nova/rootwrap/network.filters %if 0%{?suse_version}
%{_sbindir}/rc%{name}-network
%endif
%files novncproxy %files novncproxy
%license LICENSE %license LICENSE
%{_bindir}/nova-novncproxy %{_bindir}/nova-novncproxy
%{_unitdir}/%{name}-novncproxy.service %{_unitdir}/%{name}-novncproxy.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-novncproxy
%endif
%files xvpvncproxy
%license LICENSE
%{_bindir}/nova-xvpvncproxy
%{_unitdir}/%{name}-xvpvncproxy.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-xvpvncproxy
%endif
%files scheduler %files scheduler
%license LICENSE %license LICENSE
%{_bindir}/nova-scheduler %{_bindir}/nova-scheduler
%{_unitdir}/%{name}-scheduler.service %{_unitdir}/%{name}-scheduler.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-scheduler
%endif
%files spicehtml5proxy %files spicehtml5proxy
%license LICENSE %license LICENSE
%{_bindir}/nova-spicehtml5proxy %{_bindir}/nova-spicehtml5proxy
%{_unitdir}/%{name}-spicehtml5proxy.service %{_unitdir}/%{name}-spicehtml5proxy.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-spicehtml5proxy
%endif
%files serialproxy %files serialproxy
%license LICENSE %license LICENSE
%{_bindir}/nova-serialproxy %{_bindir}/nova-serialproxy
%{_unitdir}/%{name}-serialproxy.service %{_unitdir}/%{name}-serialproxy.service
%if 0%{?suse_version}
%{_sbindir}/rc%{name}-serialproxy
%endif
%if 0%{?with_doc} %if 0%{?with_doc}
%files doc %files doc

View File

@ -0,0 +1 @@
d /run/nova 0700 nova nova -

View File

@ -0,0 +1,7 @@
[DEFAULT]
log_dir = /var/log/nova
state_path = /var/lib/nova
bindir = /usr/bin/
[oslo_concurrency]
lock_path = /run/nova