Orit Wasserman
c074d52198
Update rgw_rest.cc
...
fix indentation.
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2017-05-04 12:29:22 +03:00
Radoslaw Zarzynski
66a17f787a
rgw: Browser Upload's primitives take bool output params as references.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:16 +02:00
Radoslaw Zarzynski
e338e157c3
rgw: FormPost returns 401 Unauthorized instead of 403 Forbidden.
...
This patch emerged because newer versions of Tempest became
more restrictive in the matter of FormPost's error handling.
Previously, Tempest was accepting both 403 Forbidden as well
as 401 Unauthorized as a response for signature mismatch or
expired form. Actually only the second one is acceptable for
tempest.api.object_storage.test_object_formpost_negative.*
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:16 +02:00
Radoslaw Zarzynski
791edf1067
rgw: fix error handling in RGWPostObj_ObjStore::read_with_boundary.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:16 +02:00
Radoslaw Zarzynski
a925324277
rgw: improve debug printing in browser upload of S3 and Swift.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:16 +02:00
Radoslaw Zarzynski
61550f3b91
rgw: Swift's FormPost does support per-file content types.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:16 +02:00
Radoslaw Zarzynski
8a46d071bc
rgw: RGWFormPost does support Swift's max_file_size parameter.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:16 +02:00
Radoslaw Zarzynski
2eea96a021
rgw: enforce presence of at least one file to upload in RGWFormPost.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:15 +02:00
Radoslaw Zarzynski
c6c0d92371
rgw: restrict the scope of RGWPostObj::data_pending.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:15 +02:00
Radoslaw Zarzynski
5fb6d9c500
rgw: add basic support for redirect in Swift's FormPost.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:15 +02:00
Radoslaw Zarzynski
c824e18e66
rgw: refactor the expiration checking in FormPost of Swift API.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:15 +02:00
Radoslaw Zarzynski
607b2baea5
rgw: implement form's signature verification in Swift's FormPost.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:15 +02:00
Radoslaw Zarzynski
b52ccce5db
rgw: add RGWPostObj_ObjStore::get_part_str method.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:15 +02:00
Radoslaw Zarzynski
e33913cdac
rgw: remove unused RGWPostObj_ObjStore::post_form_part::content_type.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:15 +02:00
Radoslaw Zarzynski
3439e5f8dc
rgw: strip the parts state from RGWPostObj_ObjStore.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:14 +02:00
Radoslaw Zarzynski
0e54086e18
rgw: add support for form expiration in Swift's FormPost.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:14 +02:00
Radoslaw Zarzynski
a44a2c2430
rgw: add support for object prefixes in Swift's FormPost.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:14 +02:00
Radoslaw Zarzynski
5e7dd8eccc
rgw: add an early, initial implementation of the Swift's FormPost middleware.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:14 +02:00
Radoslaw Zarzynski
fbac200c7e
rgw: make parse_boundary_params() static method of RGWPostObj_ObjStore.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:14 +02:00
Radoslaw Zarzynski
0d8c297bfb
rgw: clean-up the unnecessary RGWPostObj::boundary member.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:14 +02:00
Radoslaw Zarzynski
7aa1fbeec3
rgw: add RGWPostObj_ObjStore::get_params() to encapsulate boundary extraction.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:14 +02:00
Radoslaw Zarzynski
ae7d7859f5
rgw: make the RGWPostObj_ObjStore::post_form_part public due to rgw_crypt.cc.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:32:13 +02:00
Radoslaw Zarzynski
7844548ecd
rgw: accommodate the multipart-boundary parsing in RGWPostObj_ObjStore.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 17:21:04 +02:00
Radoslaw Zarzynski
593fb572ea
rgw: ONLY move the parts of RGWPostObj_ObjStore_S3 to RGWPostObj_ObjStore.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 13:09:44 +02:00
Radoslaw Zarzynski
5164d77ac1
rgw: RGWPostObj is able now to handle multiple files in single form.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 13:09:44 +02:00
Radoslaw Zarzynski
de58793234
rgw: ignore fields placed after "file" in S3's browser uploads.
...
Fixes: http://tracker.ceph.com/issues/17273
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2017-04-24 12:49:51 +02:00
John Spray
6fad8ccc24
Merge pull request #14575 from jcsp/wip-cephfs-suites
...
qa: Tidy up fs/ suite
Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-04-24 11:20:59 +01:00
John Spray
53477e4b05
qa: switch off btrfs for multimds and kcephfs
...
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:56 +01:00
John Spray
e8f8b4c83e
qa: update links for modified fs subsuite names
...
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:56 +01:00
John Spray
837a71c0af
qa/tasks/cephfs: clean up mount point setup
...
Previously were sometimes trying to maintain a mounted
client across a filesystem destroy/create.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:55 +01:00
John Spray
6369120d63
qa/suites: don't use btrfs for cephfs testing
...
This change happened a while back, but it got rolled back
when the generic objectstore/ dir had its filestore
entry split out into xfs and btrfs in 208675af
.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:55 +01:00
John Spray
b56fb50ef2
qa: remove unused fs/ dir
...
The objectstore/ dir is now selecting the backing fs.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:55 +01:00
John Spray
ea688a6d46
qa/suites/fs: more meaningful names for sub suites
...
The "recovery" sub suite was originally tests for
client/mds recovery in certain failure cases, it has
since grown to include lots of unit testing of
various features using CephFSTestCase.
The "basic" suite is now specifically just running workloads
now that I've moved out the smaller functional tests.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:55 +01:00
John Spray
0362d08121
qa/suites/fs: put simple functional tests together
...
Most of what's in basic/ is "workload" type testing
(i.e. a simple cluster cluster configuration and then
running a script inside the client), which gets
permuted in various ways. Move the simpler
functional tests out with the others like themselves.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:54 +01:00
John Spray
3e3b94783c
qa: don't permute object store for functional tests
...
These are unit tests for specific CephFS functionality,
it is gratuitous to repeat them with different underlying
RADOS object stores.
We retain coverage of XFS vs. bluestore in the workload tests.
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:54 +01:00
John Spray
16702ff13d
Merge pull request #14018 from jcsp/wip-17939
...
client: getattr before returning quota/layout xattrs
Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-04-24 11:12:26 +01:00
Brad Hubbard
3c257ef131
Merge pull request #14729 from joscollin/wip-cleanup-osdc-comparision
...
osdc: silence warning from `-Wsign-compare`
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-24 15:01:41 +10:00
Kefu Chai
a952f84bd1
Merge pull request #14711 from jcsp/wip-19738
...
mon: don't call propose_pending in prepare_update()
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-24 12:20:42 +08:00
Kefu Chai
1b94f34061
Merge pull request #14740 from petermaloney/master
...
doc: fix link that pointed to a nonexistent file
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-24 12:02:28 +08:00
Jos Collin
59fb7ae154
osdc: warning: comparison between signed and unsigned integer expressions
...
The following warning appears during make. Fixed the review comments too.
[ 28%] Building CXX object src/mds/CMakeFiles/mds.dir/__/osdc/Journaler.cc.o
./src/osdc/Journaler.cc: In member function ‘void Journaler::_do_flush(unsigned int)’:
./src/osdc/Journaler.cc:643:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (newlen < len) {
~~~~~~~^~~~~
Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-04-24 09:05:28 +05:30
Brad Hubbard
c4eb6915d1
Merge pull request #14705 from joscollin/wip-googletest-warning
...
test: warning: comparison between signed and unsigned integer expressions
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-04-24 11:49:10 +10:00
Sage Weil
b25b53ff03
Merge pull request #13898 from songbaisen/m5
...
osd: check fsid is normal before osd mkfs
Reviewed-by: Sage Weil <sage@redhat.com>
2017-04-23 15:49:28 -05:00
Sage Weil
d764b56822
Merge pull request #10893 from yonghengdexin735/wip-zzz-1
...
rados: check for negative return value of rados_create_with_context() as its comment put
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-23 15:47:58 -05:00
Sage Weil
0d368d2c85
Merge pull request #14442 from liewegas/wip-midkraken-upgrade
...
mon/OSDMonitor: tolerate upgrade from post-kraken dev cluster
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-23 15:47:28 -05:00
Peter Maloney
3c08894fe0
doc: fix link that pointed to a nonexistent file
...
commit d788bae60d
renamed config.rst to config-fcgi.rst
Reported-by: fusl in #ceph on irc.oftc.net
Signed-off-by: Peter Maloney <peter.maloney@brockmann-consult.de>
2017-04-23 20:33:03 +02:00
Mykola Golub
44cd43d579
Merge pull request #14712 from dillaman/wip-rbd-mirror-watch
...
rbd-mirror: remove tracking of image names from pool watcher
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-23 19:32:43 +03:00
Orit Wasserman
5de9a3ef77
Merge pull request #14722 from cbodley/wip-19746
...
radosgw-admin: warn that 'realm rename' does not update other clusters
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2017-04-23 19:09:57 +03:00
Kefu Chai
ac6f6d2c29
Merge pull request #14338 from aclamk/fix-fio-ceph-objectstore-lifetime
...
fio_ceph_objectstore: fixes improper write request data lifetime
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2017-04-23 22:40:40 +08:00
Casey Bodley
2b341bfd62
Merge pull request #14335 from hrchu/radosgw-admin-api-subuser
...
doc: rgw: Clean up create subuser parameters
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-04-22 11:49:05 -04:00
Haomai Wang
66e68b32db
Merge pull request #14707 from wjwithagen/wip-wjw-freebsd-kqueue-logging
...
msg: Increase loglevels on some messages
Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-04-22 11:46:48 +08:00