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
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
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
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
Make Volume snapshot a task

Change-Id: I53fbd6e2ba9b17fa0ccd38d5e077587df0bbfef8
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
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
Merge "Cleaned up some simple hacking/pyflakes errors."
Merge "Rename handle_snapshot and pass state"
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
Merge "Handle errors in Volume creation"
Merge "Move Volume polling to check_create_complete()"
Merge "Make Volume snapshot a task"
Merge "Clean up import of cinderclient exceptions"
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
Fix SecurityGroups for AWS::AutoScaling::LaunchConfiguration

Change-Id: Ie3b0663093c9c4bae14cf3311a65ff92715af8c9
Fixes: bug #1180878
Fix error in Dependencies representation

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

Change-Id: Ie29da5e7e58aed54aaaffa4df479fa0d96ce78fe
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
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
Merge "Initialise resources when service is created."