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

12 years agoFix SecurityGroups for AWS::AutoScaling::LaunchConfiguration
Simon Pasquier [Fri, 17 May 2013 09:24:28 +0000 (11:24 +0200)]
Fix SecurityGroups for AWS::AutoScaling::LaunchConfiguration

Change-Id: Ie3b0663093c9c4bae14cf3311a65ff92715af8c9
Fixes: bug #1180878
12 years agoMerge "Clean up import of cinderclient exceptions"
Jenkins [Fri, 17 May 2013 00:02:09 +0000 (00:02 +0000)]
Merge "Clean up import of cinderclient exceptions"

12 years agoMerge "Make Volume snapshot a task"
Jenkins [Fri, 17 May 2013 00:02:06 +0000 (00:02 +0000)]
Merge "Make Volume snapshot a task"

12 years agoMerge "Move Volume polling to check_create_complete()"
Jenkins [Fri, 17 May 2013 00:01:08 +0000 (00:01 +0000)]
Merge "Move Volume polling to check_create_complete()"

12 years agoMerge "Handle errors in Volume creation"
Jenkins [Fri, 17 May 2013 00:00:48 +0000 (00:00 +0000)]
Merge "Handle errors in Volume creation"

12 years agoMerge "Rename handle_snapshot and pass state"
Jenkins [Thu, 16 May 2013 17:47:57 +0000 (17:47 +0000)]
Merge "Rename handle_snapshot and pass state"

12 years agoMerge "Cleaned up some simple hacking/pyflakes errors."
Jenkins [Thu, 16 May 2013 17:39:24 +0000 (17:39 +0000)]
Merge "Cleaned up some simple hacking/pyflakes errors."

12 years agoCleaned up some simple hacking/pyflakes errors.
Monty Taylor [Thu, 16 May 2013 16:11:15 +0000 (09:11 -0700)]
Cleaned up some simple hacking/pyflakes errors.

There are set of trivial changes that involved missing imports or unused
code. No functional changes should be evident.

Change-Id: If020e33674627845ea78192382bdf8977b442931

12 years agoClean up import of cinderclient exceptions
Zane Bitter [Wed, 15 May 2013 20:26:09 +0000 (22:26 +0200)]
Clean up import of cinderclient exceptions

Don't import a particular version of the cinderclient API - just import the
client module and pass the version we want to the Client() constructor as
is intended. This allows up to access the exceptions directly through
client.exceptions, rather than having to do a separate import.

Change-Id: Ic0e47506a51a572da01fdfdef0367cfdb3e34d54

12 years agoMake Volume snapshot a task
Zane Bitter [Wed, 15 May 2013 20:26:09 +0000 (22:26 +0200)]
Make Volume snapshot a task

Change-Id: I53fbd6e2ba9b17fa0ccd38d5e077587df0bbfef8

12 years agoMove Volume polling to check_create_complete()
Zane Bitter [Wed, 15 May 2013 20:26:09 +0000 (22:26 +0200)]
Move Volume polling to check_create_complete()

Rather than poll in a loop inside handle_create(), use
check_create_complete() to check the status of the Volume.

Fixes bug #1178578

Change-Id: Icea7154c6e3763c977bd41671f51736c4a366141

12 years agoHandle errors in Volume creation
Zane Bitter [Thu, 16 May 2013 11:18:19 +0000 (13:18 +0200)]
Handle errors in Volume creation

Set the resource_id as soon as it is know, since we need to be able to
delete the volume later, even if it is in an error state. Avoid attempting
to perform a snapshot if the volume was never created successfully.

Change-Id: I33dd842d3d249bafe1037c1b97abf1979f605712

12 years agoRename handle_snapshot and pass state
Zane Bitter [Thu, 16 May 2013 11:18:18 +0000 (13:18 +0200)]
Rename handle_snapshot and pass state

Rename handle_snapshot() to handle_snapshot_delete() to better reflect what
it needs to do (both take a snapshot of the resource and then delete the
resource). Also, pass the state of the resource prior to delete being
invoked, since the resource may want to use different error handling in the
snapshot phase depending on e.g. whether the resource was created
successfully or not.

Change-Id: I1e5aaab4f13e42333c1f2f39bfeb0ebf2ac89ed8

12 years agouse skipIf for all quantum test skip checks
Steve Baker [Wed, 15 May 2013 03:43:29 +0000 (15:43 +1200)]
use skipIf for all quantum test skip checks

Change-Id: I999c13fd5d2816374ee9fb4d2abe57557583ed9a

12 years agoMerge "Implement CinderVolume.FnGetAtt"
Jenkins [Wed, 15 May 2013 22:08:28 +0000 (22:08 +0000)]
Merge "Implement CinderVolume.FnGetAtt"

12 years agoMerge "Clean up VPC unit tests"
Jenkins [Wed, 15 May 2013 21:51:46 +0000 (21:51 +0000)]
Merge "Clean up VPC unit tests"

12 years agoMerge "Use python logging for loguserdata.py, log to console"
Jenkins [Wed, 15 May 2013 21:50:10 +0000 (21:50 +0000)]
Merge "Use python logging for loguserdata.py, log to console"

12 years agoMerge "Move WaitCondition polling to check_create_complete()"
Jenkins [Wed, 15 May 2013 19:53:35 +0000 (19:53 +0000)]
Merge "Move WaitCondition polling to check_create_complete()"

12 years agoClean up VPC unit tests
Zane Bitter [Wed, 15 May 2013 13:59:38 +0000 (15:59 +0200)]
Clean up VPC unit tests

 - Ensure that stacks are cleaned up on failure.
 - Add a test for the case where an something other than a valid reference
   is passed as the GroupSet.
 - Add a test for the case where no GroupSet is passed.

Ref bug #1164913

Change-Id: I7637ed7969f23662643756da4a49627a2b40de20

12 years agoAdds dns_nameserver to OS::Quantum::Subnet.
Bartosz Górski [Wed, 15 May 2013 06:04:56 +0000 (23:04 -0700)]
Adds dns_nameserver to OS::Quantum::Subnet.

You can specify list of dns_nameserver in template file when you creating new
subnet using Quantum resources.

Change-Id: I8978eab11b3ba9fe469c220fc1e7847a2038b54e

12 years agoMerge "Implement OS::Cinder::Volume"
Jenkins [Wed, 15 May 2013 02:53:19 +0000 (02:53 +0000)]
Merge "Implement OS::Cinder::Volume"

12 years agoUse python logging for loguserdata.py, log to console
Steve Baker [Tue, 14 May 2013 23:43:44 +0000 (11:43 +1200)]
Use python logging for loguserdata.py, log to console

Python logging is configured with a stream handler and should
also replicate the previous logging to 0600 /var/log/heat-provision.log

By logging to a stream handler cloud-init will write to its log,
which will show up in the server console log. This means that heat
provisioning can now be monitored without needing to log in with:

nova console-log <servername>

This change also touches the file /var/lib/heat-cfntools/provision-finished
instead of also writing a datestamp to it, which is redundant.

Change-Id: Id0312bd2216a83753df601b17ad16d5355cdb11d

12 years agoMerge "Copy the RHEL6 eventlet workaround from Oslo"
Jenkins [Tue, 14 May 2013 20:19:34 +0000 (20:19 +0000)]
Merge "Copy the RHEL6 eventlet workaround from Oslo"

12 years agoMerge "Update install_venv_common from oslo-incubator"
Jenkins [Tue, 14 May 2013 20:19:26 +0000 (20:19 +0000)]
Merge "Update install_venv_common from oslo-incubator"

12 years agoImplement CinderVolume.FnGetAtt
Thomas Herve [Thu, 9 May 2013 13:23:37 +0000 (15:23 +0200)]
Implement CinderVolume.FnGetAtt

This allows retrieving Cinder properties in the template.

Change-Id: Id20d4d2cbd5f78ad4412f6260d66b43bd2ef6596

12 years agoImplement OS::Cinder::Volume
Thomas Herve [Wed, 8 May 2013 12:16:37 +0000 (14:16 +0200)]
Implement OS::Cinder::Volume

It creates a new resource type allowing to pass cinder specific
arguments in the template.

Change-Id: I1e8512892fdc7f141f91580bfca4e370b0740a56

12 years agoMerge "heat-cfn : Make error with missing auth details more obvious"
Jenkins [Tue, 14 May 2013 12:05:35 +0000 (12:05 +0000)]
Merge "heat-cfn : Make error with missing auth details more obvious"

12 years agoMerge "Add a timeout option to the scheduler"
Jenkins [Tue, 14 May 2013 09:29:23 +0000 (09:29 +0000)]
Merge "Add a timeout option to the scheduler"

12 years agoMerge "Add new exception for invalid template ref"
Jenkins [Tue, 14 May 2013 00:21:15 +0000 (00:21 +0000)]
Merge "Add new exception for invalid template ref"

12 years agoCopy the RHEL6 eventlet workaround from Oslo
Mark McLoughlin [Thu, 2 May 2013 09:28:20 +0000 (10:28 +0100)]
Copy the RHEL6 eventlet workaround from Oslo

Tests in oslo-incubator now need the horrendous hack to workaround an
issue with eventlet on RHEL6. We've moved the patch_tox_venv tool
and redhat-eventlet.patch into oslo-incubator, so add them to
openstack-common.conf.

Change-Id: I1acfec282b64d7582144b155119bedb1741db2f7

12 years agoUpdate install_venv_common from oslo-incubator
Mark McLoughlin [Mon, 13 May 2013 21:51:06 +0000 (22:51 +0100)]
Update install_venv_common from oslo-incubator

Just some python3 compat work.

Change-Id: I835765d45a861d0bcf9b348f0649c6c9ef5a1992

12 years agoUse hostname from env in heat-keystone-setup
Stephen Sugden [Mon, 13 May 2013 21:17:31 +0000 (14:17 -0700)]
Use hostname from env in heat-keystone-setup

Prints a warning if the endpoints are going to be registered as localhost URIs.

Change-Id: I32efcf826f400ca2763cb5758dce02ffdbdb9ae1

12 years agoMerge "Provide example config option for instance_user."
Jenkins [Mon, 13 May 2013 19:55:06 +0000 (19:55 +0000)]
Merge "Provide example config option for instance_user."

12 years agoMerge "Implement the SubnetId property in the Instance resource"
Jenkins [Mon, 13 May 2013 19:50:20 +0000 (19:50 +0000)]
Merge "Implement the SubnetId property in the Instance resource"

12 years agoMerge "api : Fix template-show partial URL redirect"
Jenkins [Mon, 13 May 2013 16:58:08 +0000 (16:58 +0000)]
Merge "api : Fix template-show partial URL redirect"

12 years agoMove WaitCondition polling to check_create_complete()
Zane Bitter [Mon, 13 May 2013 15:55:41 +0000 (17:55 +0200)]
Move WaitCondition polling to check_create_complete()

Rather than poll in a loop inside handle_create(), use
check_create_complete() to check the status of the WaitCondition.

Change-Id: I63dc6ec6aeedf3238123334722f86a0f1205f306

12 years agoAdd a timeout option to the scheduler
Zane Bitter [Mon, 13 May 2013 15:55:41 +0000 (17:55 +0200)]
Add a timeout option to the scheduler

Change-Id: Ia796c5027c8faeefb9ddf48d88583d3d7901448d

12 years agoengine : rename check_active to make it more generic
Steven Hardy [Mon, 13 May 2013 13:45:56 +0000 (14:45 +0100)]
engine : rename check_active to make it more generic

Rename check_active to check_create_complete, since "active" is
really a detail of Instance state, and so it seems wrong for other
resources which take a long time to create but are not Instance
based (e.g WaitConditions).  This change will also allow us to
align other stack "state check" functions with the state we're
checking for in a consistent way (e.g check_delete_complete etc)

Fixes bug #1178591

Change-Id: I55a824e6ba3de87cedd0b844e7f4e1294917533a

12 years agoapi : Fix template-show partial URL redirect
Steven Hardy [Fri, 10 May 2013 16:09:34 +0000 (17:09 +0100)]
api : Fix template-show partial URL redirect

All other API actions will provide a redirect if you only provide the
stack ID or name (rather than both), the template URL currently doesn't
because the template subpath is missing from the mapper lookup

Fixes bug #1178705

Change-Id: Ib8e8dd7691bc48587c9d91e937ac2c2c35ac3ce6

12 years agoMerge "Deprecate tools/nova_create_flavors.sh"
Jenkins [Mon, 13 May 2013 04:52:27 +0000 (04:52 +0000)]
Merge "Deprecate tools/nova_create_flavors.sh"

12 years agoProvide example config option for instance_user.
Clint Byrum [Fri, 10 May 2013 20:35:08 +0000 (13:35 -0700)]
Provide example config option for instance_user.

Change-Id: I0782dafd785c21e96e4063ab4604dd3703c7c436

12 years agoAdd new exception for invalid template ref
Jeff Peeler [Wed, 8 May 2013 22:40:17 +0000 (18:40 -0400)]
Add new exception for invalid template ref

Hopefully is clearer than a KeyError.

Change-Id: Ib387825396ab0286df00aaff3b1b539cd7fc9a77
Fixes: bug #1178011
12 years agoImplement the SubnetId property in the Instance resource
Winson Chan [Wed, 8 May 2013 06:13:49 +0000 (23:13 -0700)]
Implement the SubnetId property in the Instance resource

If the SubnetId parameter is given in the template, the handle_create method
in the Instance resource verifies the subnet in quantum and configures the
NetworkInterfaces for the subnet. If no NetworkInterface is specified, a port
is created for the subnet and the nic is configured to use that port.

Change-Id: I5a05cbe0798e6b181bf9dd3b547cda525e18480f
Fixes: bug #1163952
12 years agoheat-cfn : Make error with missing auth details more obvious
Steven Hardy [Wed, 8 May 2013 13:43:12 +0000 (14:43 +0100)]
heat-cfn : Make error with missing auth details more obvious

Exit with an error message describing the missing auth details
instead of failing with cryptic "Name or service not known" error
when credentials etc are missing

fixes bug #1154759

Change-Id: I19c22357526c73e824a2b2bb9f862c8724a8ebba

12 years agoMerge "Fix GroupSet assignment to use resource id instead of name"
Jenkins [Wed, 8 May 2013 15:49:39 +0000 (15:49 +0000)]
Merge "Fix GroupSet assignment to use resource id instead of name"

12 years agoFix GroupSet assignment to use resource id instead of name
Jeff Peeler [Fri, 26 Apr 2013 16:04:20 +0000 (12:04 -0400)]
Fix GroupSet assignment to use resource id instead of name

This allows the security groups to be passed to Quantum in the
expected format.

Change-Id: I7925bfdb71a076b4a2ecdeee396abf42d111ef8c
Fixes: bug #1164913
12 years agoFix unit test coverage issues for wrappertask
Zane Bitter [Wed, 8 May 2013 15:12:34 +0000 (17:12 +0200)]
Fix unit test coverage issues for wrappertask

Copy and paste fail.

Change-Id: Ib3e5144d81fda7598e41e92f425b489d2cfc9a46

12 years agoExplicitely register options to fix intermittent failure
Thomas Herve [Wed, 8 May 2013 14:43:29 +0000 (16:43 +0200)]
Explicitely register options to fix intermittent failure

Using parallel tests, stackServiceTest sometimes fail with a
NoSuchOptError. Adding a register_engine_opts call seems to fix it.

Change-Id: I2bc6e7ab8d2e2cb20d1f3e7d0d93d75bdb631af3

12 years agoMerge "Skip more tests that require Cinder backups"
Jenkins [Wed, 8 May 2013 13:38:49 +0000 (13:38 +0000)]
Merge "Skip more tests that require Cinder backups"

12 years agoSkip more tests that require Cinder backups
Zane Bitter [Wed, 8 May 2013 11:41:48 +0000 (13:41 +0200)]
Skip more tests that require Cinder backups

Most of the unit tests that require the backups feature in
python-cinderclient have been made optional, but a couple remained. This
patch makes those also conditional on the feature being available.

Change-Id: I8c954e7d7aa4b516b302140bfe5e66a7066717ed

12 years agotemplates : remove in-tree templates
Steven Hardy [Tue, 7 May 2013 15:21:34 +0000 (16:21 +0100)]
templates : remove in-tree templates

Now we have the heat-templates repository, and the test dependencies
on the in-tree templates has been removed, we can remove these

Change-Id: I85b379dbf5202136cbb987c3f176b9cc7b7ff666

12 years agotests : convert test_template_format to test-local templates
Steven Hardy [Tue, 7 May 2013 14:59:49 +0000 (15:59 +0100)]
tests : convert test_template_format to test-local templates

test_template_format is different from all other tests, in that
we don't want to use the most minimal template possible, we
actually want to test conversion works with maximal/non-trivial
templates, so copy the two templates used by this test into a
local tests/templates directory, with a README caution that
in general inline-minimal templates are preferred.

Change-Id: Ib5421545103728385992625884f86f2667ee2465

12 years agotests : convert most remaining tests to inline templates
Steven Hardy [Tue, 7 May 2013 15:43:40 +0000 (16:43 +0100)]
tests : convert most remaining tests to inline templates

Convert all except the test_template_format test to minimal
inline templates

Change-Id: I73f263d3d7d24eaa2c20eed171b7486cfa873f9a

12 years agoMerge "tests : utils parse stack specify tenant in context"
Jenkins [Wed, 8 May 2013 01:42:53 +0000 (01:42 +0000)]
Merge "tests : utils parse stack specify tenant in context"

12 years agoMerge "tests : utils parse_stack allow stack_id override"
Jenkins [Wed, 8 May 2013 01:42:02 +0000 (01:42 +0000)]
Merge "tests : utils parse_stack allow stack_id override"

12 years agoMerge "tools : remove fetch-cloudformation-examples"
Jenkins [Wed, 8 May 2013 01:41:19 +0000 (01:41 +0000)]
Merge "tools : remove fetch-cloudformation-examples"

12 years agoMerge "docs : update local template references to heat-templates url"
Jenkins [Wed, 8 May 2013 01:41:00 +0000 (01:41 +0000)]
Merge "docs : update local template references to heat-templates url"

12 years agoMerge "Wait for any nova server status that makes sense"
Jenkins [Tue, 7 May 2013 23:37:05 +0000 (23:37 +0000)]
Merge "Wait for any nova server status that makes sense"

12 years agoMerge "Add test to handle nova BUILD status on create"
Jenkins [Tue, 7 May 2013 23:35:06 +0000 (23:35 +0000)]
Merge "Add test to handle nova BUILD status on create"

12 years agoMerge "Fix skips done in the test suite by using testtools skipIf"
Jenkins [Tue, 7 May 2013 23:31:09 +0000 (23:31 +0000)]
Merge "Fix skips done in the test suite by using testtools skipIf"

12 years agoMerge "Use scheduler for driving autoscaling task"
Jenkins [Tue, 7 May 2013 23:19:16 +0000 (23:19 +0000)]
Merge "Use scheduler for driving autoscaling task"

12 years agoMerge "Use a PollingTaskGroup to simplify autoscaling"
Jenkins [Tue, 7 May 2013 23:19:08 +0000 (23:19 +0000)]
Merge "Use a PollingTaskGroup to simplify autoscaling"

12 years agoMerge "Add a wrappertask decorator"
Jenkins [Tue, 7 May 2013 23:16:38 +0000 (23:16 +0000)]
Merge "Add a wrappertask decorator"

12 years agoMerge "Support password authentication."
Jenkins [Tue, 7 May 2013 22:39:03 +0000 (22:39 +0000)]
Merge "Support password authentication."

12 years agoMerge "Add a PollingTaskGroup task"
Jenkins [Tue, 7 May 2013 22:32:28 +0000 (22:32 +0000)]
Merge "Add a PollingTaskGroup task"

12 years agoFix skips done in the test suite by using testtools skipIf
Thomas Herve [Tue, 7 May 2013 16:59:46 +0000 (18:59 +0200)]
Fix skips done in the test suite by using testtools skipIf

The shipped skip_if function was broken as skipIf is already a
decorator.

Change-Id: Ifc5c3a7878fa047fe1a807c43d91fe34bc7b4081

12 years agoMerge "Give each cli its own test."
Jenkins [Tue, 7 May 2013 17:39:14 +0000 (17:39 +0000)]
Merge "Give each cli its own test."

12 years agoWait for any nova server status that makes sense
Clint Byrum [Wed, 1 May 2013 22:51:03 +0000 (15:51 -0700)]
Wait for any nova server status that makes sense

Nova may return some transient states based on operator actions that do
not mean a resource has failed. Rather than report these as unexpected,
wait on them just like BUILD.

Fixes bug #1140324

Change-Id: I757c073fb8a7da44f41e9a9cb9ae71dbc35d3c33

12 years agoAdd test to handle nova BUILD status on create
Clint Byrum [Wed, 1 May 2013 22:17:37 +0000 (15:17 -0700)]
Add test to handle nova BUILD status on create

Other tests assume nova will return an ACTIVE server on create, which is
somewhat unlikely.

Fixes bug #1133580

Change-Id: I6ccc079e8978894f7648a6000f74869434c600f6

12 years agoMerge "Support SnapshotId in volume creation."
Jenkins [Tue, 7 May 2013 17:33:51 +0000 (17:33 +0000)]
Merge "Support SnapshotId in volume creation."

12 years agotools : remove fetch-cloudformation-examples
Steven Hardy [Tue, 7 May 2013 15:23:29 +0000 (16:23 +0100)]
tools : remove fetch-cloudformation-examples

This template-related script now lives in the heat-templates repo

Change-Id: Id1940ca1217572145da8eb37b690704a7f06205d

12 years agodocs : update local template references to heat-templates url
Steven Hardy [Tue, 7 May 2013 15:19:44 +0000 (16:19 +0100)]
docs : update local template references to heat-templates url

Update references to the to-be-removed in-tree templates, so
we use raw URLs to the heat-templates repo instead

Change-Id: I2121cedc2bffe1760d845dd2d87d97dd2265f1e9

12 years agotests : utils parse stack specify tenant in context
Steven Hardy [Tue, 7 May 2013 14:43:37 +0000 (15:43 +0100)]
tests : utils parse stack specify tenant in context

Some tests require the tenant name (not just the tenant_id)
to be set

Change-Id: I381701cc83ba419041df6102fd8b47d88c5b2c3f

12 years agotests : utils parse_stack allow stack_id override
Steven Hardy [Tue, 7 May 2013 14:42:51 +0000 (15:42 +0100)]
tests : utils parse_stack allow stack_id override

Allow the stack_id to be specified, required for some tests

Change-Id: I35f236bd26ae0140e41485f9762ef09df00144b1

12 years agoUse scheduler for driving autoscaling task
Zane Bitter [Tue, 7 May 2013 13:10:10 +0000 (15:10 +0200)]
Use scheduler for driving autoscaling task

For threads that drive autoscaling events, run them to completion using the
task scheduler, to abstract out the sleeping from the main code.

Change-Id: I9b21404a171d92d6edbc59d3099d3ee34f08e22d

12 years agoUse a PollingTaskGroup to simplify autoscaling
Zane Bitter [Tue, 7 May 2013 13:10:10 +0000 (15:10 +0200)]
Use a PollingTaskGroup to simplify autoscaling

Change-Id: I608930784b18437b4745962dc6f8bdd8b47355b6

12 years agoAdd a wrappertask decorator
Zane Bitter [Tue, 7 May 2013 13:10:10 +0000 (15:10 +0200)]
Add a wrappertask decorator

It is common that we might want to create a task that is a light wrapper
around another task. This allows us to, for example, call some clean-up
function after a PollingTaskGroup has completed. We really want to make
sure that any exceptions caused by timeout or cancellation get passed on to
the subtask as well.

Python 3 sports the "yield from" keyword (PEP 380) that effectively allows
the sort of nesting of generators that we want to do here. This change
provides a decorator function that allows the decorated generator function
to do the same thing using the "yield" keyword, even in Python 2.

Change-Id: I110141f2891ed35b8ffe98ec6ae8b42738f7db64

12 years agoAdd a PollingTaskGroup task
Zane Bitter [Tue, 7 May 2013 13:10:09 +0000 (15:10 +0200)]
Add a PollingTaskGroup task

A PollingTaskGroup can monitor a collection of subtasks.

Change-Id: I5db4e7a9d32647397f3229e7654aa0fb68d794ce

12 years agoMerge "Support Snapshot policy in volumes"
Jenkins [Tue, 7 May 2013 07:11:19 +0000 (07:11 +0000)]
Merge "Support Snapshot policy in volumes"

12 years agoDeprecate tools/nova_create_flavors.sh
Steve Baker [Tue, 7 May 2013 04:56:22 +0000 (16:56 +1200)]
Deprecate tools/nova_create_flavors.sh

This script now just prints a warning and runs
nova flavor-list

Change-Id: Iee5e2fa54d38a24d634840db10a7f5411cb2e9dd

12 years agoSupport password authentication.
Cody A.W. Somerville [Mon, 6 May 2013 02:05:50 +0000 (22:05 -0400)]
Support password authentication.

Add alternative authentication middleware to authenticate against Keystone using
username and password instead of validating existing auth token. The benefit
being that you no longer require admin/service token to authenticate users.

To use, update heat-api.conf:
     [paste_deploy]
     flavor = standalone

This should make it possible to try heat out against existing public
clouds.

Change-Id: Ia584bba78e8984581f0fb6882bbb17d5efa238db

12 years agoSupport SnapshotId in volume creation.
Thomas Herve [Mon, 6 May 2013 07:02:25 +0000 (09:02 +0200)]
Support SnapshotId in volume creation.

This uses cinder backups as snapshot, to be symmetrical to the deletion
policy.

Change-Id: Ie8f1ff095df7bdad8500c6298d1b7d9fd233693f
Implements: blueprint bp/volume-snapshots

12 years agoGive each cli its own test.
Steve Baker [Sun, 5 May 2013 22:53:56 +0000 (10:53 +1200)]
Give each cli its own test.

This will give a nicer failure message, and results in 3
slowish tests instead of 1 really slow one.

Change-Id: I5c3fbd2507068908c165e163b8f458bf8cb00bc1

12 years agoMerge "heat tests : separate Autoscaling and CW alarm tests"
Jenkins [Fri, 3 May 2013 16:51:20 +0000 (16:51 +0000)]
Merge "heat tests : separate Autoscaling and CW alarm tests"

12 years agoMerge "heat tests : convert most tests to inline templates"
Jenkins [Fri, 3 May 2013 16:51:18 +0000 (16:51 +0000)]
Merge "heat tests : convert most tests to inline templates"

12 years agoMerge "heat tests : add parse_stack function to test utils"
Jenkins [Fri, 3 May 2013 16:51:14 +0000 (16:51 +0000)]
Merge "heat tests : add parse_stack function to test utils"

12 years agoheat tests : separate Autoscaling and CW alarm tests
Steven Hardy [Fri, 3 May 2013 12:42:24 +0000 (13:42 +0100)]
heat tests : separate Autoscaling and CW alarm tests

Currently the AutoScaling test also tests the CloudWatch Alarm
resource, so separate out the CW Alarm test to simplify things

Change-Id: Ia346ee49f3a363e2d63e801c74265545d7af1acf

12 years agoheat tests : convert most tests to inline templates
Steven Hardy [Fri, 3 May 2013 10:43:54 +0000 (11:43 +0100)]
heat tests : convert most tests to inline templates

Convert to inline minimal templates, to remove dependency on
in-tree templates which we plan to remove.  Note there are still
some more tests remaining which need similar changes (shardy todo)

Change-Id: I0864d1f15ea3b815d449277387440157f104bbf3

12 years agoheat tests : add parse_stack function to test utils
Steven Hardy [Fri, 3 May 2013 12:31:35 +0000 (13:31 +0100)]
heat tests : add parse_stack function to test utils

Add convenience function parse_stack to utils so it can be
reused in test to avoid duplication

Change-Id: I608e2227c695a9faecbd8ff78a1339b47174a006

12 years agoFix error reporting in @stack_delete_after unit tests
Zane Bitter [Fri, 3 May 2013 13:57:57 +0000 (15:57 +0200)]
Fix error reporting in @stack_delete_after unit tests

If a unit test decorated with @stack_delete_after (to ensure that a stack
being tested is cleaned up) fails in such a way that the stack cannot be
cleaned up, the original error was suppressed, making debugging very
difficult. In this case, we should re-raise the original exception.

Change-Id: I2b0c326f819cd8a6bc772fe52deb14fb1c41bf93

12 years agoSet Stack id to None when deleted
Zane Bitter [Fri, 3 May 2013 14:07:14 +0000 (16:07 +0200)]
Set Stack id to None when deleted

If a Stack object has been removed from the database, we should reset its
ID to None so that if the object is used further, it will not be assumed
that it is represented in the database.

Change-Id: Iaa7e9327324f101487847362973bd7f8386ce44b

12 years agoSupport Snapshot policy in volumes
Thomas Herve [Thu, 2 May 2013 13:13:52 +0000 (15:13 +0200)]
Support Snapshot policy in volumes

This handles the Snapshot DeletionPolicy in the AWS::EC2::Volume
resource, creating a backup of the volume before deleting it. It
requires a recent cinder client with backup support.

Implements: blueprint volume-snapshots
Change-Id: Idbb14a434ad6ccde9f198e07799e8aef0867dd6f

12 years agoMerge "heat api: ec2token remove unnecessary jsonutils retry"
Jenkins [Fri, 3 May 2013 10:02:46 +0000 (10:02 +0000)]
Merge "heat api: ec2token remove unnecessary jsonutils retry"

12 years agoMerge "Use install_venv_common from oslo"
Jenkins [Fri, 3 May 2013 09:07:57 +0000 (09:07 +0000)]
Merge "Use install_venv_common from oslo"

12 years agoMerge "Sometimes use quantum for SecurityGroup"
Jenkins [Fri, 3 May 2013 09:06:34 +0000 (09:06 +0000)]
Merge "Sometimes use quantum for SecurityGroup"

12 years agoMerge "Allow non-replacement updates of Alarms"
Jenkins [Fri, 3 May 2013 09:03:37 +0000 (09:03 +0000)]
Merge "Allow non-replacement updates of Alarms"

12 years agoMerge "Fix test_validate to run by itself"
Jenkins [Fri, 3 May 2013 05:07:22 +0000 (05:07 +0000)]
Merge "Fix test_validate to run by itself"

12 years agoMerge "Depend on discover to fix python2.6 tests"
Jenkins [Fri, 3 May 2013 05:02:10 +0000 (05:02 +0000)]
Merge "Depend on discover to fix python2.6 tests"