Capture MySQL logs if they are there.

Change-Id: Icf5616ae723cf779b19d6fb999f26cfef0c12c9b
Add support for generating coverage reports from tempest.

This adds support for tempest to generate coverage reports in nova
using the coverage extension.

Change-Id: I76f9f3109fbd8005fe3157f4b95f1dd036877613
up cinder volumes to 10G

this is to address a short term issue with cinder tempest tests
not being very good about cleaning up in a timely manner.

Change-Id: I8d3954aa12939169a3d04f990f147e1652da6663
Sleep to give logs a chance to be flushed.

The Jenkins SCP plugin copies log files that have been copied by
devstack-gate from their normal locations to the log directory for that
particular test run. Sometimes these SCP'ed files are showing up
incomplete and that appears to be happening because the services are
unable to flush their log buffers before copying happens. Sleep for two
seconds before copying the logs to give the log buffers a chance at
flushing.

Change-Id: I12307a2f93839015e83389da8f6a10549044bd81
Ignore symbolic references during local_prep.

In the image update script ignore any branch returned by `git branch -a`
containing the ' -> 'substring. This entire string denotes a symbolic
reference and is not a valid branch (so it cannot be checked out). We
can do this safely because `git branch -a` will also return the branch
referred to by the reference.

Change-Id: I47852ffd6e25fe3a29a1b310142c5614ca5a6fa9
Remove tempest-full logic.

If you want to run the full suite, make that decision outside of
this script.  There are new jobs that do this:

Requires https://review.openstack.org/19427 be in place.

Change-Id: I4681fe684996a818e5d57f922724cd20c87ad53e
Merge "Capture MySQL logs if they are there."
Fix import failures on coverage runs.

The tempest_coverage.py script can't import from tempest because it
is located in the tools directory. This change runs python with '-m'
to add the tempest directory to PYTHONPATH.

Change-Id: I709474b97f2bf6d161bc063751874ca8054aa2ed
Merge "Ignore symbolic references during local_prep."
Merge "Remove tempest-full logic."
Add devstack job stats.

Runtime/count stats per:
 * job
 * job+branch
 * job+branch+provider

Change-Id: I227a571cd24b32119b067388fe26f53e28ee7277
Merge "Fix import failures on coverage runs."
Merge "Add devstack job stats."
Fix devstack job runtime stats.

Some stats names were colliding with directories.

Change-Id: Ibf65d06024f397d63711b13598be6a1bc029a6fe
Increase ACTIVE_TIMEOUT to 90 sec

Timeout job takes about 60 sec on launching VMs,
so we increase ACTIVE_TIMEOUT now.

Change-Id: I7f79731b1c5926783cb8738a24b89542a0a16191
Merge "Increase ACTIVE_TIMEOUT to 90 sec"
Fix tempest coverage report output.

This fixes copying the coverage report generated by
tempest_coverage.py into the logs directory after a tempest
run. Previously there were permissions issues with the script
trying to directly copy it into the logs directory.

Change-Id: Ib9c343057b605d03a60e2536b8ffd5f18374aece
Fix code that is supposed to exclude smoke tests from "full run" in gate jobs.
The nose expression was incorrect.

Change-Id: I4bae634b6926a55149803b9b9bd04f46b8a85694
Correct error in empty image cache check.

Fixes bug 1104249.

* devstack-vm-gate-wrap.sh: The check for cached images should not
error when it finds more than one.

Change-Id: I4c2eecaeaa2eec51f7ba18997d686a955bd0710d
if running full tempest, don't run smoke seperate

because of some of the ways we setup resources at the class level
for tempest the timing for:

    smoke + !smoke > all

This will be even more true with testr.

So instead of running smoke, then running all of not smoke, we
should just run full.

Change-Id: I8cf93dd2ce3c30cacdb564d6d0bb9a1a39067a35