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

12 years agoAllow cinder operations with only auth_token
Steve Baker [Wed, 27 Mar 2013 20:29:38 +0000 (09:29 +1300)]
Allow cinder operations with only auth_token

This uses the same technique as Horizon for auth_token operations.

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

Client libs are in theory capable of looking up their own endpoints
given an auth_token, but in practice this is the code-path least
travelled and there are many issues. I think it is best to do what
Horizon does, since all Horizon operations use only a token and always
provide the endpoint to the client lib.

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: Iea9159299ad3f354bcc768c9ac1172d6d9f814a8

12 years agoCatch NotFound exceptions on Volume handle_delete
Steve Baker [Tue, 2 Apr 2013 00:24:09 +0000 (13:24 +1300)]
Catch NotFound exceptions on Volume handle_delete

Currently stack delete fails if the underlying volume is
already deleted.
Fixes: bug #1163067
Change-Id: I9d7c009f70a0bb7274f3e19cbe10e9061c5e2d60

12 years agoMerge "Fix swift client token authentication"
Jenkins [Mon, 1 Apr 2013 18:10:49 +0000 (18:10 +0000)]
Merge "Fix swift client token authentication"

12 years agoMerge "Make swift FnGetAtt fault tolerant and block less"
Jenkins [Thu, 28 Mar 2013 09:31:45 +0000 (09:31 +0000)]
Merge "Make swift FnGetAtt fault tolerant and block less"

12 years agoMerge "Don't assume a Parameter value is a str"
Jenkins [Thu, 28 Mar 2013 09:30:20 +0000 (09:30 +0000)]
Merge "Don't assume a Parameter value is a str"

12 years agoheat engine : Autoscaling reload Loadbalancer correctly
Steven Hardy [Wed, 27 Mar 2013 16:08:41 +0000 (16:08 +0000)]
heat engine : Autoscaling reload Loadbalancer correctly

Since the change implemented as part of bug #1136148 we no longer
wait for nova to create the instance before reloading the loadbalancer
which means we race nova assigning an IP to the instance and typically
the loadbalancer config ends up with the 0.0.0.0 default value
which the loadbalancer implementation uses when nova returns no IP.

This patch moves the LB reload into a separate function, which is called
after instances are active on group creation or adjustment

Since our loadbalancer is broken without this fix, this is a candidate
for backporting to grizzly milestone-proposed.

fixes bug #1160407

Change-Id: I50423883dead9a615aa79b8765d5480a9345686d

12 years agoDon't assume a Parameter value is a str
Steve Baker [Wed, 27 Mar 2013 00:35:54 +0000 (13:35 +1300)]
Don't assume a Parameter value is a str

Currently show_stack and list_stacks will fail for templates
which have a Number in the Parameters.

This should be considered for backport to milestone_proposed.

Change-Id: I1b20babf0998f7714f8bc7bf144e03ff1d7c0c91
Fixes: bug #1160653
12 years agoMake swift FnGetAtt fault tolerant and block less
Steve Baker [Tue, 26 Mar 2013 21:02:31 +0000 (10:02 +1300)]
Make swift FnGetAtt fault tolerant and block less

head_container is now only called for required attributes
and will tolerate failure if there is an issue with the underlying
container.

This was preventing deleting of stacks with swift resources.

Possibly this is eligible for backporting to milestone-proposed.

Change-Id: I2f489126957f11924943955a7f63a2ebc45f1911
Fixes: bug #1160584
12 years agoheat : remove fallback ec2signer implementation
Steven Hardy [Tue, 26 Mar 2013 09:44:10 +0000 (09:44 +0000)]
heat : remove fallback ec2signer implementation

Now keystoneclient 0.2.3 has been released, we can remove the
temporary internal ec2signer implementation

Change-Id: I9f050b8771400384615f1ae7f3da76da501e5197

12 years agoFix swift client token authentication
Steve Baker [Tue, 26 Mar 2013 04:11:47 +0000 (17:11 +1300)]
Fix swift client token authentication

Triggered by launching a stack containing swift containers
through Horizon.

The swift client does its own endpoint lookup if we don't know
it, so we don't have to do it ourselves. Also, our endpoint lookup
was broken in the auth_token codepath.

Part of blueprint auth-token-only

Change-Id: I1876f233001a58cb17e7dd7d5cf8883e295a9b87

12 years agovalidate_template returns whole Parameters snippet
Steve Baker [Wed, 20 Mar 2013 03:52:49 +0000 (16:52 +1300)]
validate_template returns whole Parameters snippet

Currently the engine validate_template returns cfn formatted
Parameters from the template, which isn't actually very useful
to build a full UI from a validate call.

This change returns the original Parameters template snippet
and changes the cfn api to reformat to the CFN API legacy format.

The Parameters section of the RPC and the REST APIs now return
a dictionary containing the parameters as specified in the template.
Previously the Parameters section contained a list in the CFN API
format.

Pseudo parameters are filtered out of the validate results.

Change-Id: Iea53dc847ff13f5f479ec3a66bcf141c4ccaeb25
Fixes: bug #1157537
12 years agoheat getting started : fix heat-jeos URL
Steven Hardy [Thu, 21 Mar 2013 17:45:43 +0000 (17:45 +0000)]
heat getting started : fix heat-jeos URL

heat-jeos URL is wrong since heat-api org got deleted

Change-Id: Ic1a89117e9928931fdc07f8fe2934a9d965e3c1e

12 years agoMerge "Get rid of versioninfo cruft"
Jenkins [Thu, 21 Mar 2013 02:09:27 +0000 (02:09 +0000)]
Merge "Get rid of versioninfo cruft"

12 years agoMerge "Tolerate missing keys in reformat_dict_keys"
Jenkins [Thu, 21 Mar 2013 00:04:51 +0000 (00:04 +0000)]
Merge "Tolerate missing keys in reformat_dict_keys"

12 years agoChange executable file permission for rpmlint
Jeff Peeler [Wed, 20 Mar 2013 23:13:16 +0000 (19:13 -0400)]
Change executable file permission for rpmlint

(sync.py)

Change-Id: I335510e6ef2788389248de90c05191c84440ff78
Fixes: Bug #1158009
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
12 years agoChange executable file permissions for rpmlint
Jeff Peeler [Wed, 20 Mar 2013 22:53:31 +0000 (18:53 -0400)]
Change executable file permissions for rpmlint

Fixes: Bug #1158009
Change-Id: I761debfb77be5cf5204af90a013d7f4f043fdb17
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
12 years agoTolerate missing keys in reformat_dict_keys
Steve Baker [Wed, 20 Mar 2013 21:42:28 +0000 (10:42 +1300)]
Tolerate missing keys in reformat_dict_keys

For validate, some keys are optional but still need mapping
if they are there.

Helps bug #1157537

Change-Id: Ib29cd99979a84892a98117c607651ea4c352e3d1

12 years agoGet rid of versioninfo cruft
Jeff Peeler [Wed, 20 Mar 2013 18:08:28 +0000 (14:08 -0400)]
Get rid of versioninfo cruft

The version information is no longer stored in a file.

Fixes: Bug #1157885
Change-Id: Ide0662ad3d7b2596743cd9427bc3b50e8357ffe1
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
12 years agoBump Heat version to 2013.2
Steven Dake [Tue, 19 Mar 2013 21:54:35 +0000 (14:54 -0700)]
Bump Heat version to 2013.2

Heat PTL Signoff for 2013.1

Change-Id: Ic8d91e1629642bbb54f673c1e879898d66e010bc

12 years agoMerge "Create a wsgi factory method for Debug filter."
Jenkins [Mon, 18 Mar 2013 02:40:36 +0000 (02:40 +0000)]
Merge "Create a wsgi factory method for Debug filter."

12 years agoMerge "If a stack create fails, ensure the stack is deleteable"
Jenkins [Sun, 17 Mar 2013 23:32:28 +0000 (23:32 +0000)]
Merge "If a stack create fails, ensure the stack is deleteable"

12 years agoMerge "Add heat-keystone-setup man page"
Jenkins [Sun, 17 Mar 2013 21:04:42 +0000 (21:04 +0000)]
Merge "Add heat-keystone-setup man page"

12 years agoCreate a wsgi factory method for Debug filter.
Steve Baker [Sun, 17 Mar 2013 20:21:35 +0000 (09:21 +1300)]
Create a wsgi factory method for Debug filter.

This can be enabled by putting the following in the *-paste.ini
file:
[filter:debug]
paste.filter_factory = heat.common.wsgi:filter_factory
heat.filter_factory = heat.common.wsgi:debug_filter

and adding 'debug' to the pipeline.

This assisted with bug #1133792

Change-Id: I4c2d3194ac9673d095b4115d4b6f385fd2f4fa4e

12 years agoIf a stack create fails, ensure the stack is deleteable
Steven Dake [Sat, 16 Mar 2013 20:37:29 +0000 (13:37 -0700)]
If a stack create fails, ensure the stack is deleteable

The resource delete operation attempts to delete CREATE_FAILED
resources.  Further it attempts to delete resources that were
not created during a creation operation because further processing
of the template does not take place.

This patch special cases these two conditions in the delete operation.

Change-Id: I1c83ba68754f38a0f7e91e77fcf02177c457504e
Fixes: Bug #1155824
12 years agoMerge "heat docs : Add 2013 to the copyright string"
Jenkins [Fri, 15 Mar 2013 21:43:43 +0000 (21:43 +0000)]
Merge "heat docs : Add 2013 to the copyright string"

12 years agoMerge "Add a manual page for heat-db-setup"
Jenkins [Fri, 15 Mar 2013 18:18:27 +0000 (18:18 +0000)]
Merge "Add a manual page for heat-db-setup"

12 years agoMerge "Use built-in exception filtering for GreenletExit"
Jenkins [Fri, 15 Mar 2013 17:19:18 +0000 (17:19 +0000)]
Merge "Use built-in exception filtering for GreenletExit"