Code was added in oslo incubator to allow configuring tcp keepalive[0]. Syncing
glance to pull in this changes so we can use that function to set keepalive
[0] https://review.openstack.org/#/c/90870/
Changes are
gettextutils.py
9912e5d Add API for creating translation functions
6cc96d0 Fix test_gettextutils on Python 3
fd33d1e Fix gettextutil.Message handling of deep copy failures
047b2e4 Change lazy translation to retain complete dict
importutils.py
885828a Deleted duplicated method in cliutils.
log.py
edd73c9 Merge "Improve help strings"
network_utils.py
e433899 Enable configuring tcp keepalive
162e850 Remove import workaround of SplitResult
timeutils.py
d815087 Merge "Fix spelling errors in comments"
Head in oslo incubator is
=================================================
commit 8ce44b1d8b57532d6178137aabaa77cbb8e1bae7
Merge: 933bf04 e53e815
Author: Jenkins <jenkins@review.openstack.org>
Merge "Add mailmap entry"
=================================================
Change-Id: Icc42b43ec6d059616bf921a56a092fae16d4a107
There have been a handful of changes recently to fix stylistic bugs
in the unit tests (example: If41a7). The changes themselves were fine,
but there are two problems:
1) The stylistic changes they made were not listed in HACKING.rst
2) They were one-time changes; the rules that were violated will
continue to be violated.
This change updates HACKING.rst to include a few of the stylistic
rules that have been fixed recently, and adds checks to ensure that
they will be enforced going forward. This is based on nova's hacking
checks.
Change-Id: Ic115342605c472f3a5d255aa570ecb60175ca087
According to https://wiki.openstack.org/wiki/Python3 dict.iteritems()
should be replaced with six.iteritems(dict).
Change-Id: Id8a87cf2ba68b37507f9238a48e8a224612a7b90
Uploading an image with --is-public=True should by default only be allowed
by an admin tenant. Allowing anyone to upload an image as is_public is likely
a security concern. This changes the previous default behavior glance had
of allowing anyone to upload an image as is_public previously by default.
DocImpact
Closes-bug: 1317314
Change-Id: I60d2257115e9207e09b50d9f950076b7fe8237d7
https://review.openstack.org/#/c/69187/ introduced SSL certificate checking
in python-swiftclient (released as v2.0). This patch ensures that the version
of swiftclient used will verify SSL certificates correctly.
This patch also documents the `swift_store_auth_insecure` configuration
option for bypassing the cert verification
DocImpact
SecurityImpact
Change-Id: I20ddab5c3359071daf7505268c72331e4c786987
test_fail() in the TasksTest class of tests/unit/test_domain.py uses
assertEqual when testing for None; assertIsNone is more appropriate
here.
This is the kind of thing that would be automatically picked up
by change Ic115342605c472f3a5d255aa570ecb60175ca087
Change-Id: I900334182f056f8b3656339b5bad0b60b334e7dd
According to the OpenStack translation policy available at
https://wiki.openstack.org/wiki/LoggingStandards debug messages
should not be translated. Like mentioned in several changes in
Nova by garyk this is to help prioritize log translation.
This patch adds a new hacking check - N319 - that ensures all
debug log messages don't have translations.
Change-Id: I9dd958b904671a7eb95883026e14684469dc52d5
Closes-Bug: #1317847
The usage of /usr/bin/env ensures that the first interpreter
found in the environment's $PATH variable is used.
Change-Id: I61b27bb9a5fc1f8d2a3981472215bc0aa6a389e2
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
Function is_uuid_like() declared in glance.cmd.replicator and
glance.common.utils modules. These functions are similar, so we can
use only one of them
Change-Id: If9a35df8d1189d126033404faa7167c0b0cc4d44
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
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
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
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
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
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
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
pip install fails because the "-f http...pysendfile.2.0.0.tar.gz"
returns 404. pip will install pysendfile 2.0.0 without defining
the url.
Ref: http://code.google.com/p/pysendfile/issues/detail?id=20&can=1
Closes bug 1314968
Change-Id: I15baf378b37841f8abb21294efebe2dee95077c3
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