Mark McLoughlin 430fcdb
%global with_doc %{!?_without_doc:1}%{?_without_doc:0}
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Name:             openstack-nova
cd853db
Version:          2012.1
cd853db
# The Release is in form 0.X.tag as per:
cd853db
#   http://fedoraproject.org/wiki/Packaging:NamingGuidelines#Pre-Release_packages
cd853db
# So for prereleases always increment X
161a743
Release:          0.3.e3%{?dist}
Mark McLoughlin 430fcdb
Summary:          OpenStack Compute (nova)
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Group:            Applications/System
Mark McLoughlin 430fcdb
License:          ASL 2.0
Mark McLoughlin 430fcdb
URL:              http://openstack.org/projects/compute/
cd853db
Source0:          http://launchpad.net/nova/essex/essex-3/+download/nova-%{version}~e3.tar.gz
Mark McLoughlin 430fcdb
Source1:          nova.conf
Mark McLoughlin 430fcdb
Source6:          nova.logrotate
Mark McLoughlin 430fcdb
Angus Salkeld 808a5de
Source11:         openstack-nova-api.service
Angus Salkeld 808a5de
Source12:         openstack-nova-compute.service
Angus Salkeld 808a5de
Source13:         openstack-nova-network.service
Angus Salkeld 808a5de
Source14:         openstack-nova-objectstore.service
Angus Salkeld 808a5de
Source15:         openstack-nova-scheduler.service
Angus Salkeld 808a5de
Source16:         openstack-nova-volume.service
Angus Salkeld 808a5de
Source17:         openstack-nova-direct-api.service
Angus Salkeld 808a5de
Source18:         openstack-nova-ajax-console-proxy.service
Angus Salkeld 808a5de
Source19:         openstack-nova-vncproxy.service
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Source20:         nova-sudoers
Mark McLoughlin 430fcdb
Source21:         nova-polkit.pkla
Mark McLoughlin 430fcdb
Source22:         nova-ifc-template
Russell Bryant 730f662
Source23:         openstack-nova-db-setup
Mark McLoughlin 430fcdb
Mark McLoughlin 3ccc2ae
#
cd853db
# patches_base=essex-3
Mark McLoughlin 3ccc2ae
#
cd853db
Patch0001: 0001-Ensure-we-don-t-access-the-net-when-building-docs.patch
161a743
Patch0002: 0002-fix-nova-manage-image-convert-exception.patch
66f8f58
Mark McLoughlin 430fcdb
BuildArch:        noarch
Mark McLoughlin 430fcdb
BuildRequires:    intltool
Mark McLoughlin 430fcdb
BuildRequires:    python-setuptools
Mark McLoughlin 430fcdb
BuildRequires:    python-distutils-extra >= 2.18
Mark McLoughlin 430fcdb
BuildRequires:    python-netaddr
Mark McLoughlin 430fcdb
BuildRequires:    python-lockfile
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Requires:         python-nova = %{version}-%{release}
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Requires:         python-paste
Mark McLoughlin 430fcdb
Requires:         python-paste-deploy
Mark McLoughlin 430fcdb
66f8f58
Requires:         libguestfs-mount >= 1.7.17
6523672
# The fuse dependency should be added to libguestfs-mount
6523672
Requires:         fuse
Mark McLoughlin 430fcdb
Requires:         libvirt-python
cfb94aa
Requires:         libvirt >= 0.8.7
Mark McLoughlin 430fcdb
Requires:         libxml2-python
Mark McLoughlin 430fcdb
Requires:         python-cheetah
Mark McLoughlin 430fcdb
Requires:         MySQL-python
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Requires:         euca2ools
Mark McLoughlin 430fcdb
Requires:         openssl
Mark McLoughlin 430fcdb
Requires:         sudo
Mark McLoughlin 430fcdb
Angus Salkeld 808a5de
Requires(post):   systemd-units
Angus Salkeld 808a5de
Requires(preun):  systemd-units
Angus Salkeld 808a5de
Requires(postun): systemd-units
Mark McLoughlin 430fcdb
Requires(pre):    shadow-utils qemu-kvm
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%description
Mark McLoughlin 430fcdb
OpenStack Compute (codename Nova) is open source software designed to
Mark McLoughlin 430fcdb
provision and manage large networks of virtual machines, creating a
Mark McLoughlin 430fcdb
redundant and scalable cloud computing platform. It gives you the
Mark McLoughlin 430fcdb
software, control panels, and APIs required to orchestrate a cloud,
Mark McLoughlin 430fcdb
including running instances, managing networks, and controlling access
Mark McLoughlin 430fcdb
through users and projects. OpenStack Compute strives to be both
Mark McLoughlin 430fcdb
hardware and hypervisor agnostic, currently supporting a variety of
Mark McLoughlin 430fcdb
standard hardware configurations and seven major hypervisors.
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%package -n       python-nova
Mark McLoughlin 430fcdb
Summary:          Nova Python libraries
Mark McLoughlin 430fcdb
Group:            Applications/System
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Requires:         vconfig
Mark McLoughlin 430fcdb
Requires:         PyXML
Mark McLoughlin 430fcdb
Requires:         curl
Mark McLoughlin 430fcdb
Requires:         m2crypto
Mark McLoughlin 430fcdb
Requires:         libvirt-python
Mark McLoughlin 430fcdb
Requires:         python-anyjson
Mark McLoughlin 430fcdb
Requires:         python-IPy
Mark McLoughlin 430fcdb
Requires:         python-boto
4032b21
# TODO: make these messaging libs optional
4032b21
Requires:         python-qpid
4032b21
Requires:         python-carrot
Mark McLoughlin 224a8a8
Requires:         python-kombu
Bob Kukura ef5bed3
Requires:         python-amqplib
Mark McLoughlin 430fcdb
Requires:         python-daemon
Mark McLoughlin 430fcdb
Requires:         python-eventlet
Mark McLoughlin 430fcdb
Requires:         python-greenlet
Mark McLoughlin 430fcdb
Requires:         python-gflags
Mark McLoughlin 430fcdb
Requires:         python-lockfile
Mark McLoughlin 430fcdb
Requires:         python-lxml
Mark McLoughlin 430fcdb
Requires:         python-mox
Mark McLoughlin 430fcdb
Requires:         python-redis
Mark McLoughlin 430fcdb
Requires:         python-routes
Mark McLoughlin 430fcdb
Requires:         python-sqlalchemy
Mark McLoughlin 430fcdb
Requires:         python-tornado
Mark McLoughlin 430fcdb
Requires:         python-twisted-core
Mark McLoughlin 430fcdb
Requires:         python-twisted-web
Mark McLoughlin 430fcdb
Requires:         python-webob
Mark McLoughlin 430fcdb
Requires:         python-netaddr
4b84322
# TODO: remove the following dependency which is minimal
Mark McLoughlin 430fcdb
Requires:         python-glance
Mark McLoughlin 430fcdb
Requires:         python-novaclient
Mark McLoughlin 430fcdb
Requires:         python-paste-deploy
Mark McLoughlin 430fcdb
Requires:         python-migrate
Mark McLoughlin 430fcdb
Requires:         python-ldap
Mark McLoughlin 430fcdb
Requires:         radvd
Mark McLoughlin 430fcdb
Requires:         iptables iptables-ipv6
Mark McLoughlin 430fcdb
Requires:         iscsi-initiator-utils
Mark McLoughlin 430fcdb
Requires:         scsi-target-utils
Mark McLoughlin 430fcdb
Requires:         lvm2
Mark McLoughlin 430fcdb
Requires:         socat
Mark McLoughlin 430fcdb
Requires:         coreutils
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%description -n   python-nova
Mark McLoughlin 430fcdb
OpenStack Compute (codename Nova) is open source software designed to
Mark McLoughlin 430fcdb
provision and manage large networks of virtual machines, creating a
Mark McLoughlin 430fcdb
redundant and scalable cloud computing platform.
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
This package contains the nova Python library.
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%if 0%{?with_doc}
Mark McLoughlin 430fcdb
%package doc
Mark McLoughlin 430fcdb
Summary:          Documentation for OpenStack Compute
Mark McLoughlin 430fcdb
Group:            Documentation
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Requires:         %{name} = %{version}-%{release}
Mark McLoughlin 430fcdb
Angus Salkeld 808a5de
BuildRequires:    systemd-units
Mark McLoughlin 430fcdb
BuildRequires:    python-sphinx
Mark McLoughlin 430fcdb
BuildRequires:    graphviz
Angus Salkeld 5612cf3
BuildRequires:    python-distutils-extra
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
BuildRequires:    python-nose
Mark McLoughlin 430fcdb
# Required to build module documents
Mark McLoughlin 430fcdb
BuildRequires:    python-IPy
Mark McLoughlin 430fcdb
BuildRequires:    python-boto
Mark McLoughlin 430fcdb
BuildRequires:    python-eventlet
Mark McLoughlin 430fcdb
BuildRequires:    python-gflags
Mark McLoughlin 430fcdb
BuildRequires:    python-routes
Mark McLoughlin 430fcdb
BuildRequires:    python-sqlalchemy
Mark McLoughlin 430fcdb
BuildRequires:    python-tornado
Mark McLoughlin 430fcdb
BuildRequires:    python-twisted-core
Mark McLoughlin 430fcdb
BuildRequires:    python-twisted-web
Mark McLoughlin 430fcdb
BuildRequires:    python-webob
Mark McLoughlin 430fcdb
# while not strictly required, quiets the build down when building docs.
Mark McLoughlin 430fcdb
BuildRequires:    python-carrot, python-mox, python-suds, m2crypto, bpython, python-memcached, python-migrate
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%description      doc
Mark McLoughlin 430fcdb
OpenStack Compute (codename Nova) is open source software designed to
Mark McLoughlin 430fcdb
provision and manage large networks of virtual machines, creating a
Mark McLoughlin 430fcdb
redundant and scalable cloud computing platform.
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
This package contains documentation files for nova.
Mark McLoughlin 430fcdb
%endif
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%prep
Mark McLoughlin 430fcdb
%setup -q -n nova-%{version}
Mark McLoughlin 430fcdb
Mark McLoughlin a3cf992
%patch0001 -p1
161a743
%patch0002 -p1
66f8f58
Mark McLoughlin 430fcdb
find . \( -name .gitignore -o -name .placeholder \) -delete
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
find nova -name \*.py -exec sed -i '/\/usr\/bin\/env python/d' {} \;
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%build
Mark McLoughlin 430fcdb
%{__python} setup.py build
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%install
Mark McLoughlin 430fcdb
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# docs generation requires everything to be installed first
Mark McLoughlin 430fcdb
export PYTHONPATH="$( pwd ):$PYTHONPATH"
Mark McLoughlin 430fcdb
pushd doc
Mark McLoughlin 430fcdb
# Manually auto-generate to work around sphinx-build segfault
Mark McLoughlin 430fcdb
./generate_autodoc_index.sh
Angus Salkeld 5612cf3
SPHINX_DEBUG=1 sphinx-build -b man source build/man
Angus Salkeld 5612cf3
mkdir -p %{buildroot}%{_mandir}/man1
Angus Salkeld 5612cf3
install -p -D -m 644 build/man/*.1 %{buildroot}%{_mandir}/man1/
Angus Salkeld 5612cf3
Angus Salkeld 5612cf3
%if 0%{?with_doc}
Mark McLoughlin 430fcdb
SPHINX_DEBUG=1 sphinx-build -b html source build/html
Mark McLoughlin 430fcdb
# Fix hidden-file-or-dir warnings
Angus Salkeld 5612cf3
rm -fr build/html/.doctrees build/html/.buildinfo
Mark McLoughlin 430fcdb
%endif
Angus Salkeld 5612cf3
popd
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Give stack, instance-usage-audit and clear_rabbit_queues a reasonable prefix
Mark McLoughlin d576555
mv %{buildroot}%{_bindir}/stack %{buildroot}%{_bindir}/nova-stack
Mark McLoughlin e2eae75
mv %{buildroot}%{_bindir}/instance-usage-audit %{buildroot}%{_bindir}/nova-instance-usage-audit
Mark McLoughlin e2eae75
mv %{buildroot}%{_bindir}/clear_rabbit_queues %{buildroot}%{_bindir}/nova-clear-rabbit-queues
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Setup directories
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/buckets
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/images
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/instances
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/keys
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/networks
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/tmp
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_localstatedir}/log/nova
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Setup ghost CA cert
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/CA
Mark McLoughlin 430fcdb
install -p -m 755 nova/CA/*.sh %{buildroot}%{_sharedstatedir}/nova/CA
Mark McLoughlin 430fcdb
install -p -m 644 nova/CA/openssl.cnf.tmpl %{buildroot}%{_sharedstatedir}/nova/CA
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/CA/{certs,crl,newcerts,projects,reqs}
Mark McLoughlin 430fcdb
touch %{buildroot}%{_sharedstatedir}/nova/CA/{cacert.pem,crl.pem,index.txt,openssl.cnf,serial}
Mark McLoughlin 430fcdb
install -d -m 750 %{buildroot}%{_sharedstatedir}/nova/CA/private
Mark McLoughlin 430fcdb
touch %{buildroot}%{_sharedstatedir}/nova/CA/private/cakey.pem
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Install config file
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sysconfdir}/nova
Mark McLoughlin 430fcdb
install -p -D -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/nova/nova.conf
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Install initscripts for Nova services
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE11} %{buildroot}%{_unitdir}/openstack-nova-api.service
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE12} %{buildroot}%{_unitdir}/openstack-nova-compute.service
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE13} %{buildroot}%{_unitdir}/openstack-nova-network.service
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE14} %{buildroot}%{_unitdir}/openstack-nova-objectstore.service
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE15} %{buildroot}%{_unitdir}/openstack-nova-scheduler.service
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE16} %{buildroot}%{_unitdir}/openstack-nova-volume.service
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE17} %{buildroot}%{_unitdir}/openstack-nova-direct-api.service
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE18} %{buildroot}%{_unitdir}/openstack-nova-ajax-console-proxy.service
Angus Salkeld 808a5de
install -p -D -m 755 %{SOURCE19} %{buildroot}%{_unitdir}/openstack-nova-vncproxy.service
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Install sudoers
Mark McLoughlin 430fcdb
install -p -D -m 440 %{SOURCE20} %{buildroot}%{_sysconfdir}/sudoers.d/nova
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Install logrotate
Mark McLoughlin 430fcdb
install -p -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/openstack-nova
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Install pid directory
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_localstatedir}/run/nova
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Install template files
Mark McLoughlin 430fcdb
install -p -D -m 644 nova/auth/novarc.template %{buildroot}%{_datarootdir}/nova/novarc.template
Mark McLoughlin 430fcdb
install -p -D -m 644 nova/cloudpipe/client.ovpn.template %{buildroot}%{_datarootdir}/nova/client.ovpn.template
Mark McLoughlin 430fcdb
install -p -D -m 644 nova/virt/libvirt.xml.template %{buildroot}%{_datarootdir}/nova/libvirt.xml.template
Mark McLoughlin 430fcdb
install -p -D -m 644 nova/virt/interfaces.template %{buildroot}%{_datarootdir}/nova/interfaces.template
Mark McLoughlin 430fcdb
install -p -D -m 644 %{SOURCE22} %{buildroot}%{_datarootdir}/nova/interfaces.template
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
install -d -m 755 %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d
Mark McLoughlin 430fcdb
install -p -D -m 644 %{SOURCE21} %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nova.pkla
Mark McLoughlin 430fcdb
Russell Bryant 730f662
# Install database setup helper script.
Russell Bryant 730f662
install -p -D -m 755 %{SOURCE23} %{buildroot}%{_bindir}/openstack-nova-db-setup
Russell Bryant 730f662
Mark McLoughlin 430fcdb
# Remove ajaxterm and various other tools
Mark McLoughlin 430fcdb
rm -fr %{buildroot}%{_datarootdir}/nova/{ajaxterm,euca-get-ajax-console,install_venv.py,nova-debug,pip-requires,clean-vlans,with_venv.sh,esx}
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
# Remove unneeded in production stuff
Mark McLoughlin 430fcdb
rm -fr %{buildroot}%{python_sitelib}/run_tests.*
Mark McLoughlin 430fcdb
rm -f %{buildroot}%{_bindir}/nova-combined
Mark McLoughlin 430fcdb
rm -f %{buildroot}/usr/share/doc/nova/README*
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%pre
Mark McLoughlin 430fcdb
getent group nova >/dev/null || groupadd -r nova --gid 162
66f8f58
if ! getent passwd nova >/dev/null; then
751875f
  useradd -u 162 -r -g nova -G nova,nobody,qemu -d %{_sharedstatedir}/nova -s /sbin/nologin -c "OpenStack Nova Daemons" nova
751875f
fi
751875f
# Add nova to the fuse group (if present) to support guestmount
6c9d255
if getent group fuse >/dev/null; then
66f8f58
  usermod -a -G fuse nova
66f8f58
fi
Mark McLoughlin 430fcdb
exit 0
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%post
Angus Salkeld 808a5de
if [ $1 -eq 1 ] ; then
Angus Salkeld 808a5de
    # Initial installation
Angus Salkeld 808a5de
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
Angus Salkeld 808a5de
fi
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%preun
Mark McLoughlin 430fcdb
if [ $1 -eq 0 ] ; then
Mark McLoughlin 430fcdb
    for svc in api compute network objectstore scheduler volume direct-api ajax-console-proxy vncproxy; do
Angus Salkeld 808a5de
        /bin/systemctl --no-reload disable openstack-nova-${svc}.service > /dev/null 2>&1 || :
Angus Salkeld 808a5de
        /bin/systemctl stop openstack-nova-${svc}.service > /dev/null 2>&1 || :
Mark McLoughlin 430fcdb
    done
Mark McLoughlin 430fcdb
fi
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%postun
Angus Salkeld 808a5de
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
Angus Salkeld 808a5de
if [ $1 -ge 1 ] ; then
Angus Salkeld 808a5de
    # Package upgrade, not uninstall
Mark McLoughlin 430fcdb
    for svc in api compute network objectstore scheduler volume direct-api ajax-console-proxy vncproxy; do
Angus Salkeld 808a5de
        /bin/systemctl try-restart openstack-nova-${svc}.service >/dev/null 2>&1 || :
Mark McLoughlin 430fcdb
    done
Mark McLoughlin 430fcdb
fi
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%files
Mark McLoughlin 430fcdb
%doc LICENSE
Mark McLoughlin 430fcdb
%dir %{_sysconfdir}/nova
Mark McLoughlin 430fcdb
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/nova.conf
Mark McLoughlin 430fcdb
%config(noreplace) %{_sysconfdir}/nova/api-paste.ini
335d2b8
%config(noreplace) %{_sysconfdir}/nova/policy.json
Mark McLoughlin 430fcdb
%config(noreplace) %{_sysconfdir}/logrotate.d/openstack-nova
Mark McLoughlin 430fcdb
%config(noreplace) %{_sysconfdir}/sudoers.d/nova
Mark McLoughlin 430fcdb
%config(noreplace) %{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nova.pkla
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%dir %attr(0755, nova, root) %{_localstatedir}/log/nova
Mark McLoughlin 430fcdb
%dir %attr(0755, nova, root) %{_localstatedir}/run/nova
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%{_bindir}/nova-*
Russell Bryant 730f662
%{_bindir}/openstack-nova-db-setup
Angus Salkeld 808a5de
%{_unitdir}/openstack-nova-*.service
Mark McLoughlin 430fcdb
%{_datarootdir}/nova
Angus Salkeld 5612cf3
%{_mandir}/man1/nova*.1.gz
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%defattr(-, nova, nova, -)
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/buckets
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/images
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/instances
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/keys
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/networks
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/tmp
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/CA/
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/CA/certs
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/CA/crl
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/CA/newcerts
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/CA/projects
Mark McLoughlin 430fcdb
%dir %{_sharedstatedir}/nova/CA/reqs
Mark McLoughlin 430fcdb
%{_sharedstatedir}/nova/CA/*.sh
Mark McLoughlin 430fcdb
%{_sharedstatedir}/nova/CA/openssl.cnf.tmpl
Mark McLoughlin 430fcdb
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/cacert.pem
Mark McLoughlin 430fcdb
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/crl.pem
Mark McLoughlin 430fcdb
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/index.txt
Mark McLoughlin 430fcdb
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/openssl.cnf
Mark McLoughlin 430fcdb
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/serial
Mark McLoughlin 430fcdb
%dir %attr(0750, -, -) %{_sharedstatedir}/nova/CA/private
Mark McLoughlin 430fcdb
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/private/cakey.pem
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%files -n python-nova
Mark McLoughlin 430fcdb
%defattr(-,root,root,-)
Mark McLoughlin 430fcdb
%doc LICENSE
Mark McLoughlin 430fcdb
%{python_sitelib}/nova
Mark McLoughlin 430fcdb
%{python_sitelib}/nova-%{version}-*.egg-info
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%if 0%{?with_doc}
Mark McLoughlin 430fcdb
%files doc
Mark McLoughlin 430fcdb
%doc LICENSE doc/build/html
Mark McLoughlin 430fcdb
%endif
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
%changelog
161a743
* Mon Jan 30 2012 Pádraig Brady <P@draigBrady.com> - 2012.1-0.3.e3
161a743
- Suppress a warning from `nova-manage image convert`
161a743
6c9d255
* Fri Jan 27 2012 Pádraig Brady <P@draigBrady.com> - 2012.1-0.2.e3
6c9d255
- Suppress erroneous output to stdout on package install (#785115)
f4eb015
- Specify a connection_type in nova.conf, needed by essex-3
f4eb015
- Depend on python-carrot, currently needed by essex-3
f4eb015
- Remove the rabbitmq-server dependency as it's now optional
f4eb015
- Have python-nova depend on the messaging libs, not openstack-nova
6c9d255
cd853db
* Thu Jan 26 2012 Pádraig Brady <P@draigBrady.com> - 2012.1-0.1.e3
cd853db
- Update to essex milestone 3
cd853db
ebbc374
* Mon Jan 23 2012 Pádraig Brady <P@draigBrady.com> - 2011.3.1-2
467ad89
- Fix a REST API v1.0 bug causing a regression with deltacloud
467ad89
9a96a05
* Fri Jan 20 2012 Pádraig Brady <P@draigBrady.com> - 2011.3.1-1
9a96a05
- Update to 2011.3.1 release
e46351f
- Allow empty mysql root password in mysql setup script
e46351f
- Enable mysqld at boot in mysql setup script
9a96a05
Mark McLoughlin e2eae75
* Wed Jan 18 2012 Mark McLoughlin <markmc@redhat.com> - 2011.3.1-0.4.10818%{?dist}
Mark McLoughlin e2eae75
- Update to latest 2011.3.1 release candidate
Mark McLoughlin e2eae75
- Re-add nova-{clear-rabbit-queues,instance-usage-audit}
Mark McLoughlin e2eae75
Mark McLoughlin d576555
* Tue Jan 17 2012 Mark McLoughlin <markmc@redhat.com> - 2011.3.1-0.3.10814
Mark McLoughlin d576555
- nova-stack isn't missing after all
Mark McLoughlin d576555
Mark McLoughlin b0b7d22
* Tue Jan 17 2012 Mark McLoughlin <markmc@redhat.com> - 2011.3.1-0.2.10814
Mark McLoughlin b0b7d22
- nova-{stack,clear-rabbit-queues,instance-usage-audit} temporarily removed because of lp#917676
Mark McLoughlin b0b7d22
Mark McLoughlin ad7d832
* Tue Jan 17 2012 Mark McLoughlin <markmc@redhat.com> - 2011.3.1-0.1.10814
Mark McLoughlin ad7d832
- Update to 2011.3.1 release candidate
Mark McLoughlin ad7d832
- Only adds 4 patches from upstream which we didn't already have
Mark McLoughlin ad7d832
7511229
* Wed Jan 11 2012 Pádraig Brady <P@draigBrady.com> - 2011.3-19
7511229
- Fix libguestfs support for specified partitions
2681d00
- Fix tenant bypass by authenticated users using API (#772202, CVE-2012-0030)
7511229
Mark McLoughlin be33b4d
* Fri Jan  6 2012 Mark McLoughlin <markmc@redhat.com> - 2011.3-18
Mark McLoughlin be33b4d
- Fix up recent patches which don't apply
Mark McLoughlin be33b4d
Mark McLoughlin 3868e78
* Fri Jan  6 2012 Mark McLoughlin <markmc@redhat.com> - 2011.3-17
Mark McLoughlin 3868e78
- Backport tgtadm off-by-one fix from upstream (#752709)
Mark McLoughlin 3868e78
Mark McLoughlin 9cf6fbd
* Fri Jan  6 2012 Mark McLoughlin <markmc@redhat.com> - 2011.3-16
Mark McLoughlin 9cf6fbd
- Rebase to latest upstream stable/diablo, pulling in ~50 patches
Mark McLoughlin 9cf6fbd
Mark McLoughlin cf33e03
* Fri Jan  6 2012 Mark McLoughlin <markmc@redhat.com> - 2011.3-15
Mark McLoughlin cf33e03
- Move recent patches into git (no functional changes)
Mark McLoughlin cf33e03
751875f
* Fri Dec 30 2011 Pádraig Brady <P@draigBrady.com> - 2011.3-14
751875f
- Don't require the fuse group (#770927)
6523672
- Require the fuse package (to avoid #767852)
751875f
8e23082
* Tue Dec 14 2011 Pádraig Brady <P@draigBrady.com> - 2011.3-13
f039701
- Sanitize EC2 manifests and image tarballs (#767236, CVE 2011-4596)
8220d6e
- update libguestfs support
f039701
Russell Bryant e34870e
* Tue Dec 06 2011 Russell Bryant <rbryant@redhat.com> - 2011.3-11
Russell Bryant e34870e
- Add --yes, --rootpw, and --novapw options to openstack-nova-db-setup.
Russell Bryant e34870e
66f8f58
* Wed Nov 30 2011 Pádraig Brady <P@draigBrady.com> - 2011.3-10
66f8f58
- Add libguestfs support
66f8f58
66f8f58
* Tue Nov 29 2011 Pádraig Brady <P@draigBrady.com> - 2011.3-9
cfb94aa
- Update the libvirt dependency from 0.8.2 to 0.8.7
4046a2d
- Ensure we don't access the net when building docs
cfb94aa
Russell Bryant 730f662
* Tue Nov 29 2011 Russell Bryant <rbryant@redhat.com> - 2011.3-8
Russell Bryant 730f662
- Change default database to mysql. (#735012)
Russell Bryant 730f662
Mark McLoughlin 85dc6af
* Mon Nov 14 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-7
Mark McLoughlin 85dc6af
- Add ~20 significant fixes from upstream stable branch
Mark McLoughlin 85dc6af
Mark McLoughlin 2618657
* Wed Oct 26 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-6
Mark McLoughlin 2618657
- Fix password leak in EC2 API (#749385, CVE 2011-4076)
Mark McLoughlin 2618657
Mark McLoughlin 81876ee
* Mon Oct 24 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-5
Mark McLoughlin 81876ee
- Fix block migration (#741690)
Mark McLoughlin 81876ee
Bob Kukura ef5bed3
* Mon Oct 17 2011 Bob Kukura <rkukura@redhat.com> - 2011.3-4
Bob Kukura ef5bed3
- Add dependency on python-amqplib (#746685)
Bob Kukura ef5bed3
Mark McLoughlin 223b092
* Wed Sep 28 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-3
Mark McLoughlin 223b092
- Fix lazy load exception with security groups (#741307)
Mark McLoughlin 223b092
- Fix issue with nova-network deleting the default route (#741686)
Mark McLoughlin 223b092
- Fix errors caused by MySQL connection pooling (#741312)
Mark McLoughlin 223b092
Mark McLoughlin 3ccc2ae
* Mon Sep 26 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-2
Mark McLoughlin 3ccc2ae
- Manage the package's patches in git; no functional changes.
Mark McLoughlin 3ccc2ae
Mark McLoughlin 224a8a8
* Thu Sep 22 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-1
Mark McLoughlin 224a8a8
- Update to Diablo final.
Mark McLoughlin 224a8a8
- Drop some upstreamed patches.
Mark McLoughlin 224a8a8
- Update the metadata-accept patch to what's proposed for essex.
Mark McLoughlin 224a8a8
- Switch rpc impl from carrot to kombu.
Mark McLoughlin 224a8a8
Mark McLoughlin 77e03c1
* Mon Sep 19 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.10.d4
Mark McLoughlin 77e03c1
- Use tgtadm instead of ietadm (#737046)
Mark McLoughlin 77e03c1
Mark McLoughlin 71d5a18
* Wed Sep 14 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.9.d4
Mark McLoughlin 71d5a18
- Remove python-libguestfs dependency (#738187)
Mark McLoughlin 71d5a18
Mark McLoughlin a2f20e0
* Mon Sep  5 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.8.d4
Mark McLoughlin a2f20e0
- Add iptables rule to allow EC2 metadata requests (#734347)
Mark McLoughlin a2f20e0
Mark McLoughlin cf0ea93
* Sat Sep  3 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.7.d4
Mark McLoughlin cf0ea93
- Add iptables rules to allow requests to dnsmasq (#734347)
Mark McLoughlin cf0ea93
Mark McLoughlin aa29c89
* Wed Aug 31 2011 Angus Salkeld <asalkeld@redhat.com> - 2011.3-0.6.d4
Mark McLoughlin aa29c89
- Add the one man page provided by nova.
Mark McLoughlin aa29c89
- Start services with --flagfile rather than --flag-file (#735070)
Angus Salkeld 5612cf3
Mark McLoughlin aa29c89
* Tue Aug 30 2011 Angus Salkeld <asalkeld@redhat.com> - 2011.3-0.5.d4
Angus Salkeld 808a5de
- Switch from SysV init scripts to systemd units (#734345)
Angus Salkeld 808a5de
Mark McLoughlin 430fcdb
* Mon Aug 29 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.4.d4
Mark McLoughlin 430fcdb
- Don't generate root CA during %post (#707199)
Mark McLoughlin 430fcdb
- The nobody group shouldn't own files in /var/lib/nova
Mark McLoughlin 430fcdb
- Add workaround for sphinx-build segfault
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
* Fri Aug 26 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.3.d4
Mark McLoughlin 430fcdb
- Update to diablo-4 milestone
Mark McLoughlin 430fcdb
- Use statically assigned uid:gid 162:162 (#732442)
Mark McLoughlin 430fcdb
- Collapse all sub-packages into openstack-nova; w/o upgrade path
Mark McLoughlin 430fcdb
- Reduce use of macros
Mark McLoughlin 430fcdb
- Rename stack to nova-stack
Mark McLoughlin 430fcdb
- Fix openssl.cnf.tmpl script-without-shebang rpmlint warning
Mark McLoughlin 430fcdb
- Really remove ajaxterm
Mark McLoughlin 430fcdb
- Mark polkit file as %config
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
* Mon Aug 22 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.2.1449bzr
Mark McLoughlin 430fcdb
- Remove dependency on python-novaclient
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
* Wed Aug 17 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.1.1449bzr
Mark McLoughlin 430fcdb
- Update to latest upstream.
Mark McLoughlin 430fcdb
- nova-import-canonical-imagestore has been removed
Mark McLoughlin 430fcdb
- nova-clear-rabbit-queues was added
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
* Tue Aug  9 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.2.1409bzr
Mark McLoughlin 430fcdb
- Update to newer upstream
Mark McLoughlin 430fcdb
- nova-instancemonitor has been removed
Mark McLoughlin 430fcdb
- nova-instance-usage-audit added
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
* Tue Aug  9 2011 Mark McLoughlin <markmc@redhat.com> - 2011.3-0.1.bzr1130
Mark McLoughlin 430fcdb
- More cleanups
Mark McLoughlin 430fcdb
- Change release tag to reflect pre-release status
Mark McLoughlin 430fcdb
Mark McLoughlin 430fcdb
* Wed Jun 29 2011 Matt Domsch <mdomsch@fedoraproject.org> - 2011.3-1087.1
Mark McLoughlin 430fcdb
- Initial package from Alexander Sakhnov <asakhnov@mirantis.com>
Mark McLoughlin 430fcdb
  with cleanups by Matt Domsch