]>
review.fuel-infra Code Review - openstack-build/heat-build.git/log
Steven Dake [Mon, 16 Apr 2012 23:36:57 +0000 (16:36 -0700)]
Rename WordPress_Single_Instance_cfntools.template to not have cfntools in name
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 23:36:22 +0000 (16:36 -0700)]
Rename WordPress_Single_Instance.template to have gold in name
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 23:34:53 +0000 (16:34 -0700)]
Adjust cfn-init -f flag to be implicit
Fixes issue #75 for WordPress_Single_Instance_cfntools.template
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 23:33:45 +0000 (16:33 -0700)]
Adjust cfn-init to not use -f option
Fixes issue #75 for WordPress_2_Instances_With_EBS_Volume.template
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 23:32:09 +0000 (16:32 -0700)]
Adjust cfn-init to not take a parameter in the initialization
WordPress_2_Instances.template
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 23:29:35 +0000 (16:29 -0700)]
Fix bug in path on cfn-init
Fixes issue #75
Signed-off-by: Steven Dake <sdake@redhat.com>
Greg Blomquist [Mon, 16 Apr 2012 21:27:43 +0000 (17:27 -0400)]
Fix for issue #75: no more -f in cfn-init
Removed -f in cfn-init. Instead, cfn-init reads resource metadata from
/var/lib/cloud/data-cfn-init-data.
Also, added logging. cfn-init now logs to stdout and to /var/log/cfn-init.log
Steven Dake [Mon, 16 Apr 2012 21:12:19 +0000 (14:12 -0700)]
gold plating the WordPress_2_Instances template
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 20:51:50 +0000 (13:51 -0700)]
Wordpress 2 with EBS working
Signed-off-by: Steven Dake <sdake@redhat.com>
Chris Alfonso [Mon, 16 Apr 2012 17:46:58 +0000 (13:46 -0400)]
Resolving rpmlint errors and adding man pages.
Fixes #67
Tomas Sedovic [Mon, 16 Apr 2012 14:35:08 +0000 (16:35 +0200)]
Register security group with launched instances
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Tomas Sedovic [Mon, 16 Apr 2012 13:10:31 +0000 (15:10 +0200)]
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>
Angus Salkeld [Mon, 16 Apr 2012 07:07:07 +0000 (17:07 +1000)]
Fix a heap of pep8 errors
./run_tests.sh is much cleaner now.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Mon, 16 Apr 2012 05:37:26 +0000 (15:37 +1000)]
Make an attempt at passing exception messages from engine to cli.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Mon, 16 Apr 2012 03:36:07 +0000 (13:36 +1000)]
Fix 'heat describe'
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake [Mon, 16 Apr 2012 03:51:46 +0000 (20:51 -0700)]
Add a traceback on exception caught
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 02:13:12 +0000 (19:13 -0700)]
Add a README to the templates directory to aid in navigation of the templates
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 01:53:39 +0000 (18:53 -0700)]
Add a tools/heat-db-drop script for fatal error recovery
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Mon, 16 Apr 2012 00:44:10 +0000 (17:44 -0700)]
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>
Angus Salkeld [Mon, 16 Apr 2012 00:00:39 +0000 (10:00 +1000)]
Check errors better in resolve_attributes()
Add a little more debug.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake [Sun, 15 Apr 2012 18:12:42 +0000 (11:12 -0700)]
Add yum-plugin-fastestmirror on F17-x86_64 cfntools image
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Sun, 15 Apr 2012 18:10:50 +0000 (11:10 -0700)]
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>
Steven Dake [Sun, 15 Apr 2012 17:28:52 +0000 (10:28 -0700)]
Update WordPress_2_Instances.template to use cfntools and cfn-init
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Sat, 14 Apr 2012 16:36:33 +0000 (09:36 -0700)]
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>
Steven Dake [Sat, 14 Apr 2012 15:10:38 +0000 (08:10 -0700)]
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>
Steven Dake [Sat, 14 Apr 2012 14:57:06 +0000 (07:57 -0700)]
Correct path to cfninit data
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Sat, 14 Apr 2012 14:34:08 +0000 (07:34 -0700)]
Yet more typos in cfntools template
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Sat, 14 Apr 2012 14:27:15 +0000 (07:27 -0700)]
Fix typo in template
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Sat, 14 Apr 2012 14:23:20 +0000 (07:23 -0700)]
Add a cfn-init call to cfntools
Signed-off-by: Steven Dake <sdake@redhat.com>
Chris Alfonso [Sat, 14 Apr 2012 12:15:22 +0000 (08:15 -0400)]
Automatic commit of package [heat] release [0.0.1-1].
Chris Alfonso [Sat, 14 Apr 2012 12:12:14 +0000 (08:12 -0400)]
Adding instructions on building the project with tito
Chris Alfonso [Sat, 14 Apr 2012 11:58:27 +0000 (07:58 -0400)]
Removing the PKG-INFO and vcsversion.py from the rpm
Chris Alfonso [Fri, 13 Apr 2012 20:05:40 +0000 (16:05 -0400)]
Initialized to use tito.
Jeff Peeler [Fri, 13 Apr 2012 21:10:30 +0000 (17:10 -0400)]
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>
Ian Main [Fri, 13 Apr 2012 20:29:57 +0000 (13:29 -0700)]
Document all methods in the EngineManager class. These ones seem important.
Signed-off-by: Ian Main <imain@redhat.com>
Chris Alfonso [Fri, 13 Apr 2012 19:59:12 +0000 (15:59 -0400)]
Updating the heat spec to pull in cloudinit files and i386 jeos templates
Chris Alfonso [Fri, 13 Apr 2012 19:01:41 +0000 (15:01 -0400)]
renaming CloudFormations to CloudFormation
Zane Bitter [Fri, 13 Apr 2012 15:58:23 +0000 (17:58 +0200)]
Handle errors when listing events
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Zane Bitter [Fri, 13 Apr 2012 15:58:23 +0000 (17:58 +0200)]
Show stack description when status is unknown
Apply the same improvement that
d41193cbff97caf68a5eaa5b105593af17e3339d
made for list_stacks to show_stack.
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Zane Bitter [Fri, 13 Apr 2012 15:58:23 +0000 (17:58 +0200)]
Allow listing of all events
Make filtering by StackName optional.
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Tomas Sedovic [Fri, 13 Apr 2012 13:56:29 +0000 (15:56 +0200)]
Use security groups in the multi-instance wp template
Tomas Sedovic [Fri, 13 Apr 2012 12:43:07 +0000 (14:43 +0200)]
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.
Angus Salkeld [Fri, 13 Apr 2012 10:15:23 +0000 (20:15 +1000)]
Fix the stack.delete() by populating the resource id/state from the db.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Fri, 13 Apr 2012 10:13:09 +0000 (20:13 +1000)]
move the db stack delete into parser.py as it is non-blocking.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Fri, 13 Apr 2012 07:23:29 +0000 (17:23 +1000)]
Cleanup db imports (use heat code, don't import nova modules)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Fri, 13 Apr 2012 06:25:07 +0000 (16:25 +1000)]
Consistently create the db resource entry.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Fri, 13 Apr 2012 05:26:09 +0000 (15:26 +1000)]
Add SecurityGroups to make is easier to use EIP
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Zane Bitter [Fri, 13 Apr 2012 10:10:10 +0000 (12:10 +0200)]
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>
Zane Bitter [Fri, 13 Apr 2012 10:10:10 +0000 (12:10 +0200)]
Improvements to DB setup
Don't fail if the database or user already exists.
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Zane Bitter [Fri, 13 Apr 2012 10:10:10 +0000 (12:10 +0200)]
Issue #52: Fix error in db-setup script
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Steven Dake [Fri, 13 Apr 2012 04:16:42 +0000 (21:16 -0700)]
Start systemd services properly with cfn-init tool
Signed-off-by: Steven Dake <sdake@redhat.com>
Angus Salkeld [Fri, 13 Apr 2012 02:37:13 +0000 (12:37 +1000)]
Fix the jeos path when running from installed code.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Fri, 13 Apr 2012 00:16:29 +0000 (10:16 +1000)]
Delete extra white space
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Fri, 13 Apr 2012 00:13:42 +0000 (10:13 +1000)]
Fix 'heat list' when there are no stacks
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Jeff Peeler [Thu, 12 Apr 2012 22:32:48 +0000 (18:32 -0400)]
Merge branch 'master' of github.com:heat-api/heat
Jeff Peeler [Thu, 12 Apr 2012 21:42:52 +0000 (17:42 -0400)]
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>
Steven Dake [Thu, 12 Apr 2012 21:16:41 +0000 (14:16 -0700)]
Update F17 cfntools image to properly boot for cloudinit
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 12 Apr 2012 21:05:59 +0000 (14:05 -0700)]
Add ec2-user to F17 x86_64 tdl
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 12 Apr 2012 21:05:13 +0000 (14:05 -0700)]
add ec2-user to F16 cfntools image
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 12 Apr 2012 21:01:45 +0000 (14:01 -0700)]
Update i386 F16 cfntools image to match latest cloudinit features
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 12 Apr 2012 21:00:24 +0000 (14:00 -0700)]
updated F17 x86_64 cfntools tdl to new cloudinit model
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 12 Apr 2012 20:33:27 +0000 (13:33 -0700)]
Install cloudinit specific files that are loaded into the mime userdata
Partially fixes Issue #48
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 12 Apr 2012 20:17:46 +0000 (13:17 -0700)]
Updated x86_64 cfntools tdl to work with broken F16 repos and cloud-init
Partially fixes Issue #48
Signed-off-by: Steven Dake <sdake@redhat.com>
Chris Alfonso [Thu, 12 Apr 2012 18:00:53 +0000 (14:00 -0400)]
fixing small sed typo
Tomas Sedovic [Thu, 12 Apr 2012 16:18:35 +0000 (18:18 +0200)]
Add elastic IP and userdata to 2-instance template
Ref: #56
The 2-instance Wordpress template with EBS now uses Elastic IPs for both
servers. The IPs are referenced from the init scripts in UserData.
The template wasn't tested yet.
Chris Alfonso [Thu, 12 Apr 2012 15:05:11 +0000 (11:05 -0400)]
Fixing the heat events_list <stack name>
Patch provided by Zane Bitter, thx.
Tomas Sedovic [Thu, 12 Apr 2012 14:57:48 +0000 (16:57 +0200)]
Move the EIP settings into a different template
We'll keep the WordPress_Single_Instance.template simple.
Angus Salkeld [Thu, 12 Apr 2012 10:28:14 +0000 (20:28 +1000)]
Initial ElasticIp work - not quite working
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Jeff Peeler [Thu, 12 Apr 2012 02:22:43 +0000 (22:22 -0400)]
Add newly added tdls to manifest.
Related to issue #26
Jeff Peeler [Thu, 12 Apr 2012 00:56:45 +0000 (20:56 -0400)]
Add 32-bit tdls for Fedora 16,17 jeos (gold and cfntools)
fixes #26
Note that the templates have been adjusted and the naming of the 32-bit
versions to i386 instead of i686. The install really is i686, but making
the arch match what is listed in the install ISO seems less confusing.
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Although the 32-bit version of Fedora (and others) ISOs are labeled with i386,
Zane Bitter [Wed, 11 Apr 2012 17:15:38 +0000 (19:15 +0200)]
Fix exception getting events list
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Zane Bitter [Wed, 11 Apr 2012 16:59:33 +0000 (18:59 +0200)]
Import missing exceptions
The local definitions of several exceptions were removed by commit
e7f05dba5d899200b9e09b22ea423fa33fd1b612 because OpenStack already provides
them, but we need to import them to actually be able to use them.
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Zane Bitter [Wed, 11 Apr 2012 15:17:04 +0000 (17:17 +0200)]
Fix setting of admin role in keystone service
The script was looking for the "admin" user instead of the "admin" *role*.
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Chris Alfonso [Wed, 11 Apr 2012 13:48:42 +0000 (09:48 -0400)]
Resolving functional conflicts from merge
Chris Alfonso [Wed, 11 Apr 2012 13:00:14 +0000 (09:00 -0400)]
Adding new files to heat.spec file
Chris Alfonso [Wed, 11 Apr 2012 12:24:08 +0000 (08:24 -0400)]
Defaulting to the mysql db_backend, removing anydbm
Chris Alfonso [Wed, 11 Apr 2012 11:15:13 +0000 (07:15 -0400)]
Making delete stack work
Chris Alfonso [Tue, 10 Apr 2012 20:58:45 +0000 (16:58 -0400)]
Persisting resources
Chris Alfonso [Tue, 10 Apr 2012 11:57:09 +0000 (07:57 -0400)]
Made datetime objects JSON compatible by calling their to string functions
Chris Alfonso [Thu, 5 Apr 2012 15:05:11 +0000 (11:05 -0400)]
Integrating all stack, template, and event calls with database
Zane Bitter [Wed, 11 Apr 2012 12:03:37 +0000 (14:03 +0200)]
Fix reporting of RemoteError exceptions from AMQP
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Zane Bitter [Wed, 11 Apr 2012 12:03:37 +0000 (14:03 +0200)]
Handle missing config file
Report a more useful error when no config file can be found.
Signed-off-by: Zane Bitter <zbitter@redhat.com>
Angus Salkeld [Wed, 11 Apr 2012 09:29:13 +0000 (19:29 +1000)]
Fix silly spello
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Wed, 11 Apr 2012 09:28:31 +0000 (19:28 +1000)]
Record the reason for any failures
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake [Wed, 11 Apr 2012 07:33:40 +0000 (00:33 -0700)]
Make better use of cloud-init
Signed-off-by: Steven Dake <sdake@redhat.com>
Angus Salkeld [Wed, 11 Apr 2012 04:52:12 +0000 (14:52 +1000)]
Make the create/delete non-blocking
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Wed, 11 Apr 2012 02:55:57 +0000 (12:55 +1000)]
Fix path to keystonerc
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake [Wed, 11 Apr 2012 01:01:59 +0000 (18:01 -0700)]
Rename cftools to cfntools in the wordpress single instance template
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Tue, 10 Apr 2012 20:53:53 +0000 (13:53 -0700)]
Put cfn-tools into the cfntool image
Closes issue #59
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Tue, 10 Apr 2012 19:26:44 +0000 (12:26 -0700)]
Renamed all occurrances of cftools to cfntools to be more consistent
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Tue, 10 Apr 2012 18:59:38 +0000 (11:59 -0700)]
Move cfntools to heat directory so they are accessible by jeos_create
Signed-off-by: Steven Dake <sdake@redhat.com>
Tomas Sedovic [Tue, 10 Apr 2012 15:18:28 +0000 (17:18 +0200)]
Add 2-instance Wordpress template without EBS
Ref #56
The template has two instances. The Wordpress one depends on DatabaseServer.
Therefore, WP should be started after DB and it should use DB's private IP in
the Wordpress setup.
Angus Salkeld [Tue, 10 Apr 2012 04:13:06 +0000 (14:13 +1000)]
Try harder to detach the server volume.
It seems to need some encouragement.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Tue, 10 Apr 2012 04:12:05 +0000 (14:12 +1000)]
Don't use the "depends_on" in resource.start
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Tue, 10 Apr 2012 04:10:53 +0000 (14:10 +1000)]
Cleanup some prints in the resources
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Mon, 9 Apr 2012 23:41:23 +0000 (09:41 +1000)]
Add a 2 instance wordpress example
Ref #56
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Mon, 9 Apr 2012 22:57:55 +0000 (08:57 +1000)]
Improve the ordering of stopping resources
Create a common function to generate the start order
and stop in the reverse order.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Greg Blomquist [Tue, 3 Apr 2012 23:45:20 +0000 (19:45 -0400)]
Issue #54: Getting started with cfn-init
Implemented features:
* sysv and systemd service handling
* yum package management
Running the script:
e.g., sudo python cfn-init -f resource-metadata.json
Example resource metadata file contents:
{
"AWS::CloudFormation::Init": {
"config": {
"packages": {
"yum": {
"rubygem-fattr" : []
}
},
"services": {
"sysvinit": {
"httpd": {
"enabled" : "true",
"ensureRunning" : "true"
}
}
}
}
}
}
Angus Salkeld [Mon, 9 Apr 2012 12:23:42 +0000 (22:23 +1000)]
Get the volumes working properly.
Tested with:
heat create wp_ebs -t ./templates/WordPress_Single_Instance_With_EBS_Volume.template --parameters="InstanceType=m1.xlarge;KeyName=my_key"
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake [Thu, 5 Apr 2012 18:42:36 +0000 (11:42 -0700)]
Add documentation for heat jeos_create function
Partially Fixes issue #58
Signed-off-by: Steven Dake <sdake@redhat.com>