]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
12 years agoheat api : Update ec2token middleware for v4 signatures
Steven Hardy [Mon, 8 Apr 2013 13:53:04 +0000 (14:53 +0100)]
heat api : Update ec2token middleware for v4 signatures

Update ec2token so it can verify v4 signature formats.

Note for v4 signatures to work you currently need to install
the latest python-keystoneclient, as no release yet contains
patch ref https://review.openstack.org/#/c/26013/

This change should be backwards compatible, as older keystoneclient
versions will simply ignore the additional request keys

fixes bug #1122472

Change-Id: Iccc6be7913ab5ca5813a2e0c8f66cda0ccd85a0b

12 years agoMerge "heat docs: deprecate old GettingStarted guide"
Jenkins [Wed, 1 May 2013 02:15:15 +0000 (02:15 +0000)]
Merge "heat docs: deprecate old GettingStarted guide"

12 years agoRemove unused skip_unless and skip_test decorators
Clint Byrum [Sun, 28 Apr 2013 16:48:43 +0000 (09:48 -0700)]
Remove unused skip_unless and skip_test decorators

Change-Id: I1519fc4b3b827ef35352968b67759b0b5d3fd5f2

12 years agoRemove unused and outdated heat/testing dir
Clint Byrum [Sat, 27 Apr 2013 15:43:23 +0000 (08:43 -0700)]
Remove unused and outdated heat/testing dir

The descriptions of testing are not in line with the test suite as it is
today, and none of the code there is actually used.

Change-Id: I717015184fea53d40fc8bd6782dcf4eb8a8520d4

12 years agoRe-work run_tests.sh to call testr instead of nose
Clint Byrum [Sat, 27 Apr 2013 15:37:41 +0000 (08:37 -0700)]
Re-work run_tests.sh to call testr instead of nose

Running testr directly or running the tests in tox are the preferred
method at this point, but developers may still have automation around
run_tests.sh.

Change-Id: I5cd8a0e6bcee192440bdbc072dbd560615130def

12 years agoRemove broken --doctest call from run_pep8.sh
Clint Byrum [Sat, 27 Apr 2013 15:37:00 +0000 (08:37 -0700)]
Remove broken --doctest call from run_pep8.sh

It does not seem to actually be required and causes the script to fail
when not running inside tox.

Change-Id: Ib5be301054b08623ea31a97c1b2d6c341e7fdd3e

12 years agoRemove use of nose attrib plugin and most unittest
Clint Byrum [Fri, 26 Apr 2013 22:49:33 +0000 (15:49 -0700)]
Remove use of nose attrib plugin and most unittest

Some simple cases that do not use mox still use unittest directly.
Replacing unittest.TestCase with HeatTestCase has the added benefit of
capturing all logging for reporting during failure.

Change-Id: I76192bdb91822055f1e2f7d2e806bf094d399304

12 years agoRemoving all prints and capturing logging
Clint Byrum [Thu, 25 Apr 2013 23:33:48 +0000 (16:33 -0700)]
Removing all prints and capturing logging

A new base class for tests is used to reduce repetitive steps used in
a majority of tests. This new base class also uses fixtures.FakeLogger
to suppress logging, though it will be shown on any failures to aid in
debugging the failure.

Prints that happen on normal operation of the test suite are all removed
as they are not needed and only clutter the output.

Change-Id: I0365283ce415c5390fd68bdf1f0b3c8038b1b9af

12 years agoRemove functional tests in preferece for tempest
Clint Byrum [Thu, 25 Apr 2013 23:17:24 +0000 (16:17 -0700)]
Remove functional tests in preferece for tempest

These tests are not unit tests, and take a long time. They are being
moved into tempest, which is where integration/functional tests live in
OpenStack.

Change-Id: Ida7792a00a8565f812c55da448d8c50a8b8a90b9

12 years agoRemove examples and update testing-overview.txt
Clint Byrum [Thu, 25 Apr 2013 23:16:20 +0000 (16:16 -0700)]
Remove examples and update testing-overview.txt

With the migration to testrepository, many of the instructions are
obsolete. Also the examples are not needed as we have plenty of fine
examples available in the code itself.

Change-Id: I87524eaab4c39ea75d7e53fb11ffe103d5339cc3

12 years agoUse testr for running gate tests
Clint Byrum [Thu, 25 Apr 2013 03:07:37 +0000 (20:07 -0700)]
Use testr for running gate tests

Fixes bug 1172468

Change-Id: Ifd87e44d752b4b3c77b4ea8f38feceb03bccaebe

12 years agoEnable running tests via testr
Clint Byrum [Thu, 25 Apr 2013 00:30:35 +0000 (17:30 -0700)]
Enable running tests via testr

This also disables the functional tests from running. The code is still
left here for posterity. These are intended to be moved into tempest
test cases and thus will be removed entirely at that time.

Change-Id: I294671baead6e83a8312b41681e99d395f861209

12 years agoMerge "Make Resource.create() a co-routine"
Jenkins [Tue, 30 Apr 2013 19:59:48 +0000 (19:59 +0000)]
Merge "Make Resource.create() a co-routine"

12 years agoMerge "heat docs : Update jeos building documentation"
Jenkins [Tue, 30 Apr 2013 19:59:43 +0000 (19:59 +0000)]
Merge "heat docs : Update jeos building documentation"

12 years agoMake Resource.create() a co-routine
Zane Bitter [Tue, 30 Apr 2013 17:28:32 +0000 (19:28 +0200)]
Make Resource.create() a co-routine

At the moment, we will just run each co-routine to completion, but in
future we can use this to return control to the caller so that resources
may be created in parallel.

Change-Id: I5c2daf3839e53d855acb73fc4288b5be76794c7f

12 years agoMerge "Add a scheduler module"
Jenkins [Tue, 30 Apr 2013 16:54:41 +0000 (16:54 +0000)]
Merge "Add a scheduler module"

12 years agoMerge "heat api: fix ec2token authentication"
Jenkins [Tue, 30 Apr 2013 16:35:34 +0000 (16:35 +0000)]
Merge "heat api: fix ec2token authentication"

12 years agoheat docs: deprecate old GettingStarted guide
Steven Hardy [Mon, 29 Apr 2013 17:05:22 +0000 (18:05 +0100)]
heat docs: deprecate old GettingStarted guide

Remove content of the old GettingStarted guide and replace with
a link to the new docs location

Change-Id: I6af2b3bef05f920a9df77e4ec94b7c3c2dfbb68c

12 years agoheat docs : Update jeos building documentation
Steven Hardy [Mon, 29 Apr 2013 17:00:19 +0000 (18:00 +0100)]
heat docs : Update jeos building documentation

Replace references to heat-jeos with documentation describing the
use of the new heat-templates/tools/heat-jeos.sh example script

fixes bug #1171602

Change-Id: I88fd2a5667cccd79a77c4a663c782fb537279fac

12 years agoMerge "Update tools/integration.sh script to new docs tree"
Jenkins [Tue, 30 Apr 2013 10:00:47 +0000 (10:00 +0000)]
Merge "Update tools/integration.sh script to new docs tree"

12 years agoMerge "Validate properties against the schema in validate_template"
Jenkins [Tue, 30 Apr 2013 09:51:37 +0000 (09:51 +0000)]
Merge "Validate properties against the schema in validate_template"

12 years agoheat api: fix ec2token authentication
Steven Hardy [Tue, 30 Apr 2013 09:38:04 +0000 (10:38 +0100)]
heat api: fix ec2token authentication

Since the change merged from https://review.openstack.org/#/c/27383/
ec2token auth no longer works, because there is a mismatch between
the config file section name and the section specified in ec2token

fixes bug #1174673

Change-Id: I5c0465de5c023f587b677b10717ca3a08ba411b7

12 years agoRemove pyflakes_bypass
Clint Byrum [Mon, 22 Apr 2013 18:03:18 +0000 (11:03 -0700)]
Remove pyflakes_bypass

There are valid pythonic ways to address all of the complaints that
pyflakes made in the past.

Fixes bug #1171420

Change-Id: Idf145185ebb4df237fff887365fa0c48d3603025

12 years agoFix DB sync script
Zane Bitter [Mon, 29 Apr 2013 17:30:13 +0000 (19:30 +0200)]
Fix DB sync script

Broken by a60f6d45693c8a0d70f78a0fa9216a8c54c062e7, since we don't
import the db api into heat.db any more.

Change-Id: If5175ae84c9da0c8787a162a549b727381c6fbd6

12 years agoUpdate tools/integration.sh script to new docs tree
Steven Hardy [Mon, 29 Apr 2013 16:20:41 +0000 (17:20 +0100)]
Update tools/integration.sh script to new docs tree

Update location to refer to the new fedora getting started guide

Change-Id: I507e1102a1979debd975fa6601e5385b1a47a756

12 years agoValidate properties against the schema in validate_template
Thomas Herve [Mon, 29 Apr 2013 15:21:42 +0000 (17:21 +0200)]
Validate properties against the schema in validate_template

Change-Id: I81457d8d363226b90b2a878ec2c93f88b376dc83
Fixes: bug #1154722
12 years agoheat engine : register options before using them
Steven Hardy [Mon, 29 Apr 2013 12:46:57 +0000 (13:46 +0100)]
heat engine : register options before using them

Fix regression caused by the __init__.py refactoring, which means
we try to use cfg.CONF.host before registering it.

fixes bug #1174302

Change-Id: Iff4d75f53e242d7df8c7071cbeeead034a7ad9b0

12 years agoMerge "Do not initialize anything during import phase"
Jenkins [Mon, 29 Apr 2013 11:59:25 +0000 (11:59 +0000)]
Merge "Do not initialize anything during import phase"

12 years agoAdd a scheduler module
Zane Bitter [Mon, 29 Apr 2013 09:28:37 +0000 (11:28 +0200)]
Add a scheduler module

Utility routines for running coroutine-based tasks.

Change-Id: I907d889a564a1118b7c9caa30f3ad65dfac76534

12 years agoRemove engine_topic configuration option
Mark McLoughlin [Sat, 27 Apr 2013 12:20:04 +0000 (13:20 +0100)]
Remove engine_topic configuration option

Fixes bug #1173575

This is currently broken since heat-engine always listens to the
'engine' topic and there isn't actually a good use case for this to be
configurable, so let's kill it.

Change-Id: I35c0292c921f81857f80a7f111df5ac330d54ecf

12 years agoSend RPCs to 'engine' topic not 'engine.$host'
Mark McLoughlin [Sat, 27 Apr 2013 12:08:52 +0000 (13:08 +0100)]
Send RPCs to 'engine' topic not 'engine.$host'

Fixes bug #1173573

We currently send engine RPCs to the 'engine.$host' topic means that
it is impossible to run heat-api and heat-engine on different
machines because you can't configure heat-api with the hostname of
heat-engine.

Fix this simply by sending RPCs to 'engine' which heat-engine. We have
always listened on this topic, so there is no backwards compat
concerns.

This is somewhat related to the multiple-engines blueprint, but
doesn't really help or hinder it.

Change-Id: Ibd4dc948ace4476bfa8e7fdc86e948a622416e58

12 years agoMerge "Consolidated api-paste.ini file"
Jenkins [Fri, 26 Apr 2013 03:54:43 +0000 (03:54 +0000)]
Merge "Consolidated api-paste.ini file"

12 years agoMerge "Propagate deletion errors with exceptions"
Jenkins [Fri, 26 Apr 2013 03:54:40 +0000 (03:54 +0000)]
Merge "Propagate deletion errors with exceptions"

12 years agoMerge "Mock delete_network in Quantum unit tests"
Jenkins [Fri, 26 Apr 2013 03:54:36 +0000 (03:54 +0000)]
Merge "Mock delete_network in Quantum unit tests"

12 years agoMerge "Mark resources as failed when creation aborted"
Jenkins [Fri, 26 Apr 2013 03:54:34 +0000 (03:54 +0000)]
Merge "Mark resources as failed when creation aborted"

12 years agoMerge "Propagate creation errors with exceptions"
Jenkins [Fri, 26 Apr 2013 03:54:32 +0000 (03:54 +0000)]
Merge "Propagate creation errors with exceptions"

12 years agoMerge "Move ec2token defaults from paste.ini to .conf"
Jenkins [Wed, 24 Apr 2013 18:39:23 +0000 (18:39 +0000)]
Merge "Move ec2token defaults from paste.ini to .conf"

12 years agoMerge "Optionally allow ec2token config to come from .conf"
Jenkins [Wed, 24 Apr 2013 18:29:25 +0000 (18:29 +0000)]
Merge "Optionally allow ec2token config to come from .conf"

12 years agoDo not initialize anything during import phase
Clint Byrum [Tue, 23 Apr 2013 22:51:57 +0000 (15:51 -0700)]
Do not initialize anything during import phase

The structure of the program is compromised by doing too much logic in
the import phase. We can read the code more cleanly if we can see where
the intended initialization code is called. This may make tests slightly
more tedious to write, but that should be handled by writing generic
fixtures which can be reused for exactly this purpose.

Change-Id: I1d221e2f90d1f6e89717a37d2128caabd077d30a

12 years agoConsolidated api-paste.ini file
Steve Baker [Sat, 13 Apr 2013 17:14:11 +0000 (10:14 -0700)]
Consolidated api-paste.ini file

Load a single api-paste.ini file, specified by config
Delete unused paste.ini files
Update docs for new paste.ini and config arrangement

There will be a corresponding devstack change, and once this is in
I will email the packagers on the packaging implications

Change-Id: Ic10b1a486094d15bfd832f0f934e6268ec323085

12 years agoMove ec2token defaults from paste.ini to .conf
Steve Baker [Fri, 12 Apr 2013 22:48:24 +0000 (08:48 +1000)]
Move ec2token defaults from paste.ini to .conf

paste.ini files can now be considered not user-editable
(in normal circumstances)

Change-Id: Ia2a6d784ed2fad009de9e77717e6e0dc00c5e2f4

12 years agoOptionally allow ec2token config to come from .conf
Steve Baker [Fri, 12 Apr 2013 22:46:35 +0000 (08:46 +1000)]
Optionally allow ec2token config to come from .conf

Just like keystoneclient.middleware.auth_token
first checks paste.ini file then .conf file when fetching
a config value

Change-Id: I9db9744d0ab12fcf486de9a9d3f8e870a4ff66de

12 years agoPropagate deletion errors with exceptions
Zane Bitter [Tue, 23 Apr 2013 11:36:47 +0000 (13:36 +0200)]
Propagate deletion errors with exceptions

Change-Id: Ib8380f6d985e328c56d53b326700d6c9df636f40

12 years agoMock delete_network in Quantum unit tests
Zane Bitter [Tue, 23 Apr 2013 11:36:47 +0000 (13:36 +0200)]
Mock delete_network in Quantum unit tests

Change-Id: I0a1f0e56ed84aa4efcdf7c65c7c634f738bdddda

12 years agoMark resources as failed when creation aborted
Zane Bitter [Tue, 23 Apr 2013 11:36:47 +0000 (13:36 +0200)]
Mark resources as failed when creation aborted

Previously resources would be left in the CREATE_IN_PROGRESS state in the
event of a timeout or the thread being cancelled (due to a delete being
requested while the stack was still being created). We should instead put
these resources into the CREATE_FAILED state when this occurs, thus
creating an event with the reason.

Change-Id: I05956aa9ef26941b79cef9dbf0cb6a347047d199

12 years agoPropagate creation errors with exceptions
Zane Bitter [Tue, 23 Apr 2013 11:36:47 +0000 (13:36 +0200)]
Propagate creation errors with exceptions

Change-Id: I567f1901e1203930d282620112368ac32440b9ed

12 years agoAssert on Resource double-create()
Zane Bitter [Tue, 23 Apr 2013 11:36:47 +0000 (13:36 +0200)]
Assert on Resource double-create()

There's no valid case in which we should be creating a resource multiple
times.

Change-Id: Id90edd3a09ec15d3814a322ac0b7ec75fd0be54a

12 years agoFix issues with EIP unit test
Zane Bitter [Tue, 23 Apr 2013 11:36:46 +0000 (13:36 +0200)]
Fix issues with EIP unit test

The resource was not being destroyed correctly, but errors were ignored.

Change-Id: I1caa9d092f58f458bd6da46f4cba4ad027b1fd38

12 years agoGet rid of create state in Instance
Zane Bitter [Tue, 23 Apr 2013 11:21:28 +0000 (13:21 +0200)]
Get rid of create state in Instance

We don't want to store any state in the Instance object, instead take
advantage of the new mechanism whereby the result of handle_create() is
passed to check_active().

This makes the autoscaling code uglier for now (since it must still store
the instance state in the instance), but this will go away when we move to
using co-routines to create resources in parallel.

Change-Id: Ib11c8da22900453eb9713eba5106859c8a09dbe2

12 years agoMerge "Clean up metadata refresh unit test"
Jenkins [Tue, 23 Apr 2013 10:59:47 +0000 (10:59 +0000)]
Merge "Clean up metadata refresh unit test"

12 years agoMerge "Get rid of create state in Autoscaling"
Jenkins [Tue, 23 Apr 2013 10:59:45 +0000 (10:59 +0000)]
Merge "Get rid of create state in Autoscaling"

12 years agoMerge "Fix pyflakes-bypass for PyFlakes 0.7"
Jenkins [Tue, 23 Apr 2013 10:31:00 +0000 (10:31 +0000)]
Merge "Fix pyflakes-bypass for PyFlakes 0.7"

12 years agoRemove service _user, _password, _tenant from context
Steve Baker [Mon, 8 Apr 2013 03:47:46 +0000 (15:47 +1200)]
Remove service _user, _password, _tenant from context

These are not currently used anywhere in heat-engine, and I'm
not comfortable with the service password going over the (controller)
network.

If heat-engine needs access to these in the future then they can always
be configured in heat-engine.conf, or the operation can be performed
in the api and the results put into the context.

Change-Id: I81aab6b5a2c9aa7d6412531f70108857cbfa637b

12 years agoMove heat-api auth_token conf from paste.ini
Steve Baker [Tue, 2 Apr 2013 23:29:50 +0000 (12:29 +1300)]
Move heat-api auth_token conf from paste.ini

keystone auth_token middleware now allows heat to have auth_token
configuration in heat-api.conf. Moves the example of
auth_token configuration from heat-api-paste.ini to heat-api.conf.
This simplifies user configuations and users is no longer required
to edit heat-api-paste.ini.

This does not break backward compatibility. auth_token first
tries the configurations in /etc/heat/heat-api-paste.ini and then the
above configurations. Thus a user who already uses heat-api-paste.ini
does not need to change it.

Change-Id: Ia0a4d912cd7380094e121ee4af733277ca4d812e
Blueprint: keystone-middleware

12 years agoSubclass keystone middleware to set headers
Steve Baker [Mon, 8 Apr 2013 03:35:55 +0000 (15:35 +1200)]
Subclass keystone middleware to set headers

Replace old forked auth_token with a subclass
of keystoneclient middleware.

The advantages of moving to keystoneclient middleware:
- can use v3 (or v2) keystone api
- PKI tokens
- token revocation

The subclass sets the following headers to be consumed by our
request context filter:
- X-Admin-User
- X-Admin-Pass
- X-Admin-Tenant-Name
- X-Auth-Url

The need to override _build_user_headers should be a short-term thing,
X-Admin-* isn't actually used currently, and there are a few options
that need to be discussed for getting X-Auth-Url to the engine.

Change-Id: Iacc5046fbf559724a4ae0bd6091d662e23d65544
Blueprint: keystone-middleware

12 years agoImprove Python 3.x compatibility
Dirk Mueller [Mon, 22 Apr 2013 22:12:22 +0000 (00:12 +0200)]
Improve Python 3.x compatibility

Mechanical translation of the deprecated except x,y:
construct. the except x as y: construct works with
all python 2.6+ versions

Change-Id: Iad349b8079a01bbd66a22800ae2fcdfcde03b377

12 years agoFix pyflakes-bypass for PyFlakes 0.7
Zane Bitter [Mon, 22 Apr 2013 16:24:56 +0000 (18:24 +0200)]
Fix pyflakes-bypass for PyFlakes 0.7

Don't make assumptions about argument types, get the line number from the
message object.

Fixes bug #1171420

Change-Id: Id0b1b254a1561941dea8ab5bb23aea1f936e7f0b

12 years agoSimplify rpc client calls
Mark McLoughlin [Mon, 22 Apr 2013 10:12:58 +0000 (11:12 +0100)]
Simplify rpc client calls

We always pass host=None to _engine_topic() which means that we always
construct a topic using CONF.engine_topic and CONF.host.

And since RpcProxy methods falls back to the topic supplied to its
constructor, we never need to explicitly pass it.

We can safely remove the _engine_topic() method and the passing of an
explicit topic to RpcProxy methods and replace it with constructing the
correct topic at construction time, without causing any functional
changes.

While we're at it, replace the last use of the variable name FLAGS with
CONF.

Change-Id: Iefdc6b78a068975ac45b10d6b53210cb283d2ef8

12 years agoMerge "Pass data from handle_create() to check_active()"
Jenkins [Sun, 14 Apr 2013 20:07:21 +0000 (20:07 +0000)]
Merge "Pass data from handle_create() to check_active()"

12 years agoMerge "Updated OpenShift template"
Jenkins [Sat, 13 Apr 2013 17:12:45 +0000 (17:12 +0000)]
Merge "Updated OpenShift template"

12 years agoFix the exception message in stack_resource.get_output()
Angus Salkeld [Fri, 12 Apr 2013 07:07:59 +0000 (17:07 +1000)]
Fix the exception message in stack_resource.get_output()

Change-Id: Ifa81e3e9062e3e731ff1989f41f390171c203c71

12 years agoUpdated OpenShift template
Krishna Raman [Fri, 12 Apr 2013 05:37:04 +0000 (22:37 -0700)]
Updated OpenShift template

OpenShift Origin images require a lot of packages. So, although the OpenShift
Origin HEAT template can be adapted to run with JEOS images, they would take
> 25 min to spin up. Instead, I have opted to create heavier images to speed up
machine creation. @See https://github.com/sdake/heat-jeos/pull/49

Change-Id: I371d28a9833a48a6b588f907cce3298b30552e90

12 years agoMerge "uses os.urandom instead of Crypto.Random for backward compatibility"
Jenkins [Thu, 11 Apr 2013 22:05:36 +0000 (22:05 +0000)]
Merge "uses os.urandom instead of Crypto.Random for backward compatibility"

12 years agoheat-cfn: Handle parameters with = in them
Zane Bitter [Thu, 11 Apr 2013 18:08:24 +0000 (20:08 +0200)]
heat-cfn: Handle parameters with = in them

Change-Id: Iee193169ec3dd583158ad929df20541ec210149b

12 years agouses os.urandom instead of Crypto.Random for backward compatibility
Giulio Fidente [Thu, 11 Apr 2013 15:31:53 +0000 (17:31 +0200)]
uses os.urandom instead of Crypto.Random for backward compatibility

Crypto.Random has been introduced by pycrypto 2.1 but in RHEL6 and
derivates you will only find pycrypto 2.0.1

Change-Id: Ib601981b0b8fcb5b3e8fc8761ee05adf7f6574fa

12 years agoUpdate the README to point to docs.openstack.org/developer/heat
Angus Salkeld [Wed, 10 Apr 2013 09:14:31 +0000 (19:14 +1000)]
Update the README to point to docs.openstack.org/developer/heat

Change-Id: I056b84b437e4c7522dd61af780eb3e60dd0775c6

12 years agoMerge "Update to the latest loopingcall from oslo."
Jenkins [Wed, 10 Apr 2013 06:43:07 +0000 (06:43 +0000)]
Merge "Update to the latest loopingcall from oslo."

12 years agoClean up metadata refresh unit test
Zane Bitter [Tue, 9 Apr 2013 18:01:24 +0000 (20:01 +0200)]
Clean up metadata refresh unit test

The stack was not being fully created, because the calls to the mock
functions were not present for the second instance.

Change-Id: I894473533eb40133e4c22facbbee749a971cec89

12 years agoGet rid of create state in Autoscaling
Zane Bitter [Tue, 9 Apr 2013 18:01:23 +0000 (20:01 +0200)]
Get rid of create state in Autoscaling

Avoid storing the state of instances that are currently being created in
the instance group resource itself. Instead, ensure that they are returned
from handle_create() and take advantage of that result being passed back in
to check_active().

Change-Id: Ie2c75eaee620aa0599665168bfb92b345128d392

12 years agoPass data from handle_create() to check_active()
Zane Bitter [Tue, 9 Apr 2013 18:01:23 +0000 (20:01 +0200)]
Pass data from handle_create() to check_active()

All resources that implement check_active() will require some state to be
retained from the call to handle_create(). Saving this as state in the
Resource object results in repeated, ugly, and potentially error-prone
code.

Instead, allow a subclass-defined state object returned from
handle_create() to be passed to check_active(). This ensures that the state
is limited in scope to where it is meaningful (during the create
operation), and that it will be garbage-collected at the appropriate time,
even if an unexpected exception occurs e.g. because a thread is cancelled.

Change-Id: I9d690b44a066aaf33970562a2b9a55c633a7d4e8

12 years agoheat templates : Update Wordpress config for F18 guests
Steven Hardy [Tue, 9 Apr 2013 16:59:08 +0000 (17:59 +0100)]
heat templates : Update Wordpress config for F18 guests

F18 contains apache 2.4 which requires a different syntax to enable
non-local access to the wordpress install

fixes bug #1166897

Change-Id: Ia63cceeba35904f05a1b4cf76fc075d3cdc7cd86

12 years agoheat : Getting started updates for grizzly
Steven Hardy [Mon, 8 Apr 2013 17:20:43 +0000 (18:20 +0100)]
heat : Getting started updates for grizzly

Update GettingStarted to drop references to F16/essex and add the
password sed which is required when running grizzly installed via
tools/openstack on Fedora

Change-Id: I08d265e2e2388b54a6aa9f47c4930c32f71f3e93

12 years agoheat : cloudwatch paste.ini credentials incorrect
Steven Hardy [Mon, 8 Apr 2013 16:47:39 +0000 (17:47 +0100)]
heat : cloudwatch paste.ini credentials incorrect

The cloudwatch paste config should specify service/heat
like the other API services, not admin/admin

Change-Id: I0590c88edd6b544aba467ab171dd7f610b50c380

12 years agoheat tools : openstack script fixes for grizzly
Steven Hardy [Mon, 8 Apr 2013 16:46:38 +0000 (17:46 +0100)]
heat tools : openstack script fixes for grizzly

Update tools/openstack so it works with the grizzly preview repo
(tested on F18 with both grizzly repo and folsom distro packages)

fixes bug #1164605

Change-Id: I347a53c9be677131dad37f9fbeb1ed5eb9cb810b

12 years agoMerge "Remove paste config for non-existant cache filters"
Jenkins [Tue, 9 Apr 2013 05:35:05 +0000 (05:35 +0000)]
Merge "Remove paste config for non-existant cache filters"

12 years agoMerge "Remove unused and deprecated auth-context filter"
Jenkins [Tue, 9 Apr 2013 05:35:02 +0000 (05:35 +0000)]
Merge "Remove unused and deprecated auth-context filter"

12 years agoUpdate to the latest loopingcall from oslo.
Michael Still [Tue, 9 Apr 2013 05:05:30 +0000 (15:05 +1000)]
Update to the latest loopingcall from oslo.

This needs threadgroup as well, as it uses loopingcall.

Change-Id: Idfa68519c9e263830c9e6a16c2e1bfbd8c89069d

12 years agoRemove paste config for non-existant cache filters
Steve Baker [Fri, 5 Apr 2013 02:55:31 +0000 (15:55 +1300)]
Remove paste config for non-existant cache filters

This appears to be junk DNA from glance, which has filters
for caching image files.

Change-Id: Id7ae29028d351dd005a61a5727bc7d40ceb0a705

12 years agoRemove unused and deprecated auth-context filter
Steve Baker [Fri, 5 Apr 2013 02:47:11 +0000 (15:47 +1300)]
Remove unused and deprecated auth-context filter

keystone.middleware.auth_token is now just aliased to
keystoneclient.middleware.auth_token.

Also heat_auth_token doesn't seem to exist, so this has likely
always been broken

Change-Id: I5eadd9a02e41921b39fc8b6783c22010893bb5e9

12 years agoAttempt to delete resources even if they failed
Zane Bitter [Mon, 8 Apr 2013 10:43:35 +0000 (12:43 +0200)]
Attempt to delete resources even if they failed

To do otherwise risks leaving resources silently running that exist but
have experienced some kind of error during creation.

Fixes bug 1165023

Change-Id: Ie60fb053b1a596d102ca1b6a8429dd50ed41ff92

12 years agoFix AccessKey deletion with bad credentials
Zane Bitter [Mon, 8 Apr 2013 10:43:35 +0000 (12:43 +0200)]
Fix AccessKey deletion with bad credentials

If an AccessKey could not be created, it also could not be deleted. This
change allows deletion of the resource to proceed even if the user does not
exist.

Fixes bug 1155824

Also fixes a bug that the actual key would never be deleted, because the
resource_id is set to None beforehand.

Change-Id: I34886410e3e25ad62e4eba537063f922b011e25a

12 years agoMerge "ReST API: Translate the documentation to WADL"
Jenkins [Mon, 8 Apr 2013 09:43:34 +0000 (09:43 +0000)]
Merge "ReST API: Translate the documentation to WADL"

12 years agoMerge "Delete unused ContextMiddleware"
Jenkins [Fri, 5 Apr 2013 07:32:08 +0000 (07:32 +0000)]
Merge "Delete unused ContextMiddleware"

12 years agoDelete unused ContextMiddleware
Steve Baker [Fri, 5 Apr 2013 00:41:03 +0000 (13:41 +1300)]
Delete unused ContextMiddleware

heat.common.context.ContextMiddleware appears to be the only
one that matters

Change-Id: If4166fa75f7179251b132ac6082b7f29d94b6e97

12 years agoReplace deprecated commands with current equivalents
Steve Baker [Thu, 4 Apr 2013 22:35:28 +0000 (11:35 +1300)]
Replace deprecated commands with current equivalents

Change-Id: I871d7f0e5cd0a22a284a6e6733607feafbbb52a2

12 years agoFix sphinx warnings
Steve Baker [Thu, 4 Apr 2013 22:30:59 +0000 (11:30 +1300)]
Fix sphinx warnings

Change-Id: I0e2e837d7114bde22a5a4b2ffb65aa06416c0a97

12 years agoReST API: Translate the documentation to WADL
Zane Bitter [Thu, 4 Apr 2013 17:25:24 +0000 (19:25 +0200)]
ReST API: Translate the documentation to WADL

Change-Id: Ib1847ee2266d188f198fdf8fb7feb53770d9c1a5

12 years agoMerge "Add Getting Started Guides the developer doc's"
Jenkins [Thu, 4 Apr 2013 15:15:38 +0000 (15:15 +0000)]
Merge "Add Getting Started Guides the developer doc's"

12 years agoMerge "No longer pass no_cache=True to novaclient create"
Jenkins [Thu, 4 Apr 2013 15:09:49 +0000 (15:09 +0000)]
Merge "No longer pass no_cache=True to novaclient create"

12 years agoMerge "Pass in endpoint url for quantum auth_token auth"
Jenkins [Thu, 4 Apr 2013 15:07:58 +0000 (15:07 +0000)]
Merge "Pass in endpoint url for quantum auth_token auth"

12 years agoMerge "Allow nova operations with only auth_token"
Jenkins [Thu, 4 Apr 2013 15:07:56 +0000 (15:07 +0000)]
Merge "Allow nova operations with only auth_token"

12 years agoMerge "Pass in endpoint url for swift auth_token auth"
Jenkins [Thu, 4 Apr 2013 15:06:26 +0000 (15:06 +0000)]
Merge "Pass in endpoint url for swift auth_token auth"

12 years agoMerge "Allow cinder operations with only auth_token"
Jenkins [Thu, 4 Apr 2013 15:06:23 +0000 (15:06 +0000)]
Merge "Allow cinder operations with only auth_token"

12 years agoMerge "Log tracepath for stack validate exceptions."
Jenkins [Thu, 4 Apr 2013 07:29:41 +0000 (07:29 +0000)]
Merge "Log tracepath for stack validate exceptions."

12 years agoAdd Getting Started Guides the developer doc's
Angus Salkeld [Thu, 4 Apr 2013 04:28:04 +0000 (15:28 +1100)]
Add Getting Started Guides the developer doc's

These have been copied from the wiki.

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

12 years agoNo longer pass no_cache=True to novaclient create
Steve Baker [Tue, 2 Apr 2013 02:09:29 +0000 (15:09 +1300)]
No longer pass no_cache=True to novaclient create

The default is now os_cache=False, so default behaviour will not
use a keyring that prompts for a password.

This was committed on 2012-12-12 and released in
python-novaclient 2.11.0 on 2013-02-11

Part of blueprint auth-token-only

Change-Id: Id2846b2e344f8e3321240795aebf9a59ddad711a

12 years agoLog tracepath for stack validate exceptions.
Steve Baker [Tue, 2 Apr 2013 23:41:13 +0000 (12:41 +1300)]
Log tracepath for stack validate exceptions.

Calling validate on each resource exercises a lot of code, and
will at times cause non-validation related exceptions.

This change just logs the tracepath for any exception that happens
during validate.

This may be a contender for backporting to milestone-proposed,
since diagnosing some problems on the grizzly branch will be
difficult without it

Change-Id: Ib010a8ec826552e2817da3a22c633dcac6c3ffc6
Fixes: bug #1163586
12 years agoPass in endpoint url for quantum auth_token auth
Steve Baker [Tue, 2 Apr 2013 02:57:19 +0000 (15:57 +1300)]
Pass in endpoint url for quantum auth_token auth

This aligns quantum auth_token only authentication with the
way Horizon does it.

Tested by launching a stack with and without the --token-only flag

Also tested using Horizon, which is auth_token only

Part of blueprint auth-token-only

Change-Id: Ic6d471de527951415ef4858cbbff27cf60561924

12 years agoAllow nova operations with only auth_token
Steve Baker [Tue, 2 Apr 2013 01:57:51 +0000 (14:57 +1300)]
Allow nova operations with only auth_token

This uses the same technique as Horizon for auth_token operations.

Specifically, the nova endpoint is found directly from keystone
and the auth_token and management_url are set on novaclient
after it has been created.

Note that the explicit call to authenticate() is not required
and actually breaks the auth_token case.

Tested by launching a stack with and without the --token-only flag

Also tested using Horizon, which is auth_token only

Part of blueprint auth-token-only

Change-Id: Ic11a838b96a4b5130cb2ac9d685e8a97c9d0a0ad

12 years agoPass in endpoint url for swift auth_token auth
Steve Baker [Tue, 2 Apr 2013 01:13:18 +0000 (14:13 +1300)]
Pass in endpoint url for swift auth_token auth

This aligns swift auth_token only authentication with the
way Horizon does it, and avoids python-swiftclient bug #1160172

Tested by launching a stack with and without the --token-only flag

Also tested using Horizon, which is auth_token only

Part of blueprint auth-token-only

Change-Id: I0622f76e93df4f7353fc0cc61dc962b6c8f0be11