Speed up slow metrics queries

There is no need for HAVING on these queries, so
replaced with WHERE

Change-Id: I55fe17969888ba0d6cfffcab3166da9f275aa13c
Use <div/> instead of <br/> in task results

This avoids wasting vertical space when displaying recipes
tasks that haven't started.

Bug: 1066122
Change-Id: Ie3ec6f99d5fd705e3fc1bb70a594e80d2de0f8a6
release notes for 0.15.5

Change-Id: Icf4cfacf0fef4c1a8d9926258f7a9832582b6b97
Automatic commit of release 0.15.5
add index on command_queue.status

This is important for efficiently querying queued commands in the
labcontroller.get_queued_commands XML-RPC method used by
beaker-provision.

Bug: 1062469
Change-Id: I7f55cc5a425222182d374a9c713c3591f7200a7c
Merge branch 'release-0.15' into develop
Add a default value for the quiescent period in the power form.

Bug: 867761
Change-Id: I7b95c9ec86a19b7ed8991a1e4787a9767e985540
don't complain about duplicate tag names when editing an existing tag

The UniqueRetentionTag validator is also used when saving an existing
tag, where the tag name has not necessarily changed, so it needs to
handle that case properly.

Bug: 1012389
Change-Id: I02e6f69606b25013dd71ddaf440395c9309433be
add Flask to setuptools requires, so that the correct Jinja version is imported

Flask requires Jinja 2.6+ which is provided by a parallel-installed egg
on RHEL6, so Flask needs to be in requires in order to make setuptools
do the necessary path manipulation.

This patch intentionally does not add Flask or Jinja2 to the other
places where we currently require CherryPy < 3, because doing so would
break running from source checkouts due to this setuptools bug:

https://bitbucket.org/pypa/setuptools/issue/6/

This means that under some circumstances running from a source checkout
may still import Jinja 2.2 instead of Jinja 2.6. Currently this is not an
issue since we are not using any Jinja templates with Flask.

Change-Id: I0e83bf725db250539bad0ad1f99328e5eec0befd
Replace unversioned python macros with versioned ones

Bug: 1067273
Change-Id: I7dd8fe74d53b5f9c43190880b29412d77a2db6a8
Move the test task RPMs to a subdirectory.

This commit moves the test task RPMs used by various tests into a
'task-rpms' subdirectory instead of having them scattered across different
sub directories.

Change-Id: I91d103ccd4ec60a7694b92efd8d33ccb4c7b9e19
Modified beaker.spec that passes rpmlint with no errors/warnings

Bug:1067273
Change-Id: If5520fafa74e1b18a413527ac429c38f32ae9298
Use %{buildroot} consistently in spec file

Bug:1067273
Change-Id: I0df39b9b80edf5401e7ec334862a4d47d7baf231
Allow correct behavior when a task is downgraded.

If an older version of a task is uploaded, the repodata is generated
twice to ensure the unlinked "newer" task's metadata is not present.

Bug: 1044934
Change-Id: Ibeed51f0afc798ac11440487f2dc8d4fbcb1f2ab
Allow --recipe-id and --system to be passed to beaker-create-kickstart.

As a result, sensible precedence rules for options passed to
beaker-create-kickstart have been created. Specifically, '--distro-tree-id'
and '--system' will override any corresponding values of a recipe that
is passed in via '--recipe-id'

Bug: 1058156
Change-Id: I86472920f84da16e5148599f4528dd2225791fb8
beaker-create-kickstart: Catch exceptions from invalid input values

Bug:1058152
Change-Id: If861d400ae1ae650a82cebfebd74d6561f5ffb04
Have packages own %{sysconfdir}/beaker

This avoids the directory being orphaned if the beaker packages are removed.

Bug:1067273
Change-Id: Ifcdf38bc5fc21c12148f163dcac22967fcf7db51
%{_unitdir} is not defined on distros without systemd

Change-Id: I9cb27af797bf001981b2ec326045efe1b2977cdd
CookieTransport has no close method

Change-Id: Iad02060b9f8ffec114ed0c0597aff6a235aaae06
install systemd files into the right paths in setup.py

The files aren't installed when systemd is absent, so we no longer need
to %exclude them in those cases.

Change-Id: I818fc708816d666c43edbeed3805f8e273e8e010