[heat/f18] Rebase to v7
Zane Bitter
zaneb at fedoraproject.org
Fri Oct 26 18:52:36 UTC 2012
commit e5efa97b73604986a5ab966f22f73f2b1dd1db5d
Author: Zane Bitter <zbitter at redhat.com>
Date: Fri Oct 26 13:26:57 2012 +0200
Rebase to v7
.gitignore | 1 +
...m-specific-heat-keystone-setup-binary-to-.patch | 92 --------------------
heat-api.service | 12 +++
heat-fix-glanceclient-deprecation-warning.patch | 53 -----------
heat.spec | 29 ++++--
sources | 3 +-
switch-to-using-m2crypto.patch | 17 ++--
7 files changed, 40 insertions(+), 167 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index 577463f..36e3382 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/heat-4.tar.gz
/heat-5.tar.gz
/heat-6.tar.gz
+/heat-7.tar.gz
diff --git a/heat-api.service b/heat-api.service
new file mode 100644
index 0000000..a08a3e2
--- /dev/null
+++ b/heat-api.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=The Heat API provides an OpenStack-native ReST API to the Heat Engine for starting AWS CloudFormation templates on OpenStack.
+After=syslog.target network.target heat-engine.service
+Requires=syslog.target network.target heat-engine.service
+
+[Service]
+ExecStart=/usr/bin/heat-api
+Restart=on-failure
+User=openstack-heat
+
+[Install]
+WantedBy=multi-user.target
diff --git a/heat.spec b/heat.spec
index 7b023d8..c92a0b9 100644
--- a/heat.spec
+++ b/heat.spec
@@ -1,20 +1,19 @@
Name: heat
Summary: This software provides AWS CloudFormation functionality for OpenStack Essex
-Version: 6
-Release: 6%{?dist}
+Version: 7
+Release: 1%{?dist}
License: ASL 2.0
Group: System Environment/Base
URL: http://heat-api.org
Source0: https://github.com/downloads/heat-api/heat/heat-%{version}.tar.gz
Source1: heat.logrotate
-Source2: heat-api-cfn.service
-Source3: heat-engine.service
-Source4: heat-metadata.service
-Source5: heat-api-cloudwatch.service
+Source2: heat-api.service
+Source3: heat-api-cfn.service
+Source4: heat-engine.service
+Source5: heat-metadata.service
+Source6: heat-api-cloudwatch.service
Patch0: switch-to-using-m2crypto.patch
-Patch1: heat-fix-glanceclient-deprecation-warning.patch
-Patch2: Add-a-Folsom-specific-heat-keystone-setup-binary-to-.patch
BuildArch: noarch
BuildRequires: python2-devel
@@ -48,8 +47,6 @@ Requires(pre): shadow-utils
%prep
%setup -q
%patch0 -p1
-%patch1 -p1
-%patch2 -p1
%build
%{__python} setup.py build
@@ -63,6 +60,7 @@ mkdir -p %{buildroot}/var/log/heat/
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/heat
# install systemd unit files
+install -p -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/heat-api.service
install -p -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/heat-api-cfn.service
install -p -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/heat-engine.service
install -p -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/heat-metadata.service
@@ -74,6 +72,8 @@ mkdir -p %{buildroot}/%{_mandir}/man1/
cp -v docs/man/man1/* %{buildroot}/%{_mandir}/man1/
rm -rf %{buildroot}/var/lib/heat/.dummy
+install -p -D -m 644 %{_builddir}/%{name}-%{version}/etc/heat/heat-api.conf %{buildroot}/%{_sysconfdir}/heat
+install -p -D -m 644 %{_builddir}/%{name}-%{version}/etc/heat/heat-api-paste.ini %{buildroot}/%{_sysconfdir}/heat
install -p -D -m 644 %{_builddir}/%{name}-%{version}/etc/heat/heat-api-cfn.conf %{buildroot}/%{_sysconfdir}/heat
install -p -D -m 644 %{_builddir}/%{name}-%{version}/etc/heat/heat-api-cfn-paste.ini %{buildroot}/%{_sysconfdir}/heat
install -p -D -m 644 %{_builddir}/%{name}-%{version}/etc/heat/heat-api-cloudwatch.conf %{buildroot}/%{_sysconfdir}/heat
@@ -98,6 +98,8 @@ Heat provides AWS CloudFormation and CloudWatch functionality for OpenStack.
%dir %{_sysconfdir}/heat
%config(noreplace) %{_sysconfdir}/logrotate.d/heat
%config(noreplace) %{_sysconfdir}/bash_completion.d/heat
+%config(noreplace) %attr(-,root,openstack-heat) %{_sysconfdir}/heat/heat-api.conf
+%config(noreplace) %attr(-,root,openstack-heat) %{_sysconfdir}/heat/heat-api-paste.ini
%config(noreplace) %attr(-,root,openstack-heat) %{_sysconfdir}/heat/heat-api-cfn.conf
%config(noreplace) %attr(-,root,openstack-heat) %{_sysconfdir}/heat/heat-api-cfn-paste.ini
%config(noreplace) %attr(-,root,openstack-heat) %{_sysconfdir}/heat/heat-api-cloudwatch.conf
@@ -115,24 +117,31 @@ useradd -u 187 -r -g openstack-heat -d %{_localstatedir}/lib/heat -s /sbin/nolog
exit 0
%post
+%systemd_post heat-api.service
%systemd_post heat-api-cfn.service
%systemd_post heat-engine.service
%systemd_post heat-metadata.service
%systemd_post heat-api-cloudwatch.service
%preun
+%systemd_preun heat-api.service
%systemd_preun heat-api-cfn.service
%systemd_preun heat-engine.service
%systemd_preun heat-engine.service
%systemd_preun heat-api-cloudwatch.service
%postun
+%systemd_postun_with_restart heat-api.service
%systemd_postun_with_restart heat-api-cfn.service
%systemd_postun_with_restart heat-engine-cfn.service
%systemd_postun_with_restart heat-metadata.service
%systemd_postun_with_restart heat-api-cloudwatch.service
%changelog
+* Fri Oct 26 2012 Zane Bitter <zbitter at redhat.com> 7-1
+- rebase to v7
+- add heat-api daemon (OpenStack-native API)
+
* Wed Sep 26 2012 Steven Dake <sdake at redhat.com> 6-6
- Merge upstream commit 5208008db047d8cda231100db817c6f0e1c190a5
- Resolves: RHBZ#860105
diff --git a/sources b/sources
index 9dcb85f..422d448 100644
--- a/sources
+++ b/sources
@@ -1,2 +1 @@
-26223425612fb858141ee90eded9d793 heat-5.tar.gz
-25de983ccef24da45c02dbc1a829a9c5 heat-6.tar.gz
+85337c5b5c7e66561c8f1faf404310d6 heat-7.tar.gz
diff --git a/switch-to-using-m2crypto.patch b/switch-to-using-m2crypto.patch
index b83d61a..fa55d5e 100644
--- a/switch-to-using-m2crypto.patch
+++ b/switch-to-using-m2crypto.patch
@@ -1,4 +1,4 @@
-From 05ce67d3842b09943b21e7e72eff1849bc1b32b7 Mon Sep 17 00:00:00 2001
+From 38c97efe5c3e8e2d732f82dcf83cc74ea55dbe4e Mon Sep 17 00:00:00 2001
From: Ian Main <imain at redhat.com>
Date: Fri, 27 Jul 2012 08:43:10 -0700
Subject: [PATCH] Switch to using M2Crypto
@@ -9,12 +9,12 @@ and decryption of user authentication information.
Change-Id: Ib40492d4d40a92bf0167c249b15458c89af4716e
Signed-off-by: Ian Main <imain at redhat.com>
---
- heat/engine/auth.py | 22 ++++++++++++----------
- tools/pip-requires | 2 +-
+ heat/engine/auth.py | 22 ++++++++++++----------
+ tools/pip-requires | 2 +-
2 files changed, 13 insertions(+), 11 deletions(-)
diff --git a/heat/engine/auth.py b/heat/engine/auth.py
-index a4be7ef..5d16f84 100644
+index 1b1a11c..a90c6b7 100644
--- a/heat/engine/auth.py
+++ b/heat/engine/auth.py
@@ -24,8 +24,8 @@ from novaclient.exceptions import AuthorizationFailure
@@ -28,7 +28,7 @@ index a4be7ef..5d16f84 100644
from heat.openstack.common import cfg
from heat.openstack.common import importutils
-@@ -45,20 +45,22 @@ logger = logging.getLogger('heat.engine.auth')
+@@ -45,17 +45,19 @@ logger = logging.getLogger('heat.engine.auth')
def encrypt(auth_info):
if auth_info is None:
return None
@@ -56,11 +56,8 @@ index a4be7ef..5d16f84 100644
+ key=cfg.CONF.auth_encryption_key, iv=iv,
+ op=0) # 0 is decode
+ return cipher.update(auth[16:]) + cipher.final()
-
-
- def authenticate(con, service_type='orchestration', service_name='heat'):
diff --git a/tools/pip-requires b/tools/pip-requires
-index 1fcfdf3..4efd475 100644
+index 092419d..085567e 100644
--- a/tools/pip-requires
+++ b/tools/pip-requires
@@ -9,7 +9,7 @@
@@ -73,5 +70,5 @@ index 1fcfdf3..4efd475 100644
greenlet
httplib2
--
-1.7.10.4
+1.7.11.7
More information about the scm-commits
mailing list