Add in check for successful swift setup

If the swift credentials are wrong zuul will crash. This change
adds in a check incase setting up swift access fails. A signed
URL will still be processed but will likely be wrong. A warning
is logged.

Change-Id: I6716e06ef3e42914c90d5857abab799e39d8089d
Provide swift credentials without requiring a connection

To generate the hmac details for the swift FormPost middleware
you do not need to actually connect to swift if you know the
URL key and storage path.

Change the configuration to reflect this and only connect if
required.

Change-Id: Iad5008ca2707ef5310b172fe3b6844e51bee2372
Fix up fetching jquery.visibility

At some point the fetch-dependencies stopped working as the
visibility URL changed. Fix this up and also fix up adding the
danger class to ajax error messages

Closes-Bug: #1325076
Change-Id: I35af2fa08044f479c8f1200ba543cca908173aa8
Simplified the scheduler very slightly

Change-Id: I57bba2feb35f3d1657e3a85a9087604ac08edc16
replace dict.iteritems() with six.iteritems(dict)

According to https://wiki.openstack.org/wiki/Python3 dict.iteritems()
should be replaced with six.iteritems(dict).

Added six >= 1.6.0 as new requirement. Removed six from test requirements.

Change-Id: Ifba282b1bde9681268e6e46ffd024c96c6b9be05
Use import from six.moves to import the queue module

The name of the synchronized queue class is queue instead of
Queue in Python3.

Change-Id: I89ea14e8d17cd37706752700cedb66b28d347fa2
Use import from six.moves to import the ConfigParser module

The name of the ConfigParser module is configparser instead of
ConfigParser in Python3.

Change-Id: I71063cec0f1ef71b6a8334d60a373e12b0f329e7
Merge "replace dict.iteritems() with six.iteritems(dict)"
Merge "Use import from six.moves to import the ConfigParser module"
Merge "Use import from six.moves to import the queue module"
Fix swift logserver prefixes.

Use the default logserver prefix from the config when we intend on using
the default logserver prefix.

Change layout logserver_prefix type in voluptuous from int to str.

Change-Id: Ie3fc837894519de9de89f569ac8e83167d5b4224
Make swiftclient an optional dependency

I can not use the switclient on my installation and need a way to
prevent the swiftclient import entirely.

The only usage of the swiftclient module is to establish a connection
which only happen if there is a [swift] section in the configuration.

Moving the import from the top of the file next to its only usage would
make sure my installs never has to get swiftclient installed.

Change-Id: Ie2ef84f86f9f57796a85758147ba87d8b22c3e55
dequeue abandoned changes

Whenever a change is abandoned, we should probably remove it from queues
and cancel all jobs.

Added a patchset to the getChangeRestoredEvent() event to match Gerrit.

Change-Id: I1e9c9985606c04def7cd37a1284b5addb7553354
Cleanup approval requirement testing

On further inspection, trigger requirements will still be required
for parts of the kind of pipeline construction that we are using in
OpenStack; the idea that they could be completely replaced by
pipeline requirements is incorrect.  To that end, un-deprecate
trigger requirements and cleanup the testing of both of them so that
each requirement is tested (relatively) independently.  A small
amount of requirement composition is also tested, though all possible
combinations (a lot!) are not.

Move this testing into a new file for organizational purposes.

Also, support multiple vote values (eg, "+1" or "+2") when requiring
an approval.

Change-Id: I683c9a574ced0e27ced59e62b8059fef2dfd8b20
Rename "filter" parameters

The word "filter" doesn't help very much with clarity and it's
sometimes confusing whether you need to use "username" or
"username_filter".  Just drop the filter suffix where it's used.

Tests are intentionally not altered in this change to verify
backwords compatibility.

Change-Id: I2edddad2e1f6ce4c86265de5f7a8cda1ebf436df
Drop use of "filter" in test layouts

Change-Id: Iec6e3be64c5d838a6f1cc5c37fd64c4abfdab8ea
Deprecate '_' in YAML

Mixing '-' and '_' for keywords in the same file can be confusing.
Deprecate remaining instances of '_' in favor of alternatives that
use '-'.

Change-Id: I1e8af0d5396dd24b45b024a2897f61f8745a8e1f
Log matching trigger/change filters

To aid in debugging configuration errors or perhaps bugs in the
filters themselves.  Will produce output like:

  2014-06-24 09:49:22,553 zuul.IndependentPipelineManager  DEBUG    Event <TriggerEvent comment-added org/project1 master 1,1 CRVW:2> for change <Change 0x7eff08059090 1,1> matched <EventFilter types: comment-added required_approvals: {'email': 'jenkins@example.com'}> in pipeline <IndependentPipelineManager trigger>

Change-Id: Iea5c14bf2532d854f6d3ad91de5e3e5537e8a431
Merge "dequeue abandoned changes"
Sphinx doc for zuul {promote,show}

The Zuul client documentation was missing entries for the promote and
show sub commands.

Change-Id: Ia5501886984c8be2f900389bd65c166e093d416d