Commit Graph

60132 Commits

Author SHA1 Message Date
Tianshan Qu
6e1c3dcb21 rgw: fix RGWSimpleRadosLockCR set_description()
Signed-off-by: Tianshan Qu <tianshan@xsky.com>
2016-11-14 16:00:37 +08:00
Kefu Chai
a29a3c686e doc: fix the script for rebuild monitor db
- escape the "$" in "$osd", so it won't be expanded by local shell
- fix the permission bits of /var/lib/ceph/mon/mon.0/store.db
- add the doc to explain the step to prepare the keyring

Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-11-14 15:34:46 +08:00
Pan Liu
83edcd1f8d remove unused get_info_log_level, and unneeded include files
Signed-off-by: Pan Liu <pan.liu@istuary.com>
2016-11-14 15:05:46 +08:00
Willem Jan Withagen
cea6786413 ceph-detect-init: FreeBSD introduction of bsdrc
ceph-detect-init/ceph_detect_init/freebsd/__init__.py
    New file

ceph_detect_init/__init__.py: Only test FreeBSD after it is not Linux

    If we do it the other way around it will not work during testing on FreeBSD
    because it will always have platform.system() == FreeBSD
    So first test for Linux, and only then check to see if it is FreeBSD.

ceph-detect-init/tests/test_all.py: add tests for FreeBSD
ceph-detect-init/run-tox.sh: ReEnable to run test for FreeBSD

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
Signed-off-by: Kefu Chai <kchai@redhat.com>
2016-11-14 14:34:47 +08:00
xie xingguo
865b715029 os/bluestore: static apply() method for bluestore internal-use only
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-14 11:16:06 +08:00
Patrick Donnelly
0f334f2870
lua: use simpler lua_next traversal structure
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-13 21:55:53 -05:00
Patrick Donnelly
b9a63e49ea
doc: clarify mds deactivate purpose
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-13 21:51:51 -05:00
Patrick Donnelly
e5a05739ed
doc: remove broken sentence
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-13 21:51:29 -05:00
Patrick Donnelly
ef60b1b502
client: use unique_ptr for fsmap_user
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-13 21:12:46 -05:00
Patrick Donnelly
c4c3d32a26
client: use unique_ptr for FSMap
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-13 21:12:46 -05:00
Patrick Donnelly
25ab2b6dc7
client: use unique_ptr for MDSMap
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-13 21:12:46 -05:00
Patrick Donnelly
888910d260
client: remove unnecessary bufferptr[] for writev
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-11-13 21:12:36 -05:00
Kefu Chai
ddcb4a945a Merge pull request #11844 from liupan1111/master
os/bluestore: speedup the performance of multi-replication flow by switc…

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-14 09:42:50 +08:00
Kefu Chai
7d6fa8d5c5 Merge pull request #11799 from KerLiu/fixdupassignment
osd/OSDMap.cc: fix duplicated assignment for new_blacklist_entries

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-14 09:40:58 +08:00
Kefu Chai
473ae1d539 Merge pull request #11378 from ryneli/watch_notify_add_timeout
librados: add timeout to watch/notify

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-14 09:36:14 +08:00
Michal Jarzabek
e6fa2a7e29 mds/MDCache.h: remove unneeded call to clear func
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-11-13 23:24:52 +00:00
Ryne Li
e3ca1e607e librados: add timeout parameter to rados_watch
Signed-off-by: Ryne Li <lizhenqiangsnake@gmail.com>
2016-11-13 07:21:54 -05:00
Kefu Chai
961a309532 Merge pull request #10221 from Yan-waller/yj-wip-testrados-0709
test/rados: remove unused bufferlist variable

Reviewed-by: xiexingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-13 16:24:05 +08:00
Kefu Chai
6aad9ea173 Merge pull request #11941 from liewegas/wip-envlibrados
qa/workunits/rados/test_envlibrados_for_rocksdb: force librados-dev install

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-13 14:53:29 +08:00
Kefu Chai
c4624271ed Merge pull request #9357 from Aran85/wip-assert-build-push
osd/PGBackend: build_push_op segment fault

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-11-13 14:41:14 +08:00
Kefu Chai
18d27b19d3 Merge pull request #11800 from bassamtabbara/wip-make-leveldb-optional
mon: support for building without leveldb + mon mkfs bug fix

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-13 14:39:11 +08:00
Kefu Chai
6638babd6e Merge pull request #11664 from sysnote/wip-17719
mon: fix "OSDs marked OUT wrongly after monitor failover"

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-13 14:38:10 +08:00
Kefu Chai
a87a092038 Merge pull request #10196 from xiaoxichen/fix_16609
log/LogClient: fill seq & who for syslog and graylog

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-11-13 14:34:24 +08:00
Pan Liu
0cb01c4f4b BlueStore: speedup the performance of multi-replication flow by
switching the callback order in bluestore.

In Bluestore ack callback and commit callback are queued one by one in
the function "BlueStore;:_txc_finish_kv". Therefore, just only one callback
is needed to call, in order to improve performance. We do this by switching
the callback order in bluestore, and the callback work can be done in
sub_op_modify_commit and doesn't need to do it again in sub_op_modify_applied.

Signed-off-by: Pan Liu <pan.liu@istuary.com>
2016-11-12 23:22:30 +08:00
Sage Weil
1fdbf4cc99 Merge pull request #11805 from tchaikov/wip-deprecate-readdir-r
deprecate readdir_r() with readdir()

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-12 07:35:58 -06:00
Sage Weil
97c389dff4 Merge pull request #11824 from xiexingguo/xxg-wip-kill-pg-splitting
osd: kill PG_STATE_SPLITTING

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-11-12 07:35:46 -06:00
Sage Weil
9100d3362a Merge pull request #11874 from wido/osd-no-scrub-recovery
osd: Add config option to disable new scrubs during recovery

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-12 07:35:13 -06:00
Sage Weil
fe35d21f3b Merge pull request #11880 from cbodley/wip-ms-type-random
msg: seed random engine used for ms_type="random"

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-12 07:35:00 -06:00
Sage Weil
2eaa9faaa7 Merge pull request #11898 from liewegas/wip-filestore-hashindex
os/filestore/HashIndex: fix list_by_hash_* termination on reaching end

Reviewed-by: Samuel Just <sjust@redhat.com>
2016-11-12 07:34:41 -06:00
Sage Weil
f9882f4abe qa/workunits/rados/test_envlibrados_for_rocksdb: force librados-dev install
On trusty we see

 WARNING: The following packages cannot be authenticated!
   librados-dev
 E: There are problems and -y was used without --force-yes

Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-12 08:30:59 -05:00
xie xingguo
2ce6af0558 os/bluestore: assert from access violation
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-12 16:33:37 +08:00
xie xingguo
348ca7fc2a os/bluestore: use built-in methods for ExtentMap resharding and encoding
Hope this can improve the code readability a little...

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-11-12 16:29:30 +08:00
Brad Hubbard
47a41ccac4 Merge pull request #11907 from badone/wip-pipe-socket-typos
msg: Fix typos in socket creation error message

Reviewed-by: xiexingguo <xie.xingguo@zte.com.cn>
2016-11-12 12:53:06 +10:00
Yehuda Sadeh
8cb3a5d42f Merge pull request #11392 from Oloremo/keystone_docs
Update keystone doc about v3 options

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-11-11 15:40:47 -08:00
Sage Weil
d84bcb76d0 Merge pull request #11925 from ktdreyer/doc-infernalis-eol
doc: add infernalis EOL date
2016-11-11 16:57:36 -06:00
Ken Dreyer
9a9637d176 doc: add infernalis EOL date
Remove the estimated Infernalis EOL date, and add the actual EOL date.

As discussed on the ceph-devel mailing list, we decided to say that this
infernalis EOL date is the same date that we made the first Jewel
release available.

Signed-off-by: Ken Dreyer <kdreyer@redhat.com>
2016-11-11 15:45:19 -07:00
Dan Mick
9998ba2a7b Merge pull request #11924 from liewegas/wip-balloc
unittest_bit_alloc: fix type

Merging before make check because it clearly breaks the build and the build part is done
Reviewed-by: Dan Mick <dmick@redhat.com>
2016-11-11 13:54:06 -08:00
Sage Weil
05a7a83299 unittest_bitalloc: fix type
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 16:12:10 -05:00
Sage Weil
c67446d91c Merge pull request #11922 from liewegas/wip-mempool-bluestore
mempool: changes for bitmap allocator

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
2016-11-11 14:29:19 -06:00
Sage Weil
606253ac2c Merge pull request #11920 from ifed01/wip-bluestore-tmp
os/bluestore: remove build warning in a better way

Reviewed-by: Sage Weil <sage@redhat.com>
2016-11-11 14:28:50 -06:00
Ramesh Chander
aa2146de77 mempool changes for bitmap allocator
[with bstore_balloc -> bluestore_alloc rename by sage]

Signed-off-by: Ramesh Chander <Ramesh.Chander@sandisk.com>
2016-11-11 15:08:52 -05:00
Sage Weil
0dc6e69ab3 Merge pull request #11839 from liewegas/wip-mempool-buffer
buffer: put buffers in buffer_{data,meta} mempools

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
2016-11-11 14:04:13 -06:00
Sage Weil
27a2d13c6a Merge pull request #11834 from liewegas/wip-bluestore-mempool
os/bluestore: move bluefs into its own mempool

Reviewed-by: Allen Samuels <allen.samuels@sandisk.com>
2016-11-11 14:03:43 -06:00
Sage Weil
fc15c12850 buffer: put data and metadata in a mempool
Note that for raw_combined we leak some metadata into the data pool.

Also, we do not account for non-raw metadata or anything else in buffer.h,
as that would pollute the ABI and public interface.

Drop the namespace ceph in buffer.cc (which serves no real purpose) as it
confuses the MEMPOOL_DEFINE_* macros (they cannot be used inside a
namespace).

Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
dcc23765b4 mempool: add [de]allocate_aligned
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
f54e6bd78c osd: move pg logs into osd mempool
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
665013cd96 osd/PG: move peering evt into pool
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
88d59bff07 osd: move ReplicatedPG into mempool
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:54 -05:00
Sage Weil
fbf5253e59 mempool: create an osd mempool
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00
Sage Weil
12f6e8f18a mempool: attach mempool asok commands to all ccts
Signed-off-by: Sage Weil <sage@redhat.com>
2016-11-11 14:59:53 -05:00