Merge lp:~zulcss/heat/refresh-aug14 into lp:~ubuntu-server-dev/heat/havana

Proposed by Chuck Short
Status: Merged
Merged at revision: 19
Proposed branch: lp:~zulcss/heat/refresh-aug14
Merge into: lp:~ubuntu-server-dev/heat/havana
Diff against target: 181 lines (+12/-124)
6 files modified
debian/changelog (+11/-0)
debian/control (+1/-0)
debian/heat-common.install (+0/-3)
debian/heat-common.manpages (+0/-3)
debian/patches/fix-sqlalchemy-0.8.patch (+0/-116)
debian/patches/series (+0/-2)
To merge this branch: bzr merge lp:~zulcss/heat/refresh-aug14
Reviewer Review Type Date Requested Status
James Page Approve
Review via email: mp+180150@code.launchpad.net

Description of the change

- Drop sqlalchemy patch
- Add python-netaddr dependency
- Dropped heat-boto, heat-watch and heat-cfn.

To post a comment you must log in.
Revision history for this message
James Page (james-page) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2013-08-08 14:42:41 +0000
3+++ debian/changelog 2013-08-14 14:21:47 +0000
4@@ -1,3 +1,14 @@
5+heat (2013.2.a281.gc92aa02-0ubuntu1) UNRELEASED; urgency=low
6+
7+ * New upstream release.
8+ * debian/control: Add python-netaddr as build-dep.
9+ * debian/heat-common.install: Remove heat-boto and associated man-page
10+ * debian/heat-common.install: Remove heat-cfn and associated man-page
11+ * debian/heat-common.install: Remove heat-watch and associated man-page
12+ * debian/patches/fix-sqlalchemy-0.8.patch: Dropped
13+
14+ -- Chuck Short <zulcss@ubuntu.com> Wed, 14 Aug 2013 13:45:10 +0000
15+
16 heat (2013.2~b2.a186.g2b4b248-0ubuntu2) saucy; urgency=low
17
18 * d/rules: Limit test execution concurrency to 1 to avoid test failures
19
20=== modified file 'debian/control'
21--- debian/control 2013-08-08 13:58:16 +0000
22+++ debian/control 2013-08-14 14:21:47 +0000
23@@ -34,6 +34,7 @@
24 python-memcache,
25 python-migrate,
26 python-mox,
27+ python-netaddr,
28 python-neutronclient (>= 1:2.2.0),
29 python-nose,
30 python-nosexcover,
31
32=== modified file 'debian/heat-common.install'
33--- debian/heat-common.install 2013-08-08 14:24:41 +0000
34+++ debian/heat-common.install 2013-08-14 14:21:47 +0000
35@@ -1,7 +1,4 @@
36-/usr/bin/heat-boto
37-/usr/bin/heat-cfn
38 /usr/bin/heat-manage
39-/usr/bin/heat-watch
40 /usr/bin/heat-keystone-setup
41 etc/heat/policy.json
42 etc/heat/api-paste.ini
43
44=== modified file 'debian/heat-common.manpages'
45--- debian/heat-common.manpages 2013-08-08 14:24:41 +0000
46+++ debian/heat-common.manpages 2013-08-14 14:21:47 +0000
47@@ -1,4 +1,1 @@
48-doc/build/man/heat-cfn.1
49-doc/build/man/heat-boto.1
50-doc/build/man/heat-watch.1
51 doc/build/man/heat-keystone-setup.1
52
53=== removed file 'debian/patches/fix-sqlalchemy-0.8.patch'
54--- debian/patches/fix-sqlalchemy-0.8.patch 2013-08-08 01:08:46 +0000
55+++ debian/patches/fix-sqlalchemy-0.8.patch 1970-01-01 00:00:00 +0000
56@@ -1,116 +0,0 @@
57-Description: Fix heat db to work with sqlachmey 0.8.
58-Author: Chuck Short <zulcss@ubuntu.com>
59-Forwarded: No
60-diff -Naurp heat-2013.2.b2.orig/heat/db/sqlalchemy/migrate_repo/versions/019_resource_action_status.py heat-2013.2.b2/heat/db/sqlalchemy/migrate_repo/versions/019_resource_action_status.py
61---- heat-2013.2.b2.orig/heat/db/sqlalchemy/migrate_repo/versions/019_resource_action_status.py 2013-07-18 15:48:34.000000000 +0000
62-+++ heat-2013.2.b2/heat/db/sqlalchemy/migrate_repo/versions/019_resource_action_status.py 2013-08-07 19:47:05.291156844 +0000
63-@@ -22,11 +22,7 @@ def upgrade(migrate_engine):
64- # Align the current state/state_description with the
65- # action/status now used in the event table
66- action = sqlalchemy.Column('action',
67-- sqlalchemy.String(length=255,
68-- convert_unicode=False,
69-- assert_unicode=None,
70-- unicode_error=None,
71-- _warn_on_bytestring=False))
72-+ sqlalchemy.String(length=255))
73- action.create(resource)
74- resource.c.state.alter(name='status')
75- resource.c.state_description.alter(name='status_reason')
76-diff -Naurp heat-2013.2.b2.orig/heat/db/sqlalchemy/migrate_repo/versions/020_stack_action.py heat-2013.2.b2/heat/db/sqlalchemy/migrate_repo/versions/020_stack_action.py
77---- heat-2013.2.b2.orig/heat/db/sqlalchemy/migrate_repo/versions/020_stack_action.py 2013-07-18 15:48:34.000000000 +0000
78-+++ heat-2013.2.b2/heat/db/sqlalchemy/migrate_repo/versions/020_stack_action.py 2013-08-07 19:47:30.935156844 +0000
79-@@ -21,11 +21,7 @@ def upgrade(migrate_engine):
80- stack = sqlalchemy.Table('stack', meta, autoload=True)
81- # Align with action/status now used in the event/resource tables
82- action = sqlalchemy.Column('action',
83-- sqlalchemy.String(length=255,
84-- convert_unicode=False,
85-- assert_unicode=None,
86-- unicode_error=None,
87-- _warn_on_bytestring=False))
88-+ sqlalchemy.String(length=255))
89- action.create(stack)
90-
91-
92-diff -Naurp heat-2013.2.b2.orig/heat/db/sqlalchemy/models.py heat-2013.2.b2/heat/db/sqlalchemy/models.py
93---- heat-2013.2.b2.orig/heat/db/sqlalchemy/models.py 2013-07-18 15:48:34.000000000 +0000
94-+++ heat-2013.2.b2/heat/db/sqlalchemy/models.py 2013-08-07 19:46:17.583156844 +0000
95-@@ -20,6 +20,7 @@ import sqlalchemy
96- from sqlalchemy.orm import relationship, backref, object_mapper
97- from sqlalchemy.exc import IntegrityError
98- from sqlalchemy.ext.declarative import declarative_base
99-+from sqlalchemy.ext.mutable import Mutable
100- from sqlalchemy import types
101- from json import dumps
102- from json import loads
103-@@ -32,7 +33,7 @@ from sqlalchemy.orm.session import Sessi
104- BASE = declarative_base()
105-
106-
107--class Json(types.TypeDecorator, types.MutableType):
108-+class Json(types.TypeDecorator):
109- impl = types.Text
110-
111- def process_bind_param(self, value, dialect):
112-@@ -42,6 +43,48 @@ class Json(types.TypeDecorator, types.Mu
113- return loads(value)
114-
115-
116-+#This class already in sqlalchemy 0.8 but not in 0.7
117-+#Add it here for integration
118-+class MutableDict(Mutable, dict):
119-+ """A dictionary type that implements :class:`.Mutable`.
120-+
121-+ .. versionadded in sqlalchemy:: 0.8
122-+
123-+ """
124-+
125-+ def __setitem__(self, key, value):
126-+ """Detect dictionary set events and emit change events."""
127-+ dict.__setitem__(self, key, value)
128-+ self.changed()
129-+
130-+ def __delitem__(self, key):
131-+ """Detect dictionary del events and emit change events."""
132-+ dict.__delitem__(self, key)
133-+ self.changed()
134-+
135-+ def clear(self):
136-+ dict.clear(self)
137-+ self.changed()
138-+
139-+ @classmethod
140-+ def coerce(cls, key, value):
141-+ """Convert plain dictionary to MutableDict."""
142-+ if not isinstance(value, MutableDict):
143-+ if isinstance(value, dict):
144-+ return MutableDict(value)
145-+ return Mutable.coerce(key, value)
146-+ else:
147-+ return value
148-+
149-+ def __getstate__(self):
150-+ return dict(self)
151-+
152-+ def __setstate__(self, state):
153-+ self.update(state)
154-+
155-+MutableDict.associate_with(Json)
156-+
157-+
158- class HeatBase(object):
159- """Base class for Heat Models."""
160- __table_args__ = {'mysql_engine': 'InnoDB'}
161-diff -Naurp heat-2013.2.b2.orig/requirements.txt heat-2013.2.b2/requirements.txt
162---- heat-2013.2.b2.orig/requirements.txt 2013-07-18 15:48:34.000000000 +0000
163-+++ heat-2013.2.b2/requirements.txt 2013-08-07 19:47:41.343156844 +0000
164-@@ -14,7 +14,7 @@ sqlalchemy-migrate>=0.7.2
165- python-novaclient>=2.12.0
166- PasteDeploy==1.5.0
167- routes==1.12.3
168--SQLAlchemy>=0.7.8,<0.7.99
169-+SQLAlchemy>=0.7.8,<0.8.99
170- WebOb==1.2.3
171- python-keystoneclient>=0.2.1
172- python-swiftclient>=1.2
173
174=== modified file 'debian/patches/series'
175--- debian/patches/series 2013-08-08 13:55:17 +0000
176+++ debian/patches/series 2013-08-14 14:21:47 +0000
177@@ -1,4 +1,2 @@
178-fix-sqlalchemy-0.8.patch
179-
180 default-sqlite.patch
181 default-kombu.patch

Subscribers

People subscribed via source and target branches