Commit Graph

248 Commits

Author SHA1 Message Date
Tomas Sedovic
8423294a43 Register security group with launched instances
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
2012-04-16 16:35:08 +02:00
Tomas Sedovic
b26a067626 Fix creation of security group and rules
When the group or rule already exists, The Nova API and client errored out.

Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
2012-04-16 15:10:31 +02:00
Angus Salkeld
dfe12cbaba Fix a heap of pep8 errors
./run_tests.sh is much cleaner now.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-16 17:07:07 +10:00
Angus Salkeld
b7b29add11 Make an attempt at passing exception messages from engine to cli.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-16 15:37:26 +10:00
Angus Salkeld
65b1ed9e89 Fix 'heat describe'
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-16 15:07:50 +10:00
Steven Dake
fe9b29dd3e Add a traceback on exception caught
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-15 20:51:46 -07:00
Steven Dake
f7d0e0572c Add a README to the templates directory to aid in navigation of the templates
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-15 19:13:12 -07:00
Steven Dake
aa02d3270e Add a tools/heat-db-drop script for fatal error recovery
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-15 18:53:39 -07:00
Steven Dake
67c6131536 Make Wordpress_2_Instances.template work properly
note the mysql instance is not secure because both IPs must be known
ahead of time.  To resolve this problem, we will be using elastic IPs.

Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-15 17:45:09 -07:00
Angus Salkeld
2f858e656c Check errors better in resolve_attributes()
Add a little more debug.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-16 10:00:39 +10:00
Steven Dake
814dee93f1 Add yum-plugin-fastestmirror on F17-x86_64 cfntools image
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-15 11:12:42 -07:00
Steven Dake
4592c43409 Add yum-plugin-fastestmirror to the cfntools images
Should speed up the downloading of packages on launch

Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-15 11:10:50 -07:00
Steven Dake
ede22be715 Update WordPress_2_Instances.template to use cfntools and cfn-init
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-15 10:28:52 -07:00
Steven Dake
365b525dc4 resources: remove insert_package_and_services
Now that we have cfn-init, this hackery is no longer needed

Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-14 09:36:33 -07:00
Steven Dake
730ae9470e Properly launches a cfntools image with the appropriate userdata mime blob
Note that cfn-init should be run as follows in the userdata script

/opt/aws/bin/cfn-init -f /var/lib/cloud/data/cfn-init-data

This will install the appropriate RPMS and enable them

Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-14 08:13:12 -07:00
Steven Dake
be21044ef8 Correct path to cfninit data
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-14 07:57:06 -07:00
Steven Dake
05f4df4893 Yet more typos in cfntools template
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-14 07:34:08 -07:00
Steven Dake
2d9253b076 Fix typo in template
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-14 07:27:15 -07:00
Steven Dake
c43659dd7a Add a cfn-init call to cfntools
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-14 07:23:20 -07:00
Chris Alfonso
60db42c27c Automatic commit of package [heat] release [0.0.1-1]. 2012-04-14 08:15:22 -04:00
Chris Alfonso
6b098b82ce Adding instructions on building the project with tito 2012-04-14 08:12:14 -04:00
Chris Alfonso
8f201423b2 Removing the PKG-INFO and vcsversion.py from the rpm 2012-04-14 08:00:43 -04:00
Chris Alfonso
65e62a6a7f Initialized to use tito. 2012-04-14 07:43:04 -04:00
Jeff Peeler
2f8e95baec Add unit test framework nose and associated helper scripts
For usage documentation, refer to heat/tests/testing-overview.txt.
run_tests.sh is what runs the tests.

Fixes #44

Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2012-04-13 17:10:30 -04:00
Ian Main
b070322351 Document all methods in the EngineManager class. These ones seem important.
Signed-off-by: Ian Main <imain@redhat.com>
2012-04-13 13:31:05 -07:00
Chris Alfonso
d3dfb7f15a Updating the heat spec to pull in cloudinit files and i386 jeos templates 2012-04-13 15:59:12 -04:00
Chris Alfonso
f0862d8b88 renaming CloudFormations to CloudFormation 2012-04-13 15:01:41 -04:00
Zane Bitter
4b04ffd16a Handle errors when listing events
Signed-off-by: Zane Bitter <zbitter@redhat.com>
2012-04-13 17:58:23 +02:00
Zane Bitter
0525333416 Show stack description when status is unknown
Apply the same improvement that d41193cbff
made for list_stacks to show_stack.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
2012-04-13 17:58:23 +02:00
Zane Bitter
5c69b6087a Allow listing of all events
Make filtering by StackName optional.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
2012-04-13 17:58:23 +02:00
Tomas Sedovic
3cbb97ad00 Use security groups in the multi-instance wp template 2012-04-13 15:56:29 +02:00
Tomas Sedovic
d41193cbff Fix listing stacks
`heat list` was failing for non-empty stacks because the `Stack` model had no
`template` attribute.

Also fixed an issue where we didn't show the template description when the
stack status was unknown.
2012-04-13 14:43:07 +02:00
Angus Salkeld
957a45c32e Fix the stack.delete() by populating the resource id/state from the db.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-13 20:15:46 +10:00
Angus Salkeld
4d1b1394cf move the db stack delete into parser.py as it is non-blocking.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-13 20:15:46 +10:00
Angus Salkeld
90a67a7363 Cleanup db imports (use heat code, don't import nova modules)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-13 20:15:46 +10:00
Angus Salkeld
4b6482c6a3 Consistently create the db resource entry.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-13 20:15:46 +10:00
Angus Salkeld
0ee8db4459 Add SecurityGroups to make is easier to use EIP
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-13 20:15:46 +10:00
Zane Bitter
4d7e2721ea Eliminate overly-broad exception catching
We probably don't want to catch e.g. KeyboardInterrupt in these cases.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
2012-04-13 12:12:13 +02:00
Zane Bitter
16986b4062 Improvements to DB setup
Don't fail if the database or user already exists.

Signed-off-by: Zane Bitter <zbitter@redhat.com>
2012-04-13 12:12:13 +02:00
Zane Bitter
a03a307d33 Issue #52: Fix error in db-setup script
Signed-off-by: Zane Bitter <zbitter@redhat.com>
2012-04-13 12:10:35 +02:00
Steven Dake
31ae00df42 Start systemd services properly with cfn-init tool
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-12 21:16:42 -07:00
Angus Salkeld
2a9a87dc3e Fix the jeos path when running from installed code.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-13 12:38:47 +10:00
Angus Salkeld
c453a33f35 Delete extra white space
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-13 10:16:29 +10:00
Angus Salkeld
5bb18073cb Fix 'heat list' when there are no stacks
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
2012-04-13 10:13:42 +10:00
Jeff Peeler
ec794e6d4a Merge branch 'master' of github.com:heat-api/heat 2012-04-12 18:32:48 -04:00
Jeff Peeler
2f5ec8738d Make jeos_create aware of existing disk files and previous glance registrations
The user is interactively prompted for decisions to be made when:
-An existing jeos disk image is found: build a fresh JEOS?
-If fresh JEOS is chosen, continue as normal removing the files and
 existing registration if it exists.
-If no fresh JEOS is chosen: register existing JEOS with glance?
-If no registration is chosen, no action is taken.
-If registration is chosen, continues as normal without rerunning oz in the
 case of the image not being previously registered with glance.
-If the image is previously registered: delete existing JEOS in glance?
-If the user chooses to not delete existing registration, no action is taken.
-If registration deletion is chosen, the registration is deleted, rerunning
 oz is skipped, and the registration will occur.

Fixes #50

Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
2012-04-12 17:42:52 -04:00
Steven Dake
aba5fc8a44 Update F17 cfntools image to properly boot for cloudinit
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-12 14:16:41 -07:00
Steven Dake
f9c645a09f Add ec2-user to F17 x86_64 tdl
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-12 14:05:59 -07:00
Steven Dake
85a9df46d2 add ec2-user to F16 cfntools image
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-12 14:05:13 -07:00
Steven Dake
7abe849db7 Update i386 F16 cfntools image to match latest cloudinit features
Signed-off-by: Steven Dake <sdake@redhat.com>
2012-04-12 14:01:45 -07:00