41 Commits

Author SHA1 Message Date
Thomas Herve
2a51ee7449 Migrate to oslo.db
Move from oslo-incubator db module to oslo.db

Change-Id: I485375e3defc807e1fc272803a064b2c52e8ac13
2014-07-15 10:14:56 +02:00
Thomas Herve
9090b988e6 Port to oslo.messaging
Move from oslo RPC to oslo.messaging.

Implements: blueprint oslo-messaging
Co-Authored-By: sdake@redhat.com
Change-Id: I2d222c248dd2cd405b8ec35c4c8198ed001fb69f
2014-06-26 06:45:52 +02:00
Thomas Herve
680f5da8b1 Sync oslo incubator
Sync oslo at c306bc19150fe6e58b088a713c8f45ba4c693496 to help
oslo.messaging transition. It also fixes how the oslo middleware module
is included, and remove the deprecated test module.

Change-Id: I2b44ba24e5a3445db6ffb9c56089ae282f3620b1
2014-06-23 18:23:28 +02:00
Mitsuru Kanabuchi
31604c71a1 Sync oslo-incubator.middleware module
This syncing has contained oslo-incubator.middleware module
to get capability of x-openstack-request-id.

Change-Id: I8e3b7d23bc1def705a0399bbd5015241a0fba8b1
Partial-Bug: #1324065
2014-06-17 18:37:10 +09:00
Jenkins
ad709ebf70 Merge "Clean up openstack-common.conf" 2014-05-09 15:18:53 +00:00
ChangBo Guo(gcb)
0c0eb41310 Clean up openstack-common.conf
oslo-incubator will introduce new integrity check in [1].
That will help developer find inconsistent issue while copying
from oslo-incubator. The check just outputs warnings. These are
changes according to warning:
 * remove unused module py3kcompat
 * add missing module context, processutils in openstack-common.conf
 * sort the modules in openstack-common.conf
[1] https://review.openstack.org/#/c/76901/

Change-Id: I2fea01148f6ad268a5fcfdaa788e30d6fcb48c3f
Related-Bug: #1295582
2014-05-04 12:08:21 +08:00
Thomas Herve
070528e2ad Use the new oslotest library
There is a new support library extracted from oslo incubator: the patch
starts using it and removes deprecated modules.

Change-Id: I3839af20613ff6ab905dddb8fc4be65654c6e949
2014-05-02 10:54:00 +02:00
Thomas Herve
aef33d2d71 Sync oslo incubator
Synchronize all olso modules, removing the ones that were removed that
we don't use anymore.

Change-Id: Idca29b32ef0561c9c436d5a692a02acbe79027b1
2014-04-12 10:01:51 +02:00
Jenkins
3610203dac Merge "Add oslo mock fixture" 2013-12-16 15:19:50 +00:00
Angus Salkeld
37919c6b95 oslo: add the crypto module
This is to be used instead of the hand rolled heat/common/crypt.py.

Partial-bug: #1251647
Change-Id: I622b9d0c942075f99fdbaff470906123c631504a
2013-12-16 16:11:17 +11:00
Swann Croiset
3eda05a9b0 Add oslo mock fixture
Change-Id: I8f75a7c112cf8232197f901c9b1b025a30c9ba71
2013-12-13 19:06:24 +01:00
Angus Salkeld
28da5c3f06 oslo: add the test module needed by test_migrations
Change-Id: I99fbae289c29f03b1a8ef391e3c9bf1bf0f4556d
2013-12-11 09:05:33 +11:00
Angus Salkeld
e2e711fc1c oslo: update the rpc module
- It now requires the versionutils module.
- We need to deal with the "allow_rpc_exception_modules" not
  including heat.common.exception

Change-Id: I1ea1479d7bc023649b2af0f68683e9a81f868df9
2013-12-06 12:00:42 +11:00
Angus Salkeld
70e321e60a oslo: add py3compat
This is automatically pulled in by the new oslo modules

Change-Id: Idba617fbd6ca889a0322461bff4954cd90c9f32a
2013-12-06 12:00:42 +11:00
chenxiao
89f2a20634 Fixes Error when contain Non-ascii in template
when set template use non-english resource_name and execute
"heat -v resource-list $stack_id". KeyError will occur because
heat can not encode it correctly. This patch will implement
a process to encode the resource_name.

The patch use a new module (strutils.py) taken from
oslo-incubator in order to use safe_encode() and
safe_decode(), and this module is useful for future
patchs.

Change-Id: Idddda20d96bca32cb4df94ede31b40f7141e3afe
Closes-Bug: #1249238
2013-11-18 12:07:04 +08:00
Julien Danjou
33e5737658 Stop using openstack.common.exception
The openstack.common.exception has been deprecated and removed from
oslo-incubator. Therefore, Heat should follow the recommendation and
stop the usage of this file altogether.

Change-Id: I0364da262d956cecea7b77ebc40ead8ece224828
Closes-Bug: #1208734
2013-10-18 10:58:29 +02:00
Angus Salkeld
54e5260fca Add log_handler to implement the publish_errors config option
This handler sends all error logs as rpc notifications.
Note: when using publish_errors you also need to set the
notification_driver option too.

Change-Id: I9ceb1fa92118161779b4b29e2cdc3b91f79ab733
Closes-bug: #1229246
2013-10-14 09:48:21 +11:00
Mark McLoughlin
22241a2168 Remove obsolete redhat-eventlet.patch
See I62ce43a330d7ae94eda4c7498782a655e63747fa for the gorey details on
why this exists.

As of this fix:

  https://github.com/eventlet/eventlet/pull/34

which was released in eventlet 0.13, we no longer need the patch.

This has now been removed from oslo-incubator, so this is really just
syncing that removal.

Change-Id: I84267f3c6726cb2e750f615e107c48b12c6ed353
2013-10-09 21:43:02 +01:00
Alexander Gordeev
9b47301dc5 Add code from Oslo DB 96d1f887dda Part 2
Oslo version 96d1f887dda21b43ba4376187f31953dee6f5273

This commit just adds new db related code from Oslo
into Heat without additional changes

Partially implements blueprint oslo-db-support

Change-Id: I97515beaf0713f409405bdc27590e216f6ed1937
2013-08-16 13:16:31 +04:00
Émilien Macchi
919b377808 Update openstack.common.config
- Add generator.py from Oslo
- Add notifier from Oslo
- Add generator bash script used by other projects to generate configuration
files
- Update openstack-common.conf file

The patch https://review.openstack.org/#/c/36493/ needs
to be merged before this one. I'll rebase this patch and
generate the heat configuration.

Fix bug #1183275

Change-Id: Id7f24874b7e3e07d06dcf14bc381b9d630f67fc8
2013-07-18 12:01:02 -07:00
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
2013-05-27 21:06:31 +10:00
Angus Salkeld
65db4ba97b Bring in oslo.cliutils for heat-manage
part of blueprint heat-manage
Change-Id: I526de1aacbcf930f3187914403031a1e6f9ff4ae
2013-05-27 16:06:14 +10:00
Monty Taylor
05b97f368e Migrate to pbr.
Fixes bug 1179007

Change-Id: I698d02a2171e43237094c0e5ccc4c2dd47ed722b
2013-05-25 08:35:00 +02:00
Michael Still
97191c32c6 The oslo module called utils is no more.
This had been cleaned up in openstack/common, but left in the config
file. Clean that up too.

Change-Id: I15b96c53aff3281a44250e9beb4ec56fb80bf9b6
2013-05-20 14:18:40 +10:00
Mark McLoughlin
e0d9982d40 Copy the RHEL6 eventlet workaround from Oslo
Tests in oslo-incubator now need the horrendous hack to workaround an
issue with eventlet on RHEL6. We've moved the patch_tox_venv tool
and redhat-eventlet.patch into oslo-incubator, so add them to
openstack-common.conf.

Change-Id: I1acfec282b64d7582144b155119bedb1741db2f7
2013-05-13 22:51:49 +01:00
Mark McLoughlin
ec8e96d0fa Use install_venv_common from oslo
The core of install_venv.py was moved into oslo-incubator recently so
just use that.

Change-Id: I7ba52660fc1433f116e6ee1ad33c89ba393c416b
2013-05-02 10:45:37 +01:00
Mark McLoughlin
91b587e2c0 Split the module lines in openstack-common.conf
update.py was changed to support this format recently. It makes it
much easier to review changes to the list of modules.

Change-Id: I0f86f65e107ab54231bd48182947d5799e8a460f
2013-05-02 10:27:09 +01:00
Mark McLoughlin
150d2ca694 Use oslo-config-2013.1b3
The cfg API is now available via the oslo-config library, so switch to
it and remove the copied-and-pasted version.

Add the 2013.1b3 tarball to tools/pip-requires - this will be changed
to 'oslo-config>=2013.1' when oslo-config is published to pypi. This
will happen in time for grizzly final.

Add dependency_links to setup.py so that oslo-config can be installed
from the tarball URL specified in pip-requires.

Remove the 'deps = pep8==1.3.4' from tox.ini as it means all the other
deps get installed with easy_install which can't install oslo-config
from the URL.

Excluded code from oslo-incubator in the pep8 check.

Retain dummy cfg.py file until keystoneclient middleware has been
updated (I18c450174277c8e2d15ed93879da6cd92074c27a).

Change-Id: I4815aeb8a9341a31a250e920157f15ee15cfc5bc
2013-02-18 17:27:14 +00:00
Steven Hardy
c9666e8e85 update openstack common and include policy.py
Sync with latest oslo (now at bd5d9f0), and update config to
pull in policy.py

Change-Id: I3571477cbf7c538c9ddb6860f85265ed503d2049
Signed-off-by: Steven Hardy <shardy@redhat.com>
2013-02-05 19:28:47 +00:00
Jeff Peeler
ac534daf02 Add version.py from openstack-common
Bug 1078480

Change-Id: Ia5d4ff63db2907271b8f0ec7fec76ca4cad257d2
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2012-12-06 22:01:46 -05:00
Zane Bitter
04fe836b82 Add uuidutils from openstack-common
Change-Id: Ia4a8e18f9a2383c09bdd9d59af3df8c057c8d35e
Signed-off-by: Zane Bitter <zbitter@redhat.com>
2012-11-30 17:05:13 +01:00
Steve Baker
5f60499602 Update openstack-common, add network_utils.
This is required by impl_kombu.py. The engine failed to start without it.
2012-11-05 11:05:04 +13:00
Angus Salkeld
589b4a7616 Add service.py from openstack-common
Change-Id: Ia4996d89d0fdba6dbeb44ae4cf3ca202c78886ee
2012-11-02 12:55:54 +11:00
Steven Dake
e9eee939c7 Import openstack.common.rpc
Use openstack.common routines.  One of the parameters changed to
create_consumer().

Thanks to Russell Bryant for assistance with sorting out that problem.

Change-Id: I4badc7ca22298cd0aafc57a2335b3d6801289be8
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-07-17 08:27:19 -07:00
Steven Dake
c7ec88f2c7 Import openstack.common.log and use inside heat infrastructure
Allows heat to match openstack-common log calling conventions such
as using a context object or instance UUID for better traceability.

Change-Id: Idaa6c04270d9d7143c85988d685c0f9e241b635b
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-07-14 13:51:38 -07:00
Steven Dake
5d5d8ba5dd Update openstack-common in prep for pulling in common.rpc
Change-Id: Ib3444d97967c807cb96175ce23d4b670a028e9a7
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-07-13 16:17:36 -07:00
Monty Taylor
2fc479c684 Align with project standards.
Rebased from: Change-Id: Ifc9fff4f88dfaebe97b7caba4d603d23c645e346

Reviewed-by: Steven Dake <sdake@redhat.com>
2012-05-21 16:48:34 -07:00
Angus Salkeld
1f141a6d04 openstack-common: timeutils and importutils seperated out
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-27 10:23:19 +10:00
Angus Salkeld
e7f05dba5d Add utils & exception from openstack-common
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-05 16:43:09 +10:00
Angus Salkeld
aff20aca99 Use local.py from openstack-common
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-05 16:43:09 +10:00
Mark McLoughlin
cdc7f5a49c Sync cfg from openstack-common
Use openstack-common's update script to sync it to the latest.

Add some dire warnings that changes should be made in the upstream
copy of the code first.
2012-03-16 11:49:46 -04:00