]>
review.fuel-infra Code Review - openstack-build/heat-build.git/log
Angus Salkeld [Thu, 3 May 2012 04:34:57 +0000 (14:34 +1000)]
Add dummy cfn-signal
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 3 May 2012 04:34:39 +0000 (14:34 +1000)]
Add WaitConditions
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 3 May 2012 04:34:13 +0000 (14:34 +1000)]
Split the resourses up into seperate files.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Wed, 2 May 2012 05:44:38 +0000 (15:44 +1000)]
Handle "sources" in cfn-init
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Tomas Sedovic [Wed, 2 May 2012 11:51:08 +0000 (13:51 +0200)]
Initial metadata server API
This implements the basic capabilities we need from the metadata server. Each
API call returns proper HTTP responses (404, 409, etc.).
The server is currently not connected to a real database. Rather, it uses a
simple mock. This allows for quick initial API changes before things stabilize.
The immediate next steps are to integrate the server with the cfn tools
(cfn-metadata being the prime candidate) to see what may be wrong/missing.
And then to connect the server to a real database.
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Angus Salkeld [Wed, 2 May 2012 02:13:19 +0000 (12:13 +1000)]
Add very basic support for installing (apt, python & gems)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Jeff Peeler [Tue, 1 May 2012 18:48:16 +0000 (14:48 -0400)]
Add cfn-get-metadata to files section of cfntools tdls
Found while writing test for jeos creation
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Steven Dake [Tue, 1 May 2012 17:02:48 +0000 (10:02 -0700)]
Modified README in tools directory to explain a few more tools
Signed-off-by: Steven Dake <sdake@redhat.com>
Chris Alfonso [Tue, 1 May 2012 15:04:34 +0000 (11:04 -0400)]
Scoping the session per thread (request).
Fixes issue #94
http://docs.sqlalchemy.org/en/rel_0_7/orm/session.html#sqlalchemy.orm.scoped_session
Ian Main [Mon, 30 Apr 2012 22:03:39 +0000 (15:03 -0700)]
Oops, meant for website repo.
Ian Main [Mon, 30 Apr 2012 21:57:38 +0000 (14:57 -0700)]
Heat Logo
SVG format of heat logo.
Chris Alfonso [Mon, 30 Apr 2012 17:04:51 +0000 (13:04 -0400)]
Skipping the import if its deps aren't installed, use --no-skip if you want to run this
Chris Alfonso [Mon, 30 Apr 2012 14:39:51 +0000 (10:39 -0400)]
Copied the python-novaclient test code to avoid importing via python path
Chris Alfonso [Mon, 30 Apr 2012 14:13:15 +0000 (10:13 -0400)]
Adding the metadata.log file
Jeff Peeler [Fri, 27 Apr 2012 20:44:11 +0000 (16:44 -0400)]
Finish necessary changes related to jeos_create move
As a result of moving jeos_create, the code is now used during test
execution. The library libxml2 which was previously being used is not
available in pip, so lxml has been swapped instead.
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Tomas Sedovic [Fri, 27 Apr 2012 16:40:49 +0000 (18:40 +0200)]
Add skeleton structure for the metadata server
Tomas Sedovic [Fri, 27 Apr 2012 13:25:50 +0000 (15:25 +0200)]
Update heat-api docstring
Angus Salkeld [Fri, 27 Apr 2012 03:12:33 +0000 (13:12 +1000)]
more pep fixups.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Fri, 27 Apr 2012 03:02:58 +0000 (13:02 +1000)]
Add cfn-get-metadata make all cfn tools more consistent
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Fri, 27 Apr 2012 00:21:43 +0000 (10:21 +1000)]
openstack-common: timeutils and importutils seperated out
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 22:28:55 +0000 (08:28 +1000)]
openstack-common: update cfg.py
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Jeff Peeler [Thu, 26 Apr 2012 20:51:00 +0000 (16:51 -0400)]
Move jeos_create into utils so it can be imported
The main reason for this move is so that jeos_create can be tested with
the aide of Mox.
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Steven Dake [Thu, 26 Apr 2012 18:02:15 +0000 (11:02 -0700)]
Put Starting Heat API in log file and add logging setup to bin/heat-api
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 26 Apr 2012 17:55:23 +0000 (10:55 -0700)]
Remove stray print debug message
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 26 Apr 2012 17:49:10 +0000 (10:49 -0700)]
Quiet down the QPID logging since it isn't helpful and makes logs hard to read
Should likely be removed later, but for the moment, logs readable without
grep now.
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Thu, 26 Apr 2012 17:29:26 +0000 (10:29 -0700)]
Kill prints and replace with LOG in heat/rpc/__init__.py
Signed-off-by: Steven Dake <sdake@redhat.com>
Tomas Sedovic [Thu, 26 Apr 2012 15:29:42 +0000 (17:29 +0200)]
Stub out system calls in metadata_files test
Since CommandRunner now honours `runas`, the tests would have to be run as root
for the commands to succeed.
Tomas Sedovic [Thu, 26 Apr 2012 15:27:25 +0000 (17:27 +0200)]
Implement runas for cfn-hup
As a side effect, this fixes #109. By running everything through `su -c`, all
the piping and redirection issues are outsourced there.
Angus Salkeld [Thu, 26 Apr 2012 14:32:15 +0000 (00:32 +1000)]
Add test artifacts to gitignore
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 14:22:24 +0000 (00:22 +1000)]
Merge branch 'ha'
Conflicts:
heat/db/sqlalchemy/session.py
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 14:05:59 +0000 (00:05 +1000)]
Handle cfn-hup non-value parameters
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Chris Alfonso [Thu, 26 Apr 2012 13:33:01 +0000 (09:33 -0400)]
Moving db error wrapping into heat session to avoid a nova import
Angus Salkeld [Thu, 26 Apr 2012 13:16:59 +0000 (23:16 +1000)]
Add an easier way to update the cfn scripts
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 13:16:25 +0000 (23:16 +1000)]
Fix up the template - some scripts not right.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 13:15:39 +0000 (23:15 +1000)]
Fix the cfn logging
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 12:51:38 +0000 (22:51 +1000)]
Fix userdata mime creation
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 12:51:38 +0000 (22:51 +1000)]
Fix userdata mime creation
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 11:46:02 +0000 (21:46 +1000)]
Add a real creds file for the cfn-hup config tests
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 11:45:01 +0000 (21:45 +1000)]
Re-add the file logging to cfn tools.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 07:01:38 +0000 (17:01 +1000)]
Make sure AWS::StackName is avaliable
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 07:01:13 +0000 (17:01 +1000)]
Add cfn-hup config into template
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Thu, 26 Apr 2012 04:13:56 +0000 (14:13 +1000)]
Copy the single inst. wordpress template to With_HA
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Chris Alfonso [Tue, 24 Apr 2012 21:08:36 +0000 (17:08 -0400)]
removing import of common config because it needs credentials
Chris Alfonso [Tue, 24 Apr 2012 20:53:31 +0000 (16:53 -0400)]
Adding the nova.exeption import to fix the tree
Angus Salkeld [Thu, 26 Apr 2012 04:07:12 +0000 (14:07 +1000)]
Add file support to cfn-init
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Chris Alfonso [Wed, 25 Apr 2012 14:46:27 +0000 (10:46 -0400)]
Adding instance delete test
Tomas Sedovic [Wed, 25 Apr 2012 14:34:59 +0000 (16:34 +0200)]
Log when cfn-hup couldn't restart a service
`service.restarted` hooks are not run when the restart failed.
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Chris Alfonso [Wed, 25 Apr 2012 13:42:28 +0000 (09:42 -0400)]
putting python-novaclient back in pip requires
Chris Alfonso [Wed, 25 Apr 2012 13:39:39 +0000 (09:39 -0400)]
Removing nova from pip requires
Steven Dake [Tue, 24 Apr 2012 22:29:08 +0000 (15:29 -0700)]
Make heat-db-setup generic enough to run on RPM or DEB distributions
Signed-off-by: Steven Dake <sdake@redhat.com>
Chris Alfonso [Tue, 24 Apr 2012 21:32:17 +0000 (17:32 -0400)]
Adding the nova module to the pip-requires
Chris Alfonso [Tue, 24 Apr 2012 21:08:36 +0000 (17:08 -0400)]
removing import of common config because it needs credentials
Chris Alfonso [Tue, 24 Apr 2012 20:53:31 +0000 (16:53 -0400)]
Adding the nova.exeption import to fix the tree
Jeff Peeler [Tue, 24 Apr 2012 18:48:38 +0000 (14:48 -0400)]
Use pip package name, not the RPM one
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Jeff Peeler [Tue, 24 Apr 2012 18:17:40 +0000 (14:17 -0400)]
Update virtual-env requires and documentation
Document the necessitity to keep tools/*-requires up to date and add
missing dependency.
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Tomas Sedovic [Tue, 24 Apr 2012 14:41:35 +0000 (16:41 +0200)]
Make cfn-hup configuration handling closer to aws
We now enforce the presence of the [main] configuration section, check that the
credentials file exists and ensure that there is at least one hook defined.
Tomas Sedovic [Tue, 24 Apr 2012 12:56:15 +0000 (14:56 +0200)]
Better error messages for cfn-hup configuration
Angus Salkeld [Tue, 24 Apr 2012 03:57:51 +0000 (13:57 +1000)]
more work on cfn-hup
- correct the default config files
- seperate out the monitoring of services
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Tue, 24 Apr 2012 00:34:38 +0000 (10:34 +1000)]
Merge remote-tracking branch 'origin/master' into ha
Angus Salkeld [Tue, 24 Apr 2012 00:32:58 +0000 (10:32 +1000)]
Add test case for boolean.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Chris Alfonso [Mon, 23 Apr 2012 20:37:09 +0000 (16:37 -0400)]
Assert the instance auto increment on the id worked
Chris Alfonso [Mon, 23 Apr 2012 18:47:44 +0000 (14:47 -0400)]
Removing the run_tests.py, was replaced by heat/testing/runner.py
Chris Alfonso [Mon, 23 Apr 2012 18:46:49 +0000 (14:46 -0400)]
Changing version scheme to just major
Chris Alfonso [Mon, 23 Apr 2012 13:26:57 +0000 (09:26 -0400)]
Merge branch 'resource_unit_tests'
Chris Alfonso [Thu, 19 Apr 2012 23:24:28 +0000 (19:24 -0400)]
Adding instance creation test
Signed-off-by: Chris Alfonso <calfonso@redhat.com>
Tomas Sedovic [Mon, 23 Apr 2012 13:10:33 +0000 (15:10 +0200)]
Fix `to_boolean` in cfn_helper
The lowercase conversion and striping whitespace from strings was being ignored.
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Angus Salkeld [Mon, 23 Apr 2012 12:59:27 +0000 (22:59 +1000)]
Try and keep track of the stack status.
Ref: #93
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Chris Alfonso [Thu, 19 Apr 2012 22:10:20 +0000 (18:10 -0400)]
Added db setup and teardown with sqlite
Chris Alfonso [Wed, 18 Apr 2012 13:03:17 +0000 (09:03 -0400)]
Adding unit test for instance creation
Chris Alfonso [Tue, 17 Apr 2012 19:55:36 +0000 (15:55 -0400)]
Adding resource initialization test
Chris Alfonso [Thu, 19 Apr 2012 23:24:28 +0000 (19:24 -0400)]
Adding instance creation test
Chris Alfonso [Thu, 19 Apr 2012 22:10:20 +0000 (18:10 -0400)]
Added db setup and teardown with sqlite
Chris Alfonso [Wed, 18 Apr 2012 13:03:17 +0000 (09:03 -0400)]
Adding unit test for instance creation
Chris Alfonso [Tue, 17 Apr 2012 19:55:36 +0000 (15:55 -0400)]
Adding resource initialization test
Angus Salkeld [Mon, 23 Apr 2012 09:54:11 +0000 (19:54 +1000)]
Initial cfn-hup (wip)
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Mon, 23 Apr 2012 03:08:32 +0000 (13:08 +1000)]
Move common cfn code into cfn_helper.py
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Mon, 23 Apr 2012 02:04:46 +0000 (12:04 +1000)]
Fix more pep8 errors.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Steven Dake [Mon, 23 Apr 2012 01:39:11 +0000 (18:39 -0700)]
Update version to v3
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Fri, 20 Apr 2012 21:48:59 +0000 (14:48 -0700)]
Wordpress 2 instance with EBS and EIP
srs.
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Hardy [Fri, 20 Apr 2012 19:54:04 +0000 (20:54 +0100)]
heat cli : Add bash_completion.d entry for heat
issue #87 Adds basic bash smart-complete script for heat to bash_completion.d
Signed-off-by: Steven Hardy <shardy@redhat.com>
Steven Hardy [Fri, 20 Apr 2012 19:42:29 +0000 (20:42 +0100)]
heat cli: Use python logging module
Issue #88 : Adds support for logging via the python logging module
Signed-off-by: Steven Hardy <shardy@redhat.com>
Ian Main [Fri, 20 Apr 2012 18:49:13 +0000 (11:49 -0700)]
Fix another print -> logger.warn.
Signed-off-by: Ian Main <imain@redhat.com>
Ian Main [Fri, 20 Apr 2012 18:45:07 +0000 (11:45 -0700)]
resources.py had a bunch of print's in it.
This patch removes all the print statements and puts in proper logging
statements. Some of these (db tracebacks) are now logged as warnings.
Signed-off-by: Ian Main <imain@redhat.com>
Ian Main [Fri, 20 Apr 2012 18:38:59 +0000 (11:38 -0700)]
Add an exception around EIP fetching.
I was getting a traceback here causing the whole 'heat describe' to
return an error when really it was just the one aspect failing. Use
try/rescue and log a warning.
Signed-off-by: Ian Main <imain@redhat.com>
Ian Main [Fri, 20 Apr 2012 18:07:36 +0000 (11:07 -0700)]
Fix a typo in the command line help.
Signed-off-by: Ian Main <imain@redhat.com>
Steven Dake [Fri, 20 Apr 2012 17:43:18 +0000 (10:43 -0700)]
Use v1 / v2 / v3 for version numbers to match tags
In the next several months since we wont be supporting maintenance releases,
Just use v1/v2/v3/v4 for releases to match our tags.
We can switch to an x.y.z or openstack style versioning when appropriate
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Fri, 20 Apr 2012 17:36:18 +0000 (10:36 -0700)]
Set proper author and mailing list in setup.py
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Fri, 20 Apr 2012 17:31:39 +0000 (10:31 -0700)]
Remove BUILDING.rst since there is no building taking place inside project
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Fri, 20 Apr 2012 17:29:51 +0000 (10:29 -0700)]
Remove rpm spec file and Makefile. Will track packaging in a different repo
Signed-off-by: Steven Dake <sdake@redhat.com>
Steven Dake [Fri, 20 Apr 2012 17:28:55 +0000 (10:28 -0700)]
Remove tito - likely track this in a different repo
Signed-off-by: Steven Dake <sdake@redhat.com>
Tomas Sedovic [Thu, 19 Apr 2012 16:23:56 +0000 (18:23 +0200)]
Fix the EIP cleanup
Fixes #69
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Ian Main [Wed, 18 Apr 2012 20:25:44 +0000 (13:25 -0700)]
Add documentation for the per command CLI help options.
Signed-off-by: Ian Main <imain@redhat.com>
Steven Hardy [Wed, 18 Apr 2012 19:47:03 +0000 (20:47 +0100)]
heat, heat-api: Add missing licence to header
Adds missing licence header to heat and heat-api
Signed-off-by: Steven Hardy <shardy@redhat.com>
Jeff Peeler [Wed, 18 Apr 2012 19:17:51 +0000 (15:17 -0400)]
Remove rootpw from tdls and add ec2-user to sudoers file
Fixes #72
Fixes #73
Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Chris Alfonso [Wed, 18 Apr 2012 16:29:52 +0000 (12:29 -0400)]
Deleting parsed and raw template when deleting stacks
Ian Main [Wed, 18 Apr 2012 15:53:54 +0000 (08:53 -0700)]
A little more detail on network create.
Signed-off-by: Ian Main <imain@redhat.com>
Tomas Sedovic [Wed, 18 Apr 2012 09:29:48 +0000 (11:29 +0200)]
Fix the test environment
Made sure that `run_tests.sh` works properly (it was failing on the heat/bin
directory) and that all tests pass and the generated logs are .gitignored.
Signed-off-by: Tomas Sedovic <tomas@sedovic.cz>
Angus Salkeld [Wed, 18 Apr 2012 06:16:32 +0000 (16:16 +1000)]
Fix another template attribute in the output section
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Wed, 18 Apr 2012 06:15:47 +0000 (16:15 +1000)]
Use the correct api to get the volume object.
It must be volume not nova. But nova is used for the attachment.
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Angus Salkeld [Wed, 18 Apr 2012 06:14:24 +0000 (16:14 +1000)]
Save the resource if complete or failed
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>