]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
13 years agoMerge "Fix the Getting Started guide for the new setup.py"
Jenkins [Fri, 1 Jun 2012 19:18:32 +0000 (19:18 +0000)]
Merge "Fix the Getting Started guide for the new setup.py"

13 years agoFix new pep8 warnings.
Ian Main [Fri, 1 Jun 2012 18:50:36 +0000 (11:50 -0700)]
Fix new pep8 warnings.

With the new release of pep8 we have some different requirements.
This patch fixes them all.

Change-Id: Ief16becba47007460f8b125907b055aa51de999e
Signed-off-by: Ian Main <imain@redhat.com>
13 years agoFix the Getting Started guide for the new setup.py
Zane Bitter [Thu, 31 May 2012 14:09:35 +0000 (16:09 +0200)]
Fix the Getting Started guide for the new setup.py

With the new setup.py script, OpenStack must be installed before heat,
otherwise PIP will start importing bogus dependencies (at least on Fedora).

Also install stuff that was previously being installed by setup.py. This
will eventually be replaced with an install script (see #134).

Change-Id: I942def545f9351a1f3238dac49f34b13370e2597
Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoRefactor Resource creation
Zane Bitter [Thu, 31 May 2012 09:17:30 +0000 (11:17 +0200)]
Refactor Resource creation

Allow the Resource class to instantiate the correct type of object for each
resource.

Change-Id: I518f27fa27f675b9e497aac40962331833077aed
Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoClean up imports
Zane Bitter [Thu, 31 May 2012 09:17:30 +0000 (11:17 +0200)]
Clean up imports

Change-Id: Ibca9c8ab8b9dafb813baee6a9c4aa024bf9733e2
Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoDon't use sys.exc_value
Zane Bitter [Thu, 31 May 2012 09:17:30 +0000 (11:17 +0200)]
Don't use sys.exc_value

sys.exc_value has been deprecated since Python 1.5, and is not thread-safe.
The replacement is sys.exc_info(), but in this case we don't need even that
since we have the exception in question available.

Change-Id: Ibb4b354fd099fbf0d6390163eb4f7cc9e97db0e9
Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoGet list properties working again
Zane Bitter [Thu, 31 May 2012 09:17:30 +0000 (11:17 +0200)]
Get list properties working again

The CloudFormation documentation is very confusing on this point.
'CommaDelimitedList' is one of the data types that are valid for a
Parameter (the others are 'String' and 'Number'). A CommaDelimitedList
parameter takes the form of a string where the list members are delimted by
commas:

    "item1,item2,item3"

However the documentation also uses the phrase "Comma Delimited List" to
refer to the type of some Resource Properties that are, in fact, simply
lists:

    [ "item1" , "item2" , "item3" ]

...as if there were *another* way to represent lists. (Note that the
items here need not be strings, and in fact are usually objects of some
variety.)

So we need a different data type to represent the latter. (This patch
changes the name from 'TupleList' to just 'List', since the actual Python
sequence type is just an implementation detail.) In future, we should
probably also verify that only the 3 valid Parameter types are used, and
perhaps that list Properties contain only objects of the correct type.

Change-Id: I94054f588fc37f7d4ba245f2e92b86ac9c872c37
Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoRemove _authenticate() check for metadata calls (temp)
Angus Salkeld [Thu, 31 May 2012 04:25:59 +0000 (14:25 +1000)]
Remove _authenticate() check for metadata calls (temp)

To be replaced by proper AWS auth, which needs AWS::IAM::AccessKey
resource type to be hooked up.

Change-Id: Icbdb08493fb51add5e6d3d5f4a153595f93c8f75
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoFix the HA template (sed the username/password)
Angus Salkeld [Thu, 31 May 2012 00:48:35 +0000 (10:48 +1000)]
Fix the HA template (sed the username/password)

Change-Id: I835a9f6d2a9abfdeb5af8fb703c8abae5afae2d1
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoFix apt-get install
Steven Dake [Wed, 30 May 2012 21:49:27 +0000 (14:49 -0700)]
Fix apt-get install

rpm deps not available on ubuntu systems
fix apt-get install doesn't work (string vs list)

Change-Id: Ic2da1415f9bccb15321afd0ed5111041cbf2a2d0
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoRemove python 2.7ism
Steven Dake [Thu, 31 May 2012 03:06:23 +0000 (20:06 -0700)]
Remove python 2.7ism

Change-Id: I9e74d79e42cc22aa0f0883fb1e1582be2860d842
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoCompress qcow2 files to take up less disk space
Steven Dake [Wed, 30 May 2012 20:26:20 +0000 (13:26 -0700)]
Compress qcow2 files to take up less disk space

This results in less data transferred during a glance registration.

Change-Id: I36d17c6e1bf12e3e0f37394d5522c6f4f59313de
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoInstall argparse and update the U10 package cache
Steven Dake [Wed, 30 May 2012 18:15:34 +0000 (11:15 -0700)]
Install argparse and update the U10 package cache

cfntools require argparse
U10 package cache needs updating to install packages correctly

Change-Id: I3630f5082d4b9f73fa95805d51684a68bf8c0d6e
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoFix auth failed exception handler
Ian Main [Wed, 30 May 2012 17:46:15 +0000 (10:46 -0700)]
Fix auth failed exception handler

This patch fixes the auth failed exception handler so that we
get back a meaningful result when authentication fails.

Change-Id: I2f37daed3890fd685fa6f701938b675460e76b0c
Signed-off-by: Ian Main <imain@redhat.com>
13 years agoSet stack's `updated_at` time
Tomas Sedovic [Wed, 30 May 2012 14:52:17 +0000 (16:52 +0200)]
Set stack's `updated_at` time

Fixes #126

Change-Id: Ie7abe6c3385632138671cb0b7f12dfa33e69bae0

13 years agoAdd instance restarter
Angus Salkeld [Fri, 25 May 2012 01:53:57 +0000 (11:53 +1000)]
Add instance restarter

Change-Id: I8ef28efc7d86a1a3a44f4784cb496c415a14f95c
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd a name to the checkeddict to improve the error messages
Angus Salkeld [Wed, 30 May 2012 03:10:02 +0000 (13:10 +1000)]
Add a name to the checkeddict to improve the error messages

Change-Id: I11edc3bce77cd84d0393d6d95c6733b7901f95a1
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAuthentication Overhaul
Ian Main [Tue, 29 May 2012 21:09:57 +0000 (14:09 -0700)]
Authentication Overhaul

This patch updates the authentication system set up in heat:

- We now authenticate against the 'heat' service at the entry
  point to each api call in the engine.
- We are now using the 'Context' class to contain the authentication
  information as intended.
- The two context classes are unified and we now use the same one
  for both WSGI and RPC.  This is the intended design as the
  context is loaded by the WSGI middleware and then passed into the
  RPC methods.
- We are now doing token authentication in the API that works with
  both native keystone and AWS style authentication.  That token is
  then passed on to the engine for further authentication for various
  endpoints.

Note that the heat-api-paste.ini file requires updating in order for
this to work on your system.  Admin user and password must be set
properly in the authtoken section in order to perform token based
authentication.

I suspect there will be a few bugs in here yet.  This is just part of
the authentication/identification changes we need to make but I wanted
to get this in so we could continue to work with a boto based client.

Change-Id: Ib635ecd3088304e8d51d8e1fc31a8b1bf751caf3
Signed-off-by: Ian Main <imain@redhat.com>
13 years agoMerge changes I31d97b0d,I10507113
Jenkins [Tue, 29 May 2012 21:40:06 +0000 (21:40 +0000)]
Merge changes I31d97b0d,I10507113

* changes:
  Changed SecurityGroups property type to TuplesList
  Change the policies for User to TuplesList

13 years agoMerge changes I475ac4f7,I212cffac
Jenkins [Tue, 29 May 2012 21:37:22 +0000 (21:37 +0000)]
Merge changes I475ac4f7,I212cffac

* changes:
  Add missing "properties_schema" to WaitConditionHandle
  Fix jeos_path when not intalled as an egg

13 years agoChanged SecurityGroups property type to TuplesList
Chris Alfonso [Tue, 29 May 2012 19:03:05 +0000 (15:03 -0400)]
Changed SecurityGroups property type to TuplesList

Change-Id: I31d97b0de6e72bd24f0f78d86890726fc1e8a138

13 years agoChange the policies for User to TuplesList
Chris Alfonso [Tue, 29 May 2012 15:08:02 +0000 (11:08 -0400)]
Change the policies for User to TuplesList

Change-Id: I105071135a6b20a414c2f4016ca3a8312a4ee2a2

13 years agoAdd missing flags to enable working with RabbitMQ
Jeff Peeler [Sat, 26 May 2012 18:16:19 +0000 (14:16 -0400)]
Add missing flags to enable working with RabbitMQ

Note: rpc_backend=heat.rpc.impl_kombu must be set in both heat-api.conf
and heat-engine.conf.

Change-Id: Ia7f5af8805240381f28ecae1efc0a677155f898e
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
13 years agocloudwatch: set HA template to send watch data
Tomas Sedovic [Wed, 23 May 2012 15:59:41 +0000 (17:59 +0200)]
cloudwatch: set HA template to send watch data

The Wordpress HA template is now able to utilize the cfn-push-stats and send
alarm messages to the metadata server.

Change-Id: I52b615d3401dc2665e2b30e4a925d61ed204c827
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
13 years agoAdd the basic cloudwatch feature
Angus Salkeld [Fri, 25 May 2012 09:24:29 +0000 (19:24 +1000)]
Add the basic cloudwatch feature

Fix watch db tables and silly programming errors.
get basic posting data to metadata server working
add watch_rule_get_all()
check for alarms in a periodic task
delete watch_data when the rule is deleted
add a last_evaluated field to the watch_rule
remove unused option to watch_data_get
take better account of the sample period.
- still much to be done here (evaluation periods).
add some useful stats to cfn-push-stats
fix how the metric is accessed
fix a divide by zero

Change-Id: Iaf98499d0e3ac6d6f951ea38b3b0f409669258da
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd missing "properties_schema" to WaitConditionHandle
Angus Salkeld [Fri, 25 May 2012 02:12:14 +0000 (12:12 +1000)]
Add missing "properties_schema" to WaitConditionHandle

Change-Id: I475ac4f72613a2f20275949a01168246cae1fb52
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoFix jeos_path when not intalled as an egg
Angus Salkeld [Fri, 25 May 2012 01:51:21 +0000 (11:51 +1000)]
Fix jeos_path when not intalled as an egg

Also use os.path.join() to sort out trailing "/"

Change-Id: I212cffacc018f456894e9b7921fef75256edcf45
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoMerge "Changes to checkeddict for tuples and required"
Jenkins [Fri, 25 May 2012 00:29:15 +0000 (00:29 +0000)]
Merge "Changes to checkeddict for tuples and required"

13 years agoAllow login to U10 jeos launched from heat
Steven Dake [Fri, 25 May 2012 00:12:27 +0000 (17:12 -0700)]
Allow login to U10 jeos launched from heat

cloudinit on debian expects the user "ubuntu" - hard code to ec2-user
useradd doesn't create home directories on U10 without -m option

Change-Id: Iaaee6df560b60e203b17a36bba57ac410ad6ed56
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoChanges to checkeddict for tuples and required
Chris Alfonso [Thu, 24 May 2012 19:22:41 +0000 (15:22 -0400)]
Changes to checkeddict for tuples and required

13 years agoMake i386 cfntools jeos work
Steven Dake [Thu, 24 May 2012 01:24:57 +0000 (18:24 -0700)]
Make i386 cfntools jeos work

was expectin cfg-* instead of cfn-*

Change-Id: I6234829d92a33e8bd4a8fab246ded2c1a43afc55
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoAdd U10 JEOS support to heat jeos_create
Steven Dake [Wed, 23 May 2012 23:09:00 +0000 (16:09 -0700)]
Add U10 JEOS support to heat jeos_create

This requires oz 0.9.0 (or latest master).  0.8.0 shipped with
most distros does not have customization support for Ubuntu
images.

fixes issue #23

Change-Id: I854aaf9657353b3fdb4768a277b527304e88ac8e
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoValidate all resource properties
Angus Salkeld [Thu, 24 May 2012 11:01:46 +0000 (21:01 +1000)]
Validate all resource properties

Change-Id: Ib0346fd22636d3eae31c688426b966f07acda19c
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd functional test to verify jeos and stack ops
Jeff Peeler [Wed, 23 May 2012 20:13:00 +0000 (16:13 -0400)]
Add functional test to verify jeos and stack ops

(Tox.ini has been modified to only run tests tagged with 'unit'
to prevent this test from running with unit tests.)

This test requires an OpenStack install present and will not run on
StackForge. This test creates a JEOS, waits for glance registration,
detects key registered with keystone, creates stack, and verifies over
SSH that:
- cfn helper script SHAs match tree
- verifies presence of wordpress
- verifies expected user data is present in multipart mime file

closes #112

Change-Id: I22a0dfe41986d466ac689c050fc33585e3e6229e
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
13 years agoFixing variable name for debug message
Chris Alfonso [Wed, 23 May 2012 20:19:33 +0000 (16:19 -0400)]
Fixing variable name for debug message

Change-Id: I5992e0c449b5caeff3fd91c3aefe721ab32830c4

13 years agousing the calculated path for the template tests
Chris Alfonso [Wed, 23 May 2012 19:37:07 +0000 (15:37 -0400)]
using the calculated path for the template tests

Change-Id: Ifc5f142cf36a387d32f2ea70dfcb1bb33a44a056

13 years agoUpdate resource statuses in the database
Zane Bitter [Wed, 23 May 2012 18:34:54 +0000 (20:34 +0200)]
Update resource statuses in the database

This ensures that resources will not get deleted multiple times when
something else fails during stack deletion.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoFix deletion of security groups
Zane Bitter [Wed, 23 May 2012 17:14:39 +0000 (19:14 +0200)]
Fix deletion of security groups

First off, don't set the instance_id to an empty string as soon as we
retrieve the object from the database.

Also, don't fail if we try to delete a security group that no longer
exists.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoOnly run cfn-init once
Steven Dake [Wed, 23 May 2012 14:42:19 +0000 (07:42 -0700)]
Only run cfn-init once

cloud-config-final.service (atleast in Fedora 16) runs the user scripts.  So
there is no need to run them in cloud-config.service (which this file is processed
by).

May need a revisit on deb based systems.

Change-Id: Ib7c3d56a50bcdc4ea68626e1d57a28a4ec70e1b4
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoUse the new CheckedDict for Parameters
Angus Salkeld [Wed, 23 May 2012 12:15:38 +0000 (22:15 +1000)]
Use the new CheckedDict for Parameters

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd some better checking for parameters and properties
Angus Salkeld [Wed, 23 May 2012 11:53:11 +0000 (21:53 +1000)]
Add some better checking for parameters and properties

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoFixing path lookup to make sure the templates can be found
Chris Alfonso [Tue, 22 May 2012 21:05:55 +0000 (17:05 -0400)]
Fixing path lookup to make sure the templates can be found

Change-Id: Ib48c27a9d0a794d243e48661aaebb108728af6bb

Conflicts:

heat/tests/test_resources.py
heat/tests/test_stacks.py

13 years agoMerge "tools/openstack: Updated to latest openstack F16/F17 tools"
Jenkins [Tue, 22 May 2012 20:03:24 +0000 (20:03 +0000)]
Merge "tools/openstack: Updated to latest openstack F16/F17 tools"

13 years agoAdding the AWS::IAM::User and AWS::IAM::AccessKey to the mapping
Chris Alfonso [Tue, 22 May 2012 17:29:25 +0000 (13:29 -0400)]
Adding the AWS::IAM::User and AWS::IAM::AccessKey to the mapping

13 years agotools/openstack: Updated to latest openstack F16/F17 tools
Steven Dake [Tue, 22 May 2012 16:50:53 +0000 (09:50 -0700)]
tools/openstack: Updated to latest openstack F16/F17 tools

Change-Id: I8e6b376a90ad1641c10eea2ef6711a9cd09ee2e0
Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoUpdate gitreview for new Stackforge remote
Andrew Hutchings [Tue, 22 May 2012 12:11:39 +0000 (13:11 +0100)]
Update gitreview for new Stackforge remote

Change-Id: I265b771fa2b4d040a9e90ceb265941acdea90156

13 years agoAlign with project standards.
Monty Taylor [Thu, 17 May 2012 20:02:04 +0000 (16:02 -0400)]
Align with project standards.

Rebased from: Change-Id: Ifc9fff4f88dfaebe97b7caba4d603d23c645e346

Reviewed-by: Steven Dake <sdake@redhat.com>
13 years agoFedora openstack projects use new tools to setup databases
Steven Dake [Mon, 21 May 2012 23:43:48 +0000 (16:43 -0700)]
Fedora openstack projects use new tools to setup databases

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoAdd .gitreview for Gerrit
Andrew Hutchings [Thu, 17 May 2012 10:16:00 +0000 (11:16 +0100)]
Add .gitreview for Gerrit

Reviewed-by: Steven dake <sdake@redhat.com>
13 years agoAdd an integration test script
Zane Bitter [Mon, 21 May 2012 21:41:17 +0000 (23:41 +0200)]
Add an integration test script

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoPep8 fixes
Chris Alfonso [Mon, 21 May 2012 19:41:29 +0000 (15:41 -0400)]
Pep8 fixes

13 years agoMerge branch 'puppet_instances'
Chris Alfonso [Mon, 21 May 2012 19:39:11 +0000 (15:39 -0400)]
Merge branch 'puppet_instances'

Conflicts:
heat/api/v1/__init__.py
heat/engine/parser.py

13 years agoMerge branch 'puppet_instances' of github.com:heat-api/heat into puppet_instances
Chris Alfonso [Mon, 21 May 2012 19:33:08 +0000 (15:33 -0400)]
Merge branch 'puppet_instances' of github.com:heat-api/heat into puppet_instances

Conflicts:
heat/api/v1/__init__.py

13 years agoFixing _decompress to handle bundled and compressed
Chris Alfonso [Mon, 21 May 2012 18:50:54 +0000 (14:50 -0400)]
Fixing _decompress to handle bundled and compressed

The api call to os.path.splitext returns the root and the ext;
however, for a .tar.gz the ext would just be the .gz, which meant
there was no handler for a file with a .gz extension.

13 years agoHandle failures when deleting stacks
Zane Bitter [Mon, 21 May 2012 12:53:42 +0000 (14:53 +0200)]
Handle failures when deleting stacks

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoFix problem with updating parsed template in DB
Zane Bitter [Mon, 21 May 2012 18:18:33 +0000 (20:18 +0200)]
Fix problem with updating parsed template in DB

The parsed template would not always be updated correctly when the actual
template object had not changed (only the contents). This change forces an
update by making a copy.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoFix copy-paste errors in template descriptions
Zane Bitter [Mon, 21 May 2012 13:08:36 +0000 (15:08 +0200)]
Fix copy-paste errors in template descriptions

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoImprovements to uninstall script
Zane Bitter [Mon, 21 May 2012 12:53:03 +0000 (14:53 +0200)]
Improvements to uninstall script

- Kill only the specific heat processes we want (heat-api and heat-engine).
- Remove installations wherever they may be located.
- More robust handling of input.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoRefactor some not-particularly-Pythonic code
Zane Bitter [Fri, 18 May 2012 12:02:39 +0000 (14:02 +0200)]
Refactor some not-particularly-Pythonic code

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoDelete networks when erasing OpenStack
Zane Bitter [Fri, 18 May 2012 12:02:39 +0000 (14:02 +0200)]
Delete networks when erasing OpenStack

This is required to remove any network interfaces created using nova. If
these are left behind they prevent a new installation of OpenStack
re-adding them.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoAdding chaining to CommandRunner
Chris Alfonso [Fri, 18 May 2012 15:10:55 +0000 (11:10 -0400)]
Adding chaining to CommandRunner

13 years agoMaking PrivateDnsName return the ip address
Chris Alfonso [Thu, 17 May 2012 14:33:39 +0000 (10:33 -0400)]
Making PrivateDnsName return the ip address

13 years agoAdding puppet and puppet master instances
Chris Alfonso [Wed, 16 May 2012 20:15:34 +0000 (16:15 -0400)]
Adding puppet and puppet master instances

13 years agoWait for instance startup in GettingStarted test
Zane Bitter [Fri, 18 May 2012 12:02:38 +0000 (14:02 +0200)]
Wait for instance startup in GettingStarted test

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoapi : fix pep8 warning
Steven Hardy [Thu, 17 May 2012 20:43:51 +0000 (21:43 +0100)]
api : fix pep8 warning

Fix long-line pep8 warning

Signed-off-by: Steven Hardy <shardy@redhat.com>
13 years agoAllow engine and metadata server start in any order
Tomas Sedovic [Thu, 17 May 2012 14:49:15 +0000 (16:49 +0200)]
Allow engine and metadata server start in any order

When the metadata server starts first, it will wait for the engine to come up
and only then registers it's hostname and port and becomes available.

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
13 years agoMaking PrivateDnsName return the ip address
Chris Alfonso [Thu, 17 May 2012 14:33:39 +0000 (10:33 -0400)]
Making PrivateDnsName return the ip address

13 years agoClean up the API routes
Tomas Sedovic [Wed, 16 May 2012 13:15:39 +0000 (15:15 +0200)]
Clean up the API routes

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
13 years agoAdding puppet and puppet master instances
Chris Alfonso [Wed, 16 May 2012 20:15:34 +0000 (16:15 -0400)]
Adding puppet and puppet master instances

13 years agoClean up the API routes
Tomas Sedovic [Wed, 16 May 2012 13:15:39 +0000 (15:15 +0200)]
Clean up the API routes

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
13 years agoMake the wait condition behave better when the stack is deleted.
Angus Salkeld [Tue, 8 May 2012 04:26:23 +0000 (14:26 +1000)]
Make the wait condition behave better when the stack is deleted.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoheat cli : Add options to bash completion script
Steven Hardy [Wed, 16 May 2012 08:36:43 +0000 (09:36 +0100)]
heat cli : Add options to bash completion script

Ref #87 add completion of long-format options, align the command options with
the "heat help" option

Signed-off-by: Steven Hardy <shardy@redhat.com>
13 years agoheat client : reduce duplication between functions
Steven Hardy [Tue, 15 May 2012 21:01:18 +0000 (22:01 +0100)]
heat client : reduce duplication between functions

Move common code into utility function to reduce duplication

Signed-off-by: Steven Hardy <shardy@redhat.com>
13 years agoAPI and heat-cli rework to align with AWS CloudFormation API
Steven Hardy [Mon, 14 May 2012 22:27:02 +0000 (23:27 +0100)]
API and heat-cli rework to align with AWS CloudFormation API

Ref #115, rework API mapper to route by Action= query parameter,
not by path, and align heat CLI tool with revised API.

Signed-off-by: Steven Hardy <shardy@redhat.com>
13 years agoReport errors when resource creation fails
Zane Bitter [Tue, 15 May 2012 13:03:38 +0000 (15:03 +0200)]
Report errors when resource creation fails

In order for the Stack creation to fail, resources must raise an exception
when their creation fails. The Stack's create code will set the resource
state appropriately; resources should not silently do it themselves.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoModify command names for consistency
Zane Bitter [Tue, 15 May 2012 09:42:37 +0000 (11:42 +0200)]
Modify command names for consistency

Replace 'events_list' with 'event-list' and 'jeos_create' with
'jeos-create'. This makes things consistent with the conventions of
OpenStack projects. The old versions will continue to work for now.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoUpdated the version to 4
Chris Alfonso [Mon, 14 May 2012 18:24:25 +0000 (14:24 -0400)]
Updated the version to 4

Signed-off-by: Chris Alfonso <calfonso@redhat.com>
13 years agoMake 'heat help' show a list of commands
Zane Bitter [Mon, 14 May 2012 15:56:33 +0000 (17:56 +0200)]
Make 'heat help' show a list of commands

Previously we just printed an error message about not specifying a command
to get help about, and no hint about how to work out which commands even
existed.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoAllow the Getting Started script to run non-interactively
Zane Bitter [Mon, 14 May 2012 14:03:49 +0000 (16:03 +0200)]
Allow the Getting Started script to run non-interactively

Related: #84

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoFix pep8 errors
Chris Alfonso [Mon, 14 May 2012 13:55:50 +0000 (09:55 -0400)]
Fix pep8 errors

13 years agoSet cfn-hup to send events to the metadata server
Tomas Sedovic [Mon, 14 May 2012 11:56:27 +0000 (13:56 +0200)]
Set cfn-hup to send events to the metadata server

Fixes #107

This is implemented using a logging handler that sends events to the metadata
server.

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
13 years agoSlim down the getting_started template.
Angus Salkeld [Mon, 14 May 2012 11:15:23 +0000 (21:15 +1000)]
Slim down the getting_started template.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoCheck for the presence of Metadat before trying to include it the multipart
Angus Salkeld [Mon, 14 May 2012 11:14:55 +0000 (21:14 +1000)]
Check for the presence of Metadat before trying to include it the multipart

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
13 years agoAdd status argument that shows service status for all required services
Jeff Peeler [Fri, 11 May 2012 23:23:27 +0000 (19:23 -0400)]
Add status argument that shows service status for all required services

Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
13 years agoKill some pep8 errors in test_stacks.py
Steven Dake [Fri, 11 May 2012 22:12:56 +0000 (15:12 -0700)]
Kill some pep8 errors in test_stacks.py

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoKill some pep8 errors in engine directory
Steven Dake [Fri, 11 May 2012 22:10:47 +0000 (15:10 -0700)]
Kill some pep8 errors in engine directory

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoKill few pep8 errors
Steven Dake [Fri, 11 May 2012 22:07:34 +0000 (15:07 -0700)]
Kill few pep8 errors

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoProperly test ref valid against proper input
Steven Dake [Fri, 11 May 2012 21:58:14 +0000 (14:58 -0700)]
Properly test ref valid against proper input

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoUse manager to test ref validation
Steven Dake [Fri, 11 May 2012 21:55:24 +0000 (14:55 -0700)]
Use manager to test ref validation

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoAdd test cases to test valid and invalid keys in FindInMap
Steven Dake [Fri, 11 May 2012 21:52:31 +0000 (14:52 -0700)]
Add test cases to test valid and invalid keys in FindInMap

Partially Fixes issue #111

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoList stacks tests
Ian Main [Fri, 11 May 2012 20:54:40 +0000 (13:54 -0700)]
List stacks tests

Implements a list stacks test.  This one calls straight into engine
manager.

Signed-off-by: Ian Main <imain@redhat.com>
13 years agoMove list_events into the class.
Ian Main [Fri, 11 May 2012 18:14:08 +0000 (11:14 -0700)]
Move list_events into the class.

I think I went too far last time, this should at least be a method
of the class.

Signed-off-by: Ian Main <imain@redhat.com>
13 years agoFactor out a start_wordpress_stack()
Ian Main [Fri, 11 May 2012 17:47:17 +0000 (10:47 -0700)]
Factor out a start_wordpress_stack()

There was a lot of code duplication in the tests so I factored out
a function to start a wordpress stack.

Signed-off-by: Ian Main <imain@redhat.com>
13 years agoAdd event_list test.
Ian Main [Fri, 11 May 2012 17:23:38 +0000 (10:23 -0700)]
Add event_list test.

I moved parse_event out of the method and into the class so we could
call it from the event_list test.

Signed-off-by: Ian Main <imain@redhat.com>
13 years agoAdd uninstall script
Zane Bitter [Fri, 11 May 2012 16:54:38 +0000 (18:54 +0200)]
Add uninstall script

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoAdd Getting Started guide to repo
Zane Bitter [Fri, 11 May 2012 16:54:38 +0000 (18:54 +0200)]
Add Getting Started guide to repo

Convert the Getting Started wiki page to ReStructuredText format and add it
to the repository. Also add a script that will extract the shell commands
from the document and run them, so we can use it as an integration test.

The script can be run using the command:
    > bash -c "$(./tools/rst2script.sed docs/GettingStarted.rst)"

Related: #84

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoAdd cfn-get-metadata to the manifest
Zane Bitter [Fri, 11 May 2012 16:54:38 +0000 (18:54 +0200)]
Add cfn-get-metadata to the manifest

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoFixed problems with starting MySQL in heat-db-setup
Zane Bitter [Fri, 11 May 2012 16:54:38 +0000 (18:54 +0200)]
Fixed problems with starting MySQL in heat-db-setup

Signed-off-by: Zane Bitter <zbitter@redhat.com>
13 years agoAdd test_validate_ref for invalid and valid inputs
Steven Dake [Fri, 11 May 2012 16:41:51 +0000 (09:41 -0700)]
Add test_validate_ref for invalid and valid inputs

Signed-off-by: Steven Dake <sdake@redhat.com>
13 years agoCheck for invalid Fn::FindInMap key
Steven Dake [Fri, 11 May 2012 15:33:13 +0000 (08:33 -0700)]
Check for invalid Fn::FindInMap key

Partially Fixes Issue #111

Signed-off-by: Steven Dake <sdake@redhat.com>