3547 Commits

Author SHA1 Message Date
Jenkins
3d90db31e3 Merge "Bump python-swiftclient version" 2014-06-17 18:29:04 +00:00
Jenkins
64ae671f33 Merge "To fixes import error for run_tests.sh" 2014-06-17 11:44:09 +00:00
Jenkins
90f9bccd62 Merge "sync oslo incubator code" 2014-06-17 01:24:49 +00:00
pran1990
0435a7823b sync oslo incubator code
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
2014-06-16 13:52:11 -07:00
Jenkins
00bc84b052 Merge "Remove duplicated is_uuid_like() function" 2014-06-14 10:01:09 +00:00
Jenkins
9c87169c78 Merge "Add test for no_translate_debug_logs hacking check" 2014-06-10 10:15:28 +00:00
Jenkins
6b21961514 Merge "Add hacking checks" 2014-06-10 10:15:26 +00:00
Chris Buccella
a8151f1ba6 Add test for no_translate_debug_logs hacking check
Adds a test for this hacking check. Also update the code (G319).

Change-Id: I91996b94166f0e69ee4f5fc0b704118d59bfe841
2014-06-10 02:53:40 +00:00
Chris Buccella
3994eeb862 Add hacking checks
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
2014-06-10 02:06:56 +00:00
Jenkins
595e85bd80 Merge "replace dict.iteritems() with six.iteritems(dict)" 2014-06-10 01:37:06 +00:00
Jenkins
20b46b90ef Merge "make uploading an image as public admin only by default" 2014-06-09 23:08:09 +00:00
Christian Berendt
c8e1b8fc62 replace dict.iteritems() with six.iteritems(dict)
According to https://wiki.openstack.org/wiki/Python3 dict.iteritems()
should be replaced with six.iteritems(dict).

Change-Id: Id8a87cf2ba68b37507f9238a48e8a224612a7b90
2014-06-06 14:51:41 +00:00
Aaron Rosen
96169ab5a0 make uploading an image as public admin only by default
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
2014-06-03 05:47:24 -07:00
Christian Berendt
1069159701 remove default=None for config options
In the cfg module default=None is set as the default value.

Change-Id: Iad40a7bacef410e54d684cb438d4459f828f70df
Closes-Bug: #1323975
2014-05-28 08:52:34 +02:00
Jenkins
5f04cce154 Merge "Use Chunked transfer encoding in the VMware store" 2014-05-28 05:10:39 +00:00
Thomas Leaman
c93a7a22c0 Bump python-swiftclient version
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
2014-05-27 12:43:36 +00:00
Jenkins
0b1d28acdb Merge "TaskTest:test_fail() should use asserIstNone" 2014-05-26 04:55:46 +00:00
Jenkins
a426d3be76 Merge "Fixes spelling error in test name" 2014-05-26 04:47:38 +00:00
Jenkins
ebe31a0372 Merge "Removing duplicate entry from base_conf" 2014-05-26 04:47:35 +00:00
Jenkins
75fbece422 Merge "fixed typos found by RETF rules in RST files" 2014-05-26 04:00:10 +00:00
Jenkins
f8052db080 Merge "use /usr/bin/env python instead of /usr/bin/python" 2014-05-26 03:52:46 +00:00
Jenkins
10b3ccb71a Merge "debug level logs should not be translated" 2014-05-26 03:06:42 +00:00
Chris Buccella
4224161a71 TaskTest:test_fail() should use asserIstNone
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
2014-05-23 23:20:37 +00:00
Christian Berendt
86dd9ff66c debug level logs should not be translated
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
2014-05-23 15:57:06 +02:00
Christian Berendt
213b2f5006 use /usr/bin/env python instead of /usr/bin/python
The usage of /usr/bin/env ensures that the first interpreter
found in the environment's $PATH variable is used.

Change-Id: I61b27bb9a5fc1f8d2a3981472215bc0aa6a389e2
2014-05-23 15:45:46 +02:00
Andreas Jaeger
371533be00 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
2014-05-22 18:37:48 +02:00
Jenkins
edc4856e06 Merge "Clean up openstack-common.conf" 2014-05-21 17:54:44 +00:00
Jenkins
f7effe4a4f Merge "Use safe way through "with" statement to work with files" 2014-05-20 18:22:41 +00:00
Jenkins
b6fdfd3965 Merge "Fix various Pep8 1.5.4 errors" 2014-05-20 15:11:05 +00:00
Victor Sergeyev
750f4c777c Remove duplicated is_uuid_like() function
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
2014-05-20 11:58:42 +03:00
Christian Berendt
03a4d0aba1 fixed typos found by RETF rules in RST files
rules are avaialble at
https://en.wikipedia.org/wiki/Wikipedia:AutoWikiBrowser/Typos

Change-Id: I725d3892d915bf880e62b8b11b97dcfc0a804a41
2014-05-20 10:19:20 +02:00
pran1990
8774c4a2a1 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
2014-05-19 13:25:24 -07:00
Jenkins
e4c7c57813 Merge "Fixed a handful of typos" 2014-05-19 05:07:04 +00:00
ChangBo Guo(gcb)
c3ff558fc0 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
2014-05-15 10:27:17 +08:00
Jenkins
aed6b8f351 Merge "Add rally performance gate job for glance" 2014-05-14 23:23:27 +00:00
Erno Kuvaja
10d1bafa19 Removing duplicate entry from base_conf
Removing duplicate enable_v2_api entry.

Change-Id: Id1c531771810310887dbb5a6b8e6f0e4571547bf
2014-05-13 13:01:19 +00:00
Boris Pavlovic
503b1e54e2 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
2014-05-10 03:18:10 +04:00
Jenkins
3e48e354d3 Merge "Replace unicode() for six.text_type" 2014-05-08 16:54:23 +00:00
Arnaud Legendre
cb93eb60ab 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
2014-05-06 11:27:40 -07:00
Nikhil Komawar
fcfb5d04cd 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
2014-05-06 14:00:44 -04:00
Leandro I. Costantino
627d5fbc13 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
2014-05-05 15:40:02 -03:00
Jon Bernard
503be24afa 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
2014-05-05 10:01:38 +02:00
Alex Gaynor
69415fcec9 Fixed a handful of typos
Change-Id: Ieae86b435f9d542e1308a8e1d7d0c5cea9c7d076
2014-05-02 00:18:34 -07:00
Erno Kuvaja
ed816a214b Fixes installation of test-requirements
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
2014-05-01 13:43:26 +00:00
Sergey Skripnick
40ab559ab2 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
2014-05-01 01:58:26 +04:00
Zhi Yan Liu
95d81a0b03 To fixes import error for run_tests.sh
Change-Id: Iacce978001750c9cb8f398dba78361dee22ed2fb
Closes-bug: #1314007
Signed-off-by: Zhi Yan Liu <zhiyanl@cn.ibm.com>
2014-04-29 13:12:23 +08:00
Jenkins
7cffaaca0f Merge "Fixes "bad format" in replicator for valid hosts" 2014-04-28 07:02:51 +00:00
Jenkins
001dd0112e Merge "Uses None instead of mutables for function param defaults" 2014-04-22 00:25:54 +00:00
Jenkins
8c39691dff Merge "Configuration doc for VMware storage backend" 2014-04-20 18:53:14 +00:00
Jenkins
1ac9192e96 Merge "Enable H304 check" 2014-04-20 14:48:32 +00:00