Change qpid_heartbeat default.

The default value of qpid_heartbeat of 5 seconds is unnecessarily
aggressive.  Change it to 60 seconds to reduce the possibility of
getting disconnected from qpidd under normal circumstances.

Fix bug 1050661.

Change-Id: I9525e74f96314c2c9183d6b10cf503936c81f589
Don't WARN if trying to add a scheme which exists.

Updates the register_scheme_map function in store/location.py so that
it registers new scheme maps only if they don't already exist.
Also, removes the warning message that was previously logged if
a duplicate entry was found. Since both Glance v1 and v2 controllers
attempt to register scheme's this seems reasonable and shouldn't cause
any problems with how things work.

This fixes an issue where Glance API logs always had warning messages
stating it was 'Overwriting scheme' information even though everything
is configured correctly.

Fixes LP Bug #1050711.

Change-Id: Ief539187f9c64a3b2de6d431b1e2ffc9e07e5c90
Merge "Don't WARN if trying to add a scheme which exists." into milestone-proposed
Fix scrubber start & not scrubbing when not daemon

1) Scrubber not starting
When the scrubber is run from the command line or via cron, it would try
to call it's app object which resulted in a TypeError.

2) Scrubber not scrubbing
In the same usage scenario as above, the delete jobs added to the
starmap are never started.  A slight delay is enough to start these.

Also add a functional test designed to excercise the scrubber when run
in "regular mode", which covers both these cases.  I've run the test
successfully with 1000 images, which should be enough to prove the
sleep(0.1) does the trick.

Fixes bug 1052537.

Change-Id: If29704d8a425194085b59b7dfd265ffaef16302c
Ensure glance-api application is "greened"

Fixes bug 1052640

Avoid unresponsiveness during long-lived I/O-bound operations by
ensuring that the standard socket libraries are monkey-patched in
all code-paths.

Change-Id: If672c26f2b462d1abcfc86e20256957f73f98fde
Merge "Fix scrubber start & not scrubbing when not daemon" into milestone-proposed
Enable multi-processing by default.

In realistic production environments, multi-processing is likely
to be enabled.

A default setting of one worker would allow the multi-processing
codepath to be followed by default, without changing the number
of processes actually servicing API requests (i.e. the single
parent process will just wait on the child).

For most functional tests, we continue to explicitly configure
zero workers, so as to avoid spawning twice as many glance-api
processes during a test run.

Change-Id: I1c327805f8fb975a3175e9a8b40aeddd21d5ef91
Update docs with modified workers default value.

The default value for the worker config option is now 1,
as opposed to 0.

Change-Id: I49f05b31415b3c641abe582f915fc9ead63e84ff
Add rabbit_durable_queues config option.

Fixes bug 1054183

Avoid AMQPChannelException: (406, "PRECONDITION_FAILED...") failures
due to a mismatch between the durability of rabbitmq exchange/queue
declared by glance and ceilometer.

Change-Id: I4e25986a1f503782e701aa1168c4eb231ff25d06
Ensure workers set to 0 for all functional tests

Fixes bug 1054388

Clear up a couple of cases where a functional test fired up a
wsgi.Server without explicitly setting the workers config option
to zero.

Change-Id: I5e2e8fe3c5d6e0c017d27074d35fd79b7dd7d79d
Merge "Ensure workers set to 0 for all functional tests" into milestone-proposed
Document api deployment configuration

This documents how to disable the v1 and v2 APIs. It also makes a note
about sql configuration on the glance-api node when the v2 API is
enabled.

Fixes bug 1054168

Change-Id: I4faa29f1b05d8831347febc261f7e47e49dfa09a
Don't access the net while building docs

(Note this hasn't been submitted upstream)

Change-Id: I42c6e3a5062db209a0abe00cebc04d383c79cbcb
(cherry picked from commit f2b4bb4e45afcc178200966193a7b87401c534d7)
improve DB auto-create suppression config presentation

Add the default option (matching upstream),
so that we can provide comments in the config file,
and also position the option close to related ones.