Commit Graph

48109 Commits

Author SHA1 Message Date
Loic Dachary
acd4314cf3 Merge pull request #7284 from ceph/wip-make-remove-libedit
makefile: remove libedit from libclient.la

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-01-25 13:15:48 +07:00
Xinze Chi
da6d696599 osd: delete useless bytes_written defined in RepModify
this would avoid calling encode function.

Signed-off-by: Xinze Chi <xinze@xsky.com>
2016-01-23 10:33:25 +08:00
Yehuda Sadeh
eea2689b9e Merge pull request #7301 from oritwas/wip-14375
rgw: fix subuser rm command failure

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-01-22 13:33:26 -08:00
Douglas Fuller
2aa0f318c8 rbd: remove canceled tasks from timer thread
When canceling scheduled tasks using the timer thread, TaskFinisher::cancel
does not call SafeTimer::cancel_event, so events fire anyway. Add this call.

Fixes: #14476
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
2016-01-22 11:23:45 -08:00
John Wilkins
45a234de47 Merge pull request #7327 from igrcic/master
doc: Fixes a CRUSH map step take argument

Reviewed-by: John Wilkins <jowilkin@redhat.com>
2016-01-22 11:09:38 -08:00
Ivan Grcic
5003770fd8 doc: Fixes a CRUSH map step take argument
Signed-off-by: Ivan Grcic <igrcic@gmail.com>
2016-01-22 18:59:11 +01:00
Casey Bodley
7f44acf72f os: add custom move ctor/assignment for Transaction
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-01-22 11:02:34 -05:00
Casey Bodley
fd33668aba os: add custom move ctor/assignment for TransactionData
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-01-22 11:02:34 -05:00
Casey Bodley
496605c5b6 os: Transaction sets default values to avoid duplication in ctors
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-01-22 11:02:34 -05:00
Casey Bodley
78cfe67449 os: move Transaction ctors closer to member variables
this makes it easier to update constructors when adding/removing fields

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-01-22 11:02:34 -05:00
Casey Bodley
9e37a87ac4 test: add unit test for Transaction move/copy
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2016-01-22 11:02:30 -05:00
Vikhyat Umrao
c00945eb8b cleanup: remove obsolete option "filestore_xattr_use_omap"
This patch does cleanup for option "filestore_xattr_use_omap",
as this option was removed in #7408.

Fixes: #14356
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
2016-01-22 18:01:09 +05:30
Mykola Golub
fe4e18026d rbd-replay: async open/close calls support
It still uses sync open/close in replay, which can be improved later.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-01-22 11:53:58 +02:00
Haomai Wang
19c39faead KeyValueStore: Kill this
Signed-off-by: Haomai Wang <haomai@xsky.com>
2016-01-22 11:15:10 +08:00
Ji Chen
4524708d79 test/cls :clean useless pools
After do ./ceph_test_cls_log ,pools remains
need be destroyed.

Signed-off-by: Ji Chen <insomnia@139.com>
2016-01-22 09:51:42 +08:00
Pete Zaitcev
82f28a8fe3 rgw: fix up the use of tenant before it's available
A big problem that cropped up with the multi-tenancy as it
went in was that it used tenant to initialize bucket names
before tenant was actually available by parsing a token.
Thus, although multi-tenancy worked, accessing anything across
tenants was actually impossible. This patch fixes that oversight.
Unfortunately, a new method postauth_init() was needed for it.

We also fix small bugs:

 - validate_tenant_name() used a proper-looking C++ but was
   incorrect. We simply use C for now, which may be not as
   pretty but is correct.

 - We now make a distinction between empty tenant syntax that
   means "the logged-in tenant" ("bucket") and the syntax
   that means "the legacy compatibility tenant with no name
   (":bucket").

 - We make rgw_make_bucket_entry_name() more robust against
   empty inputs. It's not used for work, but produces odd-looking
   debugging logs.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
2016-01-21 18:27:20 -07:00
Yehuda Sadeh
056a10cca2 rgw: add a configurable to enable/disable static website
rgw_enable_static_website

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-01-21 16:35:29 -08:00
Yehuda Sadeh
f55fe9f4c2 rgw: fix null dereference
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-01-21 16:09:23 -08:00
Yehuda Sadeh
d71b70033b rgw: don't abort on op_ret < 0
We'll later have op->execute() return a status

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
2016-01-21 16:08:51 -08:00
Yehuda Sadeh
67e3d95135 Merge pull request #7317 from dmick/master
configure.ac: make "--with-librocksdb-static" default to 'check'

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2016-01-21 15:38:05 -08:00
Dan Mick
269c61a667 configure.ac: make "--with-librocksdb-static" default to 'check'
Fixes: #14463
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2016-01-21 15:31:47 -08:00
Matt Benjamin
f27e9c4c26 rgw: the big op_ret change
Move protected "int ret" member from immediate descendants of
RGWOp to a RGWOp, renamed to "int op_ret."

The new member can be accessed (via get_ret()) after the op has run,
which solves the problem of propagating the last error code reliably
to the executor.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>

Conflicts:
	src/rgw/rgw_op.cc
	src/rgw/rgw_op.h
	src/rgw/rgw_rest_swift.cc
2016-01-21 15:16:17 -08:00
Mykola Golub
458d8e59cf librbd: API: async open and close
Fixes: #14264
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-01-21 22:06:34 +02:00
Kefu Chai
3ebb584b71 librbd: fixed "hidden" virtual methods
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-21 09:40:26 -08:00
Kefu Chai
674fe18ded cmake: let ceph-client-debug link with tcmalloc
to fix the link problem of
libcephfs.so.1.0.0: undefined reference to `IsHeapProfilerRunning'
when tcmalloc is used and profiler header is detected.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-22 01:37:58 +08:00
Kefu Chai
c74eeb53f3 test/objectstore: fix unused variable warnings
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-21 09:37:58 -08:00
Sage Weil
b86c40b12e include/[btree_]interval_set: drop useless assert
This mirrors the condition above.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-21 11:00:29 -05:00
Sage Weil
9cafe6073b include/[btree_]interval_set: use std::swap
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-21 10:59:35 -05:00
Sage Weil
7ccd1d2649 os/bluestore/FreelistManager: use btree_map::erase return value
The btree_map erase() returns an iterator for the next element.
Perfect!

Reported-by: Igor Fedotov <ifedotov@mirantis.com>
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-21 10:58:01 -05:00
Jason Dillaman
93ad14d501 Merge pull request #7310 from trociny/fix-rbd-replay-eof
rbd-replay: handle EOF gracefully

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-01-21 09:05:31 -05:00
Mykola Golub
c59b84c3e2 rbd-replay: handle EOF gracefully
Fixes: #14452
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2016-01-21 15:59:17 +02:00
Kefu Chai
3b5e718479 Merge pull request #7292 from tchaikov/wip-submittingpatches
doc: revise SubmittingPatches

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2016-01-21 21:10:53 +08:00
Kefu Chai
4124e1df1f Merge pull request #7263 from theanalyst/vstart/update-opts
vstart: update help with a few more commandline opts

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-01-21 21:01:07 +08:00
Abhishek Lekshmanan
5793df4cdf doc: vstart update a few commandline switches
Add a few more available commandline switches to vstart quickstart
documentation

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2016-01-21 13:53:50 +01:00
Loic Dachary
1b4ea9bc49 Merge pull request #7240 from cxwshawn/org-fix
organizationmap: modify org mail info.

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
2016-01-21 19:46:14 +07:00
Kefu Chai
4d00a1418e SubmittingPatches: rebase to resolve conflicts
pull request is not supposed to contain merge commits

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-21 13:12:48 +08:00
Kefu Chai
a2c1b53684 SubmittingPatches: sending kernel patches to mailing list
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-21 13:12:48 +08:00
Kefu Chai
18409a897b SubmittingPatches: add doc for commit title
explain that we need a prefix in the commit title

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-21 13:12:48 +08:00
Kefu Chai
dbabbd03b7 SubmittingPatches: add doc for "Fixes:" tag
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-21 12:27:54 +08:00
Kefu Chai
2b5588a1a8 SubmittingPatches: update with reST syntax
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-01-21 12:27:54 +08:00
Sage Weil
d4b8a00e73 Merge pull request #7293 from xiexingguo/xxg-wip-14436
os/bluestore: fix assert

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-20 20:36:53 -05:00
Sage Weil
03e01ae263 init-ceph: pass TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES through
..when set in the sysconfig/default file.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-20 18:36:08 -05:00
Sage Weil
222488a5e2 Merge pull request #7197 from ceph/wip-kill-warnings
build: fix warnings

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-01-20 18:16:55 -05:00
Sage Weil
73769f610b Merge pull request #7232 from lzhng2000/master
cls/cls_rbd: pass string by reference

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-01-20 18:16:17 -05:00
Sage Weil
660b9d78b3 Merge pull request #7242 from xiexingguo/xxg-wip-14370
os/memstore: drain finisher first before we really begin a umount-process
os/bluestore: drain wal_wq on replay error

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-20 18:15:44 -05:00
Sage Weil
a91d7482d0 Merge pull request #7247 from ifed01/wip-14383
os/bluestore: use intrusive_ptr for Dir

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-20 18:13:43 -05:00
Sage Weil
abab99d06a Merge pull request #7254 from guangyy/wip-counter
common: change the type of counter total/unhealthy_workers

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-20 18:13:00 -05:00
Sage Weil
3a6b627e9c Merge pull request #7255 from yuyuyu101/wip-14386
msg/async: fix send closed local_connection message problem

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-20 18:12:25 -05:00
Sage Weil
141888609a Merge remote-tracking branch 'gh/jewel' 2016-01-20 16:49:12 -05:00
Jason Dillaman
e1da0856cc test: race condition in ReplayOnDiskPostFlushError test case
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2016-01-20 16:36:15 -05:00