Commit Graph

49198 Commits

Author SHA1 Message Date
Mehdi Abaakouk
82869f004e Fix rpm/deb packaging
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-17 12:32:38 +01:00
Mehdi Abaakouk
3c40524042 Remove old rados pybinding
Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-17 12:32:38 +01:00
Mehdi Abaakouk
9997b32d0b Cython Rados module
Notable changes:

* run_in_thread have disapeared
* timeout argument of some methods are ignored
* rados_create_write_op/rados_create_read_op returns WriteOp/ReadOp
  instead of the pointer address
* rados_monitor_log callback 'arg' arguments was broken in previous python
  binding (callback was called with the pointer address instead pointed object)
* object attributes that was pointer addresses are now private and not accessible in python

Some tests have been added to cover all methods

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-17 12:32:38 +01:00
Kefu Chai
22c6d3549e Merge pull request #7603 from roidayan/xio_fixes
Xio fixes

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-02-17 17:21:29 +08:00
Radoslaw Zarzynski
52b7f1d696 rgw: support system requests over Swift API.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-16 23:54:07 +01:00
Radoslaw Zarzynski
cd357b6a49 rgw: enable access to system arguments of RGWHTTPArgs.
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-02-16 23:54:07 +01:00
Mehdi Abaakouk
d3ac713d88 Move pybind rbd module into it own directory
To allow to create a autonomous rados module with cython.
We move the current librbdpy to the rbd sub directory.

Signed-off-by: Mehdi Abaakouk <sileht@redhat.com>
2016-02-16 18:41:09 +01:00
Kefu Chai
64c1d54354 Merge pull request #7520 from renhwsky/renhw-wip-mon-monitor
mon/monitor: some clean up

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-16 22:04:24 +08:00
Gregory Farnum
fd4d97c027 Merge pull request #7629 from ceph/wip-14750-op-timeouts
Objecter: detect laggy ops with objecter_timeout, not osd_timeout

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2016-02-15 20:39:55 -08:00
Gregory Farnum
0284090464 Merge pull request #7655 from gregsfortytwo/wip-metarequest-lock
client: removed unused Mutex from MetaRequest

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2016-02-15 20:36:47 -08:00
Gregory Farnum
42afb5b523 Merge pull request #7616 from gregsfortytwo/wip-timer-14697
mds: don't double-shutdown the timer when suiciding

Reviewed-by: John Spray <john.spray@redhat.com>
2016-02-15 20:35:32 -08:00
Gregory Farnum
da83441201 Merge pull request #7490 from x11562/mds_mdstype_ref
mds: function parameter 'df' should be passed by reference

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-02-15 20:34:43 -08:00
Dan Mick
9d2c786966 Merge pull request #7610 from dillaman/wip-bit-vector
common/bit_vector: use hard-coded value for block size

Reviewed-by: Dan Mick <dmick@redhat.com>
2016-02-15 17:07:39 -08:00
Josh Durgin
9d3e6dcb26 Merge pull request #7653 from dillaman/wip-librbd-race-conditions
librbd: several race conditions discovered under single CPU environment

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2016-02-15 15:25:28 -08:00
Orit Wasserman
bdb035ceff Merge pull request #7408 from ceph/wip-14549
rgw: don't use s->bucket for metadata api path entry

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-02-15 22:12:54 +01:00
Orit Wasserman
76e42f0968 Merge pull request #7633 from zaitcev/cleanup-various-1
rgw: cleanups to comments and messages

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2016-02-15 21:57:01 +01:00
Patrick Donnelly
edefcafb31
vstart.sh: clarify usage on single osd/mds/mon.
vstart.sh expects the literal string "osd"/"mds"/"mon". To me, it was confusing
as I interpreted the usage hint as an optional count for each daemon.

Signed-off-by: Patrick Donnelly <batrick@batbytes.com>
2016-02-15 14:09:45 -05:00
Jason Dillaman
84e9f3f190 librados_test_stub: watch_flush should block until notifies complete
It shouldn't block until all the acks are received as that is not
how librados handles the method.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-15 12:36:00 -05:00
Jason Dillaman
d898995b0e librbd: lock notifications should be executed outside librados thread
Otherwise it's possible that the notification will be blocked if
the librados AIO thread isn't available to invoke the notification
handler.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-15 12:35:22 -05:00
Jason Dillaman
7ae774b8e0 librbd: potential race on image close
If multiple states are pending, it's possible for an image to
be closed while the state lock is unlocked during the callback.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-15 12:35:22 -05:00
Jason Dillaman
f5dfebc026 librbd: potential deadlock during AIO image re-open
The AIO image open might complete under the librados AIO callback.
Attempting to close the old image handle under that thread will
deadlock under the new librados_test_stub flush handling.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-15 12:35:22 -05:00
Jason Dillaman
8756e808f5 librados_test_stub: ensure AIO callback is also flushed
There are sporadic librbd unit test failures due to the
mock being destroyed while an active librados_test_stub
AIO callback is completing.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-15 12:33:15 -05:00
Jason Dillaman
98fba627b3 Merge branch 'wip-commit_position-tests' of git://github.com/trociny/ceph
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-02-15 09:42:03 -05:00
Mykola Golub
a418182eb1 tests: librbd: commit position updated after journal replay
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-02-15 09:38:51 -05:00
Jason Dillaman
ba2e6ce46f common/bit_vector: use hard-coded value for block size
The CEPH_PAGE_SIZE is not actually a constant. On aarch64 platforms
the page size is 64K instead of the assumed 4K.  The CRC block
computations require a true constant.

Fixes: #14747
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-02-15 08:49:19 -05:00
Kefu Chai
9540769da4 Merge pull request #7646 from dachary/wip-ceph-disk-flake8
ceph-disk: flake8 fixes

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-15 15:19:56 +08:00
Loic Dachary
d476ff65d8 ceph-disk: flake8 fixes
Signed-off-by: Loic Dachary <loic@dachary.org>
2016-02-15 12:43:36 +07:00
Pete Zaitcev
678e2bbec0 rgw: cleanups to comments and messages
These are minor cleanups that do not affect the code in a
material way:
- Forgot to add --tenant to usage message
- Make the help slightly less misleading
- Fix a strange error message "could not add remove caps"
- Spelling in a comment
- The vstart.sh can be run with civetweb

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
2016-02-14 22:01:22 -07:00
Greg Farnum
1ce0c7719e client: removed unused Mutex from MetaRequest
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-02-12 16:06:20 -08:00
Yehuda Sadeh
5542c6e55e Merge pull request #7634 from ceph/rgw-nfs-5
nfs for rgw (Matt Benjamin, Orit Wasserman)

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-02-12 14:51:59 -08:00
Greg Farnum
892c1448c2 Objecter: detect laggy ops with objecter_timeout, not osd_timeout
Fixes: 14750

Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2016-02-12 14:35:26 -08:00
Sage Weil
a88076415d Merge pull request #7350 from ddiss/tracker14499_enotconn_rados_monitor_log
librados: check connection state in rados_monitor_log

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-12 15:45:37 -05:00
Sage Weil
56d3e94bed Merge pull request #7584 from ifed01/wip-14511
osd: fix lack of object unblock when flush fails

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-12 15:40:33 -05:00
Sage Weil
50b45ccfa8 Merge pull request #7593 from ifed01/wip-no-blockedpromote-return-fix
osd: fix return value from maybe_handle_cache_detail()

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-12 15:39:58 -05:00
Sage Weil
bd17b5f427 Merge pull request #7587 from cbodley/wip-pageset-align
osd: memstore: fix alignment of Page for test_pageset

Reviewed-by: Dan Mick <dmick@redhat.com>
2016-02-12 15:39:30 -05:00
Sage Weil
a00e835817 Merge pull request #7595 from liewegas/wip-hobject-stringify
osd: ghobject_t: use ! instead of @ as a separator
2016-02-12 15:38:18 -05:00
Sage Weil
9be30dbe9f Merge pull request #7596 from dachary/wip-erasure-code-corpus
tests: sync ceph-erasure-code-corpus for mktemp -d

Reviewed-by: Sage Weil <sage@redhat.com>
2016-02-12 15:37:31 -05:00
Sage Weil
eec65d035a Merge pull request #7608 from liewegas/wip-warnings
tests: fix a few build warnings

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-02-12 15:36:35 -05:00
Matt Benjamin
cb9cfb7291 librgw: fix rpm packaging
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 13:07:29 -05:00
Matt Benjamin
85e4febb17 librgw: fix new Debian control entries
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 13:07:28 -05:00
Matt Benjamin
e18c6890f9 librgw: remove junk files
Files accidentally added.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 13:07:27 -05:00
Matt Benjamin
5f0fcdba56 librgw: don't compare a string_ref with "" (use empty())
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 13:07:26 -05:00
Matt Benjamin
244ad79f6c librgw: fix boost::basic_string_ref template instantiation
The commit adding Seastar sstring.h replaced a part of the interface
which used an internal string-view type, with an equivalent using
basic_string_ref from Boost.  I relied on a default template argument
not present in older versions.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 13:07:25 -05:00
Matt Benjamin
de0f86691b librgw: add debian and rpm packaging
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 13:07:24 -05:00
Matt Benjamin
2f706ef084 librgw: consolidate S3 bucket name validation
There is more cleanup potential here, but it is intrusive, as the
validators for bucket and object names have been factored through
the handler inheritance hierarchy.

This change just deletes the S3 validate_bucket_name for now, as
that method was large.  The corresponding object name validator was
not defined in RGWHandler_REST_S3, so I've left it as is, for now.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 13:07:08 -05:00
Kefu Chai
7496dd9f0c Merge pull request #7626 from tchaikov/wip-fix-automake
Makefile: workaround an automake bug for "make check"

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-02-13 01:33:12 +08:00
Matt Benjamin
cfb8c81eee librgw: fix copyright in src/include/rados/rgw_file.h
This file originated at Red Hat.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 12:08:29 -05:00
Yehuda Sadeh
195185d403 librgw: initialize RGWLib pointer members
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 12:08:28 -05:00
Matt Benjamin
a293c529e6 librgw: remove slo, dlo, and supplied-md5 logic in RGWWriteRequest
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 12:08:27 -05:00
Matt Benjamin
3d7fa4f725 librgw: remove RGWLibRequest "magic" numbers added for debugging
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2016-02-12 12:08:26 -05:00