Fix various Pep8 1.5.4 errors

Pep8 1.5.4 fixes several bugs in visual indent and spaces
detection. Adjust the code accordingly so that it passes
once we try to upgrade.

Change-Id: I5691ffd29edcb32fdbacd9da7ca71bfcabeeffe5
Fixes spelling error in test name

Changes 'attribtues' to 'attributes' in the
'test_image_create_unknown_attributes' test.

Apologies in advance for the Zuul+Jenkins time this will waste.

Change-Id: I6b26d6efc6353461a36bc742055b906d328f34f1
Add rally performance gate job for glance

This patch is init setup of rally gate job.
After merging this everybody will be able to change
rally-scenarios/glance.yaml to run any benchmarks with any load in gates.

Change-Id: Ic5e58856ece15e4d130ccd1e0057917441b01728
Fixed a handful of typos

Change-Id: Ieae86b435f9d542e1308a8e1d7d0c5cea9c7d076
Prevent creation of http images with invalid URIs

Active images should always be ready to be downloaded, regardless
they're locally or remotely stored. This patch prevents images with
invalid location URIs from being created and entering the 'active'
state with no data. This is only for the HTTP store.

Closes-Bug: #1257273
Co-authored: Jon Bernard <jobernar@redhat.com>
Change-Id: Iffce79b654cabe8397c85b2cc50c4b7f59733ea5
Replace unicode() for six.text_type

To support Python3, unicode() calls has been replaced by
six.text_type.
Added utils.exception_to_str(): is the proper way to convert
an exception to string, since it manages logic related to
encoding.

Change-Id: I27101390e4f95e5c7690b1b445b7e75b8bcb9a08
Closes-Bug: #1284677
Ensures that task.message is of type unicode

It is likely that a task script might store the message in a format
which is not 'Text', like a json message. To ensure that we save the
task message in the appropriate format, we should typecast it.

partially implements bp async-glance-workers

Change-Id: I4eaebb75357d448d4ea458cd7fe5e4ac96b33ace
Use Chunked transfer encoding in the VMware store

Nova needs to upload streamOptimized disks to Glance. These
streamOptimized disks are converted/compressed on the fly by
vCenter. Consequently, it is not possible to know the size of
the Glance image before upload. Without specifying the size
or size zero, vCenter will reject the request (Broken Pipe).

This patch adds the Chunked transfer encoding which allows
to not specify a Content-Length header.

Change-Id: I579084460e7f61ab4042632d17ec0f045fa6f5af
Closes-Bug: #1313992
Merge "Replace unicode() for six.text_type"
Use safe way through "with" statement to work with files

It's unsafe to just open and write to file. Cause if something went wrong
during writing to file we won't close fd.

Change-Id: I924b8962b3e0c936f3a20260844178783feaf544
Removing duplicate entry from base_conf

Removing duplicate enable_v2_api entry.

Change-Id: Id1c531771810310887dbb5a6b8e6f0e4571547bf
Merge "Add rally performance gate job for glance"
Clean up openstack-common.conf

The issues are detected by new change about update.py
in I68c0108304be8a315bcefe939c22019caab9bc98. This patch
doesn't depend the oslo-incubator patch.
 * remove unused module eventlet_backdoor, service,
   threadgroup, loopingcall.
 * add missing module excutils, processutils inopenstack-common.conf

Change-Id: Ice2acb3ff73111858f5cf39e8fbdfb7db4b7c538
Merge "Fixed a handful of typos"
Use safe way through "with" statement to work with files

It's good practice to use with statement to work with files. This way files get
closed automatically at the end of the block. Fixed some cases, including some
where file wasn't closed after usage

Change-Id: I9399f2a2b7edb1cd5aa64782cd9f980f9233b827
fixed typos found by RETF rules in RST files

rules are avaialble at
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos

Change-Id: I725d3892d915bf880e62b8b11b97dcfc0a804a41
Merge "Fix various Pep8 1.5.4 errors"
Merge "Use safe way through "with" statement to work with files"
Merge "Clean up openstack-common.conf"
Remove all mostly untranslated PO files

We now only import PO files that are at least 75 % translated,
so we can delete now all other PO files. The patch only
removes the mostly untranslated files. Once a file becomes mostly
translated, the bot will import it again.

This removes all languages besides en_US.

Change-Id: Ib630d5e89ee6bca8b554110b2703cca85fb70c3b
Closes-Bug: #1317794