]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
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 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 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 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 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 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

11 years agoRefactor compute resources to use nova_utils
Randall Burt [Wed, 7 Aug 2013 00:48:02 +0000 (19:48 -0500)]
Refactor compute resources to use nova_utils

Change-Id: I4a03a8062998c8f713ada47d0d86f2ace52cc253

11 years agoUpdated from global requirements
Monty Taylor [Wed, 7 Aug 2013 22:19:14 +0000 (19:19 -0300)]
Updated from global requirements

Change-Id: Ibf423f14a5c37aa298b2115bfd4936f660c6f530

11 years agoMerge "Refactor useful nova functions for re-use."
Jenkins [Wed, 7 Aug 2013 20:00:11 +0000 (20:00 +0000)]
Merge "Refactor useful nova functions for re-use."

11 years agoImplement an "Action in progress" error.
Jason Dunsmore [Thu, 1 Aug 2013 17:37:29 +0000 (12:37 -0500)]
Implement an "Action in progress" error.

Raises an "Action in progress" error if an action is in progress when
another action is issued.

Fixes bug #1207032

Change-Id: I2b6fd92cfa4b93ac2531dd3d76bf2dfc01e58c50

11 years agoDon't cache data from the API that could change.
Jason Dunsmore [Fri, 2 Aug 2013 20:19:30 +0000 (15:19 -0500)]
Don't cache data from the API that could change.

The Cloud Server resource caches Nova server objects, which could change
between Heat calls.  Heat should get new data from the Nova API on each
run.

Fixes bug #1208559

Change-Id: I7dd8a99745cf8a3aab974468acae8dc1f85369ee

11 years agoMerge "Rename Quantum to Neutron"
Jenkins [Wed, 7 Aug 2013 13:00:38 +0000 (13:00 +0000)]
Merge "Rename Quantum to Neutron"

11 years agoMerge "Add help option to Config Settings"
Jenkins [Wed, 7 Aug 2013 13:00:32 +0000 (13:00 +0000)]
Merge "Add help option to Config Settings"

11 years agoMerge "Fix test cases pass dict schema directly as parameter schema object"
Jenkins [Wed, 7 Aug 2013 13:00:30 +0000 (13:00 +0000)]
Merge "Fix test cases pass dict schema directly as parameter schema object"

11 years agoMerge "DB models and migration scripts for soft delete"
Jenkins [Wed, 7 Aug 2013 13:00:28 +0000 (13:00 +0000)]
Merge "DB models and migration scripts for soft delete"

11 years agoStop copying UUIDStub, put it into tests.utils
Angus Salkeld [Wed, 7 Aug 2013 10:24:17 +0000 (20:24 +1000)]
Stop copying UUIDStub, put it into tests.utils

Change-Id: Ice52f4294df5575579795eecfcbae9748f252e2e

11 years agoHOT parameter validator part
JUN JIE NAN [Thu, 1 Aug 2013 03:14:12 +0000 (11:14 +0800)]
HOT parameter validator part

Introduce new class ParamSchema to decouple parameter and its schema,
do validation in schema, for hot template, implement HotParamSchema as
it subclass.

Implements blueprint hot-parameters

Change-Id: I8720c62e41a1f182584c4518163d422784c23b37

11 years agoFix test cases pass dict schema directly as parameter schema object
JUN JIE NAN [Thu, 1 Aug 2013 03:14:12 +0000 (11:14 +0800)]
Fix test cases pass dict schema directly as parameter schema object

Filter the parameter schema snippet through a Template object and out
the other side completely unchanged before passing it to Parameter.

Implements blueprint hot-parameters

Change-Id: I8c3dd99c1a2f460f50a92565d9098c70c9e77a8a

11 years agoRename Quantum to Neutron
Steven Dake [Wed, 7 Aug 2013 02:41:26 +0000 (19:41 -0700)]
Rename Quantum to Neutron

quantumclient is gone upstream and has been replaced by neutronclient.

This patch retains the OS::Quantum::XX namespace

Fixes: bug #1197208
Change-Id: Id48f9598ea1884132d411ad533770ae49494102b

11 years agoMerge "Don't assign "error" variable twice."
Jenkins [Wed, 7 Aug 2013 04:54:56 +0000 (04:54 +0000)]
Merge "Don't assign "error" variable twice."

11 years agoMerge "Add the enabled property to the ceilometer alarm."
Jenkins [Wed, 7 Aug 2013 03:06:12 +0000 (03:06 +0000)]
Merge "Add the enabled property to the ceilometer alarm."

11 years agoMerge "Returns text error when instance validation fails"
Jenkins [Wed, 7 Aug 2013 02:14:41 +0000 (02:14 +0000)]
Merge "Returns text error when instance validation fails"

11 years agoAdd the enabled property to the ceilometer alarm.
Angus Salkeld [Mon, 5 Aug 2013 12:46:40 +0000 (22:46 +1000)]
Add the enabled property to the ceilometer alarm.

Change-Id: Ic0f96be74f36884868dad52b0bfe494406e031d9

11 years agoRefactor useful nova functions for re-use.
Randall Burt [Tue, 6 Aug 2013 22:07:26 +0000 (17:07 -0500)]
Refactor useful nova functions for re-use.

Refactor handy nova functions out of Instance and into a helper
module. This allows alternate compute implementations to use
this functionality without having to subclass.

Change-Id: I529e2d1324981de7336264b5c697f1944668d013

11 years agoRefactor InstanceGroup to use a nested stack
Christopher Armstrong [Mon, 22 Jul 2013 21:35:13 +0000 (16:35 -0500)]
Refactor InstanceGroup to use a nested stack

Much of the code of InstanceGroup was able to be deleted in
preference for using the native functionality of StackResource.
InstanceGroup now generates a template and updates the nested
stack when it needs to be created or resized.

blueprint instance-group-nested-stack

Fixes bug 1189278

Change-Id: Ic08a55cad1ac34d69080c0ef2dae4877f1fefd29

11 years agoDB models and migration scripts for soft delete
Liang Chen [Thu, 25 Jul 2013 09:45:45 +0000 (17:45 +0800)]
DB models and migration scripts for soft delete

Only apply soft-delete on stack table for now. event, user_creds
and raw_template records will remain unchanged after stack
deletion, and those 'deleted' data can be cleaned up by the
purge_delete command provided in follow patch.

blueprint event-persistence

Change-Id: I173cc6037615ff252968297981c36e51cb9d3fd3

11 years agoReturns text error when instance validation fails
Jianing YANG [Thu, 25 Jul 2013 12:47:31 +0000 (20:47 +0800)]
Returns text error when instance validation fails

Since heat now is able to return parsable errors by middleware, we
don't need to return jsonfied error strings here.

Fixes Bug 1204582

Change-Id: Id3d68b9996ad67df0e25c6db5754f73bfa1e8830

11 years agoMerge "Fix test cases pass dict as template object directly."
Jenkins [Tue, 6 Aug 2013 08:51:20 +0000 (08:51 +0000)]
Merge "Fix test cases pass dict as template object directly."

11 years agoAdd Babel missing requirement
Clint Byrum [Tue, 6 Aug 2013 02:58:29 +0000 (19:58 -0700)]
Add Babel missing requirement

Babel is required by heat.openstack.common.gettextutils but was only in
test-requirements.txt.

Fixes bug #1208673

Change-Id: Iaffcbc861e64caa37d64335f0fb6e568672ffc52

11 years agoFix test cases pass dict as template object directly.
JUN JIE NAN [Mon, 5 Aug 2013 03:34:17 +0000 (11:34 +0800)]
Fix test cases pass dict as template object directly.

Pass an actual Template object instead of a dictionary to Parameters

Implements blueprint hot-parameters

Change-Id: I2c101ca3eaeb918b093b49069842c0d5c349ffc8

11 years agoMerge "Rename: VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN"
Jenkins [Tue, 6 Aug 2013 00:23:34 +0000 (00:23 +0000)]
Merge "Rename: VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN"

11 years agoMerge "Change token name from context."
Jenkins [Tue, 6 Aug 2013 00:23:33 +0000 (00:23 +0000)]
Merge "Change token name from context."

11 years agoMerge "Small tweaks to recreation of remote errors"
Jenkins [Mon, 5 Aug 2013 21:52:13 +0000 (21:52 +0000)]
Merge "Small tweaks to recreation of remote errors"

11 years agoMerge "Revert "Replace part_handler.py with write-files cloudinit mechanism""
Jenkins [Mon, 5 Aug 2013 19:47:09 +0000 (19:47 +0000)]
Merge "Revert "Replace part_handler.py with write-files cloudinit mechanism""

11 years agoDon't assign "error" variable twice.
Jason Dunsmore [Mon, 5 Aug 2013 18:56:42 +0000 (13:56 -0500)]
Don't assign "error" variable twice.

Fixes bug #1208567

Change-Id: Iaf22f68935d833d749615f998f402fe997e8e029

11 years agoMerge "Include the resource and action in ResourceFailure exceptions"
Jenkins [Mon, 5 Aug 2013 18:37:37 +0000 (18:37 +0000)]
Merge "Include the resource and action in ResourceFailure exceptions"

11 years agoMerge "Unit tests: Don't raise ResourceFailure directly"
Jenkins [Mon, 5 Aug 2013 18:37:30 +0000 (18:37 +0000)]
Merge "Unit tests: Don't raise ResourceFailure directly"

11 years agoMerge "unit tests: Add a handle_delete method to GenericResource"
Jenkins [Mon, 5 Aug 2013 18:37:23 +0000 (18:37 +0000)]
Merge "unit tests: Add a handle_delete method to GenericResource"

11 years agoChange token name from context.
Andrew Plunk [Thu, 25 Jul 2013 19:04:06 +0000 (14:04 -0500)]
Change token name from context.

Remove password auth from pyrax to conform with
the changes going through the engine regarding
not using a password. Previous commit was an
incorrect branch with a bug.

blueprint pyrax-token-auth

Change-Id: I47cd00199133b88a2343b12c847635c726452629

11 years agoRevert "Replace part_handler.py with write-files cloudinit mechanism"
Steven Dake [Fri, 2 Aug 2013 01:05:05 +0000 (18:05 -0700)]
Revert "Replace part_handler.py with write-files cloudinit mechanism"

Ubuntu has 0.6 of cloudinit, and write-files doesn't work on that
distro.  Ubuntu does not intend to update cloudinit in their LTS release
to 0.7.

This reverts commit 621f5bfdbab46498b37cdc4865afa57e0f0498e0.
Fixes: Bug #1207088
Change-Id: If80863883afee28bdde6dd506826ec5710cc0308

11 years agoMerge "Rackspace: Don't raise ResourceFailure exceptions"
Jenkins [Mon, 5 Aug 2013 16:48:34 +0000 (16:48 +0000)]
Merge "Rackspace: Don't raise ResourceFailure exceptions"

11 years agoMerge "Resource: Clean up exception handling and error messages"
Jenkins [Mon, 5 Aug 2013 16:39:46 +0000 (16:39 +0000)]
Merge "Resource: Clean up exception handling and error messages"

11 years agoRename: VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN
JUN JIE NAN [Thu, 1 Aug 2013 03:38:34 +0000 (11:38 +0800)]
Rename: VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN

Rename VALUES to ALLOWED_VALUES, PATTERN to ALLOWED_PATTERN in
parameters and modify related references in other modules

Implements blueprint hot-parameters

Change-Id: Iad018f6a9fc1166aa2c5d94720faf997dc7e98a3

11 years agoMerge "Remove support for eventlet 0.9.16"
Jenkins [Mon, 5 Aug 2013 09:58:33 +0000 (09:58 +0000)]
Merge "Remove support for eventlet 0.9.16"

11 years agoMerge "Make Volumes work with the default AvailabilityZone"
Jenkins [Mon, 5 Aug 2013 01:27:32 +0000 (01:27 +0000)]
Merge "Make Volumes work with the default AvailabilityZone"

11 years agoRemove support for eventlet 0.9.16
Dirk Mueller [Sun, 4 Aug 2013 15:49:40 +0000 (17:49 +0200)]
Remove support for eventlet 0.9.16

We require 0.12.0 or newer, so 0.9.16 compatibility code
is no longer needed.

Change-Id: Idda955b64ce625ea30cc18366df01cc024cf26d1

11 years agoSmall tweaks to recreation of remote errors
Luis A. Garcia [Tue, 23 Jul 2013 23:59:32 +0000 (23:59 +0000)]
Small tweaks to recreation of remote errors

The patch adds heat common exceptions to the list of trusted exceptions
that can be re-spawned across RPC calls (this is the default behavior
for all OS components). The patch adds the corresponding package to the
declaration of the allowed_rpc_exception_modules as well as to the conf
sample.

Change-Id: Ib89d0bd4dd8f5240a9f3e973b8a04d0a5bfe2193

11 years agoEnable localizable REST API responses via the Accept-Language header
Luis A. Garcia [Thu, 18 Jul 2013 00:49:49 +0000 (00:49 +0000)]
Enable localizable REST API responses via the Accept-Language header

Add support for doing language resolution for a request, based on the
Accept-Language HTTP header. Using the lazy gettext functionality, from
oslo gettextutils, it is possible to use the resolved language to
translate exception messages to the user requested language and
return that translation from the API.

The patch removes individually imported _() so they don't replace the
one installed service-wide.

Also, it adds the ability to fully re-create a remote error
with the same kwargs with which it was originally created, so that we
can translate it and show it to the user.

Partially implements bp user-locale-api.

Change-Id: I63edc8463836bfff257daa8a2c66ed5d3a444254

11 years agoInclude the resource and action in ResourceFailure exceptions
Zane Bitter [Fri, 2 Aug 2013 12:48:54 +0000 (14:48 +0200)]
Include the resource and action in ResourceFailure exceptions

An update operation performs 3 different kinds of actions on resources
(update, create and delete), and we may want to handle failures differently
depending on the action.

Change-Id: Icf60a1aea882251150a1507183cf2d23da92675f

11 years agoUnit tests: Don't raise ResourceFailure directly
Zane Bitter [Fri, 2 Aug 2013 16:58:00 +0000 (18:58 +0200)]
Unit tests: Don't raise ResourceFailure directly

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: I1e0376a4a00fc3f1114b9bc76bbb1d5d0d98b166

11 years agounit tests: Add a handle_delete method to GenericResource
Zane Bitter [Thu, 1 Aug 2013 13:26:38 +0000 (15:26 +0200)]
unit tests: Add a handle_delete method to GenericResource

This allows us to stub it in unit tests.

Change-Id: I9f8ec45e080efb481676be24541a75c16422a765

11 years agoRackspace: Don't raise ResourceFailure exceptions
Zane Bitter [Fri, 2 Aug 2013 16:55:30 +0000 (18:55 +0200)]
Rackspace: Don't raise ResourceFailure exceptions

ResourceFailure is 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: Ie15cad32ee31beca9b0f7e9a9473ced9956a2e3b

11 years agoSync gettextutils from oslo
Luis A. Garcia [Tue, 23 Jul 2013 20:32:51 +0000 (20:32 +0000)]
Sync gettextutils from oslo

The oslo changes necessary for delayed translation were refactored in
oslo. This patch set brings in the refactored changes, implemented
under the same change-id mentioned below.

Partially implements bp user-locale-api

Change-Id: I27640a3c8b255be51bc6396d238098bd25af61ec

11 years agoResource: Clean up exception handling and error messages
Zane Bitter [Fri, 2 Aug 2013 13:33:07 +0000 (15:33 +0200)]
Resource: Clean up exception handling and error messages

Change-Id: Ibd93e8b22bca708ced8ed8c29760fef73a649255

11 years agoMerge "Rename rackspace server ImageName, Flavor, UserData."
Jenkins [Fri, 2 Aug 2013 09:22:36 +0000 (09:22 +0000)]
Merge "Rename rackspace server ImageName, Flavor, UserData."