Prep tox config for jenkins builds.

Change-Id: Id81588d3a2aabc0931d5bf12f078d8f770305e69
Blueprint cli-auth: common cli args

Add OS_USERNAME, OS_PASSWORD, OS_TENANT_NAME and OS_TOKEN support
to glance client binary.

Fixes lp923936

Change-Id: I9339b169eadbe198e6ed183cf1aeb42b99f3a7d9
Respawn glance services on unexpected death.

Fixes bug 923894

Add new '--respawn' option to cause glance services launched via
glance-control to be monitored for unexpected death and resuscitated
as necessary.

This option will cause glance-control itself to remain running.

Deliberately stopped services are not respawned, neither are rapidly
bouncing services (where process death occurred within one second
of the last launch).

Change-Id: I1a9a99cce9b6ad43274836e39ebe4f29c19455af
Merge "Blueprint cli-auth: common cli args"
Use sendfile() for zero-copy of uploaded images.

Implements bp support-sendfile

Avoid needless client-side copying through userspace of uploaded
image file content, using pysendfile to wrap the sendfile() system
call instead of reading the file one chunk at a time.

The existing iterator pattern is maintained for consistency and
to allow send progress to be followed by wrapping the iteration.

The performance gain only applies to the client-->glance API service
leg, so whether the overall speed-up is noticeable depends on the
image store in use. For example, it would be imperceptible with a
storage backend showing relatively high PUT latency, such as S3,
as the blocking Store.add() call would dominate.

At the other extreme, uploading large images via the loopback to
file-based store is about 60% faster. Detailed performance figures
for more realistic scenarios to follow when hardware is available
for benchmarking.

Change-Id: Ia8c74e76d3d6c63e9a9b38ab455a4e6edb47fba9
Merge "Respawn glance services on unexpected death."
Make Glance work with SQLAlchemy 0.7

Fix execption caught during tests
Fix test failure wiping out engine in use

Fixes bug 892754

Change-Id: I9de6f077af656730c95bc715c2b765b0c49c7d3c
Force auth_strategy=keystone if --auth_url or OS_AUTH_URL is set

Change-Id: I316f501ffbad1f182a7c1f6a18641c608c0f2ea8
Don't fail response if caching failed

Fixes bug 929762

Change-Id: I90761b69cc556b14fd4bdb931541804244b653e8
Include glance/tests/etc

Fixes bug 930344

Change-Id: I277185a8b62d982dad597a3ac878608ce5e0de5c
Signed-off-by: Chuck Short <chuck.short@canonical.com>
Merge "Force auth_strategy=keystone if --auth_url or OS_AUTH_URL is set"
Merge "Include glance/tests/etc"
Implement blueprint add-qpid-support.

This patch implements a new notification strategy that sends
notifications to a message queue via Qpid.

Change-Id: Ie2640139dcf735e428af63e9e87b3667a2b22eb5
Update Authors file

Change-Id: I0a49cfb901c2b4733b27b663c2116182f651fdef
Merge "Implement blueprint add-qpid-support."
Fix pep8 error

Fixes bug #930536

Change-Id: I17afbd17e5df3ac44e59b8b8d194d48da508e5d2
Add a generic tox build environment.

Allow for the running of arbitrary commands inside of a venv
so that we don't have to make tox envs for every blessed thing we want to
do.

Change-Id: Ia6f9e3cbeaef27ffe1e60b424c2a2d384e6bad0b
New -k/--insecure command line option

Fix for bug 929591.

Change glance to require server certificate validation
by default when using https. The standard system
CA file will be used if available (and an alternative was not
provided).

The --insecure option can be used by clients to skip server
certificate validation if appropriate.

* This change will impact Nova clients accessing glance over https.
  If the standard CA file is not suitable they will need to provide
  a CA file or else create an 'insecure' glance client.
* Accesses to a https registry server must now perform server
  certificate validation.
* If the package which provides the standard
  system CA file is installed then that file will be used by default.
  It probably makes sense for the glance package to have a
  dependency on whichever package provides the default CA bundle.
  (In Ubuntu this is 'ca-certificates')

Change-Id: I7c83361ba0881559ec77d4baf10dfeb5b8e32185
Ensure sane chunk size when pysendfile unavailable.

Fixes lp 932183

Previously, small and erratically-sized HTTP chunks were sent
when pysendfile was unsupported on a particulat platform.

Now, non-terminal chunks will be of size 64k as long data is
available.

Change-Id: Ic26e4d701ad22a21f06d7142f6ce91583acb5816
Merge "Add a generic tox build environment."