all_extensions api_samples testing for server actions

server actions sometimes return servers objects, which means
their output is different when extensions are enabled. This
adds api samples for those cases to give a more realistic view
to the user of what they might expect.

Change-Id: Iaa9a4c3a373dee41931c5dc4f1b805f09a05299f
Fix XenServer's ability to boot xen type images

Fixes bug 1055431.

As the scheduler wants to boot a vm_mode=xen type of image, the host's
"supported_instances" capability is used for finding a good candidate.
In the Xapi case, this field was not populated.

This fix modifies the xapi xenhost plugin, so the Xen host capabilities
are returned back to the compute node, as "host_capabilities".
On the compute side, the mentioned information is used, to extract the
"supported_instances" information.

Change-Id: I2da11ab81f74b5b52e2c30832a694470978e21b0
Add servers/ips api_samples tests

Change-Id: I65f8b53b4126458e1522f0bc47559dc1318a473a
Deleting security group does not mark rules as deleted

Adds query to also delete rules for parent_group_id

Fixes bug 1056380

Change-Id: I3d041b49703bf298a80d2ebe19c1298eecf2d98d
Fixes error message for flavor-create duplicate ID

Fixes bug 1056918

Change-Id: I516153211504b67f6e8b8ebb138abcef4be4d73e
libvirt: Improve the idempotency of iscsi detach

When detaching an iscsi volume it is possible for the iscsi commands
to run concurrently, causing a target to be deleted by one greenthread
while the other is continuing. When removing the iscsi connection,
we should always ignore exit code 21 because that means that the
target has already been removed.

Fixes bug 1057719

Change-Id: I0c9f2623f85a817e2be506f9a6d523d45c76848a
libvirt: allows attach and detach from all domains

Previously attaching/detaching from a shutoff domain would fail.

Fixes bug 1057730

Change-Id: I876872700da125cb078746401b1b80da265880ff
libvirt: continue detach if instance not found

Currently the libvirt code will always logout of the iscsi target
during detach error, but the exception will cause the volume to
remain in an attached state. This needs to be more consistent, so
This patch checks specifically for not found and logs a warning
and explicitly detaches. Any other exception will leave iscsi
logged in and leave the volume in the attached state.

Fixes bug 1057756

Change-Id: I23bb7f27e8a9b20fdbf62b0629ca8cc448f427c5
Max I/O ops per host scheduler filter

Provide ability to filter hosts based on the number of concurrent
build, resize, and image snapshot operations in progress.

FLAGS.max_io_ops_per_host is used to control the number of concurrent
permitted operations.

Change-Id: I77feca00a6b6b248de8423cef7fb8da2cf704930
Revert "Add full test environment."

This reverts commit 30e513309fe25af358b4d9ed47da2c7574fc0f06.

The python mysql module was removed from test-requires in favor
of test-options, but the work to actually use that was never
completed.  Revert the change so that mysql testing is actually
performed again.

Change-Id: Iaf35811cc748272229260f2dab95520995a69b44
Remove unnecessary setUp, tearDown and __init__ in tests

These methods simply call the same parent class method with the same
arguments. This is the default behavior of Python and re-implementing
that is unnecessary.

Change-Id: I29503f6c5442e2aae645899dc157466e6201ba75
Merge "Max I/O ops per host scheduler filter"
Merge "Revert "Add full test environment.""
Merge "libvirt: Improve the idempotency of iscsi detach"
Merge "Deleting security group does not mark rules as deleted"
Merge "Add servers/ips api_samples tests"
Merge "all_extensions api_samples testing for server actions"
Merge "Fix XenServer's ability to boot xen type images"
Merge "Fixes error message for flavor-create duplicate ID"
Merge "libvirt: allows attach and detach from all domains"