Fixes lp959670

Manually sets the content_type in the notification message body. This allows any
tools dependent on the content_type to function correctly.

Change-Id: I496c005b84df5f4aa2c18ab2b3a4ab136b840111
Avoid leaking secrets into config logging.

Fixes bug 962385

Configuration option values are logged when debug is enabled,
which is in turn exposed via the glance-logcapture nose plugin
when tests fail in Jenkins.

Allow options to be declared secret so that their value is
obfuscated before logging.

Also proposed to openstack-common as:

  https://review.openstack.org/5694

Change-Id: Ifdd1696f40c069f83c160afb0bf399da21796b8a
Set content_type for messages in Qpid notifier.

Fix bug 963050.

This patch is the Qpid equivalent for a patch that just went in for the
rabbit/kombu notifier.  Glance encodes the message in json format before
passing it in to the notifier.  Explicitly set the content type for the
messages to 'application/json'.

Change-Id: I2f83f51487541b951f3eca0ae4d160a64f5a3db1
Fixed db conn recovery issue. Fixes bug 954971.

This implementation wraps the db method calls and retries the method if an attempt failed due to db connectivity issues. Defines 2 new configuration parameters viz sql_max_retries and sql_retry_interval (values default to 10 and 1 respectively).
This implementation does not have any overhead in the normal case, as opposed to MySQLPingListener implementation, which does a 'select 1' query every time a connection is checkout from the pool.

Change-Id: I24240f22bca445b9ab76a1594631b5eaca393b4d
Send output of stty test cmd to stderr.

Send the output of the stty test for terminal size to stderr.

Fixes LP Bug #961820.

Change-Id: Ifc46632c9cf8bffb2dec7ef48f17157bf8ae1199
Support owner paramater to glance add

Fixes bug 962998

Allow the owner to specified as a first class image attribute
when creating a new image via the CLI, as it is currently for
image update.

Also added a simple fakeauth pipeline to allow the user, tenant
and admin status of API requests to be easily controlled by
functional tests.

Change-Id: I0f83d55d4a96ad3632fb238ad1758ec3f00ed3fd
Specify location when creating s3 bucket.

Fixes bug 961050

Avoids bucket creation failure when a region-specific S3 endpoint
(e.g. s3-eu-west-1.amazonaws.com) and also bucket create-on-demand
are configured.

Change-Id: Ieba9c535ccb961a1f81bd2632b5ac49c23ac7901
Use unique per-test S3 bucket name.

Addresses bug 955527

Avoids a race between the S3 testcase body and the bucket clean-out
in the S3 test teardown, running near concurrently in the Jenkins
python26 and python27 builds.

Change-Id: I10f013b02bb74db2cbfc692ed372121d21bca3fb
Merge "Avoid leaking secrets into config logging." into milestone-proposed
Merge "Set content_type for messages in Qpid notifier." into milestone-proposed
Merge "Fixes lp959670" into milestone-proposed
Merge "Send output of stty test cmd to stderr." into milestone-proposed
Allow yes-like values to be interpreted as bool

* Accept 'YES', 'yes', 'Y' and 'y'
* Remove duplicate function bool_from_header_value
* Fixes bug 965563

Change-Id: I593a50117fd339a8ab281a8daad734770ca9960c
Merge "Use unique per-test S3 bucket name." into milestone-proposed
Merge "Fixed db conn recovery issue. Fixes bug 954971." into milestone-proposed
Ensure functional db connection in configure_db()

During initial database setup, ensure we can physically connect
to the database and allow a failed connection to make use of the
new retry mechanism instead of registry startup failing outright.

Fixes lp bug #959426.

Change-Id: I1c87b19913c4204465e5d2027f2f184f0f358fd0
Merge "Support owner paramater to glance add" into milestone-proposed
Merge "Allow yes-like values to be interpreted as bool" into milestone-proposed
Merge "Ensure functional db connection in configure_db()" into milestone-proposed
Reject excessively long image names.

Fixes bug 966240

Image names longer than 255 characters are rejected with 400 BadRequest
on creation or update.

Change-Id: I460ffee547496829cbf198b50bca564978abe7f3