]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
11 years agoTo support both CW and CM, return alarmurl from policy ref
Angus Salkeld [Mon, 19 Aug 2013 23:46:59 +0000 (09:46 +1000)]
To support both CW and CM, return alarmurl from policy ref

This is so we can still have the following:
  AlarmActions:
  - {Ref: ServerScaleUpPolicy}

and use Ceilometer underneath.

The watchrule now tries to look up the resource by
both name and resource_by_refid.

Change-Id: I4759806919ab4f3ccef66698235b23f7f310cb03

11 years agoStore the generated signed urls in resource_data
Angus Salkeld [Wed, 14 Aug 2013 06:57:13 +0000 (16:57 +1000)]
Store the generated signed urls in resource_data

This is so it does get regenerated everytime GetRefId() is called.

fixes bug 1206505
Change-Id: Ia69d6d65247555918850ecaadfd1c5d1bc837af8

11 years agoRemove "lazy=joined" from the resource_data backref
Angus Salkeld [Wed, 14 Aug 2013 06:51:21 +0000 (16:51 +1000)]
Remove "lazy=joined" from the resource_data backref

This is having some weird interaction with the rsrc_metadata column.
In a later patch I add a call to resource_data_set() in signal_responder
and the metadata tests start failing.

Change-Id: Ib59972fe69570f4ae36e672987419f4841a2de40

11 years agoTry to reduce the number of tests with the same stack_id
Angus Salkeld [Wed, 14 Aug 2013 05:47:33 +0000 (15:47 +1000)]
Try to reduce the number of tests with the same stack_id

Change-Id: I38a689ed65998adc9a3e6542d11d15283ae61044

11 years agoImplement Fn::MemberListToMap
Angus Salkeld [Thu, 22 Aug 2013 22:31:54 +0000 (08:31 +1000)]
Implement Fn::MemberListToMap

This is to allow the CloudWatch::Alarm to be implemented as
a resource template. The Dimensions need to be converted
from [{Name: bla, Value: foo}] into a normal dict.

So we define the Dimensions as a CommaDelimitedList in the template,
then in TemplateResource we see that the property is a list of dicts
and convert it into the aws style memberlist
 '.member.0.Name=bla,.member.0.Value=green'
then in the CW template we can do the following:

matching_metadata:
  "Fn::MemberListToMap": [Name, Value, {"Fn::   Split": [",",
{Ref: Dimensions}]}]

Note: this in not a single case usage as we can use this for the Tags
property that is in a lot of other resources.

Change-Id: I68910c51eaeb0857531028e87b89b9192db4c8ba

11 years agoMerge "Improve update debugging messages"
Jenkins [Thu, 22 Aug 2013 21:13:25 +0000 (21:13 +0000)]
Merge "Improve update debugging messages"

11 years agoMerge "Add UpdatePolicy attribute to Instance/AutoScalingGroup"
Jenkins [Thu, 22 Aug 2013 13:31:16 +0000 (13:31 +0000)]
Merge "Add UpdatePolicy attribute to Instance/AutoScalingGroup"

11 years agoImprove update debugging messages
Zane Bitter [Thu, 22 Aug 2013 11:01:21 +0000 (13:01 +0200)]
Improve update debugging messages

Change-Id: I231275c1ce7dcba441a57d2ac29d2ad59e993e98

11 years agoMerge "Use the global environment to define AWS::CloudWatch::Alarm"
Jenkins [Thu, 22 Aug 2013 10:43:04 +0000 (10:43 +0000)]
Merge "Use the global environment to define AWS::CloudWatch::Alarm"

11 years agoMerge "Load deployer/global environment files at startup"
Jenkins [Thu, 22 Aug 2013 10:43:02 +0000 (10:43 +0000)]
Merge "Load deployer/global environment files at startup"

11 years agoMerge "Add an environment_format.py like the template one"
Jenkins [Thu, 22 Aug 2013 10:43:00 +0000 (10:43 +0000)]
Merge "Add an environment_format.py like the template one"

11 years agoMerge "Fix all the sphinx-build warnings"
Jenkins [Thu, 22 Aug 2013 09:23:19 +0000 (09:23 +0000)]
Merge "Fix all the sphinx-build warnings"

11 years agoMerge "Fix some flake8 warnings in doc/resources.py"
Jenkins [Thu, 22 Aug 2013 09:23:17 +0000 (09:23 +0000)]
Merge "Fix some flake8 warnings in doc/resources.py"

11 years agoMerge "Fix crash in "make html" introduced by the global env"
Jenkins [Thu, 22 Aug 2013 09:21:43 +0000 (09:21 +0000)]
Merge "Fix crash in "make html" introduced by the global env"

11 years agoMerge "Add new attributes to EIPAssociation resource"
Jenkins [Thu, 22 Aug 2013 05:28:07 +0000 (05:28 +0000)]
Merge "Add new attributes to EIPAssociation resource"

11 years agoMerge "Introduce nova_utils.server_to_ipaddress"
Jenkins [Thu, 22 Aug 2013 04:00:09 +0000 (04:00 +0000)]
Merge "Introduce nova_utils.server_to_ipaddress"

11 years agoFix all the sphinx-build warnings
Angus Salkeld [Thu, 22 Aug 2013 02:27:21 +0000 (12:27 +1000)]
Fix all the sphinx-build warnings

except this one:
 WARNING: toctree contains reference to nonexisting document u'api/autoindex'

Change-Id: I176a75c1c3fc9603304f11f867df54d7a7b3610a

11 years agoFix some flake8 warnings in doc/resources.py
Angus Salkeld [Thu, 22 Aug 2013 01:42:31 +0000 (11:42 +1000)]
Fix some flake8 warnings in doc/resources.py

remove doc from the ignore and just fix the issues in conf.py

Change-Id: I30833dd24409087c3482d2034a797fea3f90aa85

11 years agoFix crash in "make html" introduced by the global env
Angus Salkeld [Thu, 22 Aug 2013 01:34:47 +0000 (11:34 +1000)]
Fix crash in "make html" introduced by the global env

Change-Id: Iece0e122841829d3561b71575065ffa7b656b504

11 years agoAdd UpdatePolicy attribute to Instance/AutoScalingGroup
Winson Chan [Fri, 16 Aug 2013 18:35:04 +0000 (11:35 -0700)]
Add UpdatePolicy attribute to Instance/AutoScalingGroup

This is the second part of a series to implement support
for AutoScaling UpdatePolicy.

Defined new update_policy attribute for InstanceGroup
and AutoScalingGroup, and modified init of InstanceGroup and
AutoScalingGroup to parse UpdatePolicy from the template.
Currently, only InstanceGroup and AutoScalingGroup manages
update using UpdatePolicy and so this is not implemented in the
Resource class. This can be revisited when UpdatePolicy is
applicable to other resource types. The resource validation
method is also overridden here to validate the UpdatePolicy.
Included tests to validate various uses cases of templates
with, with bad, without, and removal of UpdatePolicy. This
patch does not address handling of instances update with
UpdatePolicy yet. The next patch will address that.

Change-Id: I1faf1a8a3ba1faf063b6687b34b57b2a96c6bfa8
blueprint: as-update-policy

11 years agoUse the global environment to define AWS::CloudWatch::Alarm
Angus Salkeld [Wed, 14 Aug 2013 11:54:32 +0000 (21:54 +1000)]
Use the global environment to define AWS::CloudWatch::Alarm

This will make it easier for the deployer to define the default
implementation.

Change-Id: If1a8dceb4ad2cade90a56f16dd450e571425c4a6

11 years agoLoad deployer/global environment files at startup
Angus Salkeld [Mon, 19 Aug 2013 09:53:34 +0000 (19:53 +1000)]
Load deployer/global environment files at startup

This allows for a global environment that the deployer can use to set
their own defaults.
An example /etc/heat/environment.d/x.yaml

resource_registry:
  "OS::Quantum*": "OS::Neutron*"
  "AWS::RDS::DBInstance": "file:///etc/heat/templates/AWS_RDS_DBInstance.template"

Change-Id: Iee647a109e5a41d41cd4a79909c6edaca0d17b87

11 years agoAdd an environment_format.py like the template one
Angus Salkeld [Tue, 20 Aug 2013 06:35:25 +0000 (16:35 +1000)]
Add an environment_format.py like the template one

This to make the section checking mechanism less spread out
and more consistent. This can also be used by the global
environment loader.

Change-Id: I7ca7ad754fb702877dedc416a30f573d239933ad

11 years agoAdd new attributes to EIPAssociation resource
Jeff Peeler [Wed, 3 Jul 2013 14:22:25 +0000 (10:22 -0400)]
Add new attributes to EIPAssociation resource

AllocationId
NetworkInterfaceId

The EIP resource also now supports the Domain property, which when set
creates the resource using neutron networking. (Neutron networking is
required for all VPC operations.)

The EIP test covers the new functionality as well as some of the old
using both nova and neutron.

Fixes bug #1164865
Fixes bug #1164866

Change-Id: I7ad7fba8ed6f8a584fc2ca00aaf80144c5274134

11 years agoMerge "Create a Schema from a parameter"
Jenkins [Wed, 21 Aug 2013 12:46:42 +0000 (12:46 +0000)]
Merge "Create a Schema from a parameter"

11 years agoMerge "Wrap the resource registration in a global environment"
Jenkins [Wed, 21 Aug 2013 11:49:32 +0000 (11:49 +0000)]
Merge "Wrap the resource registration in a global environment"

11 years agoIntroduce nova_utils.server_to_ipaddress
Thomas Herve [Fri, 16 Aug 2013 11:24:55 +0000 (13:24 +0200)]
Introduce nova_utils.server_to_ipaddress

Create a utility function used for now by the instance and load balancer
resources to retrieve one IP of a nova server.

Change-Id: I87ace4c61b03a66f3b0c30f3bacd2fce79332ed0

11 years agoMerge "Allow Description in properties schema"
Jenkins [Tue, 20 Aug 2013 15:15:24 +0000 (15:15 +0000)]
Merge "Allow Description in properties schema"

11 years agoMerge "Allow Parameters to set defaults for TemplateResource"
Jenkins [Tue, 20 Aug 2013 14:15:46 +0000 (14:15 +0000)]
Merge "Allow Parameters to set defaults for TemplateResource"

11 years agoUse LONGTEXT for templates in MySQL
Clint Byrum [Mon, 19 Aug 2013 22:02:53 +0000 (15:02 -0700)]
Use LONGTEXT for templates in MySQL

TEXT in PostgreSQL is an unlimited column size. However, in MySQL, it is
limited to 2^16 bytes. LONGTEXT allows 2^32 bytes, which is overkill,
but will prevent MySQL from silently truncating this column and thus
rendering the entire tenant's API access moot.

Fixes bug #1210799

Change-Id: Ib2b379db32a8296cf8c5a2434e7615afc59288e3

11 years agoWrap the resource registration in a global environment
Angus Salkeld [Mon, 19 Aug 2013 05:28:58 +0000 (15:28 +1000)]
Wrap the resource registration in a global environment

Change-Id: I065dadc9fae19ab21d6d4aeae08334f20da161bb

11 years agoCreate a Schema from a parameter
Zane Bitter [Mon, 19 Aug 2013 18:51:45 +0000 (20:51 +0200)]
Create a Schema from a parameter

Add a classmethod to create a property Schema object directly from a
parameter schema.

Change-Id: I335ec48086ea5aeb1fb2afd9af8e93529d9b6051

11 years agoAllow Parameters to set defaults for TemplateResource
Zane Bitter [Mon, 19 Aug 2013 18:51:45 +0000 (20:51 +0200)]
Allow Parameters to set defaults for TemplateResource

Although it is theoretically possible to infer default values for the
Properties of a TemplateResource from the Parameters of the provider
template, this presents a number of conversion issues that are presently
unhandled.

Instead, pass parameter values only for properties that are supplied.  For
the others, allow the parameter defaults in the template to be used.

Change-Id: I2ba49ffeee06c3a272694c18b3875f843ade1e6c

11 years agoMerge "Revert "Implement an "Action in progress" error.""
Jenkins [Mon, 19 Aug 2013 15:38:59 +0000 (15:38 +0000)]
Merge "Revert "Implement an "Action in progress" error.""

11 years agoMerge "Add code from Oslo DB 96d1f887dda Part 2"
Jenkins [Mon, 19 Aug 2013 14:36:02 +0000 (14:36 +0000)]
Merge "Add code from Oslo DB 96d1f887dda Part 2"

11 years agoAllow Description in properties schema
Steve Baker [Fri, 16 Aug 2013 03:21:55 +0000 (15:21 +1200)]
Allow Description in properties schema

The resource document generation already expects
and uses any supplied Description text.

Change-Id: Ife31cd99f6ff88345c3c06e3efeb4b3393e6351b

11 years agoUse nova_utils for keypair validation
Steve Baker [Thu, 15 Aug 2013 23:39:42 +0000 (11:39 +1200)]
Use nova_utils for keypair validation

This removes unnecessary code.

Change-Id: Ide1d12a44213ffd8b7bd414eb00a4d12e3f6cc2a

11 years agoMove _check_resize to nova_utils
Steve Baker [Thu, 15 Aug 2013 23:38:19 +0000 (11:38 +1200)]
Move _check_resize to nova_utils

Refactoring as part of blueprint native-nova-instance.

Change-Id: Ice9a4541316ad04ac04b24ac877e0fc3fbeae9c8

11 years agoMove _deferred_server_statuses to nova_utils
Steve Baker [Thu, 15 Aug 2013 23:37:27 +0000 (11:37 +1200)]
Move _deferred_server_statuses to nova_utils

Refactoring as part of blueprint native-nova-instance.

Change-Id: I91234905a2647ed03fd105b0fe5964ce2319248b

11 years agoMove _delete_server to nova_utils
Steve Baker [Thu, 15 Aug 2013 23:23:49 +0000 (11:23 +1200)]
Move _delete_server to nova_utils

Refactoring as part of blueprint native-nova-instance.

Change-Id: Iaf3ab0333d891e6ac3bb07832a1acffd3e5ba43e

11 years agoMerge "Translate user-facing exception messages"
Jenkins [Sun, 18 Aug 2013 20:01:26 +0000 (20:01 +0000)]
Merge "Translate user-facing exception messages"

11 years agoMerge "Catch "FloatingIpPoolNotFound" in eip.py"
Jenkins [Sun, 18 Aug 2013 15:11:26 +0000 (15:11 +0000)]
Merge "Catch "FloatingIpPoolNotFound" in eip.py"

11 years agoMerge "Adding HOT str_replace and get_resource functions"
Jenkins [Sun, 18 Aug 2013 14:27:03 +0000 (14:27 +0000)]
Merge "Adding HOT str_replace and get_resource functions"

11 years agoRevert "Implement an "Action in progress" error."
Jason Dunsmore [Fri, 16 Aug 2013 18:05:38 +0000 (13:05 -0500)]
Revert "Implement an "Action in progress" error."

This reverts commit faf984cbb5e62980e025191450a02d30aae8e02d.

Multi-engine support is being re-designed to account for the use-case in
bug #1211276.

Fixes bug #1211276

Change-Id: Ief89dd6a9c5014752db8065037dd1dd03efe789e

11 years agoMerge "Make Event object independent of resource object"
Jenkins [Fri, 16 Aug 2013 14:46:29 +0000 (14:46 +0000)]
Merge "Make Event object independent of resource object"

11 years agoMerge "Updated LaunchConfig for AutoScaling UpdatePolicy"
Jenkins [Fri, 16 Aug 2013 14:29:43 +0000 (14:29 +0000)]
Merge "Updated LaunchConfig for AutoScaling UpdatePolicy"

11 years agoMerge "Tests for s3 and swift resources were extended"
Jenkins [Fri, 16 Aug 2013 14:28:28 +0000 (14:28 +0000)]
Merge "Tests for s3 and swift resources were extended"

11 years agoAdd code from Oslo DB 96d1f887dda Part 2
Alexander Gordeev [Thu, 1 Aug 2013 13:55:12 +0000 (17:55 +0400)]
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

11 years agoMake Event object independent of resource object
Liang Chen [Tue, 13 Aug 2013 07:47:58 +0000 (15:47 +0800)]
Make Event object independent of resource object

The event table is pretty much self contained. So we actually don't
need to referece the corresponding resources to retrieve information.

Fixes bug #1204506

Change-Id: If0b88e0f9e243cf3cc6d747ffa04b9a429ea83a2

11 years agoMerge "Store owner_id on Stack so updates maintain it"
Jenkins [Thu, 15 Aug 2013 18:04:31 +0000 (18:04 +0000)]
Merge "Store owner_id on Stack so updates maintain it"

11 years agoTranslate user-facing exception messages
Ben Nemec [Thu, 15 Aug 2013 17:02:46 +0000 (12:02 -0500)]
Translate user-facing exception messages

Exception messages should be translated because they can be
visible to users.  Also convert these strings to use named
format parameters in case translation reorders them.

Change-Id: Ife6de17890ba153b8124e91edce6e6d540da3cac

11 years agoMerge "Tolerate missing user on signal responder delete"
Jenkins [Thu, 15 Aug 2013 17:08:19 +0000 (17:08 +0000)]
Merge "Tolerate missing user on signal responder delete"

11 years agoUpdated LaunchConfig for AutoScaling UpdatePolicy
Winson Chan [Tue, 13 Aug 2013 07:37:48 +0000 (00:37 -0700)]
Updated LaunchConfig for AutoScaling UpdatePolicy

This is the first part of a series to implement support
for AutoScaling UpdatePolicy.

Updated LaunchConfiguration resource type to return
self.physical_resource_name() in FnGetRefId(). For both
InstanceGroup and AutoScalingGroup, the property
LaunchConfigurationName is added to the list of update allowed
properties. With this change, any property change to the
LaunchConfiguration resource will be result in a different
LaunchConfigurationName on reference resolution and thus will
trigger InstanceGroup and AutoScalingGroup to handle the update.

Change-Id: I94da8f7083b64873c511b953c6bc63dba2b51034
blueprint: as-update-policy

11 years agoCatch "FloatingIpPoolNotFound" in eip.py
Hui HX Xiang [Mon, 5 Aug 2013 05:30:32 +0000 (22:30 -0700)]
Catch "FloatingIpPoolNotFound" in eip.py

This patchset catch the "FloatingIpPoolNotFound" exception in eip
of heat, the floatingippool cannot be configured by heat currently
but it can be assigned by setting 'default_floating_pool' in
nova.conf

Fixes bug #1206865

Change-Id: Idd0fd39f5470904dd351a39f66a57781d9f7c444

11 years agoMerge "Extract failure reason before deleting nova server"
Jenkins [Thu, 15 Aug 2013 04:43:49 +0000 (04:43 +0000)]
Merge "Extract failure reason before deleting nova server"

11 years agoTests for s3 and swift resources were extended
Maksym Iarmak [Wed, 14 Aug 2013 15:20:12 +0000 (18:20 +0300)]
Tests for s3 and swift resources were extended

According to the description of the bug, the problem
is in the mechanism of dependencies. That is an internal
function Ref is not working properly. To repeat it, check
was added to the test templates (s3_test, swift_test). Thus,
the bug has not been reproduced.

Also, the method FnGetRefId in s3 and swift resources,
despite its name, returns the resource name in the format
'stack_name-resource_name-resource_id'. This is achieved
by the method physical_resource_name, that implemented in
superclass resource.Resource.

Bug 1202987

Change-Id: I0f85c39e10e8b455f93fdd768cd5e6ee14497277

11 years agoStore owner_id on Stack so updates maintain it
Christopher Armstrong [Tue, 13 Aug 2013 23:40:12 +0000 (23:40 +0000)]
Store owner_id on Stack so updates maintain it

Instead of passing owner to the store() method of parser.Stack,
it is now maintained as an attribute of the Stack instance,
and store() will use that saved attribute when saving.

This fixes the problem of losing the owner_id on updates to
a stack.

Fixes bug 1212013

Change-Id: I1e3b7832291ca0f5cda24c1995ab782824e48943

11 years agoMerge "Handle heat with SQLAlchemy >= 0.8"
Jenkins [Wed, 14 Aug 2013 12:07:01 +0000 (12:07 +0000)]
Merge "Handle heat with SQLAlchemy >= 0.8"

11 years agoMerge "Do validation in parameter schema"
Jenkins [Wed, 14 Aug 2013 10:06:50 +0000 (10:06 +0000)]
Merge "Do validation in parameter schema"

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 agoExtract failure reason before deleting nova server
Steve Baker [Wed, 14 Aug 2013 03:31:01 +0000 (15:31 +1200)]
Extract failure reason before deleting nova server

If a nova server create fails, the server is deleted
leaving no indication of the source of the failure.

This change extracts the failure reason from the nova
server fault attribute and includes that in the raised
error.

Change-Id: I7a4618d9e3fded3cde1c15d5322b52eaf63a68f5

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 agoHandle heat with SQLAlchemy >= 0.8
Zhang Lei (Sneeze) [Wed, 14 Aug 2013 02:07:52 +0000 (10:07 +0800)]
Handle heat with SQLAlchemy >= 0.8

Lots of unit tests failed with the new SQLAlchemy(0.8.2)
which makes build failed, this patch will fix all the related
bug like no MutableType and changed module name in SQLAlchemy(0.8.2)

Fixes bug #1199435

Change-Id: I67d7588db088dd3dd88d44c32e78c6b8a4708bff

11 years agoTolerate missing user on signal responder delete
Steve Baker [Tue, 13 Aug 2013 23:15:38 +0000 (11:15 +1200)]
Tolerate missing user on signal responder delete

SignalResponder delete fails if the created user
has already been deleted.

This change catches the 404 as for the User resource.

Change-Id: I55034469d10f2742296f0415fe26272d3683530d
Closes-bug: #1211633

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 agoAdding HOT str_replace and get_resource functions
Thomas Spatzier [Mon, 12 Aug 2013 16:10:48 +0000 (18:10 +0200)]
Adding HOT str_replace and get_resource functions

This patch adds support for two functions, get_resource and str_replace to HOT
to enable the definition of new HOT samples. Especially str_replace aims to
simplify the definition of scripts in HOT templates.

Change-Id: Ic14fee36bdc0b9c5d79ade7ece5fa1b5331c864a

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