Gregory Farnum
3e9064cedb
Merge pull request #11026 from jcsp/wip-pg-files
...
tools/cephfs: add pg_files command
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-10-21 14:48:31 -07:00
Gregory Farnum
e677f0c243
Merge pull request #11456 from tchaikov/wip-17558
...
mon: send updated monmap to its subscribers
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-10-21 14:40:46 -07:00
Michal Jarzabek
333a07e8a9
mds/InoTable.h: add override to virtual functs
...
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-10-21 22:32:15 +01:00
Radoslaw Zarzynski
46a44646e8
rgw: make the ASIO front-end compilation optional.
...
This is because of versioning issues between Boost and Beast
on CentOS 7. It is intended that this patch will be reverted
after merging the in-tree Boost facility.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:23 +02:00
Radoslaw Zarzynski
3a9f50c55e
rgw: fix interface compliance of RGWCivetWeb::write_data().
...
This is a potential fix for partial writes and handling of error
codes that might come from mg_write() of the CivetWeb front-end.
None of the potential issues has been observed in testing.
The commit also documents the same aspects regarding the ASIO
and FastCGI front-ends.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
b3bbe206b7
rgw: document interfaces of the rgw::io namespace.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
d1c82762b6
rgw: don't use boost::string_ref::to_string() method.
...
The method has been introduced in Boost 1.54. However,
some systems we are targeting (like CentOS 7) offer
older version of the library.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
5da12f60d6
rgw: ONLY move rgw_client_io_decoimpl.h to rgw_client_io_filters.h.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
a33462f806
rgw: protect the {ACCOUNTING,AWS_AUTHv4,RESTFUL}_IO casts with assert.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
abccedc3bf
rgw: add support for dispatching requests with respect to frontend prefix.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
8b03f8773b
rgw: fix perfect forwarding of template arguments in IO filters.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
3e1a90d535
rgw: switch to size_t and exception in rgw::io::BasicClient::complete_request.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
908c073206
rgw: introduce AWS_AUTHv4_IO.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
758b251bc6
rgw: use filters over AsioConnection.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
d69a1f68bc
rgw: employ necessary filter over RGWFCGX frontend.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:22 +02:00
Radoslaw Zarzynski
27338a08b0
rgw: improve debugs in RGWAsioClientIO and AsioConnection.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
8c32686008
rgw: fix setting HTTP/0.0 in AsioConnection::write_bad_request.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
9f1713c9d4
rgw: fix off-by-one in RGWAsioClientIO::init_env.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
79923f4ddd
rgw: switch to namespaces and change naming in the frontend subsystem.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
f0285577d7
rgw: ONLY replace std::size_t with size_t.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
dad4d16a22
rgw: make RGWRestfulIOEngine::Exception alias to std::system_error.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
e524c586fd
rgw: rename and split STREAM_IO into RESTFUL_IO and ACCOUNTING_IO.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
6db8699f26
rgw: delegate transfer accounting to RGWRestfulIOAccountingEngine.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
8bb27bccdf
rgw: change naming based on RGWStreamIO in favor of RGWRestfulIO.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
16c2586083
rgw: remove the legacy, non-throwing variant of RGWStreamIO.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:21 +02:00
Radoslaw Zarzynski
4553c5b9f0
rgw: ONLY move RGWDecoratedStreamIO.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
e7f7f8054b
rgw: replace dump_pair() with dump_header_if_nonempty().
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
3c2afc6c0c
rgw: add control logic for chunked transfer encoding.
...
Needed for tempest.api.object_storage.test_object_slo.ObjectSloTest.test_delete_large_object.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
c71c652aef
rgw: rework quoting value of HTTP headers.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
ed2bf828cf
rgw: switch to RGWStreamIOEngine::{send,recv}_body().
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
1b28da378e
rgw: implement RGWStreamIOEngine::{send,recv}_body().
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
f04f4dc983
rgw: RGWStreamIOReorderingEngine understands send_header().
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
f3d43270af
rgw: drop RGWStreamIOFacade::print().
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
4787b53ad0
rgw: switch to RGWStreamIO::send_header().
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
d64c6041cb
rgw: implement RGWStreamIO[Engine]::send_header().
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
c82abe0e1a
rgw: ONLY reformat RGWFrontend and RGWCivetWebFrontend.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:20 +02:00
Radoslaw Zarzynski
cc777693b2
rgw: add support for exhibiting URL subtree over a specifc frontend instance.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
011a10ff91
rgw: switch to std::size_t in the front-end infrastructure.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
bbdcc620ef
rgw: handle errors via exceptions in RGWStreamIOEngine.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
0ae4e1360c
rgw: cleanup in the LoadGen frontend.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
8e73888e1d
rgw: port the LoadGen frontend to the new RGWStreamIOEngine infrastructure.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
299510263c
rgw: ONLY improve formatting in the FCGI frontend.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
ddf61a8d9a
rgw: port the FCGI frontend to the new RGWStreamIOEngine infrastructure.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
2825cc7c61
rgw: port the ASIO frontend to the new RGWStreamIOEngine infrastructure.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
1a8a0d798d
rgw: cleaning in the glue code for CivetWeb.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
e03cdd5271
rgw: switch out RGWCivetWeb to the new frontend infrastructure.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
e2bfd3e2a8
rgw: implement RGWStreamIOChunkingEngine.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
d54eb7e42c
rgw: implement RGWStreamIOReorderingEngine.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:19 +02:00
Radoslaw Zarzynski
c1780267ff
rgw: implement RGWStreamIOConLenControllingEngine.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:18 +02:00
Radoslaw Zarzynski
98907b187b
rgw: ONLY rename RGWMongooseFrontend to RGWCivetWebFrontend.
...
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-10-21 22:57:18 +02:00