And add a magic to translate existing swift3 sysmeta to s3api sysmeta
at swift.common.middleware.s3api.response.Response to upgrade easy from swift3
to s3api.
Change-Id: I4c11274a69863be04fd2b1ca4c1d4d9aadbff2de
... in favor of just specifying an auth_uri (which *must* include a
version).
Note that this breaks from swift3, which needed to work with old configs
where version wasn't baked into the auth_uri.
Change-Id: Ie6af5764165adf69250373cd5f131bb140de13bc
This should NOT be an impact on upgrading because the request environ
key is prepared for each request. It's nice that s3api is in swift upstream
repo because we can resolve this issue with only ONE commit at once.
Change-Id: I87e964e2dd0c72d07f4f43b357bc7b0ee6cf4360
This patch changes the class and module name
from swift.common.middleware.s3api.request.Request
to swift.common.middleware.s3api.s3request.S3Request
And then, fix some broken issues related to the module name and path
change.
Change-Id: I00adc53e2f0f01b712c57b4572ed3ec51877fe49
The scripts in the dir was used to setup functional tests
but they will be never used in swift upstream so let's cleanup
those scripts.
The configs for ceph-s3-test would be useful to make non-voting
gate in the swift upstream, this patch moves them into doc/s3api/conf
dir that is not included source code tree, anyway.
Change-Id: I608ed3a620478bc4ab2fdd8901ea987e356298c9
auditor.py currently relies on POLICY[0] object_audit_location_generator()
to yield an AuditLocation for all policies on the object-server.
The changes in this patch are :
- object_audit_location_generator() yields AuditLocation only for the
requested policy
- audit_all_objects() calls object_audit_location_generator() for each
policy
Closes-Bug: 1534212
Change-Id: Ida92ba0a5e1e486a4f7132c6539460b38c34ec87
This is a following patch of [1]. In [1] comment, tim suggested
implementation for same behavior with less code.
This change implemented the suggestion. See [1] for more details.
[1]: https://review.openstack.org/#/c/547306/
Change-Id: Ifd8a0534fbdf41837977028c0c6ef99f1f6ac0f0
The parent patch did just mechanical translation from global
CONF instance to local self.conf in the controller.
This patch tries to pull the conf from Request instance that
is actually needn't, just set some variable should be fine to us.
Change-Id: I006145f1d4d70bf3e0ba6a1d4698e75c08cd004b
ObjectReplicator.collect_jobs() takes and correctly applies the
various overrides, so there's no need to check the returned jobs
against the overrides.
Change-Id: I2a59b26410d1732a5f2c8f1f32e397d77550860e
Unit tests using O_TMPFILE only rely on the kernel version to check
for the feature. This is wrong, as some filesystem, like tmpfs, doesn't
support O_TMPFILE.
So, instead of checking kernel version, this patch actually attempts to
open a file using O_TMPFILE and see if that's supported. If not, then
the test is skipped.
Change-Id: I5d652f1634b1ef940838573cfdd799ea17b8b572
This patch ports the form_signature cli `swift-form-signature`
and it's corrisponding tests to py3.
In essence in Py3 the HMAC function expects binary strings.
Change-Id: I5dded4ceb80f0cc595403775e8f9c17873e1e37b