目录
文章目录
- 目录
- 前言
- RPM 打包环境安装
- RPM 打包流程
- OpenStack RPM SPEC Sample
- RPM 升级/回退
前言
软件功能升级,尤其是 Python 这类解析型语言的软件功能升级方式一般可以选择直接打 git patch,但这种方式再生产环境中肯定是不够专业的,所以即便是一个小功能,涉及到几个模块的代码改动,还是建议以 RPM 包的方式进行升级。全量升级或者 RPM 冗余,但比增量升级更为可靠。
RPM(Red Hat Package Manager,Red Hat 软件包管理),是 Red Hat 贡献出来的软件包依赖集管理程序,在 Fedora、Redhat、Mandriva、SuSE、YellowDog 等主流 Linux 发行版中使用。RPM 包除了包含程序运行时所需要的文件,也会含有其它 RPM 包特定的版本文件,这就是软件包的依赖关系。
RPM 可以直接以 Binary 方式安装软件包,并且帮助用户查询是否已经安装了相关的依赖库文件。在使用 RPM 删除指定程序时,它又会询问用户是否连带删除相关的依赖程序。如果使用 RPM 来升级软件,RPM 会保留原有的配置文件,用户无需重新配置。RPM 保留一个数据库,这个数据库中包含了所有的软件包的资料。通过这个数据库,用户可以进行软件包信息的查询。
RPM 打包环境安装
yum install -y rpm-build
yum install -y rpmdevtools
yum install -y gcc
RPM 打包流程
- 生成打包目录
$ rpmdev-setuptree
$ tree rpmbuild
rpmbuild
├── BUILD
├── RPMS
├── SOURCES
├── SPECS
└── SRPMS
- 准备源码,e.g.
$ cd ~/rpmbuild/SOURCES
$ git clone https://github.com/openstack/nova.git
- 编辑 SPEC 文件,文件的内容下面详细介绍
vim openstack-nova.spec
- 构建 RPM 包
$ rpmbuild -ba openstack-nova.spec
OpenStack RPM SPEC Sample
%global with_doc %{!?_without_doc:1}%{?_without_doc:0}
# 包名
Name: openstack-nova
# 版本
Version: 2013.2.2.a60.g0cf489a
# 发布号码
Release: 2%{?dist}
# 概要
Summary: OpenStack Compute (nova)
# 分组
Group: Applications/System
# 许可证
License: ASL 2.0
URL: http://openstack.org/projects/compute/
# 源码下载路径
Source0: https://launchpad.net/nova/havana/havana-3/+download/nova-%{version}.tar.gz
# 特定的源码文件
Source1: nova-dist.conf
# 特定的源码文件
Source6: nova.logrotate
# 特定的源码文件
Source10: openstack-nova-api.init
Source100: openstack-nova-api.upstart
Source11: openstack-nova-cert.init
Source110: openstack-nova-cert.upstart
Source12: openstack-nova-compute.init
Source120: openstack-nova-compute.upstart
Source13: openstack-nova-network.init
Source130: openstack-nova-network.upstart
Source14: openstack-nova-objectstore.init
Source140: openstack-nova-objectstore.upstart
Source15: openstack-nova-scheduler.init
Source150: openstack-nova-scheduler.upstart
Source16: openstack-nova-conductor.init
Source160: openstack-nova-conductor.upstart
Source18: openstack-nova-xvpvncproxy.init
Source180: openstack-nova-xvpvncproxy.upstart
Source19: openstack-nova-console.init
Source190: openstack-nova-console.upstart
Source24: openstack-nova-consoleauth.init
Source240: openstack-nova-consoleauth.upstart
Source25: openstack-nova-metadata-api.init
Source250: openstack-nova-metadata-api.upstart
Source26: openstack-nova-cells.init
Source260: openstack-nova-cells.upstart
Source27: openstack-nova-spicehtml5proxy.init
Source270: openstack-nova-spicehtml5proxy.upstart
Source28: openstack-nova-novncproxy.init
Source280: openstack-nova-novncproxy.upstart
Source20: nova-sudoers
Source21: nova-polkit.pkla
Source22: nova-ifc-template
Source30: openstack-nova-novncproxy.sysconfig
# 特定的额外 patch 文件
#
# patches_base=2013.2.b3
#
Patch0001: 0001-Ensure-we-don-t-access-the-net-when-building-docs.patch
Patch0002: 0002-remove-runtime-dep-on-python-pbr.patch
Patch0003: 0003-Revert-Use-oslo.sphinx-and-remove-local-copy-of-doc-.patch
Patch0004: 0004-Fix-compute_node_get_all-for-Nova-Baremetal.patch
# This is EPEL specific and not upstream
Patch100: openstack-nova-newdeps.patch
# 构建环境所需要的编译依赖
BuildArch: noarch
BuildRequires: intltool
BuildRequires: python-argparse
BuildRequires: python-netaddr
BuildRequires: python-oslo-sphinx
BuildRequires: python-paste-deploy >= 1.5
BuildRequires: python-pbr
BuildRequires: python-routes >= 1.12.3
BuildRequires: python-setuptools
BuildRequires: python-sphinx10
BuildRequires: python-sqlalchemy >= 0.7.8
BuildRequires: python-webob >= 1.2
# 安装过程中需要的依赖
Requires: %{name}-compute = %{version}-%{release}
Requires: %{name}-cert = %{version}-%{release}
Requires: %{name}-scheduler = %{version}-%{release}
Requires: %{name}-api = %{version}-%{release}
Requires: %{name}-network = %{version}-%{release}
Requires: %{name}-objectstore = %{version}-%{release}
Requires: %{name}-conductor = %{version}-%{release}
Requires: %{name}-console = %{version}-%{release}
Requires: %{name}-cells = %{version}-%{release}
Requires: %{name}-novncproxy = %{version}-%{release}
# 描述
%description
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.
# Common 子包
%package common
Summary: Components common to all OpenStack Nova services
Group: Applications/System
Requires: python-nova = %{version}-%{release}
Requires: python-keystoneclient
#
Requires(post): chkconfig
Requires(postun): initscripts
Requires(preun): chkconfig
Requires(pre): shadow-utils
Requires: python-setuptools
Requires: python-importlib
%description common
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 scripts, config and dependencies shared
between all the OpenStack nova services.
# Compute 子包
%package compute
Summary: OpenStack Nova Virtual Machine control service
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
Requires: curl
Requires: fuse
Requires: genisoimage
Requires: iptables iptables-ipv6
Requires: iscsi-initiator-utils
Requires: libguestfs-mount >= 1.7.17
Requires: libvirt >= 0.9.6
Requires: libvirt-python
Requires: lvm2
Requires: openssh-clients
Requires: python-cinderclient
Requires: python-libguestfs
Requires: rsync
Requires: sysfsutils
Requires: tunctl
Requires: vconfig
Requires(pre): qemu-kvm
%description compute
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 service for controlling Virtual Machines.
# Network 子包
%package network
Summary: OpenStack Nova Network control service
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
Requires: ebtables
Requires: bridge-utils
Requires: dnsmasq
Requires: dnsmasq-utils
Requires: radvd
Requires: tunctl
Requires: vconfig
%description network
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 service for controlling networking.
# Scheduler 子包
%package scheduler
Summary: OpenStack Nova VM distribution service
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
%description scheduler
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 service for scheduling where
to run Virtual Machines in the cloud.
# Cert 子包
%package cert
Summary: OpenStack Nova certificate management service
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
%description cert
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 service for managing certificates.
# API 子包
%package api
Summary: OpenStack Nova API services
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
%description api
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 programmatic access.
# Conductor 子包
%package conductor
Summary: OpenStack Nova Conductor services
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
%description conductor
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 database access for
the compute service
# Objectstore 子包
%package objectstore
Summary: OpenStack Nova simple object store service
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
%description objectstore
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 service providing a simple object store.
# Console 子包
%package console
Summary: OpenStack Nova console access services
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
Requires: python-websockify
%description console
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
console access services to Virtual Machines.
# Cells 子包
%package cells
Summary: OpenStack Nova Cells services
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
%description cells
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 Cells service providing additional
scaling and (geographic) distribution for compute services.
# Novncproxy 子包
%package novncproxy
Summary: OpenStack Nova noVNC proxy service
Group: Applications/System
Requires: %{name}-common = %{version}-%{release}
Requires: novnc
Requires: python-websockify
%description novncproxy
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 noVNC Proxy service that can proxy
VNC traffic over browser websockets connections.
# python-nova 子包
%package -n python-nova
Summary: Nova Python libraries
Group: Applications/System
Requires: openssl
Requires: openssh
Requires: MySQL-python
Requires: python-amqplib >= 0.6.1
Requires: python-anyjson
Requires: python-babel
Requires: python-boto >= 2.4.0
Requires: python-cheetah
Requires: python-eventlet >= 0.13.0
Requires: python-glanceclient
Requires: python-greenlet >= 0.3.2
Requires: python-iso8601
Requires: python-jinja2
Requires: python-jsonschema >= 1.3.0
Requires: python-kombu
Requires: python-ldap
Requires: python-lxml >= 2.3
Requires: python-memcached
Requires: python-migrate
Requires: python-netaddr
Requires: python-neutronclient
Requires: python-novaclient
Requires: python-oslo-config >= 1.2.0
Requires: python-paramiko
Requires: python-paste-deploy >= 1.5
Requires: python-pyasn1
Requires: python-qpid
Requires: python-routes >= 1.12.3
Requires: python-six >= 1.4.1
Requires: python-sqlalchemy >= 0.7.8
Requires: python-stevedore
Requires: python-suds >= 0.4
Requires: python-webob >= 1.2
Requires: sudo
#Requires: python-oslo-messaging
%description -n python-nova
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.
This package contains the nova Python library.
# doc 子包
%if 0%{?with_doc}
%package doc
Summary: Documentation for OpenStack Compute
Group: Documentation
BuildRequires: graphviz
BuildRequires: python-boto
BuildRequires: python-eventlet
BuildRequires: python-iso8601
BuildRequires: python-migrate
%description doc
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.
This package contains documentation files for nova.
%endif
# 部分描述了解压源码包的方法
%prep
%setup -q -n nova-%{version}
# 将下列 patch 打入源码
%patch0001 -p1
%patch0002 -p1
#%patch0003 -p1
#%patch0004 -p1
# Apply EPEL patch
%patch100 -p1
# 忽略特殊文件
find . \( -name .gitignore -o -name .placeholder \) -delete
find nova -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +
sed -i '/setuptools_git/d' setup.py
sed -i s/REDHATNOVAVERSION/%{version}/ nova/version.py
sed -i s/REDHATNOVARELEASE/%{release}/ nova/version.py
# Remove the requirements file so that pbr hooks don't add it
# to distutils requiers_dist config
rm -rf {test-,}requirements.txt tools/{pip,test}-requires
# 对解压到 %_builddir 下的源码进行编译的阶段
%build
%{__python} setup.py build
# Move authtoken configuration out of paste.ini
#openstack-config --del etc/nova/api-paste.ini filter:authtoken admin_tenant_name
#openstack-config --del etc/nova/api-paste.ini filter:authtoken admin_user
#openstack-config --del etc/nova/api-paste.ini filter:authtoken admin_password
#openstack-config --del etc/nova/api-paste.ini filter:authtoken auth_host
#openstack-config --del etc/nova/api-paste.ini filter:authtoken auth_port
#openstack-config --del etc/nova/api-paste.ini filter:authtoken auth_protocol
#openstack-config --del etc/nova/api-paste.ini filter:authtoken signing_dir
#openstack-config --del etc/nova/api-paste.ini filter:authtoken auth_version
# 编辑配置文件内容
echo '
#
# Options to be passed to keystoneclient.auth_token middleware
# NOTE: These options are not defined in nova but in keystoneclient
#
[keystone_authtoken]
# the name of the admin tenant (string value)
#admin_tenant_name=
# the keystone admin username (string value)
#admin_user=
# the keystone admin password (string value)
#admin_password=
# the keystone host (string value)
#auth_host=
# the keystone port (integer value)
#auth_port=
# protocol to be used for auth requests http/https (string value)
#auth_protocol=
# Workaround for https://bugs.launchpad.net/nova/+bug/1154809
#auth_version=
# signing_dir is configurable, but the default behavior of the authtoken
# middleware should be sufficient. It will create a temporary directory
# in the home directory for the user the nova process is running as.
#signing_dir=/var/lib/nova/keystone-signing
' >> etc/nova/nova.conf.sample
# Programmatically update defaults in sample config
# which is installed at /etc/nova/nova.conf
# TODO: Make this more robust
# Note it only edits the first occurance, so assumes a section ordering in sample
# and also doesn't support multi-valued variables like dhcpbridge_flagfile.
while read name eq value; do
test "$name" && test "$value" || continue
sed -i "0,/^# *$name=/{s!^# *$name=.*!#$name=$value!}" etc/nova/nova.conf.sample
done < %{SOURCE1}
# 此阶段包含安装阶段需要执行的命令,即从 %{_builddir} 复制相关文件到 %{buildroot} 目录(通常表示从 ~/rpmbuild/BUILD 复制到 ~/rpmbuild/BUILDROOT/XXX) 目录,并根据需要在 %{buildroot} 中创建必要目录
%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
# docs generation requires everything to be installed first
export PYTHONPATH="$( pwd ):$PYTHONPATH"
pushd doc
%if 0%{?with_doc}
SPHINX_DEBUG=1 sphinx-1.0-build -b html source build/html
# Fix hidden-file-or-dir warnings
rm -fr build/html/.doctrees build/html/.buildinfo
%endif
# Create dir link to avoid a sphinx-build exception
mkdir -p build/man/.doctrees/
ln -s . build/man/.doctrees/man
SPHINX_DEBUG=1 sphinx-1.0-build -b man -c source source/man build/man
mkdir -p %{buildroot}%{_mandir}/man1
install -p -D -m 644 build/man/*.1 %{buildroot}%{_mandir}/man1/
popd
# Setup directories
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/buckets
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/images
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/instances
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/keys
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/networks
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/tmp
install -d -m 755 %{buildroot}%{_localstatedir}/log/nova
# Setup ghost CA cert
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/CA
install -p -m 755 nova/CA/*.sh %{buildroot}%{_sharedstatedir}/nova/CA
install -p -m 644 nova/CA/openssl.cnf.tmpl %{buildroot}%{_sharedstatedir}/nova/CA
install -d -m 755 %{buildroot}%{_sharedstatedir}/nova/CA/{certs,crl,newcerts,projects,reqs}
touch %{buildroot}%{_sharedstatedir}/nova/CA/{cacert.pem,crl.pem,index.txt,openssl.cnf,serial}
install -d -m 750 %{buildroot}%{_sharedstatedir}/nova/CA/private
touch %{buildroot}%{_sharedstatedir}/nova/CA/private/cakey.pem
# Install config files
install -d -m 755 %{buildroot}%{_sysconfdir}/nova
install -p -D -m 640 %{SOURCE1} %{buildroot}%{_datadir}/nova/nova-dist.conf
install -p -D -m 640 etc/nova/nova.conf.sample %{buildroot}%{_sysconfdir}/nova/nova.conf
install -p -D -m 640 etc/nova/rootwrap.conf %{buildroot}%{_sysconfdir}/nova/rootwrap.conf
install -p -D -m 640 etc/nova/api-paste.ini %{buildroot}%{_sysconfdir}/nova/api-paste.ini
install -p -D -m 640 etc/nova/policy.json %{buildroot}%{_sysconfdir}/nova/policy.json
# Install version info file
cat > %{buildroot}%{_sysconfdir}/nova/release </dev/null || groupadd -r nova --gid 162
if ! getent passwd nova >/dev/null; then
useradd -u 162 -r -g nova -G nova -d %{_sharedstatedir}/nova -s /bin/false -c "OpenStack Nova Daemons" nova
fi
exit 0
# 安装 compute 子包之前执行
%pre compute
usermod -a -G qemu nova
exit 0
# 安装 compute 子包之后执行
%post compute
/sbin/chkconfig --add %{name}-compute
# 安装 network 子包之后执行
%post network
/sbin/chkconfig --add %{name}-network
# 安装 conductor 子包之后执行
%post conductor
/sbin/chkconfig --add %{name}-conductor
# 安装 scheduler 子包之后执行
%post scheduler
/sbin/chkconfig --add %{name}-scheduler
# 安装 cert 子包之后执行
%post cert
/sbin/chkconfig --add %{name}-cert
# 安装 api 子包之后执行
%post api
for svc in api metadata-api; do
/sbin/chkconfig --add %{name}-$svc
done
# 安装 objectstore 子包之后执行
%post objectstore
/sbin/chkconfig --add %{name}-objectstore
%post console
for svc in console consoleauth xvpvncproxy; do
/sbin/chkconfig --add %{name}-$svc
done
# 安装 cells 子包之后执行
%post cells
/sbin/chkconfig --add %{name}-cells
# 卸载 compute 子包之前执行
%preun compute
if [ $1 -eq 0 ] ; then
for svc in compute; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 network 子包之前执行
%preun network
if [ $1 -eq 0 ] ; then
for svc in network; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 scheduler 子包之前执行
%preun scheduler
if [ $1 -eq 0 ] ; then
for svc in scheduler; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 cert 子包之前执行
%preun cert
if [ $1 -eq 0 ] ; then
for svc in cert; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 api 子包之前执行
%preun api
if [ $1 -eq 0 ] ; then
for svc in api metadata-api; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 objectstore 子包之前执行
%preun objectstore
if [ $1 -eq 0 ] ; then
for svc in objectstore; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 conductor 子包之前执行
%preun conductor
if [ $1 -eq 0 ] ; then
for svc in conductor; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 console 子包之前执行
%preun console
if [ $1 -eq 0 ] ; then
for svc in console consoleauth xvpvncproxy; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 cells 子包之前执行
%preun cells
if [ $1 -eq 0 ] ; then
for svc in cells; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 novncproxy 子包之前执行
%preun novncproxy
if [ $1 -eq 0 ] ; then
for svc in novncproxy; do
/sbin/service %{name}-${svc} stop >/dev/null 2>&1
/sbin/chkconfig --del %{name}-${svc}
done
fi
# 卸载 compute 子包之后执行
%postun compute
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in compute; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 network 子包之后执行
%postun network
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in network; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 scheduler 子包之后执行
%postun scheduler
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in scheduler; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 cert 子包之后执行
%postun cert
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in cert; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 api 子包之后执行
%postun api
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in api metadata-api; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 objectstore 子包之后执行
%postun objectstore
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in objectstore; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 conductor 子包之后执行
%postun conductor
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in conductor; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 console 子包之后执行
%postun console
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in console consoleauth xvpvncproxy; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 cells 子包之后执行
%postun cells
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in cells; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 卸载 novncproxy 子包之后执行
%postun novncproxy
if [ $1 -ge 1 ] ; then
# Package upgrade, not uninstall
for svc in novncproxy; do
/sbin/service %{name}-${svc} condrestart > /dev/null 2>&1 || :
done
fi
# 那些需要安装在系统中的文件,我们需要在这里声明它们
%files
%doc LICENSE
%{_bindir}/nova-all
%files common
%doc LICENSE
%dir %{_sysconfdir}/nova
%{_sysconfdir}/nova/release
%attr(-, root, nova) %{_datadir}/nova/nova-dist.conf
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/nova.conf
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/api-paste.ini
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/rootwrap.conf
%config(noreplace) %attr(-, root, nova) %{_sysconfdir}/nova/policy.json
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sudoers.d/nova
%config(noreplace) %{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nova.pkla
%dir %attr(0755, nova, root) %{_localstatedir}/log/nova
%dir %attr(0755, nova, root) %{_localstatedir}/run/nova
%{_bindir}/nova-clear-rabbit-queues
# TODO. zmq-receiver may need its own service?
%{_bindir}/nova-rpc-zmq-receiver
%{_bindir}/nova-manage
%{_bindir}/nova-rootwrap
%exclude %{_datarootdir}/nova/*.upstart
%{_datarootdir}/nova
%{_mandir}/man1/nova*.1.gz
%defattr(-, nova, nova, -)
%dir %{_sharedstatedir}/nova
%dir %{_sharedstatedir}/nova/buckets
%dir %{_sharedstatedir}/nova/images
%dir %{_sharedstatedir}/nova/instances
%dir %{_sharedstatedir}/nova/keys
%dir %{_sharedstatedir}/nova/networks
%dir %{_sharedstatedir}/nova/tmp
%files compute
%{_bindir}/nova-compute
%{_bindir}/nova-baremetal-deploy-helper
%{_bindir}/nova-baremetal-manage
%{_initrddir}/%{name}-compute
%{_datarootdir}/nova/%{name}-compute.upstart
%{_datarootdir}/nova/rootwrap/compute.filters
%files network
%{_bindir}/nova-network
%{_bindir}/nova-dhcpbridge
%{_initrddir}/%{name}-network
%{_datarootdir}/nova/%{name}-network.upstart
%{_datarootdir}/nova/rootwrap/network.filters
%files scheduler
%{_bindir}/nova-scheduler
%{_initrddir}/%{name}-scheduler
%{_datarootdir}/nova/%{name}-scheduler.upstart
%files cert
%{_bindir}/nova-cert
%{_initrddir}/%{name}-cert
%{_datarootdir}/nova/%{name}-cert.upstart
%defattr(-, nova, nova, -)
%dir %{_sharedstatedir}/nova/CA/
%dir %{_sharedstatedir}/nova/CA/certs
%dir %{_sharedstatedir}/nova/CA/crl
%dir %{_sharedstatedir}/nova/CA/newcerts
%dir %{_sharedstatedir}/nova/CA/projects
%dir %{_sharedstatedir}/nova/CA/reqs
%{_sharedstatedir}/nova/CA/*.sh
%{_sharedstatedir}/nova/CA/openssl.cnf.tmpl
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/cacert.pem
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/crl.pem
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/index.txt
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/openssl.cnf
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/serial
%dir %attr(0750, -, -) %{_sharedstatedir}/nova/CA/private
%ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sharedstatedir}/nova/CA/private/cakey.pem
%files api
%{_bindir}/nova-api*
%{_initrddir}/%{name}-*api
%{_datarootdir}/nova/%{name}-*api.upstart
%{_datarootdir}/nova/rootwrap/api-metadata.filters
%files conductor
%{_bindir}/nova-conductor
%{_initrddir}/%{name}-conductor
%{_datarootdir}/nova/%{name}-conductor.upstart
%files objectstore
%{_bindir}/nova-objectstore
%{_initrddir}/%{name}-objectstore
%{_datarootdir}/nova/%{name}-objectstore.upstart
%files console
%{_bindir}/nova-console*
%{_bindir}/nova-xvpvncproxy
%{_bindir}/nova-spicehtml5proxy
%{_initrddir}/%{name}-console*
%{_datarootdir}/nova/%{name}-console*.upstart
%{_initrddir}/%{name}-xvpvncproxy
%{_datarootdir}/nova/%{name}-xvpvncproxy.upstart
%{_initrddir}/%{name}-spicehtml5proxy*
%{_datarootdir}/nova/%{name}-spicehtml5proxy.upstart
%files cells
%{_bindir}/nova-cells
%{_initrddir}/%{name}-cells
%{_datarootdir}/nova/%{name}-cells.upstart
%files novncproxy
%{_bindir}/nova-novncproxy
%{_initrddir}/%{name}-novncproxy
%{_datarootdir}/nova/%{name}-novncproxy.upstart
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-novncproxy
%files -n python-nova
%defattr(-,root,root,-)
%doc LICENSE
%{python_sitelib}/nova
%{python_sitelib}/nova-%{version}*.egg-info
%if 0%{?with_doc}
%files doc
%doc LICENSE doc/build/html
%endif
# 更新日志
%changelog
* Wed May 14 2014 Eric Fengren - 2013.2.2
- Rebase on downstream packages.
* Wed Sep 11 2013 Dan Prince - 2013.2-0.19.b3
- Drop b3 from package name.
- Comment out patches.
- Drop build dependency on python-d2to1.
- Add compute dependency on genisoimage (for Cloud Drive support)
- Add compute dependency on sysfsutils (for volume support)
- Add dependency on python-oslo-messaging (in preparation for I)
- Add build dep on python-oslo-sphinx (patch removed).
* Mon Sep 09 2013 Nikola Đipanov - 2013.2-0.19.b3
- Fix compute_node_get_all() for Nova Baremetal
* Mon Sep 09 2013 Pádraig Brady - 2013.2-0.18.b3
- Avoid deprecated options in distribution config files
* Mon Sep 09 2013 Dan Prince - 2013.2-0.17.b3
- Add dependency on python-babel
- Add dependency on python-jinja2
* Mon Sep 09 2013 Nikola Đipanov - 2013.2-0.15.b3
- Update to Havana milestone 3
* Tue Aug 27 2013 Nikola Đipanov - 2013.2-0.14.b2
- Fix the tarball download link (SOURCE0)
* Tue Aug 27 2013 Xavier Queralt - 2013.2-0.13.b2
- Set auth_version=v2.0 in nova-dist.conf to avoid http://pad.lv/1154809
* Tue Aug 27 2013 Xavier Queralt - 2013.2-0.12.b2
- Remove Folsom release deprecated config options from nova-dist.conf
* Tue Aug 27 2013 Xavier Queralt - 2013.2-0.11.b2
- Add the second dhcpbridge-flagfile to nova-dist.conf
* Tue Aug 27 2013 Xavier Queralt - 2013.2-0.10.b2
- Change the default config to poll for DB connection indefinitely
* Wed Aug 07 2013 Xavier Queralt - 2013.2-0.9.b2
- Create a nova-dist.conf file with default values under /usr/share
* Sun Jul 22 2013 Pádraig Brady - 2013.2-0.8.b2
- Update to Havana milestone 2
* Wed Jul 17 2013 Pádraig Brady - 2013.2-0.6.b1
- Upgrade /etc/sysconfig/openstack-nova-novncproxy correctly
* Mon Jun 24 2013 Nikola Đipanov - 2013.2-0.5.h1
- Remove requirements file to be more flexible with dep versions
* Mon Jun 24 2013 Nikola Đipanov - 2013.2-0.4.h1
- Add the novncproxy subpackage (moved from the novnc package)
* Fri Jun 14 2013 Nikola Đipanov - 2013.2-0.3.h1
- Fix an issue with the version string
* Mon Jun 10 2013 Nikola Đipanov - 2013.2-0.2.h1
- Add a runtime dep on python-six
- Fix verision reporting
* Fri Jun 07 2013 Nikola Đipanov - 2013.2-0.1.h1
- Update to Havana milestone 1
* Fri May 31 2013 Pádraig Brady - 2013.1.1-3
- Depend on dnsmasq-utils to give direct control over dnsmasq leases
* Fri May 17 2013 Nikola Đipanov - 2013.1.1-2
- Check QCOW2 image size during root disk creation (CVE-2013-2096)
* Mon May 13 2013 Pádraig Brady - 2013.1.1-1
- Update to stable/grizzly 2013.1.1 release
* Mon May 13 2013 Pádraig Brady - 2013.1-4
- Make openstack-nova metapackage depend on openstack-nova-cells
- Add a dependency on python-keystonclient (for auth middleware)
* Fri May 10 2013 Pádraig Brady - 2013.1-3
- Make openstack-nova-network depend on ebtables #961567
* Thu Apr 11 2013 Pádraig Brady - 2013.1-2
- Fix nova network dnsmasq invocation failure #951144
* Mon Apr 08 2013 Nikola Đipanov - 2013.1-1
- Update to Grizzly final
* Tue Apr 02 2013 Nikola Đipanov - 2013.1-0.12.rc2
- Update to Grizzly rc2
* Fri Mar 22 2013 Nikola Đipanov - 2013.1-0.11.rc1
- Update to Grizzly rc1
* Wed Mar 20 2013 Pádraig Brady - 2013.1-0.10.g3
- Remove /etc/tgt/conf.d/nova.conf which was invalid for grizzly
* Tue Mar 12 2013 Pádraig Brady - 2013.1-0.9.g3
- Allow openstack-nova-doc to be installed in isolation
* Tue Feb 26 2013 Nikola Đipanov - 2013.1-0.6.g3
- Add dep to python-pyasn1
* Mon Feb 25 2013 Nikola Đipanov - 2013.1-0.5.g3
- Update to Grizzly milestone 3
* Mon Jan 14 2013 Nikola Đipanov - 2013.1-0.4.g2
- Update to Grizzly milestone 2
- Add the version info file
- Add python-stevedore dependency
- Add the cells subpackage and init scripts
* Thu Dec 06 2012 Nikola Đipanov 2013.1-0.3.g1
- Update to Grizzly milestone 1
- Remove volume subpackage - removed from Grizzly
- Add the conductor subpackage - new service added in Grizzly
- Depend on python-libguestfs instead of libguestfs-mount
- Don't add the nova user to the group fuse
- Removes openstack-utils from requirements for nova-common
* Thu Dec 06 2012 Nikola Đipanov - 2012.2.1-3
- signing_dir renamed from incorrect signing_dirname in default nova.conf
* Tue Dec 04 2012 Nikola Đipanov - 2012.2.1-2
- Fix rpc_control_exchange regression
* Fri Nov 30 2012 Nikola Đipanov - 2012.2.1-1
- Update to folsom stable release 1
* Tue Oct 30 2012 Pádraig Brady - 2012.2-2
- Add support for python-migrate-0.6
* Thu Oct 12 2012 Pádraig Brady - 2012.2-1
- Update to folsom final
* Fri Oct 12 2012 Nikola Dipanov - 2012.1.3-1
- Restore libvirt block storage connections on reboot
- Fix libvirt volume attachment error logging
- Ensure instances with deleted floating IPs can be deleted
- Ensure can contact floating IP after instance snapshot
- Fix tenant usage time accounting
- Ensure correct disk definitions are used on volume attach/detach
- Improve concurrency of long running tasks
- Fix unmounting of LXC containers in the presence of symlinks
- Fix external lock corruption in the presence of SELinux
- Allow snapshotting images that are deleted in glance
- Ensure the correct fixed IP is deallocated when deleting VMs
* Fri Aug 10 2012 Pádraig Brady - 2012.1.1-15
- Fix package versions to ensure update dependencies are correct
- Fix CA cert permissions issue introduced in 2012.1.1-10
* Wed Aug 8 2012 Pádraig Brady
- 2012.1.1-13
- Log live migration errors
- Prohibit host file corruption through file injection (CVE-2012-3447)
* Mon Aug 6 2012 Pádraig Brady
- 2012.1.1-12
- Fix group installation issue introduced in 2012.1.1-10
* Sun Jul 30 2012 Pádraig Brady
- 2012.1.1-11
- Update from stable upstream including...
- Fix metadata file injection with xen
- Fix affinity filters when hints is None
- Fix marker behavior for flavors
- Handle local remote exceptions consistently
- Fix qcow2 size on libvirt live block migration
- Fix for API listing of os hosts
- Avoid lazy loading errors on instance_type
- Avoid casts in network manager to prevent races
- Conditionally allow queries for deleted flavours
- Fix wrong regex in cleanup_file_locks
- Add net rules to VMs on compute service start
- Tolerate parsing null connection info in BDM
- Support EC2 CreateImage API for boot from volume
- EC2 DescribeImages reports correct rootDeviceType
- Reject EC2 CreateImage for instance store
- Fix EC2 CreateImage no_reboot logic
- Convert remaining network API casts to calls
- Move where the fixed ip deallocation happens
- Fix the qpid_heartbeat option so that it's effective
* Fri Jul 27 2012 Pádraig Brady
- 2012.1.1-10
- Split out into more sub packages
* Fri Jul 20 2012 Pádraig Brady
- 2012.1.1-4
- Enable auto cleanup of old cached instance images
- Fix ram_allocation_ratio based over subscription
- Expose over quota exceptions via native API
- Return 413 status on over quota in the native API
- Fix call to network_get_all_by_uuids
- Fix libvirt get_memory_mb_total with xen
- Use compute_api.get_all in affinity filters (CVE-2012-3371)
- Use default qemu img cluster size in libvirt connect
- Ensure libguestfs has completed before proceeding
* Thu Jul 5 2012 Pádraig Brady
- 2012.1.1-3
- Distinguish volume overlimit exceptions
- Prohibit host file corruption through file injection (CVE-2012-3360, CVE-2012-3361)
* Wed Jun 27 2012 Pádraig Brady
- 2012.1.1-2
- Update to latest essex stable branch
- Support injecting new .ssh/authorized_keys files to SELinux enabled guests
* Fri Jun 22 2012 Pádraig Brady
- 2012.1.1-1
- Update to essex stable release 2012.1.1
- Improve performance and stability of file injection
- add upstart jobs, alternative to sysv initscripts
* Fri Jun 15 2012 Pádraig Brady
- 2012.1-12
- update performance and stability fixes from essex stable
* Mon Jun 11 2012 Pádraig Brady
- 2012.1-11
- fix an exception caused by the fix for CVE-2012-2654
- fix the encoding of the dns_domains table (requires a db sync)
- fix a crash due to a nova services startup race (#825051)
* Wed Jun 08 2012 Pádraig Brady
- 2012.1-10
- Enable libguestfs image inspection
* Wed Jun 06 2012 Pádraig Brady
- 2012.1-9
- Sync up with Essex stable branch, including...
- Fix for protocol case handling (#829441, CVE-2012-2654)
* Wed May 16 2012 Alan Pevec - 2012.1-8
- Remove m2crypto and other dependencies no loner needed by Essex
* Wed May 16 2012 Pádraig Brady - 2012.1-7
- Depend on tunctl which can be used when `ip tuntap` is unavailable
- Sync up with Essex stable branch
- Handle updated qemu-img info output
- Replace openstack-nova-db-setup with openstack-db
* Wed May 09 2012 Alan Pevec - 2012.1-6
- Remove the socat dependency no longer needed by Essex
* Tue May 01 2012 Pádraig Brady - 2012.1-5
- Start the services later in the boot sequence
* Wed Apr 27 2012 Pádraig Brady
- 2012.1-4
- Fix install issues with new Essex init scripts
* Wed Apr 25 2012 Pádraig Brady
- 2012.1-3
- Use parallel installed versions of python-routes and python-paste-deploy
* Thu Apr 19 2012 Pádraig Brady
- 2012.1-2
- Sync up with Essex stable branch
- Support more flexible guest image file injection
- Enforce quota on security group rules (#814275, CVE-2012-2101)
- Provide startup scripts for the Essex VNC services
- Provide a startup script for the separated metadata api service
* Fri Apr 13 2012 Pádraig Brady
- 2012.1-1
- Update to Essex release
* Mon Apr 01 2012 Pádraig Brady
- 2012.1-0.1.rc1
- Update to Essex release candidate 1
* Thu Mar 29 2012 Pádraig Brady
- 2011.3.1-8
- Remove the dependency on the not yet available dnsmasq-utils
* Thu Mar 29 2012 Russell Bryant - 2011.3.1-7
- CVE-2012-1585 - Long server names grow nova-api log files significantly
- Resolves: rhbz#808148
* Mon Mar 6 2012 Pádraig Brady - 2011.3.1-5
- Require bridge-utils
* Mon Feb 13 2012 Pádraig Brady
- 2011.3.1-4
- Support --force_dhcp_release (#788485)
* Fri Jan 27 2012 Pádraig Brady
- 2011.3.1-3
- Suppress erroneous output to stdout on package install (#785115)
* Mon Jan 23 2012 Pádraig Brady
- 2011.3.1-2
- Fix a REST API v1.0 bug causing a regression with deltacloud
* Fri Jan 20 2012 Pádraig Brady
- 2011.3.1-1
- Update to 2011.3.1 release
- Allow empty mysql root password in mysql setup script
- Enable mysqld at boot in mysql setup script
* Wed Jan 18 2012 Mark McLoughlin - 2011.3.1-0.4.10818%{?dist}
- Update to latest 2011.3.1 release candidate
- Re-add nova-{clear-rabbit-queues,instance-usage-audit}
* Tue Jan 17 2012 Mark McLoughlin - 2011.3.1-0.3.10814
- nova-stack isn't missing after all
* Tue Jan 17 2012 Mark McLoughlin - 2011.3.1-0.2.10814
- nova-{stack,clear-rabbit-queues,instance-usage-audit} temporarily removed because of lp#917676
* Tue Jan 17 2012 Mark McLoughlin - 2011.3.1-0.1.10814
- Update to 2011.3.1 release candidate
- Only adds 4 patches from upstream which we didn't already have
* Wed Jan 11 2012 Pádraig Brady - 2011.3-19
- Fix libguestfs support for specified partitions
- Fix tenant bypass by authenticated users using API (#772202, CVE-2012-0030)
* Fri Jan 6 2012 Mark McLoughlin - 2011.3-18
- Fix up recent patches which don't apply
* Fri Jan 6 2012 Mark McLoughlin - 2011.3-17
- Backport tgtadm off-by-one fix from upstream (#752709)
* Fri Jan 6 2012 Mark McLoughlin - 2011.3-16
- Rebase to latest upstream stable/diablo, pulling in ~50 patches
* Fri Jan 6 2012 Mark McLoughlin - 2011.3-15
- Move recent patches into git (no functional changes)
* Fri Dec 30 2011 Pádraig Brady - 2011.3-14
- Don't require the fuse group (#770927)
- Require the fuse package (to avoid #767852)
* Tue Dec 14 2011 Pádraig Brady
- 2011.3-13
- Sanitize EC2 manifests and image tarballs (#767236, CVE 2011-4596)
- update libguestfs support
* Tue Dec 06 2011 Russell Bryant - 2011.3-11
- Add --yes, --rootpw, and --novapw options to openstack-nova-db-setup.
* Wed Nov 30 2011 Pádraig Brady - 2011.3-10
- Use updated parallel install versions of epel packages
- Add libguestfs support
* Tue Nov 29 2011 Pádraig Brady
- 2011.3-9
- Update the libvirt dependency from 0.8.2 to 0.8.7
- Ensure we don't access the net when building docs
* Tue Nov 29 2011 Russell Bryant - 2011.3-8
- Change default database to mysql. (#735012)
* Mon Nov 14 2011 Mark McLoughlin - 2011.3-8
- Add ~20 significant fixes from upstream stable branch
* Wed Oct 26 2011 Mark McLoughlin - 2011.3-7
- Fix password leak in EC2 API (#749385, CVE 2011-4076)
* Mon Oct 24 2011 Mark McLoughlin - 2011.3-5
- Fix block migration (#741690)
* Fri Oct 21 2011 David Busby 2011.3-5
- Changed requirement from python-sphinx, to python-sphinx10
- Switch back to SysV init for el6
* Mon Oct 17 2011 Bob Kukura - 2011.3-4
- Add dependency on python-amqplib (#746685)
* Wed Sep 28 2011 Mark McLoughlin - 2011.3-3
- Fix lazy load exception with security groups (#741307)
- Fix issue with nova-network deleting the default route (#741686)
- Fix errors caused by MySQL connection pooling (#741312)
* Mon Sep 26 2011 Mark McLoughlin - 2011.3-2
- Manage the package's patches in git; no functional changes.
* Thu Sep 22 2011 Mark McLoughlin - 2011.3-1
- Update to Diablo final.
- Drop some upstreamed patches.
- Update the metadata-accept patch to what's proposed for essex.
- Switch rpc impl from carrot to kombu.
* Mon Sep 19 2011 Mark McLoughlin - 2011.3-0.10.d4
- Use tgtadm instead of ietadm (#737046)
* Wed Sep 14 2011 Mark McLoughlin - 2011.3-0.9.d4
- Remove python-libguestfs dependency (#738187)
* Mon Sep 5 2011 Mark McLoughlin - 2011.3-0.8.d4
- Add iptables rule to allow EC2 metadata requests (#734347)
* Sat Sep 3 2011 Mark McLoughlin - 2011.3-0.7.d4
- Add iptables rules to allow requests to dnsmasq (#734347)
* Wed Aug 31 2011 Angus Salkeld - 2011.3-0.6.d4
- Add the one man page provided by nova.
- Start services with --flagfile rather than --flag-file (#735070)
* Tue Aug 30 2011 Angus Salkeld - 2011.3-0.5.d4
- Switch from SysV init scripts to systemd units (#734345)
* Mon Aug 29 2011 Mark McLoughlin - 2011.3-0.4.d4
- Don't generate root CA during %%post (#707199)
- The nobody group shouldn't own files in /var/lib/nova
- Add workaround for sphinx-build segfault
* Fri Aug 26 2011 Mark McLoughlin - 2011.3-0.3.d4
- Update to diablo-4 milestone
- Use statically assigned uid:gid 162:162 (#732442)
- Collapse all sub-packages into openstack-nova; w/o upgrade path
- Reduce use of macros
- Rename stack to nova-stack
- Fix openssl.cnf.tmpl script-without-shebang rpmlint warning
- Really remove ajaxterm
- Mark polkit file as %%config
* Mon Aug 22 2011 Mark McLoughlin - 2011.3-0.2.1449bzr
- Remove dependency on python-novaclient
* Wed Aug 17 2011 Mark McLoughlin - 2011.3-0.1.1449bzr
- Update to latest upstream.
- nova-import-canonical-imagestore has been removed
- nova-clear-rabbit-queues was added
* Tue Aug 9 2011 Mark McLoughlin - 2011.3-0.2.1409bzr
- Update to newer upstream
- nova-instancemonitor has been removed
- nova-instance-usage-audit added
* Tue Aug 9 2011 Mark McLoughlin - 2011.3-0.1.bzr1130
- More cleanups
- Change release tag to reflect pre-release status
* Wed Jun 29 2011 Matt Domsch - 2011.3-1087.1
- Initial package from Alexander Sakhnov
with cleanups by Matt Domsch
RPM 升级/回退
升级 nova-compute 的 python-nova 包(/usr/lib/python2.7/site-packages/nova)。
Step 1. 从 17.0.7 升级到 17.0.9,更新了 nova/compute/resource_tracker.py 模块
[root@nova-compute ~]# rpm -qa | grep python-nova
python-nova-17.0.7-1.el7.noarch
[root@nova-compute ~]# rpm -Uvh python-nova-17.0.9-1.el7.centos.x86_64.rpm --force --nodeps
Preparing... ################################# [100%]
Updating / installing...
1:python-nova-17.0.9-1.el7.centos ################################# [ 50%]
Cleaning up / removing...
2:python-nova-1:17.0.7-1.el7 ################################# [100%]
[root@nova-compute ~]# rpm -qa | grep python-nova
python-nova-17.0.9-1.el7.centos.x86_64
Step 2. 从 17.0.9 升级到 17.1.0,更新了 nova/compute/api.py 模块
[root@nova-compute ~]# rpm -Uvh python-nova-17.1.0-1.el7.centos.x86_64.rpm --force --nodeps
Preparing... ################################# [100%]
Updating / installing...
1:python-nova-17.1.0-1.el7.centos ################################# [ 50%]
Cleaning up / removing...
2:python-nova-17.0.9-1.el7.centos ################################# [100%]
[root@nova-compute ~]# rpm -qa | grep python-nova
python-nova-17.1.0-1.el7.centos.x86_64
Step 3. 从 17.1.0 回退到 17.0.7
[root@nova-compute ~]# rpm -Uvh --oldpackage /root/packages/python-nova-17.0.7-1.el7.noarch.rpm
Preparing... ################################# [100%]
Updating / installing...
1:python-nova-1:17.0.7-1.el7 ################################# [ 50%]
Cleaning up / removing...
2:python-nova-17.1.0-1.el7.centos ################################# [100%]
[root@nova-compute ~]# rpm -qa | grep python-nova
python-nova-17.0.7-1.el7.noarch