fc04dc1cf20335b7efe9548c5b5243fae0b5a620
Commit Graph

7717 Commits

This Branch
This Branch
All Branches
Author SHA1 Message Date
Thiago da Silva
fc04dc1cf2 Attempt to fix pep8
Test B109 was removed from bandit in release 1.5.0[1]
[1] - d93eed5492
Change-Id: I57ea610b924c2140b7572762c44cbc6510d0f549
2018年08月17日 14:23:18 +00:00
Zuul
cfc4f30d63 Merge "s3_acl: Require swift_owner authz to create buckets" 2018年08月16日 17:03:27 +00:00
Zuul
a41ca22f46 Merge "Fix the deletion of non-existent keys" 2018年08月15日 21:55:08 +00:00
Tim Burke
51b885b3b5 s3_acl: Require swift_owner authz to create buckets
Otherwise, users can create buckets in accounts they don't own.
Change-Id: I13d557c32b12529ef1087c52f7af302a33d33acb
2018年08月15日 12:56:33 +00:00
Zuul
75bfc79d2d Merge "Fix up test_static_web_pretend_to_be_giant_json" 2018年08月14日 23:46:35 +00:00
Zuul
d1675d0f54 Merge "Update saio sample config files" 2018年08月13日 21:26:29 +00:00
Tim Burke
bd640cdbae Fix the deletion of non-existent keys
On vanilla Swift, deleting an object that doesn't exist will 404.
On AWS, deleting a key that doesn't exist will either 404 if the bucket
doesn't exist (with a NoSuchBucket code) or 204 (because yep, that's not
accessible).
Change-Id: Ied2a78b56522316bb374f23961621641af3adc83
Related-Change: I6e154594dfda6c3065774c23b24f728625a842bc
2018年08月13日 14:19:23 -07:00
Tim Burke
5dca610e94 Fix up test_static_web_pretend_to_be_giant_json
It was actually testing the invalid-JSON handling before...
Change-Id: Ia8b5eaeb42fea5136525c80e67e8d33548c2a8df
2018年08月13日 20:58:13 +00:00
Zuul
53f9fd2b61 Merge "Stop holding on to sys.exc_info tuples quite so much" 2018年08月13日 20:47:28 +00:00
Thiago da Silva
0887f0985b Update saio sample config files
Added healthcheck middleware to account, container, object servers
Added the s3api, keymaster, encryption config to the proxy config
file to make it easy to enable it.
Change-Id: I96f120c5bc416e9aba388cbfa6c30b648d6ade2f
2018年08月13日 15:33:09 -04:00
Zuul
9b19df362f Merge "Disallow uploads with x-amz-tagging headers set" 2018年08月11日 01:42:06 +00:00
Zuul
18f6ce92f5 Merge "Disallow aws-chunked uploads" 2018年08月10日 19:59:35 +00:00
OpenStack Proposal Bot
03c1d61d21 Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html
Change-Id: I04d4c26b762ba3e1c540b0de95d293e77ad9add6
2018年08月09日 06:27:04 +00:00
Tim Burke
7895718ce9 Fix keymmaster_conf_section typo
Change-Id: I3bce1c4efeb3a3a7319020de76ba7f06015a5a36
2018年08月08日 17:06:17 +00:00
Christian Schwede
dcbdcb8f1c Disallow uploads with x-amz-tagging headers set
We don't support it yet, so return 501 Not Implemented.
Change-Id: Ie2f4bd1bfdb1bcbdf1a0f0db9d542b6057e9d2ec
2018年08月08日 04:57:32 -04:00
Zuul
7f7482c096 Merge "Move keymaster_config_path parsing out of _get_root_secret" 2018年08月08日 03:19:00 +00:00
Tim Burke
b9579404a2 Add probetests to gate jobs
...instead of just check jobs. While we're at it, drop the voting line;
it's voting by default.
Change-Id: I478a82bbac7ba19ed81aae1f5225ffc4e10fb2cb
2018年08月06日 22:52:49 +00:00
Tim Burke
79539eabf7 Disallow aws-chunked uploads
We don't support it yet, so return 501 Not Implemented. Previously, we'd
store the aws-chunked content (!) and most clients would see it as data
corruption.
See https://docs.aws.amazon.com/AmazonS3/latest/API/sigv4-streaming.html
for more information.
Change-Id: I697962039667980ef89212bc480f8b1d3fbd718c
2018年08月03日 19:30:01 +00:00
John Dickinson
86d78f6667 imported some docs from the old user-guide
These files are imported (and very lightly edited) from the old
ocata user-guide. It has a few other swift-related docs that seemed
more duplacative of what we already have, but these seem to fill
existing gaps in our docs.
Change-Id: Ib00bf6992327f15f271120dc5dbc86a4a235baec
2018年08月01日 15:17:42 -07:00
John Dickinson
6a2bd0f25d improve prefix/delimiter api docs
Change-Id: Ia420ac3f84284eab9d0a371e4d56be6e45994fae
2018年08月01日 03:10:02 +00:00
Tim Burke
6f920fd437 Add some reno artifacts to .gitignore
I don't see why running `python setup.py sdist` should leave me
with a dirty checkout.
Change-Id: Id932780c2e555b77a0066c70641684c0ddfdd79e
2018年07月30日 19:26:37 +00:00
Tim Burke
7fd5a12872 Stop holding on to sys.exc_info tuples quite so much
This used to be necessary on older eventlet, or you'd get TypeErrors
when you went to reraise. Following eventlet 0.13.0, however, it's just
extra code.
For the original eventlet issue, see
https://web.archive.org/web/20140823005223/https://bitbucket.org/eventlet/eventlet/issue/149/yield-in-except-clause-with-wilcard-raise
Change-Id: I19ad0968a82827bdd4ef75fde9ed51f193627d6e
Related-Bug: 1181146
2018年07月30日 17:57:11 +00:00
Tim Burke
3c92e3ce87 Move keymaster_config_path parsing out of _get_root_secret
Change-Id: Iddc0f333861b6c1f81e181f006cd592b5eb6ea17
2018年07月30日 16:51:24 +00:00
Zuul
d97673cf54 Merge "Define keymaster log routes on the class" 2018年07月30日 02:15:20 +00:00
Tim Burke
2f9bd85ae1 Define keymaster log routes on the class
... instead of having KmipKeyMaster instantiate its own logger
inside of _get_root_secret.
Bonus: KmsKeyMaster uses its own log route now.
Bonus bonus: get rid of KmsKeyMaster's pointlessly-overriden
__init__ method.
Change-Id: Idb4b832e5ca0e3d749fe2c0b7ba283447a4dc69e
2018年07月29日 01:57:08 +00:00
Doug Hellmann
ba8447e056 add lower-constraints job
Create a tox environment for running the unit tests against the lower
bounds of the dependencies.
Create a lower-constraints.txt to be used to enforce the lower bounds
in those tests.
Add openstack-tox-lower-constraints job to the zuul configuration.
See http://lists.openstack.org/pipermail/openstack-dev/2018-March/128352.html
for more details.
Change-Id: Iac4a202a1d723822d10f4d34a397eff9de3f2108
add the job in project-config:
Depends-On: https://review.openstack.org/555034
remove branch optimiazation in check and add swift exclusions (series):
Depends-On: https://review.openstack.org/560109
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
Co-Authored-By: Nguyen Hai <nguyentrihai93@gmail.com>
2018年07月27日 01:59:30 +00:00
Zuul
b15111abe7 Merge "Remove some unnecessary SkipTests" 2018年07月27日 00:49:11 +00:00
Zuul
cb011fe58b Merge "make probe tests voting in the gate" 2018年07月27日 00:42:10 +00:00
Zuul
9065d86e9d Merge "Remove contentdir hack" 2018年07月27日 00:17:04 +00:00
Thiago da Silva
84758d948c make probe tests voting in the gate
Change-Id: If8a77bb9de48890858b3de3b9297f6182c1cce05
2018年07月26日 06:35:58 +00:00
Zuul
a254d42963 Merge "Lower the required version of ipaddress" 2018年07月26日 06:31:56 +00:00
Tim Burke
c3d83bae38 Remove some unnecessary SkipTests
The @requires_acls decorator already checks for cluster_info["tempauth"]
Change-Id: I2c40fbea1fd799059dca6bfb82d5fed833991826
2018年07月25日 16:15:38 -07:00
Thiago da Silva
6a039903c6 Remove contentdir hack
Latest version of CentOS should not need this anymore
Change-Id: Ief83c39420cfb4509f16d4e357d704025b116134
2018年07月25日 18:08:10 -04:00
Zuul
00373dad61 Merge "Add keymaster to fetch root secret from KMIP service" 2018年07月25日 03:49:50 +00:00
Tim Burke
60f1d34048 Lower the required version of ipaddress
CentOS 7 distributes 1.0.16, and there is no real reason to avoid it.
Plus, in our probetests we apparently cannot avoid the system package.
Change-Id: I108ec2438dbc02f3e85f8da43e11ff4cdcfd1e4b
2018年07月24日 15:51:01 -07:00
Zuul
d398d60e5a Merge "py3: fix up some NameErrors" 2018年07月24日 19:22:43 +00:00
Zuul
89854250c3 Merge "Add fallocate_reserve to account and container servers." 2018年07月20日 08:42:51 +00:00
Samuel Merritt
8e651a2d3d Add fallocate_reserve to account and container servers.
The object server can be configured to leave a certain amount of disk
space free; default is 1%. This is useful in avoiding 100%-full
filesystems, as those can get Swift in a state where the filesystem is
too full to write tombstones, so you can't delete objects to free up
space.
When a cluster has accounts/containers and objects on the same disks,
then you can wind up with a 100%-full disk since account and container
servers don't respect fallocate_reserve. This commit makes account and
container servers respect fallocate_reserve so that disks shared
between account/container and object rings won't get 100% full.
When a disk's free space falls below the configured reserve, account
and container PUT, POST, and REPLICATE requests will fail with a 507
status code. These are the operations that can significantly increase
the disk space used by a given database.
I called the parameter "fallocate_reserve" for consistency with the
object server. No actual fallocate() call happens under Swift's
control in the account or container servers (sqlite3 might make such a
call, but it's out of our hands).
Change-Id: I083442eef14bf83c0ea717b1decb3e6b56dbf1d0
2018年07月18日 17:27:11 +10:00
Zuul
791009a6ff Merge "PUT+POST: break out putter specific test classes" 2018年07月17日 02:38:12 +00:00
Zuul
a21730348e Merge "Check other params preserved when slo_etag is extracted" 2018年07月12日 21:35:16 +00:00
Zuul
e47fd206e5 Merge "Add unittest for slo_etag" 2018年07月12日 18:48:52 +00:00
Alistair Coles
0cd42a2d33 Check other params preserved when slo_etag is extracted
Change-Id: Ie34ce2a33f2a642b97986fa28cf9db9e6da964d5
Related-Change: I67478923619b00ec1a37d56b6fec6a218453dafc
Related-Change: Ibaa630b5b4251cc4f821c01d3c09a8b8a6be342c
2018年07月12日 10:01:58 -05:00
Clay Gerrard
f8b9c24a1c Add unittest for slo_etag
Related-Change-Id: I67478923619b00ec1a37d56b6fec6a218453dafc
Change-Id: Ibaa630b5b4251cc4f821c01d3c09a8b8a6be342c
2018年07月12日 10:01:54 -05:00
Zuul
c991076a6e Merge "Include SLO ETag in container updates" 2018年07月12日 05:30:56 +00:00
Tim Burke
fa4c30de28 Include s3api schemas in sdists
Change-Id: I5b6b5c283a9e2533a2e753fe81ba429792e590cd
Closes-Bug: 1781297
2018年07月11日 16:56:28 -07:00
Tim Burke
c4c98eb64d Include SLO ETag in container updates
Container servers will store an etag like
 <MD5 of manifest on disk>; slo_etag=<MD5 on concatenated ETags>
which the SLO middleware will break out into separate
 "hash": "<MD5 of manifest on disk",
 "slo_etag": "\"<MD5 of concatenated ETags\"",
keys for JSON listings. Text and XML listings are unaffected.
If a middleware left of SLO already specified a container update
override, the slo_etag parameter will be appended. If the base header
value was blank, the MD5 of the manifest will be inserted.
SLOs that were created on previous versions of Swift will continue to
just have the MD5 of the manifest in container listings.
Closes-Bug: 1618573
Change-Id: I67478923619b00ec1a37d56b6fec6a218453dafc
2018年07月10日 15:41:29 -07:00
Zuul
1ab691f637 Merge "IP Range restrictions in temp urls" 2018年07月10日 04:28:16 +00:00
Nguyen Hai
4409da697f Update doc building instructions in Development Guidelines
Change-Id: Ifd2f468ad745d19ef474ae7503a8bd79d429fc1b
2018年07月06日 07:40:52 +00:00
Zuul
ec7d60ebd2 Merge "Add Alpine Linux suuprt to bindep" 2018年07月06日 03:10:40 +00:00
Ehud Kaldor
2f4f2dd78c Add Alpine Linux suuprt to bindep
This patch adds Alpine Linux (apk) entries to bindep.txt.
closes-bug: #1780163
Change-Id: Iff24a2b02b8927113d616a5af06331f1a1e31170
2018年07月05日 23:55:38 +00:00