]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
11 years agoFix misused assertTrue in unit tests
Chang Bo Guo [Tue, 17 Sep 2013 09:02:50 +0000 (02:02 -0700)]
Fix misused assertTrue in unit tests

Refactored unit tests to use assertEqual instead of assertTrue
where needed.

Fixes bug #1226374

Change-Id: I6826fefbb7c6fed8b0e664da36b144e882fb6d0e

11 years agoMerge "Differentiate resource types in test_update_rollback_remove"
Jenkins [Wed, 14 Aug 2013 06:33:19 +0000 (06:33 +0000)]
Merge "Differentiate resource types in test_update_rollback_remove"

11 years agoMerge "Stub ResourceWithProps instead of GenericResource"
Jenkins [Wed, 14 Aug 2013 06:33:17 +0000 (06:33 +0000)]
Merge "Stub ResourceWithProps instead of GenericResource"

11 years agoMerge "Update test requirements"
Jenkins [Wed, 14 Aug 2013 06:33:04 +0000 (06:33 +0000)]
Merge "Update test requirements"

11 years agoMerge "Derive keystone_ec2_uri from auth_uri"
Jenkins [Wed, 14 Aug 2013 06:21:03 +0000 (06:21 +0000)]
Merge "Derive keystone_ec2_uri from auth_uri"

11 years agoMerge "Not to eat Metadata parsing error"
Jenkins [Wed, 14 Aug 2013 03:49:15 +0000 (03:49 +0000)]
Merge "Not to eat Metadata parsing error"

11 years agoMerge "Revert "Add missing _ imports to allow doc generation""
Jenkins [Wed, 14 Aug 2013 03:49:01 +0000 (03:49 +0000)]
Merge "Revert "Add missing _ imports to allow doc generation""

11 years agoMerge "Hot SoftwareConfig model part"
Jenkins [Wed, 14 Aug 2013 03:45:51 +0000 (03:45 +0000)]
Merge "Hot SoftwareConfig model part"

11 years agoMerge "Fixes files with wrong bitmode"
Jenkins [Wed, 14 Aug 2013 03:43:54 +0000 (03:43 +0000)]
Merge "Fixes files with wrong bitmode"

11 years agoMerge "Ensure all REST API error responses are consistent"
Jenkins [Wed, 14 Aug 2013 03:43:44 +0000 (03:43 +0000)]
Merge "Ensure all REST API error responses are consistent"

11 years agoDerive keystone_ec2_uri from auth_uri
Steve Baker [Mon, 12 Aug 2013 21:25:03 +0000 (09:25 +1200)]
Derive keystone_ec2_uri from auth_uri

ec2token auth_uri must be correctly configured for heat to work.
The /ec2tokens path is not an endpoint in its own right, it is
part of the keystone v2.0 API. The keystone_ec2_uri configuration
parameter was only used for ec2 style credentials validation in
the ec2token middleware.  It might have also propagated all the
way into the user_creds table to be stored for each stack were it
not for this chain of failures (removed in this commit):
- X-Auth-EC2_URL header is set in ec2token, but header X-Auth-EC2-Url
  is read by RequestContext
- RequestContext stores the ec2 uri in aws_auth_uri, but UserCreds
  expects aws_auth_url

Change-Id: I9908e17bed33fdc64d058a6d6db7b29f9c8d53d6

11 years agoUpdate test requirements
Steve Baker [Wed, 14 Aug 2013 03:27:26 +0000 (15:27 +1200)]
Update test requirements

As modified by auto-run of requirements/update.py

Change-Id: I150a56dd7956ea2a3b01c1921dc35e51ccd35afe

11 years agoMerge "Use correct actions for StackResource"
Jenkins [Wed, 14 Aug 2013 02:49:51 +0000 (02:49 +0000)]
Merge "Use correct actions for StackResource"

11 years agoMerge "Validate created/updated stacks in StackResource"
Jenkins [Wed, 14 Aug 2013 02:49:44 +0000 (02:49 +0000)]
Merge "Validate created/updated stacks in StackResource"

11 years agoMerge "Tidy up a few places in test_engine_serivce.py"
Jenkins [Wed, 14 Aug 2013 02:31:20 +0000 (02:31 +0000)]
Merge "Tidy up a few places in test_engine_serivce.py"

11 years agoMerge "Update Oslo to 96d1f887dda Part 1"
Jenkins [Wed, 14 Aug 2013 02:28:30 +0000 (02:28 +0000)]
Merge "Update Oslo to 96d1f887dda Part 1"

11 years agoFixes files with wrong bitmode
lawrancejing [Tue, 13 Aug 2013 13:36:19 +0000 (21:36 +0800)]
Fixes files with wrong bitmode

Some modules have bitmode 755. Changed to 644.

Change-Id: I4cb86987f1e2dd8420d511cb403228ba908d056b

11 years agoFix syntax description of HOT get_attr function
Thomas Spatzier [Tue, 13 Aug 2013 13:58:53 +0000 (15:58 +0200)]
Fix syntax description of HOT get_attr function

Fix syntax description of get_attr function in HOT specification.
Colon instead of comma was used in array.

Contributes to blueprint hot-specification

Change-Id: I8007d476093ecd5be41020025b486147a5ac038b

11 years agoDifferentiate resource types in test_update_rollback_remove
Zane Bitter [Tue, 13 Aug 2013 13:18:17 +0000 (15:18 +0200)]
Differentiate resource types in test_update_rollback_remove

Ensure that the operations really are happening on the resource we think.

Change-Id: Ie0c85853378e3f0ef3eab4cd0714af0e94108406

11 years agoStub ResourceWithProps instead of GenericResource
Zane Bitter [Tue, 13 Aug 2013 13:18:17 +0000 (15:18 +0200)]
Stub ResourceWithProps instead of GenericResource

Stubbing methods in a superclass is an all-or-nothing affair: once a stub
in the subclass is unset, the subclass will no longer inherit changes in
the superclass (i.e. if you then stub out the same method in the
superclass, the subclass will be unaffected).

Previously, we always set the stubs in the superclass (for historical
reasons, to avoid making this change). This would lead to tests that want
to differentiate between types (by stubbing in the derived class)
interfering with the operation of other tests. This patch changes to always
setting the stubs in the derived class.

Change-Id: I2c8dbd22826da14611a6a3f55321f0016446580a

11 years agoMerge "Add debug option to run_tests.sh"
Jenkins [Tue, 13 Aug 2013 11:22:56 +0000 (11:22 +0000)]
Merge "Add debug option to run_tests.sh"

11 years agoMerge "Move heat-cfn, heat-boto, heat-watch to new repo"
Jenkins [Tue, 13 Aug 2013 11:22:54 +0000 (11:22 +0000)]
Merge "Move heat-cfn, heat-boto, heat-watch to new repo"

11 years agoMerge "Fix intermittent failure in autoscaling tests"
Jenkins [Tue, 13 Aug 2013 10:30:25 +0000 (10:30 +0000)]
Merge "Fix intermittent failure in autoscaling tests"

11 years agoHot SoftwareConfig model part
JUN JIE NAN [Wed, 7 Aug 2013 06:35:13 +0000 (14:35 +0800)]
Hot SoftwareConfig model part

Provide components model and related methods

Implements blueprint hot-software-config

Change-Id: I251d10f25943513ef346883263a4dd2e0f6fb7a6

11 years agoUpdate Oslo to 96d1f887dda Part 1
Alexander Gordeev [Thu, 1 Aug 2013 13:22:20 +0000 (17:22 +0400)]
Update Oslo to 96d1f887dda Part 1

Oslo version 96d1f887dda21b43ba4376187f31953dee6f5273

This commit just injects fresh portion of code from Oslo
into Heat and fixes all the issues with new code

Partially implements blueprint oslo-db-support

Change-Id: I7e98c12ddf6689efc6ea6a4deab0b1c840297730

11 years agoMove property constraints validation to Schema
Zane Bitter [Tue, 13 Aug 2013 08:48:16 +0000 (10:48 +0200)]
Move property constraints validation to Schema

Change-Id: I6e296dfc2243da7cabd24d65799036fc245f0f7a

11 years agoRemove unneccessary Property constraints from unit tests
Zane Bitter [Tue, 13 Aug 2013 08:48:15 +0000 (10:48 +0200)]
Remove unneccessary Property constraints from unit tests

It doesn't really make a lot of sense to have constraints on the number of
keys in a Map Property, or on the allowed values in a List Property. In
both cases, we can and should define the Schema for each item. Neither is
used anywhere in the code, since the new Schema/Constraints do not allow
it, and SchemaTest.test_all_resource_schemata() tests that all existing
schemata are valid.

Change-Id: I24e11ec59c75ef770bf040ee8151bbe061f4a864

11 years agoAdd constraint checking to Property schema
Zane Bitter [Tue, 13 Aug 2013 08:48:15 +0000 (10:48 +0200)]
Add constraint checking to Property schema

Change-Id: Ibec4068a0497ca6ac1dd25decd27fa87585b18a3

11 years agoTidy up a few places in test_engine_serivce.py
Liang Chen [Tue, 13 Aug 2013 07:36:28 +0000 (15:36 +0800)]
Tidy up a few places in test_engine_serivce.py

Change-Id: I3ce32f5057cd074f55466de3a78d8783ab161943

11 years agoRevert "Add missing _ imports to allow doc generation"
Luis A. Garcia [Mon, 12 Aug 2013 21:45:46 +0000 (21:45 +0000)]
Revert "Add missing _ imports to allow doc generation"

This change reverts commit 0453785f3f7b2a578b433cb0544394aac9bcfb95 and
fixes a bug where the _() was not being recognized when building the
documentation while preserving the delayed translation of error
messages.

Closes-Bug: #1211507
Related-Bug: #1209413

Change-Id: I5d52941e1f08ec656f7279efb6cdf496d81861da

11 years agoMerge "Introduce new resource_data_delete db api"
Jenkins [Tue, 13 Aug 2013 00:53:16 +0000 (00:53 +0000)]
Merge "Introduce new resource_data_delete db api"

11 years agoMove heat-cfn, heat-boto, heat-watch to new repo
Steve Baker [Mon, 22 Jul 2013 04:01:44 +0000 (16:01 +1200)]
Move heat-cfn, heat-boto, heat-watch to new repo

The new home for these tools is
https://github.com/openstack-dev/heat-cfnclient

These tools are now aimed at heat developers only
and they will not be released or packaged.

Change-Id: I1ea62ef17e81ab53cacb5e4940f0c4e2516ed383

11 years agoMerge "ReST API: Add an API for retrieving resource schemata"
Jenkins [Mon, 12 Aug 2013 23:59:49 +0000 (23:59 +0000)]
Merge "ReST API: Add an API for retrieving resource schemata"

11 years agoAdd debug option to run_tests.sh
guohliu [Mon, 12 Aug 2013 18:33:50 +0000 (02:33 +0800)]
Add debug option to run_tests.sh

Change-Id: Ie21cb8b7a370d5e62c7ac75d37affd62f761765a

11 years agoIntroduce new resource_data_delete db api
Thomas Herve [Mon, 12 Aug 2013 14:51:36 +0000 (16:51 +0200)]
Introduce new resource_data_delete db api

This allows removing data associated during to resources during its
lifecycle.

Change-Id: Id45e7cb9129a8187229c708e0d3f6cb2a591bb39

11 years agoMerge "Fail fast if Resource action methods are missing"
Jenkins [Mon, 12 Aug 2013 15:41:29 +0000 (15:41 +0000)]
Merge "Fail fast if Resource action methods are missing"

11 years agoNot to eat Metadata parsing error
Liang Chen [Mon, 12 Aug 2013 15:21:18 +0000 (23:21 +0800)]
Not to eat Metadata parsing error

Exception raised while resolving metadata is treated as database
exception and eaten.

A few testing errors are revealed after metadata parsing error is
propagated to callers.

Fixes bug #1207193

Change-Id: I3b5cc5fed3896b7fe59533c7d09f0226e5cf5ad9

11 years agoFix intermittent failure in autoscaling tests
Thomas Herve [Mon, 12 Aug 2013 15:04:00 +0000 (17:04 +0200)]
Fix intermittent failure in autoscaling tests

Tests for autoscaling suspend and resume sometimes fail because of an
order issue. The branch changes the mock calls to not rely on order.

Change-Id: I74bcde5c6b486fecbb2c2ed0685ce18c786aa974

11 years agoUse correct actions for StackResource
Zane Bitter [Mon, 12 Aug 2013 14:55:36 +0000 (16:55 +0200)]
Use correct actions for StackResource

To perform actions on a stack, we should use the action constants defined
in the Stack, not in another object (and especially not in a Resource).

Change-Id: I3044f6286fc2690c121a3446f42a6896b3ed3271

11 years agoMerge "Get rid of unused greenlet things in test_resource"
Jenkins [Mon, 12 Aug 2013 12:11:47 +0000 (12:11 +0000)]
Merge "Get rid of unused greenlet things in test_resource"

11 years agoMerge "Resolve LaunchConfig references"
Jenkins [Mon, 12 Aug 2013 11:59:58 +0000 (11:59 +0000)]
Merge "Resolve LaunchConfig references"

11 years agoMerge "Initial input for HOT template guide and spec"
Jenkins [Mon, 12 Aug 2013 11:02:36 +0000 (11:02 +0000)]
Merge "Initial input for HOT template guide and spec"

11 years agoMerge "Don't raise ResourceFailure directly in Instance"
Jenkins [Mon, 12 Aug 2013 11:02:29 +0000 (11:02 +0000)]
Merge "Don't raise ResourceFailure directly in Instance"

11 years agoMerge "Enable multi-cloud standalone mode"
Jenkins [Mon, 12 Aug 2013 11:02:22 +0000 (11:02 +0000)]
Merge "Enable multi-cloud standalone mode"

11 years agoResolve LaunchConfig references
Angus Salkeld [Mon, 12 Aug 2013 10:50:52 +0000 (20:50 +1000)]
Resolve LaunchConfig references

Autoscaling was not working if there were references in the launchconfig.

bug 1211125
Change-Id: Ie3be79d579e87a8026690cbe40c9056591c00e31

11 years agoGet rid of unused greenlet things in test_resource
Alexander Gordeev [Fri, 9 Aug 2013 13:25:58 +0000 (17:25 +0400)]
Get rid of unused greenlet things in test_resource

Removing useless test cases containing greenlet.GreenletExit
for the sake of 56d5fb9f83b647d27a00d56cb4dad8aad9e1169f

Change-Id: I6a1463c8467ee1750a66b00758428bc74f9371eb

11 years agoFail fast if Resource action methods are missing
Zane Bitter [Mon, 12 Aug 2013 09:12:33 +0000 (11:12 +0200)]
Fail fast if Resource action methods are missing

If a resource is not actually a Resource with create(), delete() &c.
methods then something has gone horribly, horribly wrong. This is not a
priority for handling gracefully at runtime.

Change-Id: Iafce8e4a222677fc590bb579654e195dc4252a9e

11 years agoDon't raise ResourceFailure directly in Instance
Zane Bitter [Mon, 12 Aug 2013 08:50:57 +0000 (10:50 +0200)]
Don't raise ResourceFailure directly in Instance

It's meant to be a wrapper around other exceptions that's invoked by
top-level resource operations; don't use it as an all-purpose exception.

Change-Id: I295202bca603006a4d5f5d56110fc4298ddd9cec

11 years agoReST API: Add an API for retrieving resource schemata
Zane Bitter [Mon, 12 Aug 2013 07:51:39 +0000 (09:51 +0200)]
ReST API: Add an API for retrieving resource schemata

blueprint resource-properties-schema

Change-Id: I07523a5996eea37a414310c21414be6454d08bfe

11 years agoRPC: Add an RPC call to get a resource type schema
Zane Bitter [Mon, 12 Aug 2013 07:51:39 +0000 (09:51 +0200)]
RPC: Add an RPC call to get a resource type schema

blueprint resource-properties-schema

Change-Id: Id316393d84b6f1112b80caf14ffb98c937597f40

11 years agoRPC Client: Add missing unit tests
Zane Bitter [Mon, 12 Aug 2013 07:51:39 +0000 (09:51 +0200)]
RPC Client: Add missing unit tests

Change-Id: I6b54a6a2191d094f539045567260e84b962b961b

11 years agoMerge "Port policy from oslo and refactor heat policy"
Jenkins [Mon, 12 Aug 2013 06:09:51 +0000 (06:09 +0000)]
Merge "Port policy from oslo and refactor heat policy"

11 years agoPort policy from oslo and refactor heat policy
guohliu [Wed, 31 Jul 2013 16:28:56 +0000 (00:28 +0800)]
Port policy from oslo and refactor heat policy

This patch is to refactor Heat's usage to allow bringing the
policy code from oslo up to the current version to address
many fixed bugs which affect Heat.

    1. Refactor the heat wrapper policy.
    2. Add netaddr in requirement.txt.
    3. Add necessary unit test to cover the refactor part code.

Oslo commit: 3626b6db91ce1e897d1993fb4e13ac4237d04b7f
Fixes bug #1192551

Change-Id: Ia71d14b2cfde9110216ba38a515fee16d0f0c35e

11 years agoEnable multi-cloud standalone mode
Ben Nemec [Sun, 11 Aug 2013 23:15:17 +0000 (18:15 -0500)]
Enable multi-cloud standalone mode

Adds a multi_cloud configuration parameter for auth_password that
tells a standalone Heat installation to look for its auth_url in
the request headers instead of the configuration file.  Also adds
an allowed_auth_uris configuration option to specify which
auth_urls are allowed as targets.

bp heat-multicloud

Change-Id: Ic0929586ac3b57c7f9f3335e0dbd5e14e6b56067

11 years agoMerge "Fix problem creating ResourceFailure"
Jenkins [Mon, 12 Aug 2013 02:39:47 +0000 (02:39 +0000)]
Merge "Fix problem creating ResourceFailure"

11 years agoMerge "Tidy up RPC API definitions"
Jenkins [Sun, 11 Aug 2013 07:10:13 +0000 (07:10 +0000)]
Merge "Tidy up RPC API definitions"

11 years agoMerge "Define a Schema format for properties"
Jenkins [Sun, 11 Aug 2013 07:10:06 +0000 (07:10 +0000)]
Merge "Define a Schema format for properties"

11 years agoFix problem creating ResourceFailure
Ben Nemec [Sat, 10 Aug 2013 01:12:23 +0000 (20:12 -0500)]
Fix problem creating ResourceFailure

The ResourceFailure exception is being instantiated improperly in
a couple of places.  This changes fixes the problem and adds tests
to cover the problem cases.

Change-Id: I2662a3abde1fd00d275e2190401c20166256cae0
Closes-Bug: 1210681

11 years agoValidate created/updated stacks in StackResource
Christopher Armstrong [Thu, 8 Aug 2013 23:00:29 +0000 (23:00 +0000)]
Validate created/updated stacks in StackResource

StackResource.create_with_template and update_with_template now validate
the resulting stacks.

Change-Id: I52a81edb2af6bee70146f6dbd2179900e580d69b

11 years agoMerge "Tolerance for modified ceilometer alarm notification"
Jenkins [Fri, 9 Aug 2013 20:34:04 +0000 (20:34 +0000)]
Merge "Tolerance for modified ceilometer alarm notification"

11 years agoTidy up RPC API definitions
Zane Bitter [Fri, 9 Aug 2013 18:19:50 +0000 (20:19 +0200)]
Tidy up RPC API definitions

Ensure that the layouts of names and values match.

Change-Id: I8cea3dc7ea1fd2a1b722ddd7058564d5195b738b

11 years agoDefine a Schema format for properties
Zane Bitter [Fri, 9 Aug 2013 18:19:50 +0000 (20:19 +0200)]
Define a Schema format for properties

Define a Schema class for properties and their constraints that is easily
serialisable to a JSON schema format that matches the proposed Parameter
input syntax for HOT. Since resource properties have not been exposed to
the user before, this format will make the most sense to a user in the long
term.

A future patch will switch the Property validation code over to using
Schema objects instead of the dictionary-based schemata currently in use.

blueprint resource-properties-schema

Change-Id: I79fa5927bdffeaf103a1c2ba58b709b4ba72b551

11 years agoRemove meaningless property set in models.HeatBase
Liang Chen [Fri, 9 Aug 2013 15:52:36 +0000 (23:52 +0800)]
Remove meaningless property set in models.HeatBase

Seems this was originally ported from Glance.

Change-Id: I8124e9495a5c7585052e149481db44d1e180ac7d

11 years agoTolerance for modified ceilometer alarm notification
Eoghan Glynn [Fri, 9 Aug 2013 09:42:53 +0000 (09:42 +0000)]
Tolerance for modified ceilometer alarm notification

Changes to the ceilometer alarm notification payload are
proposed here:

  https://review.openstack.org/40955
  https://review.openstack.org/41056

i.e. field names in the JSON payload are changed with:

  s/state/current/
  s/alarm/alarm_id/

Tolerance is added to the autoscaling logic for the new
field names.

Change-Id: I19f36d9331b6f28a3195fb5012ea0b9ee274ade3

11 years agoMerge "Use openstack rpc functions to generate _Remote exceptions"
Jenkins [Fri, 9 Aug 2013 10:24:07 +0000 (10:24 +0000)]
Merge "Use openstack rpc functions to generate _Remote exceptions"

11 years agoMerge "HOT parameter validator part"
Jenkins [Fri, 9 Aug 2013 10:10:18 +0000 (10:10 +0000)]
Merge "HOT parameter validator part"

11 years agoInitial input for HOT template guide and spec
Thomas Spatzier [Thu, 8 Aug 2013 16:59:11 +0000 (18:59 +0200)]
Initial input for HOT template guide and spec

This patch adds initial input for the HOT template guide and the HOT
specification.
Note that content so far is based on features implemented so far and
not forward-looking in any way. Whenever new features get implemented,
the guide and spec will be extended appropriately.

Contributes to blueprint hot-specification

Change-Id: I63d29ab0a1db6703b39f981161063d4fd9f97126

11 years agoMerge "Implement neutron pool resource"
Jenkins [Fri, 9 Aug 2013 03:58:27 +0000 (03:58 +0000)]
Merge "Implement neutron pool resource"

11 years agoMerge "Implement neutron health monitor resource"
Jenkins [Fri, 9 Aug 2013 03:58:20 +0000 (03:58 +0000)]
Merge "Implement neutron health monitor resource"

11 years agoMerge "db: Remove deprecated assert_unicode attribute"
Jenkins [Fri, 9 Aug 2013 03:02:37 +0000 (03:02 +0000)]
Merge "db: Remove deprecated assert_unicode attribute"

11 years agoMerge "Add unittests for faultwrap middleware"
Jenkins [Fri, 9 Aug 2013 03:02:30 +0000 (03:02 +0000)]
Merge "Add unittests for faultwrap middleware"

11 years agoMerge "Remove unnecessary individual import tests.utils.X"
Jenkins [Fri, 9 Aug 2013 01:56:11 +0000 (01:56 +0000)]
Merge "Remove unnecessary individual import tests.utils.X"

11 years agoRemove unnecessary individual import tests.utils.X
Liang Chen [Thu, 8 Aug 2013 16:41:37 +0000 (00:41 +0800)]
Remove unnecessary individual import tests.utils.X

Fixes bug #1210183

Change-Id: I530675329a17b10ef684ceec6c51b418726abdb2

11 years agoMerge "Updated from global requirements"
Jenkins [Thu, 8 Aug 2013 22:05:55 +0000 (22:05 +0000)]
Merge "Updated from global requirements"

11 years agoEnsure all REST API error responses are consistent
Luis A. Garcia [Tue, 6 Aug 2013 18:36:02 +0000 (18:36 +0000)]
Ensure all REST API error responses are consistent

Heat exceptions are serialized into JSON/XML responses by the fault app,
which is at the end of the WSGI pipeline. Some REST API errors however
are raised as HTTPExceptions, which are treated by WSGI as responses
ready to be sent back to the user, and they can't reach the fault app.

This patch set disguises HTTPExceptions raised by the wsgi.Resource so
they can reach the app that will serialize them just like all other
errors.

Fixes bug 1208620

Change-Id: Id98dbc1e3b208401be8f0119a6d72d4561a2221a

11 years agoMerge "Refactor compute resources to use nova_utils"
Jenkins [Thu, 8 Aug 2013 17:21:57 +0000 (17:21 +0000)]
Merge "Refactor compute resources to use nova_utils"

11 years agoMerge "Remove raw_template_get_all from db api"
Jenkins [Thu, 8 Aug 2013 17:21:49 +0000 (17:21 +0000)]
Merge "Remove raw_template_get_all from db api"

11 years agoMerge "Provide a way to clean up soft deleted data"
Jenkins [Thu, 8 Aug 2013 17:17:39 +0000 (17:17 +0000)]
Merge "Provide a way to clean up soft deleted data"

11 years agoMerge "Enable stack soft delete for event persistence"
Jenkins [Thu, 8 Aug 2013 17:17:32 +0000 (17:17 +0000)]
Merge "Enable stack soft delete for event persistence"

11 years agoMerge "Exclude heat-cfn, heat-watch from pep8"
Jenkins [Thu, 8 Aug 2013 16:15:42 +0000 (16:15 +0000)]
Merge "Exclude heat-cfn, heat-watch from pep8"

11 years agoRemove raw_template_get_all from db api
Liang Chen [Wed, 7 Aug 2013 00:18:14 +0000 (08:18 +0800)]
Remove raw_template_get_all from db api

This is not used anywhere in the code base anymore, and does not
seem to be useful in the future.

Change-Id: I5964bc0d402abdb5dde889a4c605fe4d4b4b1376

11 years agoProvide a way to clean up soft deleted data
Liang Chen [Fri, 26 Jul 2013 13:39:09 +0000 (21:39 +0800)]
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

11 years agoEnable stack soft delete for event persistence
Liang Chen [Wed, 7 Aug 2013 00:08:22 +0000 (08:08 +0800)]
Enable stack soft delete for event persistence

Instead of removing database records when deleting data from stack,
table, mark them as deleted through the deleted_at field. And allow
access to soft deleted records by stack Id.

blueprint event-persistence

Change-Id: Iaddd9ba683deab65a9b2be3cc2e727c34e816dd4

11 years agoImplement neutron pool resource
Thomas Herve [Wed, 7 Aug 2013 11:48:04 +0000 (13:48 +0200)]
Implement neutron pool resource

The branch adds a new resource creating pool instances in
Neutron LBAAS.

Change-Id: Ie55dd0cc5d2a67296ab175dc3bea11ffb63ba928
Implements: blueprint lbaas-resource

11 years agoImplement neutron health monitor resource
Thomas Herve [Tue, 6 Aug 2013 09:32:40 +0000 (11:32 +0200)]
Implement neutron health monitor resource

The branch adds a new resource creating health-monitor instances in
Neutron LBAAS.

Implements: blueprint lbaas-resources
Change-Id: Ie133f9c55bf57166e1999bbc0f11fd9b9519c1c2

11 years agodb: Remove deprecated assert_unicode attribute
Chuck Short [Thu, 8 Aug 2013 12:41:58 +0000 (08:41 -0400)]
db: Remove deprecated assert_unicode attribute

Remove deprecated assert_unicode sqlalchemy attribute,
removed in sqlalchemy 0.8.0. The deprecation is described
at:

http://docs.sqlalchemy.org/en/latest/changelog/changelog_08.html#change-ad44af79c886d1bb283042deb64f9cbe

Change-Id: I874be66948fc296bc6afe7f731dc4731645f0fbe
Signed-off-by: Chuck Short <chuck.short@canonical.com>
11 years agoRefactor some tests for stack soft-delete
Liang Chen [Wed, 7 Aug 2013 00:04:12 +0000 (08:04 +0800)]
Refactor some tests for stack soft-delete

A few tests need to be refactored so that they will not break after
applying soft-delete on stack table.

blueprint event-persistence

Change-Id: I62d958521ca41717455d5a26756966cab8bf2bb7

11 years agoAdd unittests for faultwrap middleware
Jianing YANG [Thu, 8 Aug 2013 04:55:37 +0000 (12:55 +0800)]
Add unittests for faultwrap middleware

Partially implements bp exception-formatting

Change-Id: Ib57ce625775e222e5b42b22c10687bce7b63d26d

11 years agoUse openstack rpc functions to generate _Remote exceptions
Jianing YANG [Thu, 8 Aug 2013 07:36:00 +0000 (15:36 +0800)]
Use openstack rpc functions to generate _Remote exceptions

use serialize_remote_exception and deserialize_remote_exception
to generate _Remote exceptions in api testing.

Change-Id: I30865306830678db493b83512bbcfac3b27ff13b

11 years agoMerge "Provide a way to clean up testing database"
Jenkins [Thu, 8 Aug 2013 09:11:21 +0000 (09:11 +0000)]
Merge "Provide a way to clean up testing database"

11 years agoMerge "Refactor InstanceGroup to use a nested stack"
Jenkins [Thu, 8 Aug 2013 04:54:08 +0000 (04:54 +0000)]
Merge "Refactor InstanceGroup to use a nested stack"

11 years agoMerge "Add missing _ imports to allow doc generation"
Jenkins [Thu, 8 Aug 2013 04:48:24 +0000 (04:48 +0000)]
Merge "Add missing _ imports to allow doc generation"

11 years agoMerge "Fix H231 Python 3.x incompatible 'except x,y:'"
Jenkins [Thu, 8 Aug 2013 04:48:17 +0000 (04:48 +0000)]
Merge "Fix H231 Python 3.x incompatible 'except x,y:'"

11 years agoMerge "Fix H501 Do not use locals() for string formatting"
Jenkins [Thu, 8 Aug 2013 04:47:57 +0000 (04:47 +0000)]
Merge "Fix H501 Do not use locals() for string formatting"

11 years agoMerge "Implement an "Action in progress" error."
Jenkins [Thu, 8 Aug 2013 03:43:16 +0000 (03:43 +0000)]
Merge "Implement an "Action in progress" error."

11 years agoExclude heat-cfn, heat-watch from pep8
Steve Baker [Thu, 8 Aug 2013 02:13:07 +0000 (14:13 +1200)]
Exclude heat-cfn, heat-watch from pep8

They are due for removal in https://review.openstack.org/#/c/38228/
and are causing many H233 errors when using the syncronised
requirements versions.

Change-Id: Ie632de44360519a0f705052ebaf4fe1304a0c290

11 years agoFix H231 Python 3.x incompatible 'except x,y:'
Steve Baker [Thu, 8 Aug 2013 02:10:57 +0000 (14:10 +1200)]
Fix H231 Python 3.x incompatible 'except x,y:'

This is triggered in the pep8 check when using the syncronised
requirements versions.

Change-Id: Ie73c44b85025f79e7358303fab2697e076f7cabf

11 years agoFix H501 Do not use locals() for string formatting
Steve Baker [Thu, 8 Aug 2013 02:03:03 +0000 (14:03 +1200)]
Fix H501 Do not use locals() for string formatting

This is triggered in the pep8 check when using the syncronised
requirements versions.

Change-Id: If0e38fecaf32d4ba6ec9755f2f11c675acf6d20b

11 years agoProvide a way to clean up testing database
Liang Chen [Tue, 6 Aug 2013 23:50:27 +0000 (07:50 +0800)]
Provide a way to clean up testing database

We will need to clean up stacks(hard delete) sometimes in the tests.
Resoure, ResourceData, and Event need to be cleaned up as well because
of the integrity constraints.

blueprint event-persistence

Change-Id: I355f7a9909eb3ad3febca62fdb57ecbaab73f2ce

11 years agoAdd missing _ imports to allow doc generation
Steve Baker [Wed, 7 Aug 2013 23:20:48 +0000 (11:20 +1200)]
Add missing _ imports to allow doc generation

Fixes bug: 1209413

Change-Id: I7d405ceb6a500cbb3d0eb19e85cb0540564e0643