]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
12 years agoMerge "Update dependency versions to match oslo-incubator"
Jenkins [Thu, 14 Mar 2013 11:01:59 +0000 (11:01 +0000)]
Merge "Update dependency versions to match oslo-incubator"

12 years agoMerge "heat engine : fix exception syntax issue"
Jenkins [Thu, 14 Mar 2013 05:45:08 +0000 (05:45 +0000)]
Merge "heat engine : fix exception syntax issue"

12 years agoMerge "Remove Nova dependencies from hacking test"
Jenkins [Wed, 13 Mar 2013 22:17:40 +0000 (22:17 +0000)]
Merge "Remove Nova dependencies from hacking test"

12 years agoMerge "heat docs : Add heat-watch manpage"
Jenkins [Wed, 13 Mar 2013 19:15:37 +0000 (19:15 +0000)]
Merge "heat docs : Add heat-watch manpage"

12 years agoheat engine : fix exception syntax issue
Steven Hardy [Wed, 13 Mar 2013 18:03:34 +0000 (18:03 +0000)]
heat engine : fix exception syntax issue

Fix exception clause to use a tuple or the two types of
exception are not correctly caught.

fixes bug 1154708

Change-Id: Ia742c92dc189d03f8034ca864334526f1234dde3

12 years agoheat docs : Add manpage for heat-boto
Steven Hardy [Wed, 13 Mar 2013 14:12:29 +0000 (14:12 +0000)]
heat docs : Add manpage for heat-boto

Fixes bug 1153688

Change-Id: Ie48c7158d253951e5885e8b701cd1c4c9a5fa37e

12 years agoRemove Nova dependencies from hacking test
Zane Bitter [Wed, 13 Mar 2013 11:41:06 +0000 (12:41 +0100)]
Remove Nova dependencies from hacking test

References to Nova in the docstrings(!) of the hacking.py tests caused the
run_pep8.sh script to fail if the Grizzly development version of Nova was
not installed. Update all the references to use Heat packages instead.

Change-Id: I2e84e9a231451705d61fa9acddc65ee95a98e294

12 years agoheat docs : Add heat-watch manpage
Steven Hardy [Wed, 13 Mar 2013 11:37:59 +0000 (11:37 +0000)]
heat docs : Add heat-watch manpage

fixes bug 1153689

Change-Id: I7a4566cb850cf94761c1948fa7ad976e7d4f5446

12 years agoUpdate dependency versions to match oslo-incubator
Zane Bitter [Wed, 13 Mar 2013 08:28:14 +0000 (09:28 +0100)]
Update dependency versions to match oslo-incubator

Fixes bug 1097843

Change-Id: I3bd56261ed9e3640adb07965d4394d99db45e0b5

12 years agoFix security groups (need to be accessed as attributes)
Angus Salkeld [Wed, 13 Mar 2013 06:16:20 +0000 (17:16 +1100)]
Fix security groups (need to be accessed as attributes)

bug 1134193
Thanks Lukas Barton for the patch in the bug.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Change-Id: I448ba76fcf47d4e02775ff8eca38897eb399a3cc

12 years agoMerge "Remove todolist from docs index"
Jenkins [Wed, 13 Mar 2013 00:39:21 +0000 (00:39 +0000)]
Merge "Remove todolist from docs index"

12 years agoRemove todolist from docs index
Angus Salkeld [Wed, 13 Mar 2013 00:13:12 +0000 (11:13 +1100)]
Remove todolist from docs index

This does not seem to be supported, so removing.

bug 1153681
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Change-Id: I830980997438562d1ec241c33fcd8e67c32b21d9

12 years agoOnly split roles if they are not None.
Ian Main [Fri, 1 Mar 2013 04:30:59 +0000 (23:30 -0500)]
Only split roles if they are not None.

Change-Id: I2fbfbd6f6b1c898f7032744f9411821d5d97048c
Signed-off-by: Ian Main <imain@redhat.com>
Fixes: bug #1136891
12 years agoMerge "Revert NestedStack FnGetRefId changes"
Jenkins [Tue, 12 Mar 2013 19:34:32 +0000 (19:34 +0000)]
Merge "Revert NestedStack FnGetRefId changes"

12 years agoMerge "heat engine : Add validation of stack names"
Jenkins [Tue, 12 Mar 2013 18:35:08 +0000 (18:35 +0000)]
Merge "heat engine : Add validation of stack names"

12 years agoMerge "heat templates : Update for F18"
Jenkins [Tue, 12 Mar 2013 18:35:05 +0000 (18:35 +0000)]
Merge "heat templates : Update for F18"

12 years agoRevert NestedStack FnGetRefId changes
Zane Bitter [Tue, 12 Mar 2013 18:29:38 +0000 (19:29 +0100)]
Revert NestedStack FnGetRefId changes

This partially reverts commit e376c83cbd57c0720336848e4b82e3b7b804a347.

Allow StackResource to set the resource_id, since it will be the one
retrieving the stack using it.

Fixes bug #1154202

Change-Id: I2140afb4e9bf89b4eb73e45f4ef5974df98e87e1

12 years agoMerge "Squash Grizzly database migrations"
Jenkins [Tue, 12 Mar 2013 18:29:13 +0000 (18:29 +0000)]
Merge "Squash Grizzly database migrations"

12 years agoMerge "Pin SQLAlchemy to 0.7.x"
Jenkins [Tue, 12 Mar 2013 18:10:22 +0000 (18:10 +0000)]
Merge "Pin SQLAlchemy to 0.7.x"

12 years agoSwitch to final 1.1.0 oslo.config release
Mark McLoughlin [Tue, 12 Mar 2013 16:37:35 +0000 (16:37 +0000)]
Switch to final 1.1.0 oslo.config release

Fixes bug #1128256

oslo.config has now been released to PyPI in time for Grizzly RC1 so
we can switch to using it directly.

Change-Id: I655f831718ae5f4e25e941ee206fe195214a9a91

12 years agoheat templates : Update for F18
Steven Hardy [Tue, 12 Mar 2013 14:39:11 +0000 (14:39 +0000)]
heat templates : Update for F18

Remove F16 as it's EOL, update with F18 as it's the current
version.  Leave the default as F17 for now in all except the
Openshift templates (because Openshift doesn't work on F17,
although these templates are currently broken anyway..)

fixes bug 1154121

Change-Id: Ia95e6bfb4a15e355dfb0051d57f5b70a408551c6

12 years agoheat engine : Add validation of stack names
Steven Hardy [Tue, 12 Mar 2013 09:50:33 +0000 (09:50 +0000)]
heat engine : Add validation of stack names

Add regex validation of stack names, aligns us with stack names
allowed by AWS, with the addition of "." and "_" characters

fixes bug 1103447

Change-Id: I8fab0d3ad03379dfc2a18dc016e66ca8fee6cc86

12 years agoPin SQLAlchemy to 0.7.x
Dirk Mueller [Mon, 11 Mar 2013 15:28:17 +0000 (16:28 +0100)]
Pin SQLAlchemy to 0.7.x

0.7.10 has been released and is compatible with 0.7.x. Instead
of pinning to 0.7.9, simply pin to 0.7.x to avoid SQLAlchemy 0.8

Fixes: Bug #1153983
Change-Id: I1a2ea0c36161df15fd55e95a6679628d14858944

12 years agoSquash Grizzly database migrations
Zane Bitter [Tue, 12 Mar 2013 09:03:29 +0000 (10:03 +0100)]
Squash Grizzly database migrations

Fixes bug #1072949

Change-Id: I07e4d1454141c9011aacdec3a4eb01a3ea1936c9

12 years agoUse internal DB management
Zane Bitter [Tue, 12 Mar 2013 09:03:29 +0000 (10:03 +0100)]
Use internal DB management

Use our own internal code for managing database migrations, rather than
calling sqlalchemy-migrate's command line directly. This allows us to
automatically specify the initial version of the database, which is
required in order to be able to squash migrations (bug 1072949).

Change-Id: I88206f8b55fe6fe4016cee8e5bf1d5eeb0ae30d2

12 years agoMerge "Register DB options independently of engine"
Jenkins [Tue, 12 Mar 2013 02:02:01 +0000 (02:02 +0000)]
Merge "Register DB options independently of engine"

12 years agoMerge "Avoid manipulating DB directly in unit test"
Jenkins [Mon, 11 Mar 2013 20:11:56 +0000 (20:11 +0000)]
Merge "Avoid manipulating DB directly in unit test"

12 years agoMerge "Establish an initial version of the database"
Jenkins [Mon, 11 Mar 2013 20:10:19 +0000 (20:10 +0000)]
Merge "Establish an initial version of the database"

12 years agoMerge "Set correct type for owner_id in DB model"
Jenkins [Mon, 11 Mar 2013 20:10:04 +0000 (20:10 +0000)]
Merge "Set correct type for owner_id in DB model"

12 years agoMerge "Skip quantum unit tests if client not installed"
Jenkins [Mon, 11 Mar 2013 20:10:01 +0000 (20:10 +0000)]
Merge "Skip quantum unit tests if client not installed"

12 years agoRegister DB options independently of engine
Zane Bitter [Mon, 11 Mar 2013 15:54:21 +0000 (16:54 +0100)]
Register DB options independently of engine

We need a script that will just manage database migrations (for bug
1072949), so for this purpose we want to register only the DB options, not
all of the engine options.

Change-Id: I99bb8d5800741d71572a14c3a5a33dcf0e1b0268

12 years agoAvoid manipulating DB directly in unit test
Zane Bitter [Mon, 11 Mar 2013 15:54:21 +0000 (16:54 +0100)]
Avoid manipulating DB directly in unit test

Use the parser.Stack class for inserting data into the database in the
watch rule unit tests. If there is direct database manipulation in the unit
tests, it risks falling out of step with the implementation in the code (in
this case, by not supplying the disable_rollback value).

(Required to squash DB migrations, bug 1072949)

Change-Id: I66e5a0093d20222c876f52e626043704777dcb6a

12 years agoEstablish an initial version of the database
Zane Bitter [Mon, 11 Mar 2013 15:54:21 +0000 (16:54 +0100)]
Establish an initial version of the database

Adapted from Nova commit ee2f6f1bed21a5ef92d84634cd4e949062073d62. This
will allow us to squash database migrations.

Change-Id: Icede692e4cc866cd27bae3aaa19c1f2466b989d0

12 years agoSet correct type for owner_id in DB model
Zane Bitter [Mon, 11 Mar 2013 15:54:20 +0000 (16:54 +0100)]
Set correct type for owner_id in DB model

This was already fixed in the database migrations (see bug 1078854), but
was still wrong in the model.

Change-Id: I8c0302d295ac228b6911a6c55e841066a502bdb1

12 years agoheat clients : Fix --timeout option for heat-boto
Steven Hardy [Mon, 11 Mar 2013 16:16:45 +0000 (16:16 +0000)]
heat clients : Fix --timeout option for heat-boto

Fix boto client wrapper so it passes the timeout value to boto

fixes bug 1135970

Change-Id: Ic1d242cf038e9244c8fb2efc65659cd6f9976df3

12 years agoSkip quantum unit tests if client not installed
Zane Bitter [Mon, 11 Mar 2013 15:54:20 +0000 (16:54 +0100)]
Skip quantum unit tests if client not installed

Quantum is optional, so we should skip unit tests that require
quantumclient if it is not available.

Fixes bug 1152242

Change-Id: I6c399b1845adfe457051c372601db6352cdf6261

12 years agoMerge "Delay calling _get_user() until AccessKey is created"
Jenkins [Mon, 11 Mar 2013 10:00:24 +0000 (10:00 +0000)]
Merge "Delay calling _get_user() until AccessKey is created"

12 years agoMerge "Recognise arn: for REST stack lookup."
Jenkins [Mon, 11 Mar 2013 09:57:38 +0000 (09:57 +0000)]
Merge "Recognise arn: for REST stack lookup."

12 years agoDelay calling _get_user() until AccessKey is created
Steve Baker [Mon, 11 Mar 2013 04:05:44 +0000 (17:05 +1300)]
Delay calling _get_user() until AccessKey is created

Change-Id: I149909d9677f348edd415d3e5f37322b8ad33d28
Fixes: bug #1153397
12 years agoMerge "Update to Quantum Client 2.2.0"
Jenkins [Sun, 10 Mar 2013 20:16:02 +0000 (20:16 +0000)]
Merge "Update to Quantum Client 2.2.0"

12 years agoMerge "heat engine : store stack on failed update"
Jenkins [Sun, 10 Mar 2013 20:14:49 +0000 (20:14 +0000)]
Merge "heat engine : store stack on failed update"

12 years agoRecognise arn: for REST stack lookup.
Steve Baker [Fri, 8 Mar 2013 00:08:04 +0000 (13:08 +1300)]
Recognise arn: for REST stack lookup.

Note that the Routes mapper does brittle regexp fu to map parameters,
hence using \x3A for matching a colon

Fixes: Bug #1131759
Change-Id: I063bf9057782c1c0a3f809d4f8068e2594be264d

12 years agoUpdate to Quantum Client 2.2.0
Aaron Rosen [Fri, 8 Mar 2013 18:12:14 +0000 (10:12 -0800)]
Update to Quantum Client 2.2.0

This patch updates tools/pip-requires to use the python-quantumclient 2.2
It also limits the version to <3.0.0 to prevent breaking something accidently
when 3.0.0 is released.

Fixes bug 1152695

Change-Id: If47e5bf1d638a2ac87d523651060fc7859bf8049

12 years agoheat engine : store stack on failed update
Steven Hardy [Fri, 8 Mar 2013 17:23:17 +0000 (17:23 +0000)]
heat engine : store stack on failed update

Store the stack even when the update fails, otherwise we
lose track of the resources which failed on create so they
are not removed on stack delete

fixes bug 1151989

Change-Id: Ic8aa5ef92e188fb704ed25563aa9b86aa69232b4

12 years agoMerge "Use stack.resource_by_refid to get the user resource."
Jenkins [Fri, 8 Mar 2013 16:55:55 +0000 (16:55 +0000)]
Merge "Use stack.resource_by_refid to get the user resource."

12 years agoMerge "Add Quantum floating ip assoc tests to improve coverage."
Jenkins [Fri, 8 Mar 2013 16:55:54 +0000 (16:55 +0000)]
Merge "Add Quantum floating ip assoc tests to improve coverage."

12 years agoMerge "Add Quantum port tests to improve coverage."
Jenkins [Fri, 8 Mar 2013 16:55:52 +0000 (16:55 +0000)]
Merge "Add Quantum port tests to improve coverage."

12 years agoMerge "Add Quantum floating ip tests to improve coverage."
Jenkins [Fri, 8 Mar 2013 16:55:45 +0000 (16:55 +0000)]
Merge "Add Quantum floating ip tests to improve coverage."

12 years agoAdd Quantum floating ip assoc tests to improve coverage.
Angus Salkeld [Fri, 8 Mar 2013 12:19:09 +0000 (23:19 +1100)]
Add Quantum floating ip assoc tests to improve coverage.

bug 1152445

Change-Id: I7540b233f665f59bdecb171aa353798d2ce310b5

12 years agoAdd Quantum port tests to improve coverage.
Angus Salkeld [Fri, 8 Mar 2013 12:12:29 +0000 (23:12 +1100)]
Add Quantum port tests to improve coverage.

bug 1152445

Change-Id: I6cb5d5dc03e0ed8ffd17cd3e0e2d36e705864bac
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
12 years agoAdd Quantum floating ip tests to improve coverage.
Angus Salkeld [Fri, 8 Mar 2013 12:04:32 +0000 (23:04 +1100)]
Add Quantum floating ip tests to improve coverage.

bug 1152445

Change-Id: If72885228f1d7200f7330a093f3c8a08ad1eea96
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
12 years agoMerge "Add tests to validate REST path to action mapping."
Jenkins [Fri, 8 Mar 2013 10:43:29 +0000 (10:43 +0000)]
Merge "Add tests to validate REST path to action mapping."

12 years agoMerge "Use quantum IDs for VPC, Subnet, RouteTable resources"
Jenkins [Fri, 8 Mar 2013 10:37:17 +0000 (10:37 +0000)]
Merge "Use quantum IDs for VPC, Subnet, RouteTable resources"

12 years agoAdd tests to validate REST path to action mapping.
Steve Baker [Fri, 8 Mar 2013 00:06:04 +0000 (13:06 +1300)]
Add tests to validate REST path to action mapping.

The Routes mapping performs some brittle regexp manipulation
to build the parameter mapping on the path, so its nice to validate
that it is doing what is expected.

Supports bug #1131759

Change-Id: I251178c2bd9cb03fcedc2da7ea31378b62ae309f

12 years agoMerge "heat common : BaseClient respect host argument"
Jenkins [Thu, 7 Mar 2013 22:12:28 +0000 (22:12 +0000)]
Merge "heat common : BaseClient respect host argument"

12 years agoMerge "heat clients : make --host option error for heat-boto"
Jenkins [Thu, 7 Mar 2013 22:12:11 +0000 (22:12 +0000)]
Merge "heat clients : make --host option error for heat-boto"

12 years agoUse stack.resource_by_refid to get the user resource.
Steve Baker [Tue, 5 Mar 2013 01:00:22 +0000 (14:00 +1300)]
Use stack.resource_by_refid to get the user resource.

Related to Bug #1131534
Change-Id: If8c9f0982f4a29c597c5ad3805637270e1a97f23

12 years agoUse quantum IDs for VPC, Subnet, RouteTable resources
Steve Baker [Sun, 3 Mar 2013 21:49:37 +0000 (10:49 +1300)]
Use quantum IDs for VPC, Subnet, RouteTable resources

Previously the resource IDs were the resource names
so an already existing quantum entity cannot be passed into a
template.

Fixes: bug #1142812
Change-Id: I9ea6561674d88dbbdd82b7c69400a70c529c4525

12 years agoMerge "heat common : quieten policy logging"
Jenkins [Thu, 7 Mar 2013 21:13:21 +0000 (21:13 +0000)]
Merge "heat common : quieten policy logging"

12 years agoMerge "heat common : policy.py change LOG to logger"
Jenkins [Thu, 7 Mar 2013 21:11:50 +0000 (21:11 +0000)]
Merge "heat common : policy.py change LOG to logger"

12 years agoMerge "fakes: remove some duplicate methods"
Jenkins [Thu, 7 Mar 2013 21:04:47 +0000 (21:04 +0000)]
Merge "fakes: remove some duplicate methods"

12 years agoMerge "Convenience method to look up resource by FnGetRefId"
Jenkins [Thu, 7 Mar 2013 21:04:19 +0000 (21:04 +0000)]
Merge "Convenience method to look up resource by FnGetRefId"

12 years agoheat common : quieten policy logging
Steven Hardy [Thu, 7 Mar 2013 11:14:45 +0000 (11:14 +0000)]
heat common : quieten policy logging

Policy logs the currently loaded policy for every request, which is
too noisy even for debug - we already log the file which contains
the policy when we load it, so this is probably sufficient.

fixes bug 1150091

Change-Id: I0891a30793375c7a0a6b2856db4377eecfeaad8e

12 years agoheat common : policy.py change LOG to logger
Steven Hardy [Thu, 7 Mar 2013 11:12:20 +0000 (11:12 +0000)]
heat common : policy.py change LOG to logger

The convention in most other files is to use "logger" for the
log handle, so this file using "LOG" looks a bit odd/inconsistent

ref bug 1150091

Change-Id: I159ad59dfaa3a1db36aad11cb6ce9625f1105c51

12 years agoheat common : BaseClient respect host argument
Steven Hardy [Thu, 7 Mar 2013 12:08:08 +0000 (12:08 +0000)]
heat common : BaseClient respect host argument

Currently the BaseClient class ignores any host argument and overwrites
it with the host from the keystone catalog URL, we should respect the
host parameter if it is passed, but make it optional

ref bug 1102101

Change-Id: I371e3b70a7bd207a177625c3e6855d8504678f1b

12 years agoheat clients : make --host option error for heat-boto
Steven Hardy [Thu, 7 Mar 2013 12:11:16 +0000 (12:11 +0000)]
heat clients : make --host option error for heat-boto

The --host option cannot work for heat-boto, so print a helpful
error if the user tries to use it.

ref bug 1102101

Change-Id: I63129b314eabd7bc84647efb96e9f10b1963b8b2

12 years agoheat tests : Improve resource.py test coverage
Steven Hardy [Tue, 5 Mar 2013 18:36:15 +0000 (18:36 +0000)]
heat tests : Improve resource.py test coverage

Add tests for good/error paths of create/update functions

ref bug 1146529

Change-Id: I2b50b94e61a85a681575fbe6cad5576f2df311b9

12 years agoheat engine : allow Properties validation failure events
Steven Hardy [Tue, 5 Mar 2013 18:08:59 +0000 (18:08 +0000)]
heat engine : allow Properties validation failure events

Currently if properties.validate() fails causing the resource
to go to CREATE_FAILED state, we get an error when creating
the event, because the bad properties are evaluated in the event
constructor.  Instead create a dummy Error property with the
error string for the event.

ref bug 1146529

Change-Id: I12f11de617d796d65c67a5ddb6d74c86adf67b5d

12 years agoheat tests : move GenericResource into tests directory
Steven Hardy [Tue, 5 Mar 2013 15:46:08 +0000 (15:46 +0000)]
heat tests : move GenericResource into tests directory

The resource.py GenericResource type is only used in tests, so
move it into the tests area, such that it can't accidentally be
used in the main heat codebase when we fail to import any resource
plugins..

Change-Id: I3912cc540903002a6dd5109e7ce51c7eb67ebf10

12 years agoConvenience method to look up resource by FnGetRefId
Steve Baker [Sun, 3 Mar 2013 21:47:53 +0000 (10:47 +1300)]
Convenience method to look up resource by FnGetRefId

This assumes that no resource will raise an error when FnGetRefId is
called, and any resource that does really needs to be fixed.

Change-Id: I5b58a28661e4eb10ccb21e8b50ec131937618d4a

12 years agoMerge "Allow instance NetworkInterfaces to be list of str or dict"
Jenkins [Thu, 7 Mar 2013 00:11:51 +0000 (00:11 +0000)]
Merge "Allow instance NetworkInterfaces to be list of str or dict"

12 years agoMerge "Allow REST stack lookup by ARN"
Jenkins [Thu, 7 Mar 2013 00:09:39 +0000 (00:09 +0000)]
Merge "Allow REST stack lookup by ARN"

12 years agoMerge "Switch to oslo.config"
Jenkins [Wed, 6 Mar 2013 23:24:43 +0000 (23:24 +0000)]
Merge "Switch to oslo.config"

12 years agofakes: remove some duplicate methods
Angus Salkeld [Wed, 6 Mar 2013 22:27:58 +0000 (09:27 +1100)]
fakes: remove some duplicate methods

My pyflakes is complaining...

Change-Id: I1c846377ac56d5cbf941b51e48a7baacecc926fe

12 years agoMerge "make parsed template snapshots before updating"
Jenkins [Wed, 6 Mar 2013 22:21:49 +0000 (22:21 +0000)]
Merge "make parsed template snapshots before updating"

12 years agoSwitch to oslo.config
Mark McLoughlin [Wed, 6 Mar 2013 20:21:29 +0000 (20:21 +0000)]
Switch to oslo.config

The oslo-config package has been renamed. Switch to the new
version.

Change-Id: I6a0fa803b0076bc5338c996e21bbcef54e1d75cd

12 years agoAllow REST stack lookup by ARN
Steve Baker [Wed, 6 Mar 2013 03:22:58 +0000 (16:22 +1300)]
Allow REST stack lookup by ARN

This uses the same approach as the cfn api, which assumes the stack
name is an arn, before falling back to an identify_stack call.

Change-Id: I64e9826fa58e05863e9459d3aab041a8d7997405
Fixes: Bug #1131759
12 years agoheat engine : watchrule quietly discard unused metric data
Steven Hardy [Wed, 6 Mar 2013 14:55:12 +0000 (14:55 +0000)]
heat engine : watchrule quietly discard unused metric data

Some cfn-push-stats options try to send multiple metrics to a
watch, which won't work with our simplified CW implementation
which expects exactly one Metric associated with each watch
(since that's all you can define via the template)
So quietly discard any metric data we aren't interested in.

ref bug 1133510

Change-Id: I5159611b96c501ff2d8e6e605cbd3d4ae5f77e48

12 years agoheat engine : Loadbalancer template watch reference should be Ref
Steven Hardy [Wed, 6 Mar 2013 14:14:53 +0000 (14:14 +0000)]
heat engine : Loadbalancer template watch reference should be Ref

Replace hard-coded reference to latency_watcher with Ref, otherwise
the name is not fully qualified for the nested stack and the engine
fails to lookup the watchrule

ref bug 1133510

Change-Id: If0352726ee89e2c8b78beb9436be36b811f1e1cd

12 years agomake parsed template snapshots before updating
Angus Salkeld [Wed, 6 Mar 2013 05:28:00 +0000 (16:28 +1100)]
make parsed template snapshots before updating

This is to make sure that as the update progresses and dependant
resources are modified/replaced that we compare the original
dynamic data with the current.

bug 1134258
Change-Id: Ia4e474e914aa9e99e5e569c4f2276beb55798421

12 years agoMerge "heat engine : Ensure properties validation is caught"
Jenkins [Wed, 6 Mar 2013 11:48:26 +0000 (11:48 +0000)]
Merge "heat engine : Ensure properties validation is caught"

12 years agoMerge "Test coverage for NestedStack, and fix FnGetRefId"
Jenkins [Wed, 6 Mar 2013 11:40:43 +0000 (11:40 +0000)]
Merge "Test coverage for NestedStack, and fix FnGetRefId"

12 years agoheat engine : Ensure properties validation is caught
Steven Hardy [Tue, 5 Mar 2013 15:16:59 +0000 (15:16 +0000)]
heat engine : Ensure properties validation is caught

Rework usage of properties.validate() so that we always
catch the error and set the resource state to failed when
a properties validation error occurs

fixes bug 1146529

Change-Id: I4c5b24cc29a19a5170852aa7626031f9612b3272

12 years agoAllow instance NetworkInterfaces to be list of str or dict
Steve Baker [Wed, 6 Mar 2013 02:29:12 +0000 (15:29 +1300)]
Allow instance NetworkInterfaces to be list of str or dict

It should be possible to specify NetworkInterfaces of an instance either
as an array of strings or as an array of dicts.

The following should now be possible:
This will define nics in the order specified by DeviceIndex
"NetworkInterfaces" : [
  { "NetworkInterfaceId" : {"Ref" : "controlXface"}, "DeviceIndex" : "0" },
  { "NetworkInterfaceId" : {"Ref" : "controlXface2"}, "DeviceIndex" : "1" },
],

This will define nics in the order specified by list position
"NetworkInterfaces" : [{"Ref" : "controlXface"}, {"Ref" : "controlXface2"}],

Mixing the 2 forms is supported but the resulting order is not defined.

Amazon documentation is ambigious about which form is actually supported
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ec2-instance.html#cfn-ec2-instance-networkinterfaces
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/quickref-ec2.html#cfn-template-snippets-eni
Fixes: Bug #1096013
Change-Id: Id387d2e750cbe533a9b8a1fedc49d5bcf690fbcf

12 years agoMerge "When updating the metadata load the stack with the stored context"
Jenkins [Wed, 6 Mar 2013 01:52:47 +0000 (01:52 +0000)]
Merge "When updating the metadata load the stack with the stored context"

12 years agoTest coverage for NestedStack, and fix FnGetRefId
Steve Baker [Wed, 6 Mar 2013 00:28:22 +0000 (13:28 +1300)]
Test coverage for NestedStack, and fix FnGetRefId

NestedStack now has 100% coverage. resource_id is now set during create
instead of evaluated during FnGetRefId

Fixes: Bug #1131534
Change-Id: I21966acc711a801d28a8a22c377758d2363dd096

12 years agoWhen updating the metadata load the stack with the stored context
Angus Salkeld [Tue, 5 Mar 2013 22:45:56 +0000 (09:45 +1100)]
When updating the metadata load the stack with the stored context

bug 1144996
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Change-Id: I2b0547f4867f19f8319e2c4b79ac325ae8cd6bd8

12 years agoadd missing licence header
Steven Hardy [Tue, 5 Mar 2013 11:57:44 +0000 (11:57 +0000)]
add missing licence header

Change-Id: I95d883c7c58ecba925bc6fa41d7a9491b18a55fa

12 years agoStop heat services from logging to stderr by default
Steven Dake [Tue, 5 Mar 2013 16:01:56 +0000 (09:01 -0700)]
Stop heat services from logging to stderr by default

Change the configuration files to set use_stderr to False by
default.  Oslo's log sets use_stderr to True by default, and
the only reasonable way to override is via the config files.

Change-Id: Ibc4ac3b8cb5d7478260d5d014eb48860bae4bc0b
Fixes: Bug #1146848
12 years agoMerge "Make sure we have a volumes property before trying to use it"
Jenkins [Tue, 5 Mar 2013 15:10:23 +0000 (15:10 +0000)]
Merge "Make sure we have a volumes property before trying to use it"

12 years agoMake sure we have a volumes property before trying to use it
Angus Salkeld [Tue, 5 Mar 2013 12:44:54 +0000 (23:44 +1100)]
Make sure we have a volumes property before trying to use it

bug 1146742
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Change-Id: I2d56af0b07f544642e0527a8300db842d2bc0268

12 years agoPrevent shadowing of the "context" module/parameter
Angus Salkeld [Tue, 5 Mar 2013 11:46:06 +0000 (22:46 +1100)]
Prevent shadowing of the "context" module/parameter

Keep the module name true.
part of bug 1144996

Change-Id: Idb8c5a8190bbb7f81d70c1a95bf5352791f87693
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
12 years agoFail validation when an unknown property is supplied in a template.
Angus Salkeld [Tue, 5 Mar 2013 11:17:12 +0000 (22:17 +1100)]
Fail validation when an unknown property is supplied in a template.

bug #1101098
Change-Id: I9430ad859e9a93d6c0d2a417877e02c151e98a05

12 years agoMerge "Validation failures now raise StackValidationFailed"
Jenkins [Tue, 5 Mar 2013 08:47:38 +0000 (08:47 +0000)]
Merge "Validation failures now raise StackValidationFailed"

12 years agoMerge "vpc_test: move DependsOn to the correct template section"
Jenkins [Tue, 5 Mar 2013 02:09:00 +0000 (02:09 +0000)]
Merge "vpc_test: move DependsOn to the correct template section"

12 years agoValidation failures now raise StackValidationFailed
Steve Baker [Fri, 8 Feb 2013 01:54:57 +0000 (14:54 +1300)]
Validation failures now raise StackValidationFailed

This changes the way validation failures are presented
to heat-cfn as per bug 1072939

Change-Id: Iddaaf0c83c5d0df7c0143c6805096a83f8e5dc51

12 years agoMerge "Add N802 rule to hacking.py"
Jenkins [Tue, 5 Mar 2013 01:43:51 +0000 (01:43 +0000)]
Merge "Add N802 rule to hacking.py"

12 years agoMerge "Create autoscaling instances in parallel"
Jenkins [Tue, 5 Mar 2013 01:40:02 +0000 (01:40 +0000)]
Merge "Create autoscaling instances in parallel"

12 years agoMerge "Separate public/private autoscaling adjust() APIs"
Jenkins [Tue, 5 Mar 2013 01:39:55 +0000 (01:39 +0000)]
Merge "Separate public/private autoscaling adjust() APIs"

12 years agoMerge "Move instance polling into check_active()"
Jenkins [Tue, 5 Mar 2013 01:36:15 +0000 (01:36 +0000)]
Merge "Move instance polling into check_active()"