]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
12 years agoCreate stacks with a co-routine
Zane Bitter [Fri, 31 May 2013 10:39:08 +0000 (12:39 +0200)]
Create stacks with a co-routine

This will allow nested stacks to be created in parallel with other stack
resources in the future.

Change-Id: If1817bddcea50fdd7b640dee5b5d12257aada651

12 years agoImplement timeouts for nested stacks
Zane Bitter [Fri, 31 May 2013 10:39:08 +0000 (12:39 +0200)]
Implement timeouts for nested stacks

This also means that if no default is specified, nested stacks will not
time out (previously they used the default timeout of 60 minutes). Of
course, like other resources, creation of the nested stack will stop if and
when the parent stack times out.

Change-Id: Ibd55c32d63e971f79319ed40321fa4be52b65419

12 years agoAllow stacks to be created without a timeout
Zane Bitter [Fri, 31 May 2013 10:39:08 +0000 (12:39 +0200)]
Allow stacks to be created without a timeout

This should be the default for nested stacks, rather than the default
timeout of 60 minutes for stacks created through the API.

Change-Id: Iacee6eaf8f345e506b417e776f696db6b11bbf20

12 years agoMerge "Add a separate Template class for the HOT format"
Jenkins [Thu, 30 May 2013 10:23:07 +0000 (10:23 +0000)]
Merge "Add a separate Template class for the HOT format"

12 years agoMerge "Clean up DB migrations when running unit tests"
Jenkins [Thu, 30 May 2013 06:38:40 +0000 (06:38 +0000)]
Merge "Clean up DB migrations when running unit tests"

12 years agoAdd CONTRIBUTING.rst file.
Monty Taylor [Thu, 16 May 2013 16:28:24 +0000 (09:28 -0700)]
Add CONTRIBUTING.rst file.

We don't use github pull requests, but we'd like to make that clear
to people if they show up at github and try to do one. github will
display the content of this file on the pull request submit form
if it's there.

Change-Id: I25e5b65b02244e100da4e5717ded09fcc0f33741

12 years agoClean up DB migrations when running unit tests
Zane Bitter [Wed, 29 May 2013 07:25:30 +0000 (09:25 +0200)]
Clean up DB migrations when running unit tests

When doing development work, all kinds of issue can result when moving
between versions of the code that have added/removed DB migration scripts
if the compiled .pyc files are left behind. To save the need to do this
manually, remove all of the .pyc files when the unit tests are run.

Change-Id: Ia4bc889edeeed499e5fc2172d5f7c1b4e693a27b

12 years agoGet rid of extra delays in unit tests
Zane Bitter [Wed, 29 May 2013 07:25:30 +0000 (09:25 +0200)]
Get rid of extra delays in unit tests

Some resource types will now have at least one sleep during their creation
where previously they did not, so unit tests need to stub out the sleep if
they were not already doing so.

Change-Id: I1ae919263c6f12d9219970f226019e53daff052b

12 years agoRestore heat.db.sync and add Deprecated message.
Clint Byrum [Wed, 29 May 2013 01:29:37 +0000 (18:29 -0700)]
Restore heat.db.sync and add Deprecated message.

This unpythonic deprecation method is used because this module was only
ever meant to be used from the CLI as 'python -m heat.db.sync'. The
module should be removable in Havana+1.

Fixes bug #1185220

Change-Id: I9943e5c35d9578f899fae1d11b818a2a5a9167c0

12 years agoMerge "Create resources in parallel where possible"
Jenkins [Tue, 28 May 2013 18:12:19 +0000 (18:12 +0000)]
Merge "Create resources in parallel where possible"

12 years agoMerge "Add a dependency-aware task group"
Jenkins [Tue, 28 May 2013 18:12:15 +0000 (18:12 +0000)]
Merge "Add a dependency-aware task group"

12 years agoMerge "Move deletion from dependency graph to __delitem__"
Jenkins [Tue, 28 May 2013 18:12:09 +0000 (18:12 +0000)]
Merge "Move deletion from dependency graph to __delitem__"

12 years agoMerge "Make the mutable dependency graph a separate class"
Jenkins [Tue, 28 May 2013 18:12:06 +0000 (18:12 +0000)]
Merge "Make the mutable dependency graph a separate class"

12 years agoMerge "Make dependency graph node class public"
Jenkins [Tue, 28 May 2013 18:12:02 +0000 (18:12 +0000)]
Merge "Make dependency graph node class public"

12 years agoUse heat-engine.conf for heat-manage config
Derek Higgins [Tue, 28 May 2013 09:47:43 +0000 (10:47 +0100)]
Use heat-engine.conf for heat-manage config

Fixes bug 1184923

because prog was missing the CONF object was looking for
the config file in /etc/heat/heat.conf  this should have
been /etc/heat/heat-engine.conf

Change-Id: Ie23b9998df368274d69180e0d619b042dd9dc053

12 years agoCreate resources in parallel where possible
Zane Bitter [Tue, 28 May 2013 08:16:37 +0000 (10:16 +0200)]
Create resources in parallel where possible

Use the create co-routines with a DependencyTaskGroup to create resources
in parallel where possible, subject to their dependencies.

This implements blueprint concurrent-resource-scheduling with the exception
of nested stacks.

Change-Id: I4789ab11617b408622d8fc083e6b80a797d99e3a

12 years agoAdd a dependency-aware task group
Zane Bitter [Tue, 28 May 2013 08:16:37 +0000 (10:16 +0200)]
Add a dependency-aware task group

Change-Id: I4524b4b220bdc02bdd7e3f9a5d84b1982cbee99f

12 years agoMove deletion from dependency graph to __delitem__
Zane Bitter [Tue, 28 May 2013 08:16:37 +0000 (10:16 +0200)]
Move deletion from dependency graph to __delitem__

Graph objects are mutable, and will in future be used for operations other
than a topological sort, so abstract out the code for deleting backlinks to
a node from the other nodes that have dependencies on it when it is
removed.

Change-Id: I86b81303ed2dffd969a2db10535761f108f4808a

12 years agoMake the mutable dependency graph a separate class
Zane Bitter [Tue, 28 May 2013 08:16:37 +0000 (10:16 +0200)]
Make the mutable dependency graph a separate class

Rather than copying dictionaries internally, provide a separate Graph class
that can be copied externally as well.

Change-Id: Id0bd55944369da59d7da1713369fce0d73ffe814

12 years agoMake dependency graph node class public
Zane Bitter [Tue, 28 May 2013 08:16:37 +0000 (10:16 +0200)]
Make dependency graph node class public

We're going to start making more use of it, so there's no point hiding it
away inside the Dependencies class.

Change-Id: I10c4a05493697f8834623cd798ef35161a0c219b

12 years agoFix the handling of non-existing paste file
Angus Salkeld [Tue, 28 May 2013 02:06:28 +0000 (12:06 +1000)]
Fix the handling of non-existing paste file

First only call find_file() by it's self so we can check for None
(abspath crashes if you pass it None)
We are already calling abspath at the return, so this
also prevents a double call to abspath.

If return None from _get_deployment_config_file() load_paste_app() will
print out a nice error message.

Change-Id: I451e090b7f08266ca824b5da228dafde55726d94

12 years agoMerge "Add a basic heat-manage"
Jenkins [Tue, 28 May 2013 00:37:22 +0000 (00:37 +0000)]
Merge "Add a basic heat-manage"

12 years agoMerge "Fail validation when security groups and interfaces conflict"
Jenkins [Mon, 27 May 2013 23:15:26 +0000 (23:15 +0000)]
Merge "Fail validation when security groups and interfaces conflict"

12 years agorefactor test_engine_service.py
Liang Chen [Sun, 26 May 2013 08:55:45 +0000 (16:55 +0800)]
refactor test_engine_service.py

refactor tests based on stackServiceTestBase to be more like
the other tests, ie clear mocking, validation, and just
inherit from HeatTestCase rather than inheriting lots of
stuff from a base class, which isn't needed for all the tests

Fixes bug #1180375

Change-Id: I78ade1c53113f8f72b4df8ff346c45ec93f19393

12 years agoFail validation when security groups and interfaces conflict
Simon Pasquier [Mon, 27 May 2013 14:20:18 +0000 (16:20 +0200)]
Fail validation when security groups and interfaces conflict

The 'SecurityGroups' property of the instance is not taken into account
by Nova when the 'NetworkInterfaces' property is also defined. Instead the
security groups should be applied to the network interface resource(s).

This issue has already raised a couple of invalid bugs on Launchpad.

Change-Id: I5ae2ba356518d391893c2a479c5952b13b6e8d55

12 years agoAdd a basic heat-manage
Angus Salkeld [Mon, 27 May 2013 11:06:31 +0000 (21:06 +1000)]
Add a basic heat-manage

The heat/cmd/manage.py structure is copied from glance to give
us some consistency.

Removing unused cliutils ...

blueprint heat-manage
Change-Id: If3b69eb4c3672740515fd308ec868af1cd3c9396

12 years agoMerge "Bring in oslo.cliutils for heat-manage"
Jenkins [Mon, 27 May 2013 08:52:30 +0000 (08:52 +0000)]
Merge "Bring in oslo.cliutils for heat-manage"

12 years agoMerge "Update the oslo code before importing a new module"
Jenkins [Mon, 27 May 2013 08:51:59 +0000 (08:51 +0000)]
Merge "Update the oslo code before importing a new module"

12 years agoMerge "Migrate test base class to testtools."
Jenkins [Mon, 27 May 2013 08:23:17 +0000 (08:23 +0000)]
Merge "Migrate test base class to testtools."

12 years agoMerge "Add CONTRIBUTING file."
Jenkins [Mon, 27 May 2013 08:22:48 +0000 (08:22 +0000)]
Merge "Add CONTRIBUTING file."

12 years agoRemove eventlet dependency from unit tests
Zane Bitter [Mon, 27 May 2013 08:01:45 +0000 (10:01 +0200)]
Remove eventlet dependency from unit tests

Unit tests should not need to know about eventlet. Instead of stubbing
eventlet.sleep(), stub out the TaskRunner._sleep() method in the scheduler.

Change-Id: I438a5d6978ed228d62a0d28fef30115d205bd2c3

12 years agoUse a task to delete Instances
Zane Bitter [Mon, 27 May 2013 08:01:45 +0000 (10:01 +0200)]
Use a task to delete Instances

Change-Id: Ic8c5552c52c0c00ef081a87525cd3b0bb011ce20

12 years agoBring in oslo.cliutils for heat-manage
Angus Salkeld [Mon, 27 May 2013 02:02:52 +0000 (12:02 +1000)]
Bring in oslo.cliutils for heat-manage

part of blueprint heat-manage
Change-Id: I526de1aacbcf930f3187914403031a1e6f9ff4ae

12 years agoUpdate the oslo code before importing a new module
Angus Salkeld [Mon, 27 May 2013 06:05:13 +0000 (16:05 +1000)]
Update the oslo code before importing a new module

Note:
- there are some new oslo dependencies pulled in.
- "six" has been added to the requirements.
- rpc messages now have a "namespace" that conflicted with
  the metric namespace.

part of blueprint heat-manage
Change-Id: I92c6b91a28ca0380d13f0a3ba1544b9d517d74a8

12 years agoMerge "Detach Volumes from an Instance in parallel"
Jenkins [Sun, 26 May 2013 23:54:56 +0000 (23:54 +0000)]
Merge "Detach Volumes from an Instance in parallel"

12 years agoMerge "Handle instance volume attachments with co-routines"
Jenkins [Sun, 26 May 2013 23:54:52 +0000 (23:54 +0000)]
Merge "Handle instance volume attachments with co-routines"

12 years agoMerge "Add a convenience method to get instance volumes"
Jenkins [Sun, 26 May 2013 23:54:48 +0000 (23:54 +0000)]
Merge "Add a convenience method to get instance volumes"

12 years agoMigrate test base class to testtools.
Monty Taylor [Sat, 25 May 2013 07:43:40 +0000 (09:43 +0200)]
Migrate test base class to testtools.

This is stricter, but also provides plumbing for more advanced things
like fixtures and testscenarios.

Change-Id: I607b50390708ca3caa9799ef0b27007df5045a6c

12 years agoAdd CONTRIBUTING file.
Monty Taylor [Sat, 25 May 2013 06:46:32 +0000 (08:46 +0200)]
Add CONTRIBUTING file.

Change-Id: Idadfda08c42b40411bb38813bd5996515ea5b491

12 years agoMigrate to pbr.
Monty Taylor [Thu, 16 May 2013 16:27:55 +0000 (09:27 -0700)]
Migrate to pbr.

Fixes bug 1179007

Change-Id: I698d02a2171e43237094c0e5ccc4c2dd47ed722b

12 years agoImplement SecurityGroupIds property for instances
Jeff Peeler [Fri, 24 May 2013 17:41:45 +0000 (13:41 -0400)]
Implement SecurityGroupIds property for instances

Currently handling SecurityGroups and SecurityGroupIds the same exact
way, that is both are passed directly to nova. If one wishes to pass
a security group by parameter of a group to be created in the template,
it must be in the format of <stackname>.<security group name> since
there's no way to determine the ID beforehand.

Fixes bug #1163991

Change-Id: I26bb43ee89806cefc92ba2d0319340c4cd56ed06

12 years agoUse UUIDs for Quantum security groups
Jeff Peeler [Mon, 20 May 2013 20:14:57 +0000 (16:14 -0400)]
Use UUIDs for Quantum security groups

Quantum security groups are referenced by ID and supports duplicate
names, so having the ID available helps to avoid searching for it
when needed.

Change-Id: Idff9245b9848083029dd47fb2253a64b0c5de523

12 years agoMake IDs for resources unique to ensure tests pass
Jeff Peeler [Wed, 22 May 2013 16:53:24 +0000 (12:53 -0400)]
Make IDs for resources unique to ensure tests pass

There were some duplicated IDs being used, specifically with
security groups.

Change-Id: Icf741e42d9dcca922f8944fad546d9db040612ba

12 years agoChange SecurityGroups to be passed directly to nova
Jeff Peeler [Tue, 21 May 2013 19:52:41 +0000 (15:52 -0400)]
Change SecurityGroups to be passed directly to nova

This changes SecurityGroups to return the complete name
of a resource (stack.name).

Change-Id: I945f1213b3ddcb5550e7b4ed3d982d4ee7c4e912

12 years agoAdd a separate Template class for the HOT format
Zane Bitter [Fri, 24 May 2013 13:50:12 +0000 (15:50 +0200)]
Add a separate Template class for the HOT format

An alternative to https://review.openstack.org/30405

Change-Id: Iea3422b1219a1ddf1b12ac2d156279165eb28c07

12 years agoMerge "Rename requires files to standard names"
Jenkins [Fri, 24 May 2013 09:44:28 +0000 (09:44 +0000)]
Merge "Rename requires files to standard names"

12 years agoDetach Volumes from an Instance in parallel
Zane Bitter [Fri, 24 May 2013 08:31:27 +0000 (10:31 +0200)]
Detach Volumes from an Instance in parallel

Use a PollingTaskGroup to ensure that if there are multiple Volumes
attached to an Instance they are detached in parallel rather than serially.

Change-Id: Ice399ae495af75558f2f8b1b1dc330d0b556a269

12 years agoHandle instance volume attachments with co-routines
Zane Bitter [Fri, 24 May 2013 08:31:27 +0000 (10:31 +0200)]
Handle instance volume attachments with co-routines

Don't sit in a loop when attaching volumes to instances, use a task that
yields control and allows them to run in parallel - and, in future, in
parallel with other resources being created.

Change-Id: I4653baa87b09a9fb6c2c16b51218f4ea2f2ae6dd

12 years agoAdd a convenience method to get instance volumes
Zane Bitter [Fri, 24 May 2013 08:31:27 +0000 (10:31 +0200)]
Add a convenience method to get instance volumes

Change-Id: If22cd9245b043f35386ad3c24d46a41b0b8c2c86

12 years agoengine : move update_template_diff functions into Resource
Steven Hardy [Thu, 23 May 2013 10:21:16 +0000 (11:21 +0100)]
engine : move update_template_diff functions into Resource

Move the update_template_diff and update_template_diff_properties
functions into resource.Resource - since they now raise
resource.UpdateReplace we can avoid ever calling handle_update if
the resource update will result in replacement

Note a further cleanup will probably be to combine the two diff
functions into one recursive diff, which will further simplify this

Change-Id: I839f0c4448a2d869f35e0a4f19d17f31c5c6f9af

12 years agoInstance resource remove unreachable/redundant Metadata update check
Steven Hardy [Wed, 22 May 2013 15:34:32 +0000 (16:34 +0100)]
Instance resource remove unreachable/redundant Metadata update check

update_template_diff already throws resource.UpdateReplace if the
json_snippet contains changes other than to Metadata, so the else
here is unreachable and redundant

Change-Id: I9f0ad88d0b6fa65cafd5b2843a38913fa843a3ac

12 years agoheat tests : add coverage for instance UpdateReplace
Steven Hardy [Wed, 22 May 2013 15:28:25 +0000 (16:28 +0100)]
heat tests : add coverage for instance UpdateReplace

Add some tests which test the UpdateReplace path for Instance

Change-Id: Ib9c35498c3ab2811fcd73aac8159315cb6251004

12 years agoengine : replace UPDATE_REPLACE with ResourceReplace exception
Steven Hardy [Thu, 23 May 2013 14:42:01 +0000 (15:42 +0100)]
engine : replace UPDATE_REPLACE with ResourceReplace exception

Replace the handle_update returned value with a new ResourceReplace
exception, which allows the replacement logic in resource.py and
parser.py to be cleaner

Change-Id: If652d031e8baeb8f4c6015e5ed2d0e5bb25f0fc6

12 years agoMove VolumeAttachment polling to check_create_complete()
Zane Bitter [Thu, 23 May 2013 13:37:39 +0000 (15:37 +0200)]
Move VolumeAttachment polling to check_create_complete()

Change-Id: I2e2fe3784b8cf79e3ccacd3451e06b75433fdd5b

12 years agoMerge "Make volume detachment a co-routine"
Jenkins [Thu, 23 May 2013 13:36:22 +0000 (13:36 +0000)]
Merge "Make volume detachment a co-routine"

12 years agoMerge "engine : Fix ResourceFailure exception issues"
Jenkins [Thu, 23 May 2013 12:32:08 +0000 (12:32 +0000)]
Merge "engine : Fix ResourceFailure exception issues"

12 years agoMerge "Make volume attachment a co-routine"
Jenkins [Thu, 23 May 2013 12:24:38 +0000 (12:24 +0000)]
Merge "Make volume attachment a co-routine"

12 years agoMerge "Verify function calls in cinder_fn_getatt unit test"
Jenkins [Wed, 22 May 2013 20:26:08 +0000 (20:26 +0000)]
Merge "Verify function calls in cinder_fn_getatt unit test"

12 years agoMerge "Stub out sleeps in quantum unit tests"
Jenkins [Wed, 22 May 2013 20:25:12 +0000 (20:25 +0000)]
Merge "Stub out sleeps in quantum unit tests"

12 years agoMake volume detachment a co-routine
Zane Bitter [Wed, 22 May 2013 14:29:33 +0000 (16:29 +0200)]
Make volume detachment a co-routine

Change-Id: I799f891010fb75c80afd30ded761aa2b3b632394

12 years agoMake volume attachment a co-routine
Zane Bitter [Wed, 22 May 2013 14:29:33 +0000 (16:29 +0200)]
Make volume attachment a co-routine

Change-Id: Iad1ac0578470e4c2f997257560d62f8cb2d7ee35

12 years agoVerify function calls in cinder_fn_getatt unit test
Zane Bitter [Wed, 22 May 2013 14:29:33 +0000 (16:29 +0200)]
Verify function calls in cinder_fn_getatt unit test

Change-Id: I6a7f03a7b91fb9604ea16e5a60bc12f84ebb9657

12 years agoStub out sleeps in quantum unit tests
Zane Bitter [Wed, 22 May 2013 10:40:33 +0000 (12:40 +0200)]
Stub out sleeps in quantum unit tests

The patch 5d86e2f2ece51a79102aee2af9a3f306c929aaea
added wait states into the unit tests for quantum networks, routers and
ports, but did not stub out the resulting sleep. This caused the tests to
run for over 1s, which indirectly allowed bug #1182285 to become visible.

Change-Id: Id26daa87e1618533ee92c33827a9d01800b03752

12 years agoRemove unrelated tracebacks from test output
Thomas Herve [Wed, 22 May 2013 08:23:50 +0000 (10:23 +0200)]
Remove unrelated tracebacks from test output

This mocks some calls the ThreadGroup when testing update and delete of
the stack, resulting in tracebacks when the threads randomly run later
on in the test suite.

Change-Id: Ia1a376933c2e25b6cf0fe6a26f47e381cbb1a55e
Fixes: bug #1182285
12 years agoRename requires files to standard names
Steven Dake [Thu, 16 May 2013 04:48:36 +0000 (21:48 -0700)]
Rename requires files to standard names

From bug report:
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files and tools in the
general world are growing intelligence about them.

Change-Id: Ie0bdb4908f45e47db43e84cd0c5fdc5263c035f4
Fixes: Bug #1179008
12 years agoMerge "update on_devstack doc"
Jenkins [Tue, 21 May 2013 22:21:53 +0000 (22:21 +0000)]
Merge "update on_devstack doc"

12 years agoengine : Fix ResourceFailure exception issues
Steven Hardy [Tue, 21 May 2013 22:06:11 +0000 (23:06 +0100)]
engine : Fix ResourceFailure exception issues

Fix some issues spotted in https://review.openstack.org/#/c/29543
These errors were spotted after the patch was merged, the
ResourceFailure exception takes an Exception not string argument

Change-Id: I72045ecf147c66a0a1cf1ef5df7fb3be8100384d

12 years agoFix PEP H101 (Use TODO(NAME))
Angus Salkeld [Mon, 20 May 2013 06:11:17 +0000 (16:11 +1000)]
Fix PEP H101 (Use TODO(NAME))

Change-Id: I77c9caa650462725b7c686fbafd9753d046b138d

12 years agoMerge "Implement OS::Cinder::VolumeAttachment"
Jenkins [Tue, 21 May 2013 11:07:30 +0000 (11:07 +0000)]
Merge "Implement OS::Cinder::VolumeAttachment"

12 years agoupdate on_devstack doc
Shengjie Min [Tue, 21 May 2013 09:28:32 +0000 (10:28 +0100)]
update on_devstack doc

udpate the prebuilt-jeos-image from F16 to F17

Change-Id: Iae1456e4811c029494a8c2878c9bf0c3221bc43a
Fixes: bug #1180416
12 years agoMerge "Fix PEP H902 (Use the 'not in' operator)"
Jenkins [Tue, 21 May 2013 09:02:27 +0000 (09:02 +0000)]
Merge "Fix PEP H902 (Use the 'not in' operator)"

12 years agoImplement OS::Cinder::VolumeAttachment
Thomas Herve [Tue, 21 May 2013 08:27:15 +0000 (10:27 +0200)]
Implement OS::Cinder::VolumeAttachment

This creates a new volume attachment resource with Cinder specific
naming.

Change-Id: Ie73b929925c58e47f3509d57dd385cbd4ea5a4c1

12 years agoMerge "UpdateStack for AWS::AutoScaling::ScalingPolicy"
Jenkins [Tue, 21 May 2013 05:20:27 +0000 (05:20 +0000)]
Merge "UpdateStack for AWS::AutoScaling::ScalingPolicy"

12 years agoMerge "Adds sudo check for privileged operations."
Jenkins [Tue, 21 May 2013 05:18:52 +0000 (05:18 +0000)]
Merge "Adds sudo check for privileged operations."

12 years agoMerge "engine : remove unused update states/status"
Jenkins [Tue, 21 May 2013 05:06:54 +0000 (05:06 +0000)]
Merge "engine : remove unused update states/status"

12 years agoMerge "engine : cleanup Resource.update error paths"
Jenkins [Tue, 21 May 2013 05:06:28 +0000 (05:06 +0000)]
Merge "engine : cleanup Resource.update error paths"

12 years agoFix PEP H902 (Use the 'not in' operator)
Angus Salkeld [Tue, 21 May 2013 03:01:54 +0000 (13:01 +1000)]
Fix PEP H902 (Use the 'not in' operator)

Change-Id: Ic3dec990d2fe43dd8841aadb7b87e8f26c2d0338

12 years agoUpdateStack for AWS::AutoScaling::ScalingPolicy
Winson Chan [Fri, 17 May 2013 18:30:33 +0000 (11:30 -0700)]
UpdateStack for AWS::AutoScaling::ScalingPolicy

Implemented update support of the ScalingPolicy resource
in an existing stack. ScalingAdjustment, AdjustmentType,
and Cooldown properties are allowed properties for update.
A handle_update method is added to update differences in
the template.

Change-Id: Ieeae93560a315a8a35c6fb2d8f1d78a89123bec3
blueprint: scalingpolicy-update-stack

12 years agoFix PEP H301 (one import per line)
Angus Salkeld [Mon, 20 May 2013 05:46:27 +0000 (15:46 +1000)]
Fix PEP H301 (one import per line)

Change-Id: I7b0c991c869c903e60123ad5bdf876b06d83e3e9

12 years agoFix PEP H402 "one line docstring needs punctuation."
Angus Salkeld [Mon, 20 May 2013 05:34:40 +0000 (15:34 +1000)]
Fix PEP H402 "one line docstring needs punctuation."

Change-Id: Id0aa43187f6d5e62308f4b329bc9458a512d808d

12 years agoPEP: be explicit about what errors are ignored.
Angus Salkeld [Mon, 20 May 2013 11:53:14 +0000 (21:53 +1000)]
PEP: be explicit about what errors are ignored.

Change-Id: I362ba16c8a7b645c9befa7fcd4b0942773b0dbce

12 years agoengine : remove unused update states/status
Steven Hardy [Fri, 17 May 2013 13:20:31 +0000 (14:20 +0100)]
engine : remove unused update states/status

We have some aws-isms in the update code related to different
update states, which is not actually used anywhere, so may as
well remove it - it's probably easier at least for now to focus
on the three update states of COMPLETE/FAILED/REPLACEMENT

Change-Id: Ieeaf92ab0fec6bbfab3dddf2d8fecb0b38c1b2fc

12 years agoengine : cleanup Resource.update error paths
Steven Hardy [Fri, 17 May 2013 12:17:57 +0000 (13:17 +0100)]
engine : cleanup Resource.update error paths

The current update code uses a nasty pattern where returning an
arbitrary string from Resource.update is interpreted in parser.Stack
as an error.  Instead use exceptions which is much nicer :)

Change-Id: I2ddebfd6bbec3dc229012406da72dd928fcc4595

12 years agoAdds sudo check for privileged operations.
Dave Wilde [Sun, 19 May 2013 10:05:39 +0000 (10:05 +0000)]
Adds sudo check for privileged operations.

Adds root user check to determine whether or not sudo is required
for MySQL status and installation.  We now run sudo -l to verify
that the user is in the sudoers file, the credentials are then
cached for the rest of the operations.

bug 1181701

Change-Id: I294b269046ee2049b0fdee3c871096387cefbf24

12 years agoThe oslo module called utils is no more.
Michael Still [Mon, 20 May 2013 04:18:40 +0000 (14:18 +1000)]
The oslo module called utils is no more.

This had been cleaned up in openstack/common, but left in the config
file. Clean that up too.

Change-Id: I15b96c53aff3281a44250e9beb4ec56fb80bf9b6

12 years agoMerge "Exclude build/ from flake8 checks"
Jenkins [Mon, 20 May 2013 03:53:41 +0000 (03:53 +0000)]
Merge "Exclude build/ from flake8 checks"

12 years agoExclude build/ from flake8 checks
Steve Baker [Sun, 19 May 2013 23:56:06 +0000 (11:56 +1200)]
Exclude build/ from flake8 checks

Change-Id: Ie7b19f8488230e8538720b96c73b49453c6a3efe

12 years agoTests for Router, RouterInterface, RouterGateway.
Steve Baker [Sun, 19 May 2013 23:53:53 +0000 (11:53 +1200)]
Tests for Router, RouterInterface, RouterGateway.

quantum package now has over 94% test coverage.

Change-Id: I82b4635e4554e5b94eaac70bd1cc4b9249863dc9

12 years agoTolerate resource lookup errors for quantum FnGetAtt.
Steve Baker [Wed, 15 May 2013 22:02:34 +0000 (10:02 +1200)]
Tolerate resource lookup errors for quantum FnGetAtt.

Fixes bug #1180293

Change-Id: I5384456bbbf53558036573c983be0b65e8883612

12 years agoImplement check_active for quantum net, port, router
Steve Baker [Tue, 7 May 2013 04:00:55 +0000 (16:00 +1200)]
Implement check_active for quantum net, port, router

These quantum resources go through a BUILD status before becoming
ACTIVE (or DOWN).

This could explain the issues seen in
Bug: #1176661

Change-Id: I659774cd402b71be102376b31e2d78bf225d37a6

12 years agoThe utils module in oslo is no more.
Michael Still [Sat, 18 May 2013 23:17:47 +0000 (09:17 +1000)]
The utils module in oslo is no more.

The utils module in oslo has been removed (with most of its
functionality moving across to strutils). Luckily it was imported
in heat but never actually used, so removing it is relatively easy.

Change-Id: I3df27a553ebe7de188893038f9285d4b9a789d19

12 years agoMigrate to flake8
Monty Taylor [Sat, 11 May 2013 18:26:42 +0000 (14:26 -0400)]
Migrate to flake8

Fixes bug 117244

Change-Id: Ide81366eb2240377160775830e2307aef6064f9e

12 years agoMerge "Clean up a pyflakes error in a comment."
Jenkins [Fri, 17 May 2013 18:41:08 +0000 (18:41 +0000)]
Merge "Clean up a pyflakes error in a comment."

12 years agoMerge "Align usage of test skipping."
Jenkins [Fri, 17 May 2013 18:40:53 +0000 (18:40 +0000)]
Merge "Align usage of test skipping."

12 years agoMerge "Use mox for mocking quantum client test calls"
Jenkins [Fri, 17 May 2013 18:40:14 +0000 (18:40 +0000)]
Merge "Use mox for mocking quantum client test calls"

12 years agoMerge "Fix error in Dependencies representation"
Jenkins [Fri, 17 May 2013 16:59:03 +0000 (16:59 +0000)]
Merge "Fix error in Dependencies representation"

12 years agoMerge "Initialise resources when service is created."
Jenkins [Fri, 17 May 2013 15:44:00 +0000 (15:44 +0000)]
Merge "Initialise resources when service is created."

12 years agoClean up a pyflakes error in a comment.
Monty Taylor [Thu, 16 May 2013 16:24:17 +0000 (09:24 -0700)]
Clean up a pyflakes error in a comment.

This is a little-bit silly, but it's the last thing. pyflakes parses
python lines that are in docstring comments that are prefaced by >>>.
So, without the import, pyflakes complains about undefined import.

Change-Id: Ibac77367efb07b65b992694b2de19473ec9ef473

12 years agoAlign usage of test skipping.
Monty Taylor [Thu, 16 May 2013 16:20:51 +0000 (09:20 -0700)]
Align usage of test skipping.

There were three different mechanisms for skipping tests in the suite.
For the most part, skipIf was used, so sync to that. Additionally, it
was being used as a decorater in most places, but as a call in a few,
so make it a decorator everywhere. Finally, if it's on the setUp method,
it's not necessary for it to be on any of the individual tests in the class.

Change-Id: I7fbd09a6bc015e698a190b989d0f8641c4adb63e

12 years agoFix error in Dependencies representation
Zane Bitter [Fri, 17 May 2013 08:57:21 +0000 (10:57 +0200)]
Fix error in Dependencies representation

This mostly only exists for debugging, but it's helpful if it can actually
run.

Change-Id: Ie29da5e7e58aed54aaaffa4df479fa0d96ce78fe