The oslo-incubator log modlule has been removed, so port to the oslo_log
library. Note this uses the new (non namespaced, e.g oslo.log) import
convention, we'll need to align other imports in a future commit.
Some import reordering was required due to pedantic H30[57] checks, and
the services have all been converted to initialize the oslo_log library
as this is done differently to the log.py in incubator.
Change-Id: Ib5a97123fe1b287bc531e42d7887c13ba6205628
Adds required REST API, Db model and engine service
changes for reporting the heat engine service status.
Change-Id: I3ef29c1efd2015d62eec1033ed3a8c9f42e7a6e2
Implements: blueprint heat-manage-service-list
"DocImpact"
Since i18n.install() is deprecated, remove it from heat codes and
import i18n._() to where it needed.
blueprint oslo-i18n
Change-Id: Icefada18b5a33112b425cd90d31d3a6a5f06188a
Common db code was updated in oslo. The most important thing is that
engine instances don't stored anymore in oslo.db - ce69e7f.
This patch moves methods `get_engine` and `get_session` to module
`heat.db.sqalchemy.api`.
Latest commit in oslo related to db module:
2fd457bf2ccbeb2b84ffb204778b6417cd5405ba
Change-Id: Iaa2e9ba26e824c678c698914170e3dffbf1c5c95
Follow oslo.config style guide for help strings better to create
consistent help strings:
* Capitalize first word of each help string
* Finish help strings with "."
* Improve wording
* Add missing space between strings
Change-Id: Ia86734d44fdf4eb3711fef800fe6bdfd1a1b59d4
heat-manage db_sync is currently broken because
heat is trying to use two backends with the Oslo DB
api which is configurable via heat.conf where only
a single DB api can be specified.
Currently this defaults to:
#The backend to use for db (string value)
#db_backend=heat.db.sqlalchemy.api
To fix things we:
1) merge heat/db/migration.py into heat/db/api.py.
2) Add db_sync and db_version calls to heat/db/sqlalchemy/api.py
which call into the functions in heat/db/sqlalchemy/migration.py.
3) Remove the old heat/db/migration.py module (no longer needed).
In the process we also move the INIT_VERSION constant into
heat/db/sqlalchemy/api.py where it is actually used
anyway. (it probably shouldn't have been in the higher level
migration module to begin with)
This should fix SmokeStack which stopped working last Wednesday
with a05dc4b9cd
Also,
Closes-bug #1241865
Change-Id: I50d489531056016c762bd3be047e3a129cbee4f8
Allow users to choose how many days, hours, minutes, or seconds to preserve
deleted data.
Closes-bug: #1237195
Change-Id: I9227f5bf53c5b099a7a691a49c4ff2f5f0662098
Oslo version 96d1f887dda21b43ba4376187f31953dee6f5273
This commit just migrates Heat to new db related code from Oslo
Partially implements blueprint oslo-db-support
Change-Id: Ib0de40a70857fb3e029a2282f06746269a628c71
Add a purge_deleted command to heat-manage. The command takes an
'age' argument, and removes all database records that have been soft
deleted for more than 'age' days. Default to 90.
blueprint event-persistence
Change-Id: I8a62108a907b4e709c91a93a1f7db6c702cec6b5
This changes the code to use a python 3.x compatible
print function syntax (or import from __future__ where
necessary)
Change-Id: Ia1f19d0ac082853d25c7c9b754b440469c0526eb
Fixes bug 1184923
because prog was missing the CONF object was looking for
the config file in /etc/heat/heat.conf this should have
been /etc/heat/heat-engine.conf
Change-Id: Ie23b9998df368274d69180e0d619b042dd9dc053
The heat/cmd/manage.py structure is copied from glance to give
us some consistency.
Removing unused cliutils ...
blueprint heat-manage
Change-Id: If3b69eb4c3672740515fd308ec868af1cd3c9396