summaryrefslogtreecommitdiffstats
path: root/src/librados (unfollow)
Commit message (Collapse)AuthorFilesLines
2017-06-01install-deps.sh: workaround setuptools' dependency on sixKefu Chai2-1/+5
see also https://github.com/pypa/setuptools/issues/1042 Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-06-01test/cli/osdmaptool/: fix testsSage Weil4-15/+17
CRUSH tunables now default to jewel; outputs vary and upmap results are a bit different. Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-01test/cli/crushtool: adjust testsSage Weil2-2/+2
Specify chooseleaf_stable for --build tests to match prior output. Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-01mon: set mon_osd_initial_require_min_compat_client = jewelSage Weil1-1/+1
IMO a jewel lower bound is reasonable for new clusters. Signed-off-by: Sage Weil <sage@redhat.com>
2017-06-01crush: set default tunables to jewelSage Weil1-1/+1
For new clusters. This is the last "disruptive" tunable change we've made (where adjusting/ fixing it requires lots of data movement). For new clusters a lower bound of jewel seems pretty reasonable, and this has been upstream in Linux for a while now. Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31mempool: dump total, tooSage Weil2-3/+14
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31osd: (loosely) mark cached map bl buffers as osd_mapblSage Weil2-0/+3
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31os/bluestore: mark buffer caches buffers as bluestore_dataSage Weil2-2/+4
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31buffer: remove buffer_data mempoolSage Weil3-17/+21
We are explicitly accounting for buffers via arbitrary pools, defaulting to buffer_anon, so we don't need buffer_data anymore. It leads to double-counting. Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31buffer: allow buffers to map into arbitrary mempoolsSage Weil3-13/+77
- default is buffer_anon - buffer_data includes *all* buffers across all mempools, and is the *actual* allocation (includes raw_combined). - buffer_meta is other buffer-related overhead. Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31mempool: allow pool counts to be adjusted explicitlySage Weil2-0/+9
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31buffer: fix mempool accounting for claimed charsSage Weil2-1/+23
These are allocated by the caller, outside of the mempool; do not deallocate via the mempool. Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31mempool: kill unittest_? mempoolsSage Weil2-47/+45
These were just annoying. Use some real ones that will be empty for the unit tests. Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31test/osd/TestRados.cc: run test after finishing redirect setupmyoungwon oh1-14/+21
set-redirect test creates more objects than default due to redirect mapping (let's assume that we create 500 objects, oid 1 -> oid 501, oid 2 -> oid 502) But the test should use objects within pre-defined range. For example, If the number of object is 500, only 1~500 oid are allowed for test operations. In the failure cases, test operation tried to use wrong oids (which means higher than 500). This is because the bug in the setup phase. If max_inflights > 1, set-redirect can be finished after setup is completed. (so wrong oid is included in oid_in_use). We need to completely remove redirect objects in oid_in_use before start the test. Fixes: http://tracker.ceph.com/issues/20114 Signed-off-by: Myoungwon Oh <omwmw@sk.com>
2017-05-31qa: krbd discard/zeroout testsIlya Dryomov2-0/+129
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2017-05-31rpm: Move ceph-disk to ceph-baseBoris Ranto1-16/+27
The SELinux package now requires the ceph-disk binary but that one was part of the ceph-osd package. The ceph-disk python library is already packaged in ceph-base so moving ceph-disk to ceph-base seems like a reasonable next step. Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-31rgw_file: add lock protection for readdir against gcGui Hecheng1-0/+2
The state.mtx protects state.events accessed both from readdir and gc. Fixes: http://tracker.ceph.com/issues/20121 Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
2017-05-31crush: update choose_args on adjust_item_weightLoic Dachary6-17/+190
The osd_crush_update_weight_set (true by default) can be used to disable the update of the weights. Signed-off-by: Loic Dachary <loic@dachary.org>
2017-05-31crush: update choose_args when items are added/removedLoic Dachary4-0/+193
When items are added: - the value in the weight set is set to the target weight. It is assumed that weight set are updated on a regular basis and will eventually be set to a value that prevents excessive over/under filling. - the value in the id list is set to the item id. When items are removed, their weight / ids in all choose_args are removed. Signed-off-by: Loic Dachary <loic@dachary.org>
2017-05-31mon:remove useless function for MDSMonitor::generate_mds_map()yonghengdexin7351-1/+0
Signed-off-by: yonghengdexin735 <zhang.zezhu@zte.com.cn>
2017-05-31osdmaptool: fix cli testsSage Weil3-4/+4
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31common/version: include release name and type in version stringSage Weil7-5/+56
ceph version 12.0.2-1687-ge042051 (e0420518d712d87a4882b3a327eaf1d3fcea12df) luminous (dev) Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31osd/OSDMap: switch [require_]min_compat_client to CEPH_RELEASE_* valuesSage Weil3-74/+102
Instead of using a string, use the defined CEPH_RELEASE_* values. This is simpler. We allow decoding of post-kraken pre-luminous maps that use the string values. Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31common: expand CEPH_RELEASE_ names; rename helperSage Weil3-9/+81
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-31build: Use .S suffix for ppc64le assembly filesAndrew Solomon2-1/+1
The assembly file name suffix was changed from .S to .s, which caused a build break on ppc64le architecture. To fix this issue, the suffix will be changed back to .S for ppc64le assembly files only. The x86 assembly files can retain the .s suffix. Fixes: http://tracker.ceph.com/issues/20106 Signed-off-by: Andrew Solomon <asolomon@us.ibm.com>
2017-05-31mon: Add override for FsNewHandler::handle()yonghengdexin7351-1/+1
Signed-off-by: yonghengdexin735 <zhang.zezhu@zte.com.cn>
2017-05-31ceph-disk: Fix the file ownership, skip missingBoris Ranto2-5/+25
This commit fixes the file ownership for the /usr/bin/ and /etc/ceph files and skips missing files as some of the files that we do specify now can be missing from the system (not installed, e.f. radosgw). Fixes: http://tracker.ceph.com/issues/20077 Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-31selinux: Do parallel relabel on package installBoris Ranto2-2/+13
We can take advantage of ceph-disk fix subcommand when doing a package install. We will keep using the differential fixfiles command otherwise. We also need to add relabel for /usr/bin/ daemons so that we could use this. Fixes: http://tracker.ceph.com/issues/20077 Signed-off-by: Boris Ranto <branto@redhat.com>
2017-05-30osd: When scrub finds an attr error mark shard inconsistentDavid Zafman1-4/+3
Fixes: http://tracker.ceph.com/issues/20089 Signed-off-by: David Zafman <dzafman@redhat.com>
2017-05-30os/bluestore: bluestore_debug_fsck_abortSage Weil2-0/+4
Abort fsck early to get a massif result. Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-30test/old: Removed commented codeJos Collin1-47/+0
There were lot of commented code inside src/test/old/testcrush.cc. This was found while doing the PR#15364. Removed them. Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-30doc: add rados xattr commands to manpageAndreas Gerstmayr1-0/+12
Signed-off-by: Andreas Gerstmayr <andreas.gerstmayr@catalysts.cc>
2017-05-30qa/suites/upgrade/kraken-x: enable experimental for bluestoreSage Weil2-0/+5
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-30mon: add up|down|in|out filters to 'osd tree'Sage Weil7-17/+100
For example, 'ceph osd tree down' will show *just* down OSDs and their ancestors. \o/ Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-30cmake: link radosgw with boost librariesNathan Cutler1-1/+1
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-05-30bluestore: fix a typo about bleustoreDongsheng Yang1-3/+3
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
2017-05-30test/msgr: silence warnings from -Wsign-compareJos Collin1-1/+1
The following warning appears during make: ceph/src/test/msgr/test_msgr.cc: In member function ‘virtual void MessengerTest_MarkdownTest_Test::TestBody()’: ceph/src/test/msgr/test_msgr.cc:1474:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] CHECK_AND_WAIT_TRUE(srv_dispatcher.count > last + 1); ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ ceph/src/test/msgr/test_msgr.cc:54:9: note: in definition of macro ‘CHECK_AND_WAIT_TRUE’ if (expr) \ ^~~~ ceph/src/test/msgr/test_msgr.cc:1475:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if (srv_dispatcher.count == last) { ~~~~~~~~~~~~~~~~~~~~~^~~~~~~ Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-30test: test_denc.cc: silence warning from -Wsign-compareJos Collin1-2/+2
The following warning appears during make: ceph/src/test/test_denc.cc:669:5: required from here ceph/src/googletest/googletest/include/gtest/gtest.h:1530:28: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] ceph/src/googletest/googletest/include/gtest/gtest.h:1510:7: if (val1 op val2) {\ Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-30os/bluestore: deep decode onode valueSage Weil1-1/+1
In particular, we want the attrs (map<string,bufferptr>) to be a deep decode so that we do not pin this buffer, and so that any changed attr will free the previous memory. Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-30os/bluestore: fsck: use btree_set to replace set<uint64_t>Sage Weil1-3/+10
Signed-off-by: Sage Weil <sage@redhat.com>