]>
review.fuel-infra Code Review - openstack-build/heat-build.git/log
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>
Tomas Sedovic [Thu, 5 Apr 2012 09:41:12 +0000 (11:41 +0200)]
typo fix in jeos_create
Angus Salkeld [Thu, 5 Apr 2012 06:40:19 +0000 (16:40 +1000)]
Fix "heat list" only showing empty list.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 5 Apr 2012 06:39:22 +0000 (16:39 +1000)]
Add utils & exception from openstack-common
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 5 Apr 2012 00:42:52 +0000 (10:42 +1000)]
Use local.py from openstack-common
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake [Thu, 5 Apr 2012 01:50:03 +0000 (18:50 -0700)]
Add F17 cftools TDL
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 5 Apr 2012 00:39:24 +0000 (17:39 -0700)]
Add F16 cftools tdl
Signed-off-by: Steven Dake <sdake@redhat.com>
Angus Salkeld [Thu, 5 Apr 2012 00:19:32 +0000 (10:19 +1000)]
Fix events_list
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 5 Apr 2012 00:12:44 +0000 (10:12 +1000)]
Fix describe and delete
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Wed, 4 Apr 2012 23:59:16 +0000 (09:59 +1000)]
Pass the parameters to the parser
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Wed, 4 Apr 2012 23:11:59 +0000 (09:11 +1000)]
Merge rpc branch
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Ian Main [Wed, 4 Apr 2012 21:29:54 +0000 (14:29 -0700)]
Remove some more unused files.
Signed-off-by: Ian Main <imain@redhat.com>
Ian Main [Wed, 4 Apr 2012 21:18:44 +0000 (14:18 -0700)]
Don't need these files anymore. As per the layout in nova compute
the manager is handling all the engine api calls.
Signed-off-by: Ian Main <imain@redhat.com>
Tomas Sedovic [Wed, 4 Apr 2012 17:13:37 +0000 (19:13 +0200)]
Fix --template-file
Fixes #47
The code that causes the URI TOO LONG error is in eventlet.wsgi.
So for the time being we're replacing that with paste.httpserver which serves
WSGI apps, too.
Longer term, we want to use eventlet but they need to make the maximum URL
length configurable.
Steven Dake [Wed, 4 Apr 2012 16:17:25 +0000 (09:17 -0700)]
Use some evil to get the jeos tdl path
Resolves issue #46
heat:251 tdl_path uses get_python_lib() which doesn't work with eggs
Signed-off-by: Steven Dake <sdake@redhat.com>
Ian Main [Tue, 3 Apr 2012 23:57:23 +0000 (16:57 -0700)]
Fix stack_delete()
Signed-off-by: Ian Main <imain@redhat.com>
Ian Main [Tue, 3 Apr 2012 23:55:20 +0000 (16:55 -0700)]
stack_db attributes seem broken. Comment these out for now and the API
is generally working.
Signed-off-by: Ian Main <imain@redhat.com>
Ian Main [Tue, 3 Apr 2012 23:40:11 +0000 (16:40 -0700)]
Fix create a bit more.
Signed-off-by: Ian Main <imain@redhat.com>
Ian Main [Tue, 3 Apr 2012 23:31:53 +0000 (16:31 -0700)]
Hook up RPC methods
This commit hooks up all the calls via RPC to the new implementations
in manager.py. I haven't tested them all yet.. I'm getting HD failure
warnings and want to get this commited before something goes terribly
wrong :).
Signed-off-by: Ian Main <imain@redhat.com>
Steven Dake [Tue, 3 Apr 2012 22:53:27 +0000 (15:53 -0700)]
Pre-bake cftools into an image
After this change, new JEOS will need to be created since the JEOS
names have changed.
For a cfntool image:
heat jeos_create F16 x86_64 cftools
For a gold image:
heat jeos_create F16 x86_64 gold
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Tue, 3 Apr 2012 18:51:16 +0000 (11:51 -0700)]
Initial CloudFormations dummy files for vm helper tools
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Tue, 3 Apr 2012 15:21:30 +0000 (08:21 -0700)]
Revert "Allow templates specified from local filesystem"
Unfortunately this patch isn't quite correct. It passes data in the body
of the message, but the API specifies passing in the url parameters. This
results in user parameters not being passed to the instance properly.
This reverts commit
4679fb01c641053d45a197b598e28552144391a9 .
Angus Salkeld [Tue, 3 Apr 2012 06:27:27 +0000 (16:27 +1000)]
Do mimimum to work with anydb.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Tue, 3 Apr 2012 05:39:29 +0000 (15:39 +1000)]
Add support for the Output section.
Implements issue #51
To see the outputs run "heat describe <stack name>"
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Tue, 3 Apr 2012 04:13:09 +0000 (14:13 +1000)]
Add an Outputs section to the template
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Tue, 3 Apr 2012 04:11:35 +0000 (14:11 +1000)]
run dos2unix on the templates
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Chris Alfonso [Mon, 2 Apr 2012 20:17:06 +0000 (16:17 -0400)]
Updating the README to point to the Getting Started Wiki
Chris Alfonso [Mon, 2 Apr 2012 12:12:33 +0000 (08:12 -0400)]
Adding the sqlalchemy db implmentation