Commit Graph

20 Commits (bbf29137282769f6c96123fe92babe41ea64e625)

Author SHA1 Message Date
Sergey Kraynev e5f952e4b5 Use Service objects instead of db_api
Fix missed place for migration from db_api to Service object.

Change-Id: I1d733d0a1bd13ab860860e4497771c46e7d2118b
8 years ago
Jens Rosenboom a99fe6a760 Make import of oslo libraries namespaceless
See https://blueprints.launchpad.net/oslo-incubator/+spec/drop-namespace-packages

Closes-Bug: 1423174
Change-Id: I48680ce6e7ce91005c147ab4388203946171d433
8 years ago
Steven Hardy 70112c103a Move logging to use oslo_log library
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
8 years ago
Kanagaraj Manickam 65134b8d99 heat-manage service list
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"
8 years ago
Ethan Lynn 11c1b62052 Remove deprecated function i18n.install('heat')
Since i18n.install() is deprecated, remove it from heat codes and
import i18n._() to where it needed.

blueprint oslo-i18n
Change-Id: Icefada18b5a33112b425cd90d31d3a6a5f06188a
9 years ago
Andrey Kurilin cfcbc994d3 Sync latest oslo.db code
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
9 years ago
Jason Dunsmore af464c9afc Make the first line of every file consistent.
Change-Id: I2e1a809cfca8e88693551d58d33e747f54ee5eb1
9 years ago
Jason Dunsmore 97135cbfc0 Remove vim header from files.
Change-Id: Ia6131f8fcac6902c80c80aa805c8cd7a2a41f280
Closes-Bug: #1229324
9 years ago
Andreas Jaeger fb538071f6 Improve help strings
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
9 years ago
Jenkins daa8d6c216 Merge "Add granularity option to purge_deleted" 10 years ago
Dan Prince afd761d4e7 Move db_sync into the sqlalchemy DB api.
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
10 years ago
Liang Chen b61cd62db6 Add granularity option to purge_deleted
Allow users to choose how many days, hours, minutes, or seconds to preserve
deleted data.

Closes-bug: #1237195

Change-Id: I9227f5bf53c5b099a7a691a49c4ff2f5f0662098
10 years ago
Jenkins 3da6d4d8a9 Merge "Migrate to Oslo DB 96d1f887dda Part 3" 10 years ago
Alexander Gordeev 4582a1a0dd Migrate to Oslo DB 96d1f887dda Part 3
Oslo version 96d1f887dda21b43ba4376187f31953dee6f5273

This commit just migrates Heat to new db related code from Oslo

Partially implements blueprint oslo-db-support

Change-Id: Ib0de40a70857fb3e029a2282f06746269a628c71
10 years ago
Clint Byrum b215a117c0 Add help for purge_deleted command age argument
At a bare minimum explaining this argument helps understand what
purge_deleted is going to do.

Change-Id: If73ba272e8ea0742f8be93994ec2fac68d4ed3fd
10 years ago
Liang Chen 30b8a186a8 Provide a way to clean up soft deleted data
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
10 years ago
guohliu eb0dafb44b Fix command name display issue in heat-manage usage
Fixed bug #1194840

Change-Id: Ibe43d0a025f0aed6bec7e414f7e80d0a0f652308
10 years ago
Dirk Mueller e6f6890ac0 Use print_function compatible syntax
This changes the code to use a python 3.x compatible
print function syntax (or import from __future__ where
necessary)

Change-Id: Ia1f19d0ac082853d25c7c9b754b440469c0526eb
10 years ago
Derek Higgins 3f72ad87f4 Use heat-engine.conf for heat-manage config
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
10 years ago
Angus Salkeld 126bf9f28c Add a basic heat-manage
The heat/cmd/manage.py structure is copied from glance to give
us some consistency.

Removing unused cliutils ...

blueprint heat-manage
Change-Id: If3b69eb4c3672740515fd308ec868af1cd3c9396
10 years ago