Remove unused methods

o glance/common/utils.py:
  def add_features_to_http_headers(features, headers):

  This method was removed in the following commit.

    commit 76c3620c7effb15be577450c276db1e394c2de3e
    Author: Brian Waldon <bcwaldon@gmail.com>
    Date:   Fri Sep 7 17:21:34 2012 -0700

        Drop Glance Client

  In this case, it has been used only in the following test program.

  - glance/tests/unit/common/test_utils.py

o glance/tests/functional/__init__.py:    def reload_server(self,

  This method was removed in the following commit.

    commit 866cb846f5310e1ad36181e64e7d59ba54d9fd40
    Author: John Bresnahan <jbresnah@redhat.com>
    Date:   Fri May 3 10:50:42 2013 -1000

        Remove glance-control from the test suite

The following methods are not used(w/o tests), however, it can not be
deleted, added the comment.

o glance/common/location_strategy/__init__.py:
  def verify_location_strategy(conf=None,
      strategies=_available_strategies):

Change-Id: I50e3fdb6e929337b946e3534c8e7dbff77ac7998
Fix swift functional test

The swift functional test "test_delayed_delete_with_auth" was failing
with a permission error trying to write to /var/lib/glance.

Change the test's scrubber_datadir to be /tmp which is world writable.

Fixes bug 1291512.

Change-Id: I522c95619db26d009bd2ecb12fd02cb2eca56569
Do not use __builtin__ in python3

__builtin__ does not exist in Python 3, use
six.moves.builtins instead.

Change-Id: If7d2838b0b90ac2d82c4d62c6dfb3c011f937a0b
closes-bug: #1290234
Provide explicit image create value for test_image_paginate case

Assign an explicit created_at datetime value to image db fixtures,
it be used to fixes race condition in DB driver test_image_paginate
case.

Closes-Bug: #1282400
Change-Id: I359633af4bb25cf1866b42d6dad3df658995b7bd
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
Enable H304 check

Enable H304: no relative imports

Fix import in tools/install_venv.py

Change-Id: I099ed65db9b42223eaa4b66a3a5c6113d1cc56fe
When re-raising exceptions, use save_and_reraise

In some cases the exception context can be cleared,
resulting in None being attempted to be re-raised after
an exception handler is run.

Change-Id: I16811ba8f0bfaa15199a648748bbc7d7a6a500bc
Partial-Bug:#1281453
Do not set Location header on HTTP/OK (200) responses

Previously v1 API was setting 'Location' header on responses that
did not require it.  The is incompatible with RFC-2616 §14.30, and
causes some webstacks to convert the 200 response to 302 Found.
This had the consequence of forcing a redirect loop in glance
client.

This patch removes 3 superfluous 'Location' header additions in
the v1 image API.

Change-Id: Ic971ec356f80dff5a9e6f2f16d242a06341a142f
Closes-bug: 1299095
Signed-off-by: Dave Walker (Daviey) <email@daviey.com>
Fix deprecation warning in test_multiprocessing

tests/functional/v1/test_multiprocessing uses psutil to get a list of
processes. The Processor class now uses children() instead of
get_children(); update the test with the current call to eliminate
the deprecation warning.

Change-Id: I83a6bb72b5282d3ab2a3b8e338ee3dc8668d2d53
Open Juno development

Bump preversion to 2014.2 to formally open Juno development.
The Icehouse release branch (milestone-proposed) will be cut
from the last commit before this one.

Change-Id: I8fe4b32d60fb7c32e80258f60e2c843b76eb4115
Merge "Open Juno development"
Fixed the pydev error message

Fixed the incorrect config parameter name in
the error message. pydev_worker_debug_host should
be used instead of pydev_worker_debug_port

Change-Id: I2e28474b591f5851623015fc0fb118b8cf254a16
Merge "Do not set Location header on HTTP/OK (200) responses"
Merge "Do not use __builtin__ in python3"
Merge "When re-raising exceptions, use save_and_reraise"
Fix Jenkins translation jobs

The job glance-propose-translation-update
does not update from
transifex since our po files contain duplicate entries where
obsolete entries duplicate normal entries.

Remove all obsolete entries to fix the job.

Add test to pep8 that checks that no new breakages get
introduced.

Change-Id: I1bae1c1bf27bf664b24cf75fc96efb0fcfddc392
Closes-Bug: #1299349
Merge "Fixed the pydev error message"
Catch loading failures if transport_url is not set

The current implementation always tries to get a transport from
oslo.messaging assuming the transport_url option has been set. This is
done to keep backwards compatibility. However, since the default
`rpc_backend` is rabbit, it'll always try to load such driver. The
problem raises when `kombu` is not installed and the `notifier_strategy`
is set to qpid. This will make glance-api fail because it'll try to load
the rabbit driver *before* loading the qpid one.

This patch puts the first load attempt in a try / except block. The
error caught (if any) will be re-raised *just* if transport_url has been
configured, otherwise it'll move forward and try to load the notifier
driver using the old configuration options.

The patch also removes an obsolete test.

Change-Id: I00e653704463ea8245e2960050e0d5e6839f278a
Closes-bug: #1302661
Configuration doc for VMware storage backend

The documentation in configuring.rst needs to be populated
for the VMware datastore storage backend.

docImpact

Change-Id: I2064292867e12e699ca0a8ebba6c11f9de3591a5
Closes-Bug: #1275040
Merge "Catch loading failures if transport_url is not set"
Do not allow HEAD images/detail

Currently, a HEAD images/detail request goes through the images/{id}
route which leads to a 500 response status.
This HEAD method should be handled separetely in order to return a
405 Method Not Allowed response and suggest GET as an allowed method.

Change-Id: Ic83e819189bcff7c4735af476217a9ed1e4f41b8
Closes-Bug: #1297358