]> review.fuel-infra Code Review - openstack-build/heat-build.git/log
openstack-build/heat-build.git
12 years agoMerge "Rename requires files to standard names"
Jenkins [Fri, 24 May 2013 09:44:28 +0000 (09:44 +0000)]
Merge "Rename requires files to standard names"

12 years agoengine : move update_template_diff functions into Resource
Steven Hardy [Thu, 23 May 2013 10:21:16 +0000 (11:21 +0100)]
engine : move update_template_diff functions into Resource

Move the update_template_diff and update_template_diff_properties
functions into resource.Resource - since they now raise
resource.UpdateReplace we can avoid ever calling handle_update if
the resource update will result in replacement

Note a further cleanup will probably be to combine the two diff
functions into one recursive diff, which will further simplify this

Change-Id: I839f0c4448a2d869f35e0a4f19d17f31c5c6f9af

12 years agoInstance resource remove unreachable/redundant Metadata update check
Steven Hardy [Wed, 22 May 2013 15:34:32 +0000 (16:34 +0100)]
Instance resource remove unreachable/redundant Metadata update check

update_template_diff already throws resource.UpdateReplace if the
json_snippet contains changes other than to Metadata, so the else
here is unreachable and redundant

Change-Id: I9f0ad88d0b6fa65cafd5b2843a38913fa843a3ac

12 years agoheat tests : add coverage for instance UpdateReplace
Steven Hardy [Wed, 22 May 2013 15:28:25 +0000 (16:28 +0100)]
heat tests : add coverage for instance UpdateReplace

Add some tests which test the UpdateReplace path for Instance

Change-Id: Ib9c35498c3ab2811fcd73aac8159315cb6251004

12 years agoengine : replace UPDATE_REPLACE with ResourceReplace exception
Steven Hardy [Thu, 23 May 2013 14:42:01 +0000 (15:42 +0100)]
engine : replace UPDATE_REPLACE with ResourceReplace exception

Replace the handle_update returned value with a new ResourceReplace
exception, which allows the replacement logic in resource.py and
parser.py to be cleaner

Change-Id: If652d031e8baeb8f4c6015e5ed2d0e5bb25f0fc6

12 years agoMove VolumeAttachment polling to check_create_complete()
Zane Bitter [Thu, 23 May 2013 13:37:39 +0000 (15:37 +0200)]
Move VolumeAttachment polling to check_create_complete()

Change-Id: I2e2fe3784b8cf79e3ccacd3451e06b75433fdd5b

12 years agoMerge "Make volume detachment a co-routine"
Jenkins [Thu, 23 May 2013 13:36:22 +0000 (13:36 +0000)]
Merge "Make volume detachment a co-routine"

12 years agoMerge "engine : Fix ResourceFailure exception issues"
Jenkins [Thu, 23 May 2013 12:32:08 +0000 (12:32 +0000)]
Merge "engine : Fix ResourceFailure exception issues"

12 years agoMerge "Make volume attachment a co-routine"
Jenkins [Thu, 23 May 2013 12:24:38 +0000 (12:24 +0000)]
Merge "Make volume attachment a co-routine"

12 years agoMerge "Verify function calls in cinder_fn_getatt unit test"
Jenkins [Wed, 22 May 2013 20:26:08 +0000 (20:26 +0000)]
Merge "Verify function calls in cinder_fn_getatt unit test"

12 years agoMerge "Stub out sleeps in quantum unit tests"
Jenkins [Wed, 22 May 2013 20:25:12 +0000 (20:25 +0000)]
Merge "Stub out sleeps in quantum unit tests"

12 years agoMake volume detachment a co-routine
Zane Bitter [Wed, 22 May 2013 14:29:33 +0000 (16:29 +0200)]
Make volume detachment a co-routine

Change-Id: I799f891010fb75c80afd30ded761aa2b3b632394

12 years agoMake volume attachment a co-routine
Zane Bitter [Wed, 22 May 2013 14:29:33 +0000 (16:29 +0200)]
Make volume attachment a co-routine

Change-Id: Iad1ac0578470e4c2f997257560d62f8cb2d7ee35

12 years agoVerify function calls in cinder_fn_getatt unit test
Zane Bitter [Wed, 22 May 2013 14:29:33 +0000 (16:29 +0200)]
Verify function calls in cinder_fn_getatt unit test

Change-Id: I6a7f03a7b91fb9604ea16e5a60bc12f84ebb9657

12 years agoStub out sleeps in quantum unit tests
Zane Bitter [Wed, 22 May 2013 10:40:33 +0000 (12:40 +0200)]
Stub out sleeps in quantum unit tests

The patch 5d86e2f2ece51a79102aee2af9a3f306c929aaea
added wait states into the unit tests for quantum networks, routers and
ports, but did not stub out the resulting sleep. This caused the tests to
run for over 1s, which indirectly allowed bug #1182285 to become visible.

Change-Id: Id26daa87e1618533ee92c33827a9d01800b03752

12 years agoRemove unrelated tracebacks from test output
Thomas Herve [Wed, 22 May 2013 08:23:50 +0000 (10:23 +0200)]
Remove unrelated tracebacks from test output

This mocks some calls the ThreadGroup when testing update and delete of
the stack, resulting in tracebacks when the threads randomly run later
on in the test suite.

Change-Id: Ia1a376933c2e25b6cf0fe6a26f47e381cbb1a55e
Fixes: bug #1182285
12 years agoRename requires files to standard names
Steven Dake [Thu, 16 May 2013 04:48:36 +0000 (21:48 -0700)]
Rename requires files to standard names

From bug report:
Rename tools/pip-requires to requirements.txt and tools/test-requires
to test-requirements.txt. These are standard files and tools in the
general world are growing intelligence about them.

Change-Id: Ie0bdb4908f45e47db43e84cd0c5fdc5263c035f4
Fixes: Bug #1179008
12 years agoMerge "update on_devstack doc"
Jenkins [Tue, 21 May 2013 22:21:53 +0000 (22:21 +0000)]
Merge "update on_devstack doc"

12 years agoengine : Fix ResourceFailure exception issues
Steven Hardy [Tue, 21 May 2013 22:06:11 +0000 (23:06 +0100)]
engine : Fix ResourceFailure exception issues

Fix some issues spotted in https://review.openstack.org/#/c/29543
These errors were spotted after the patch was merged, the
ResourceFailure exception takes an Exception not string argument

Change-Id: I72045ecf147c66a0a1cf1ef5df7fb3be8100384d

12 years agoFix PEP H101 (Use TODO(NAME))
Angus Salkeld [Mon, 20 May 2013 06:11:17 +0000 (16:11 +1000)]
Fix PEP H101 (Use TODO(NAME))

Change-Id: I77c9caa650462725b7c686fbafd9753d046b138d

12 years agoMerge "Implement OS::Cinder::VolumeAttachment"
Jenkins [Tue, 21 May 2013 11:07:30 +0000 (11:07 +0000)]
Merge "Implement OS::Cinder::VolumeAttachment"

12 years agoupdate on_devstack doc
Shengjie Min [Tue, 21 May 2013 09:28:32 +0000 (10:28 +0100)]
update on_devstack doc

udpate the prebuilt-jeos-image from F16 to F17

Change-Id: Iae1456e4811c029494a8c2878c9bf0c3221bc43a
Fixes: bug #1180416
12 years agoMerge "Fix PEP H902 (Use the 'not in' operator)"
Jenkins [Tue, 21 May 2013 09:02:27 +0000 (09:02 +0000)]
Merge "Fix PEP H902 (Use the 'not in' operator)"

12 years agoImplement OS::Cinder::VolumeAttachment
Thomas Herve [Tue, 21 May 2013 08:27:15 +0000 (10:27 +0200)]
Implement OS::Cinder::VolumeAttachment

This creates a new volume attachment resource with Cinder specific
naming.

Change-Id: Ie73b929925c58e47f3509d57dd385cbd4ea5a4c1

12 years agoMerge "UpdateStack for AWS::AutoScaling::ScalingPolicy"
Jenkins [Tue, 21 May 2013 05:20:27 +0000 (05:20 +0000)]
Merge "UpdateStack for AWS::AutoScaling::ScalingPolicy"

12 years agoMerge "Adds sudo check for privileged operations."
Jenkins [Tue, 21 May 2013 05:18:52 +0000 (05:18 +0000)]
Merge "Adds sudo check for privileged operations."

12 years agoMerge "engine : remove unused update states/status"
Jenkins [Tue, 21 May 2013 05:06:54 +0000 (05:06 +0000)]
Merge "engine : remove unused update states/status"

12 years agoMerge "engine : cleanup Resource.update error paths"
Jenkins [Tue, 21 May 2013 05:06:28 +0000 (05:06 +0000)]
Merge "engine : cleanup Resource.update error paths"

12 years agoFix PEP H902 (Use the 'not in' operator)
Angus Salkeld [Tue, 21 May 2013 03:01:54 +0000 (13:01 +1000)]
Fix PEP H902 (Use the 'not in' operator)

Change-Id: Ic3dec990d2fe43dd8841aadb7b87e8f26c2d0338

12 years agoUpdateStack for AWS::AutoScaling::ScalingPolicy
Winson Chan [Fri, 17 May 2013 18:30:33 +0000 (11:30 -0700)]
UpdateStack for AWS::AutoScaling::ScalingPolicy

Implemented update support of the ScalingPolicy resource
in an existing stack. ScalingAdjustment, AdjustmentType,
and Cooldown properties are allowed properties for update.
A handle_update method is added to update differences in
the template.

Change-Id: Ieeae93560a315a8a35c6fb2d8f1d78a89123bec3
blueprint: scalingpolicy-update-stack

12 years agoFix PEP H301 (one import per line)
Angus Salkeld [Mon, 20 May 2013 05:46:27 +0000 (15:46 +1000)]
Fix PEP H301 (one import per line)

Change-Id: I7b0c991c869c903e60123ad5bdf876b06d83e3e9

12 years agoFix PEP H402 "one line docstring needs punctuation."
Angus Salkeld [Mon, 20 May 2013 05:34:40 +0000 (15:34 +1000)]
Fix PEP H402 "one line docstring needs punctuation."

Change-Id: Id0aa43187f6d5e62308f4b329bc9458a512d808d

12 years agoPEP: be explicit about what errors are ignored.
Angus Salkeld [Mon, 20 May 2013 11:53:14 +0000 (21:53 +1000)]
PEP: be explicit about what errors are ignored.

Change-Id: I362ba16c8a7b645c9befa7fcd4b0942773b0dbce

12 years agoengine : remove unused update states/status
Steven Hardy [Fri, 17 May 2013 13:20:31 +0000 (14:20 +0100)]
engine : remove unused update states/status

We have some aws-isms in the update code related to different
update states, which is not actually used anywhere, so may as
well remove it - it's probably easier at least for now to focus
on the three update states of COMPLETE/FAILED/REPLACEMENT

Change-Id: Ieeaf92ab0fec6bbfab3dddf2d8fecb0b38c1b2fc

12 years agoengine : cleanup Resource.update error paths
Steven Hardy [Fri, 17 May 2013 12:17:57 +0000 (13:17 +0100)]
engine : cleanup Resource.update error paths

The current update code uses a nasty pattern where returning an
arbitrary string from Resource.update is interpreted in parser.Stack
as an error.  Instead use exceptions which is much nicer :)

Change-Id: I2ddebfd6bbec3dc229012406da72dd928fcc4595

12 years agoAdds sudo check for privileged operations.
Dave Wilde [Sun, 19 May 2013 10:05:39 +0000 (10:05 +0000)]
Adds sudo check for privileged operations.

Adds root user check to determine whether or not sudo is required
for MySQL status and installation.  We now run sudo -l to verify
that the user is in the sudoers file, the credentials are then
cached for the rest of the operations.

bug 1181701

Change-Id: I294b269046ee2049b0fdee3c871096387cefbf24

12 years agoThe oslo module called utils is no more.
Michael Still [Mon, 20 May 2013 04:18:40 +0000 (14:18 +1000)]
The oslo module called utils is no more.

This had been cleaned up in openstack/common, but left in the config
file. Clean that up too.

Change-Id: I15b96c53aff3281a44250e9beb4ec56fb80bf9b6

12 years agoMerge "Exclude build/ from flake8 checks"
Jenkins [Mon, 20 May 2013 03:53:41 +0000 (03:53 +0000)]
Merge "Exclude build/ from flake8 checks"

12 years agoExclude build/ from flake8 checks
Steve Baker [Sun, 19 May 2013 23:56:06 +0000 (11:56 +1200)]
Exclude build/ from flake8 checks

Change-Id: Ie7b19f8488230e8538720b96c73b49453c6a3efe

12 years agoTests for Router, RouterInterface, RouterGateway.
Steve Baker [Sun, 19 May 2013 23:53:53 +0000 (11:53 +1200)]
Tests for Router, RouterInterface, RouterGateway.

quantum package now has over 94% test coverage.

Change-Id: I82b4635e4554e5b94eaac70bd1cc4b9249863dc9

12 years agoTolerate resource lookup errors for quantum FnGetAtt.
Steve Baker [Wed, 15 May 2013 22:02:34 +0000 (10:02 +1200)]
Tolerate resource lookup errors for quantum FnGetAtt.

Fixes bug #1180293

Change-Id: I5384456bbbf53558036573c983be0b65e8883612

12 years agoImplement check_active for quantum net, port, router
Steve Baker [Tue, 7 May 2013 04:00:55 +0000 (16:00 +1200)]
Implement check_active for quantum net, port, router

These quantum resources go through a BUILD status before becoming
ACTIVE (or DOWN).

This could explain the issues seen in
Bug: #1176661

Change-Id: I659774cd402b71be102376b31e2d78bf225d37a6

12 years agoThe utils module in oslo is no more.
Michael Still [Sat, 18 May 2013 23:17:47 +0000 (09:17 +1000)]
The utils module in oslo is no more.

The utils module in oslo has been removed (with most of its
functionality moving across to strutils). Luckily it was imported
in heat but never actually used, so removing it is relatively easy.

Change-Id: I3df27a553ebe7de188893038f9285d4b9a789d19

12 years agoMigrate to flake8
Monty Taylor [Sat, 11 May 2013 18:26:42 +0000 (14:26 -0400)]
Migrate to flake8

Fixes bug 117244

Change-Id: Ide81366eb2240377160775830e2307aef6064f9e

12 years agoMerge "Clean up a pyflakes error in a comment."
Jenkins [Fri, 17 May 2013 18:41:08 +0000 (18:41 +0000)]
Merge "Clean up a pyflakes error in a comment."

12 years agoMerge "Align usage of test skipping."
Jenkins [Fri, 17 May 2013 18:40:53 +0000 (18:40 +0000)]
Merge "Align usage of test skipping."

12 years agoMerge "Use mox for mocking quantum client test calls"
Jenkins [Fri, 17 May 2013 18:40:14 +0000 (18:40 +0000)]
Merge "Use mox for mocking quantum client test calls"

12 years agoMerge "Fix error in Dependencies representation"
Jenkins [Fri, 17 May 2013 16:59:03 +0000 (16:59 +0000)]
Merge "Fix error in Dependencies representation"

12 years agoMerge "Initialise resources when service is created."
Jenkins [Fri, 17 May 2013 15:44:00 +0000 (15:44 +0000)]
Merge "Initialise resources when service is created."

12 years agoClean up a pyflakes error in a comment.
Monty Taylor [Thu, 16 May 2013 16:24:17 +0000 (09:24 -0700)]
Clean up a pyflakes error in a comment.

This is a little-bit silly, but it's the last thing. pyflakes parses
python lines that are in docstring comments that are prefaced by >>>.
So, without the import, pyflakes complains about undefined import.

Change-Id: Ibac77367efb07b65b992694b2de19473ec9ef473

12 years agoAlign usage of test skipping.
Monty Taylor [Thu, 16 May 2013 16:20:51 +0000 (09:20 -0700)]
Align usage of test skipping.

There were three different mechanisms for skipping tests in the suite.
For the most part, skipIf was used, so sync to that. Additionally, it
was being used as a decorater in most places, but as a call in a few,
so make it a decorator everywhere. Finally, if it's on the setUp method,
it's not necessary for it to be on any of the individual tests in the class.

Change-Id: I7fbd09a6bc015e698a190b989d0f8641c4adb63e

12 years agoFix error in Dependencies representation
Zane Bitter [Fri, 17 May 2013 08:57:21 +0000 (10:57 +0200)]
Fix error in Dependencies representation

This mostly only exists for debugging, but it's helpful if it can actually
run.

Change-Id: Ie29da5e7e58aed54aaaffa4df479fa0d96ce78fe

12 years agoFix SecurityGroups for AWS::AutoScaling::LaunchConfiguration
Simon Pasquier [Fri, 17 May 2013 09:24:28 +0000 (11:24 +0200)]
Fix SecurityGroups for AWS::AutoScaling::LaunchConfiguration

Change-Id: Ie3b0663093c9c4bae14cf3311a65ff92715af8c9
Fixes: bug #1180878
12 years agoInitialise resources when service is created.
Steve Baker [Fri, 17 May 2013 01:47:28 +0000 (13:47 +1200)]
Initialise resources when service is created.

Without this, calls to validate_template will fail until the first
parser.Stack is created.

resources.initialise() is called in EngineService __init__
to avoid this happening in another service method in the future
Fixes: bug #1181045
Change-Id: I68a74ec7993aff4b74d449a3ae33315b93e9cb0d

12 years agoMerge "Clean up import of cinderclient exceptions"
Jenkins [Fri, 17 May 2013 00:02:09 +0000 (00:02 +0000)]
Merge "Clean up import of cinderclient exceptions"

12 years agoMerge "Make Volume snapshot a task"
Jenkins [Fri, 17 May 2013 00:02:06 +0000 (00:02 +0000)]
Merge "Make Volume snapshot a task"

12 years agoMerge "Move Volume polling to check_create_complete()"
Jenkins [Fri, 17 May 2013 00:01:08 +0000 (00:01 +0000)]
Merge "Move Volume polling to check_create_complete()"

12 years agoMerge "Handle errors in Volume creation"
Jenkins [Fri, 17 May 2013 00:00:48 +0000 (00:00 +0000)]
Merge "Handle errors in Volume creation"

12 years agoUse mox for mocking quantum client test calls
Steve Baker [Wed, 15 May 2013 04:37:55 +0000 (16:37 +1200)]
Use mox for mocking quantum client test calls

There is no change in test coverage, future commits will
expand the code coverage on quantum resource types

Change-Id: I90cb1a2d1073d95c75b941b00b9c667a8c7a72d9

12 years agoMerge "Rename handle_snapshot and pass state"
Jenkins [Thu, 16 May 2013 17:47:57 +0000 (17:47 +0000)]
Merge "Rename handle_snapshot and pass state"

12 years agoMerge "Cleaned up some simple hacking/pyflakes errors."
Jenkins [Thu, 16 May 2013 17:39:24 +0000 (17:39 +0000)]
Merge "Cleaned up some simple hacking/pyflakes errors."

12 years agoCleaned up some simple hacking/pyflakes errors.
Monty Taylor [Thu, 16 May 2013 16:11:15 +0000 (09:11 -0700)]
Cleaned up some simple hacking/pyflakes errors.

There are set of trivial changes that involved missing imports or unused
code. No functional changes should be evident.

Change-Id: If020e33674627845ea78192382bdf8977b442931

12 years agoClean up import of cinderclient exceptions
Zane Bitter [Wed, 15 May 2013 20:26:09 +0000 (22:26 +0200)]
Clean up import of cinderclient exceptions

Don't import a particular version of the cinderclient API - just import the
client module and pass the version we want to the Client() constructor as
is intended. This allows up to access the exceptions directly through
client.exceptions, rather than having to do a separate import.

Change-Id: Ic0e47506a51a572da01fdfdef0367cfdb3e34d54

12 years agoMake Volume snapshot a task
Zane Bitter [Wed, 15 May 2013 20:26:09 +0000 (22:26 +0200)]
Make Volume snapshot a task

Change-Id: I53fbd6e2ba9b17fa0ccd38d5e077587df0bbfef8

12 years agoMove Volume polling to check_create_complete()
Zane Bitter [Wed, 15 May 2013 20:26:09 +0000 (22:26 +0200)]
Move Volume polling to check_create_complete()

Rather than poll in a loop inside handle_create(), use
check_create_complete() to check the status of the Volume.

Fixes bug #1178578

Change-Id: Icea7154c6e3763c977bd41671f51736c4a366141

12 years agoHandle errors in Volume creation
Zane Bitter [Thu, 16 May 2013 11:18:19 +0000 (13:18 +0200)]
Handle errors in Volume creation

Set the resource_id as soon as it is know, since we need to be able to
delete the volume later, even if it is in an error state. Avoid attempting
to perform a snapshot if the volume was never created successfully.

Change-Id: I33dd842d3d249bafe1037c1b97abf1979f605712

12 years agoRename handle_snapshot and pass state
Zane Bitter [Thu, 16 May 2013 11:18:18 +0000 (13:18 +0200)]
Rename handle_snapshot and pass state

Rename handle_snapshot() to handle_snapshot_delete() to better reflect what
it needs to do (both take a snapshot of the resource and then delete the
resource). Also, pass the state of the resource prior to delete being
invoked, since the resource may want to use different error handling in the
snapshot phase depending on e.g. whether the resource was created
successfully or not.

Change-Id: I1e5aaab4f13e42333c1f2f39bfeb0ebf2ac89ed8

12 years agouse skipIf for all quantum test skip checks
Steve Baker [Wed, 15 May 2013 03:43:29 +0000 (15:43 +1200)]
use skipIf for all quantum test skip checks

Change-Id: I999c13fd5d2816374ee9fb4d2abe57557583ed9a

12 years agoMerge "Implement CinderVolume.FnGetAtt"
Jenkins [Wed, 15 May 2013 22:08:28 +0000 (22:08 +0000)]
Merge "Implement CinderVolume.FnGetAtt"

12 years agoMerge "Clean up VPC unit tests"
Jenkins [Wed, 15 May 2013 21:51:46 +0000 (21:51 +0000)]
Merge "Clean up VPC unit tests"

12 years agoMerge "Use python logging for loguserdata.py, log to console"
Jenkins [Wed, 15 May 2013 21:50:10 +0000 (21:50 +0000)]
Merge "Use python logging for loguserdata.py, log to console"

12 years agoMerge "Move WaitCondition polling to check_create_complete()"
Jenkins [Wed, 15 May 2013 19:53:35 +0000 (19:53 +0000)]
Merge "Move WaitCondition polling to check_create_complete()"

12 years agoClean up VPC unit tests
Zane Bitter [Wed, 15 May 2013 13:59:38 +0000 (15:59 +0200)]
Clean up VPC unit tests

 - Ensure that stacks are cleaned up on failure.
 - Add a test for the case where an something other than a valid reference
   is passed as the GroupSet.
 - Add a test for the case where no GroupSet is passed.

Ref bug #1164913

Change-Id: I7637ed7969f23662643756da4a49627a2b40de20

12 years agoAdds dns_nameserver to OS::Quantum::Subnet.
Bartosz Górski [Wed, 15 May 2013 06:04:56 +0000 (23:04 -0700)]
Adds dns_nameserver to OS::Quantum::Subnet.

You can specify list of dns_nameserver in template file when you creating new
subnet using Quantum resources.

Change-Id: I8978eab11b3ba9fe469c220fc1e7847a2038b54e

12 years agoMerge "Implement OS::Cinder::Volume"
Jenkins [Wed, 15 May 2013 02:53:19 +0000 (02:53 +0000)]
Merge "Implement OS::Cinder::Volume"

12 years agoUse python logging for loguserdata.py, log to console
Steve Baker [Tue, 14 May 2013 23:43:44 +0000 (11:43 +1200)]
Use python logging for loguserdata.py, log to console

Python logging is configured with a stream handler and should
also replicate the previous logging to 0600 /var/log/heat-provision.log

By logging to a stream handler cloud-init will write to its log,
which will show up in the server console log. This means that heat
provisioning can now be monitored without needing to log in with:

nova console-log <servername>

This change also touches the file /var/lib/heat-cfntools/provision-finished
instead of also writing a datestamp to it, which is redundant.

Change-Id: Id0312bd2216a83753df601b17ad16d5355cdb11d

12 years agoMerge "Copy the RHEL6 eventlet workaround from Oslo"
Jenkins [Tue, 14 May 2013 20:19:34 +0000 (20:19 +0000)]
Merge "Copy the RHEL6 eventlet workaround from Oslo"

12 years agoMerge "Update install_venv_common from oslo-incubator"
Jenkins [Tue, 14 May 2013 20:19:26 +0000 (20:19 +0000)]
Merge "Update install_venv_common from oslo-incubator"

12 years agoImplement CinderVolume.FnGetAtt
Thomas Herve [Thu, 9 May 2013 13:23:37 +0000 (15:23 +0200)]
Implement CinderVolume.FnGetAtt

This allows retrieving Cinder properties in the template.

Change-Id: Id20d4d2cbd5f78ad4412f6260d66b43bd2ef6596

12 years agoImplement OS::Cinder::Volume
Thomas Herve [Wed, 8 May 2013 12:16:37 +0000 (14:16 +0200)]
Implement OS::Cinder::Volume

It creates a new resource type allowing to pass cinder specific
arguments in the template.

Change-Id: I1e8512892fdc7f141f91580bfca4e370b0740a56

12 years agoMerge "heat-cfn : Make error with missing auth details more obvious"
Jenkins [Tue, 14 May 2013 12:05:35 +0000 (12:05 +0000)]
Merge "heat-cfn : Make error with missing auth details more obvious"

12 years agoMerge "Add a timeout option to the scheduler"
Jenkins [Tue, 14 May 2013 09:29:23 +0000 (09:29 +0000)]
Merge "Add a timeout option to the scheduler"

12 years agoMerge "Add new exception for invalid template ref"
Jenkins [Tue, 14 May 2013 00:21:15 +0000 (00:21 +0000)]
Merge "Add new exception for invalid template ref"

12 years agoCopy the RHEL6 eventlet workaround from Oslo
Mark McLoughlin [Thu, 2 May 2013 09:28:20 +0000 (10:28 +0100)]
Copy the RHEL6 eventlet workaround from Oslo

Tests in oslo-incubator now need the horrendous hack to workaround an
issue with eventlet on RHEL6. We've moved the patch_tox_venv tool
and redhat-eventlet.patch into oslo-incubator, so add them to
openstack-common.conf.

Change-Id: I1acfec282b64d7582144b155119bedb1741db2f7

12 years agoUpdate install_venv_common from oslo-incubator
Mark McLoughlin [Mon, 13 May 2013 21:51:06 +0000 (22:51 +0100)]
Update install_venv_common from oslo-incubator

Just some python3 compat work.

Change-Id: I835765d45a861d0bcf9b348f0649c6c9ef5a1992

12 years agoUse hostname from env in heat-keystone-setup
Stephen Sugden [Mon, 13 May 2013 21:17:31 +0000 (14:17 -0700)]
Use hostname from env in heat-keystone-setup

Prints a warning if the endpoints are going to be registered as localhost URIs.

Change-Id: I32efcf826f400ca2763cb5758dce02ffdbdb9ae1

12 years agoMerge "Provide example config option for instance_user."
Jenkins [Mon, 13 May 2013 19:55:06 +0000 (19:55 +0000)]
Merge "Provide example config option for instance_user."

12 years agoMerge "Implement the SubnetId property in the Instance resource"
Jenkins [Mon, 13 May 2013 19:50:20 +0000 (19:50 +0000)]
Merge "Implement the SubnetId property in the Instance resource"

12 years agoMerge "api : Fix template-show partial URL redirect"
Jenkins [Mon, 13 May 2013 16:58:08 +0000 (16:58 +0000)]
Merge "api : Fix template-show partial URL redirect"

12 years agoMove WaitCondition polling to check_create_complete()
Zane Bitter [Mon, 13 May 2013 15:55:41 +0000 (17:55 +0200)]
Move WaitCondition polling to check_create_complete()

Rather than poll in a loop inside handle_create(), use
check_create_complete() to check the status of the WaitCondition.

Change-Id: I63dc6ec6aeedf3238123334722f86a0f1205f306

12 years agoAdd a timeout option to the scheduler
Zane Bitter [Mon, 13 May 2013 15:55:41 +0000 (17:55 +0200)]
Add a timeout option to the scheduler

Change-Id: Ia796c5027c8faeefb9ddf48d88583d3d7901448d

12 years agoengine : rename check_active to make it more generic
Steven Hardy [Mon, 13 May 2013 13:45:56 +0000 (14:45 +0100)]
engine : rename check_active to make it more generic

Rename check_active to check_create_complete, since "active" is
really a detail of Instance state, and so it seems wrong for other
resources which take a long time to create but are not Instance
based (e.g WaitConditions).  This change will also allow us to
align other stack "state check" functions with the state we're
checking for in a consistent way (e.g check_delete_complete etc)

Fixes bug #1178591

Change-Id: I55a824e6ba3de87cedd0b844e7f4e1294917533a

12 years agoapi : Fix template-show partial URL redirect
Steven Hardy [Fri, 10 May 2013 16:09:34 +0000 (17:09 +0100)]
api : Fix template-show partial URL redirect

All other API actions will provide a redirect if you only provide the
stack ID or name (rather than both), the template URL currently doesn't
because the template subpath is missing from the mapper lookup

Fixes bug #1178705

Change-Id: Ib8e8dd7691bc48587c9d91e937ac2c2c35ac3ce6

12 years agoMerge "Deprecate tools/nova_create_flavors.sh"
Jenkins [Mon, 13 May 2013 04:52:27 +0000 (04:52 +0000)]
Merge "Deprecate tools/nova_create_flavors.sh"

12 years agoProvide example config option for instance_user.
Clint Byrum [Fri, 10 May 2013 20:35:08 +0000 (13:35 -0700)]
Provide example config option for instance_user.

Change-Id: I0782dafd785c21e96e4063ab4604dd3703c7c436

12 years agoAdd new exception for invalid template ref
Jeff Peeler [Wed, 8 May 2013 22:40:17 +0000 (18:40 -0400)]
Add new exception for invalid template ref

Hopefully is clearer than a KeyError.

Change-Id: Ib387825396ab0286df00aaff3b1b539cd7fc9a77
Fixes: bug #1178011
12 years agoImplement the SubnetId property in the Instance resource
Winson Chan [Wed, 8 May 2013 06:13:49 +0000 (23:13 -0700)]
Implement the SubnetId property in the Instance resource

If the SubnetId parameter is given in the template, the handle_create method
in the Instance resource verifies the subnet in quantum and configures the
NetworkInterfaces for the subnet. If no NetworkInterface is specified, a port
is created for the subnet and the nic is configured to use that port.

Change-Id: I5a05cbe0798e6b181bf9dd3b547cda525e18480f
Fixes: bug #1163952
12 years agoheat-cfn : Make error with missing auth details more obvious
Steven Hardy [Wed, 8 May 2013 13:43:12 +0000 (14:43 +0100)]
heat-cfn : Make error with missing auth details more obvious

Exit with an error message describing the missing auth details
instead of failing with cryptic "Name or service not known" error
when credentials etc are missing

fixes bug #1154759

Change-Id: I19c22357526c73e824a2b2bb9f862c8724a8ebba

12 years agoMerge "Fix GroupSet assignment to use resource id instead of name"
Jenkins [Wed, 8 May 2013 15:49:39 +0000 (15:49 +0000)]
Merge "Fix GroupSet assignment to use resource id instead of name"

12 years agoFix GroupSet assignment to use resource id instead of name
Jeff Peeler [Fri, 26 Apr 2013 16:04:20 +0000 (12:04 -0400)]
Fix GroupSet assignment to use resource id instead of name

This allows the security groups to be passed to Quantum in the
expected format.

Change-Id: I7925bfdb71a076b4a2ecdeee396abf42d111ef8c
Fixes: bug #1164913