Commit Graph

41 Commits

Author SHA1 Message Date
Casey Bodley
1e31479f64
Merge pull request #37956 from dorindabassey/example-notific
examples/boto3/README: examples notification

Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-12-08 08:51:04 -05:00
dorindabassey
cd6ce38a0f examples/boto3/README: examples notification
added examples on how to fetch attributes of a specific topic
add explanation on SNS signature version

Fixes: https://tracker.ceph.com/issues/46243

Signed-off-by: dorindabassey <dorindabassey@gmail.com>

Co-authored-by: Yuval Lifshitz <ylifshit@redhat.com>
2020-12-03 13:24:13 +02:00
Or Friedmann
706e077a79 rgw: send headers of quota settings
Make the quota settings visible to s3 and swift users
rgw send headers of quota settings

Fixes: https://tracker.ceph.com/issues/47752

Signed-off-by: Or Friedmann <ofriedma@redhat.com>
2020-10-15 18:54:47 +03:00
Mark Kogan
6251d2b6c1 rgw: add PUT and POST req support to data cache
facilitates the full usage of the Nginx cache endpoint
with s3 tools that support AWSv4
like s3cmd,aws-cli, benchmarking tools like hsbench
and also hadoop/s3a.

Co-authored-by: Or Friedmann <ofriedma@redhat.com>
Signed-off-by: Mark Kogan <mkogan@redhat.com>
2020-07-21 15:23:57 +03:00
ofriedma
d73b879ac1 rgw: fix nginx-rgw docs
Signed-off-by: Or Friedmann <ofriedma@redhat.com>

Signed-off-by: Mark Kogan <mkogan@redhat.com>
2020-06-01 12:24:19 +03:00
Or Friedmann
94c81f3094 rgw: create rgw-cache example directory
Signed-off-by: Or Friedmann <ofriedma@redhat.com>
2020-05-19 10:41:28 +03:00
Casey Bodley
3064f20220
Merge pull request #33063 from theanalyst/boto3-ext-append
examples: rgw: add boto3 append & get usage api extensions

Reviewed-by: Yuval Lifshitz <yuvalif@yahoo.com>
2020-02-28 09:31:14 -05:00
Abhishek Lekshmanan
c968f418de examples: add python source for append & get_usage_stats
Add some pythonic examples that can be reused

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-02-26 10:27:10 +01:00
Abhishek Lekshmanan
a80b72f38f eg: boto3 update doc urls to the latest
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-02-25 19:16:27 +01:00
Radoslaw Zarzynski
585c823720 examples/librados: fix bufferlist::copy() in hello_world.cc.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2020-02-04 22:34:14 +01:00
Abhishek Lekshmanan
dbdf49ec28 examples: boto3: support append object apiVersion
Put Object takes a `--append` `--append-position` params which allows for
appendable objects. Also PutObject api response has a AppendPosition output
which displays the next position to append to

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-02-04 15:29:28 +01:00
Abhishek Lekshmanan
1ca532d033 examples: rgw: add boto3 extensions for GetUsage S3 API
This allows for boto3 & aws cli to use the GetUsageStats api to get usage by a
user

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2020-02-04 15:28:07 +01:00
Yuval Lifshitz
d19474f3d7 rgw/pubsub: notification filtering by object tags
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-12-15 14:20:41 +02:00
Kefu Chai
f18903a66c test: s/rados_aio_create_completion/rados_aio_create_completion2/
the former is deprecated and replaced with the latter

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-11-01 17:27:20 +08:00
Yuval Lifshitz
bd017b2b12 rgw/examples: adding info on boto3 extensions to docs
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-10-14 20:38:13 +03:00
Yuval Lifshitz
fc5626d5cf rgw/examples: adding examples for boto3 extensions to AWS S3
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-10-02 11:04:53 +03:00
Yuval Lifshitz
b8b43fe59d allow for multiple "build" dirs to exist
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-09-06 09:38:32 +03:00
Jason Dillaman
65c8733b56 librados: revert librados3/libradoscc back to librados2
For backwards compatibility and upgrade reasons, the librados2
API needs to be preserved and it needs to continue to be compatible
with dependent libraries like librbd1.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-20 14:59:26 -05:00
Kefu Chai
2a6d98127d
Merge pull request #24939 from marcosps/simplify_examples
examples/librados: Remove not needed else clauses

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-11-28 13:04:07 +08:00
Kefu Chai
38f99bc7af examples/librados: link c++ samples against libradospp
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-08 06:52:44 -08:00
Marcos Paulo de Souza
9ff62fa66c examples/librados/hello_world.cc: Remove not needed else clause
If the 'if' clause ends executing a goto, there is no need for an else
clause that only prints a message about the success of the action.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2018-11-04 23:35:43 -02:00
Marcos Paulo de Souza
afaf91a9a1 examples/librados/hello_world_c: Remove not needed else clause
If the 'if' clause ends executing a goto, there is no need for an else
clause that only prints a message about the success of the action.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2018-11-04 22:53:29 -02:00
Ji You
1803671166 examples/Makefile: add -Wno-unused-parameter to avoid compile error
Signed-off-by: You Ji <youji@ebay.com>
2018-08-15 18:20:17 -07:00
Nathan Cutler
ed76f04c68 example/librados: remove dependency on Boost system library
109e6022be introduced "-lboost_system" into
example/librados/Makefile but the Boost system library is no longer required
to compile and link hello_world.cc.

Fixes: http://tracker.ceph.com/issues/25054
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-07-21 12:22:49 +02:00
Sage Weil
d4cc161566 cleanup: src/.libs -> build/lib
Clean up remaining traces of automake's .libs.  This makes unittest_*
tests easier to run by hand (mostly).

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-06 14:44:47 -06:00
Mahati Chamarthy
6e9b62b600 examples: add new librbd example
Adds a librbd example

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
2017-10-15 19:43:45 +05:30
Mahati Chamarthy
5b027155b4 examples: fix link order in librados example Makefile
The library link order in librados example Makefile is incorrect
and as a result 'make' throws an error. This change fixes the order.

Signed-off-by: Mahati Chamarthy <mahati.chamarthy@intel.com>
2017-09-25 19:20:58 +05:30
Alan Somers
3aae5ca6fd scripts: fix bash path in shebangs
/bin/bash is a Linuxism.  Other operating systems install bash to
different paths.  Use /usr/bin/env in shebangs to find bash.

Signed-off-by: Alan Somers <asomers@gmail.com>
2017-07-27 13:24:26 -06:00
Logan Blyth
89e36def22 Added libradosstriper example Signed-off-by: Logan Blyth <mrbojangles3@gmail.com> 2017-05-29 15:26:15 -04:00
Kefu Chai
bd36f13163 doc: fix the links to http://ceph.com/docs
they should point to http://docs.ceph.com/docs/master/.. instead

Fixes: http://tracker.ceph.com/issues/19090
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-03-15 16:40:07 +08:00
Jesse Williamson
109e6022be librados examples: link and include from current source tree by default.
Fixes #15100. The Makefile now by default links and includes from the
current source tree's librados and offers another option for building
examples against the system's.

Signed-off-by: Jesse Williamson <nerd.cpp@gmail.com>
2016-03-17 15:31:43 -07:00
youji
19d0a59c79 Fix Makefile in example/librados file.
Signed-off-by: You Ji <jiyou09@gmail.com>
2015-10-19 23:53:27 -07:00
Michal Jarzabek
2fea3a56a6 examples/librados/hello_world.cc:missing semicolon
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2015-09-26 14:45:22 +01:00
Brad Hubbard
26bcb362f4 Examples: hello_world.cc, content displayed after read is not null terminated.
Copy contents of bufferlist to a string before sending to stdout since a
bufferlist is not null terminated.

Fixes: #7822
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2015-09-15 18:58:44 +10:00
Jiaying Ren
ca285d4d57 Fix typos in librados example code
Signed-off-by: Jiaying Ren <mikulely@gmail.com>
2015-06-17 23:47:09 +08:00
Adam Crume
0f052f8cef rbd-replay: Convert prep-for-replay.py to rbd-replay-prep.cc
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-08-21 10:57:33 -07:00
Adam Crume
4c360ce9af rbd-replay: Fix examples/rbd-replay/replay
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-08-21 10:57:30 -07:00
Adam Crume
e7bf657e84 rbd-replay: Clean up prep-for-replay.py
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-08-21 10:57:30 -07:00
Adam Crume
4c4289c246 lttng: Add rbd-replay
Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-08-21 10:57:29 -07:00
Adam Crume
10a476adfa examples: Add example for the librados C API
Simply copied and modified the C++ API example.

Signed-off-by: Adam Crume <adamcrume@gmail.com>
2014-08-21 10:57:28 -07:00
Greg Farnum
823435ce65 examples: add a librados/hello_world program
This is a simple program with lots of explanatory comments people
can use as a model for using librados.

Signed-off-by: Greg Farnum <greg@inktank.com>
2013-08-19 14:55:09 -07:00