- move into OSDMap method
- ensure that rules exist for each pool
- ensure pool type matches rule type
- ensure rule mask min/max size cover the pool size
Signed-off-by: Sage Weil <sage@redhat.com>
Previously, the rules were only modified in the trivial case,
so we continued to potentially have CRUSH maps with the
legacy ruleset functionality in use.
In order to ultimately remove rulesets entirely, we need
to do this more aggressively, renumbering all the rules
and then updating any pools as needed.
Signed-off-by: John Spray <john.spray@redhat.com>
- keep derr going to stderr (so we see 'fsck error' messages)
- hide the rest
- add friendly --log-file option
Signed-off-by: Sage Weil <sage@redhat.com>
os/bluestore: set bitmap freelist resolution to min_alloc_size
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Varada Kari <varada.kari@gmail.com>
get_ceph_version() was get_version() before 7b04e7ff. and after that
change, the version number of the python extension is hardwired to
`__version__`. because pybind is a wrapper around the public APIs
exposed by librados, librbd and libcephfs, which are versioned
separately from ceph daemons and tools, it's reasonable not to use the
version number in ceph_ver.h. thus, it's safe to drop this function.
Signed-off-by: Kefu Chai <kchai@redhat.com>
* refs/remotes/upstream/pull/17657/head:
mds: optimize MDCache::rejoin_scour_survivor_replicas()
mds: fix MDSCacheObject::clear_replica_map
mds: support limiting cache by memory
common: refactor of lru
mds: resolve unsigned coercion compiler warning
common: use safer uint64_t for list size
common: add bytes2str pretty print function
mds: check if waiting is allocated before use
mds: go back to compact_map for replicas
mds: use mempool for cache objects
mds: cleanup replica_map access
common: add alloc_ptr smart pointer
common: add warning on base class use of mempool
common: use atomic uin64_t for counter
Reviewed-by: Zheng Yan <zyan@redhat.com>
wip-osd-deq changes client identifiers from entity_inst_t to
uint64_t. Updates tests to do this as well.
Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
Before
state 2: Can have complete tables (some may be bad)
state 3: Never had complete tables
After
state 2: Can have complete tables (some may be bad)
state 3 with legacy: Can have complete tables (bad ones are cleared)
state 3: Never had complete tables
Once OSDs boot with this change you can't downgrade to a previous release.
If someone does downgrade they could have unstable OSDs that hit assert(state.v < 3).
The following command run after shutting down the cluster but before downgrading
ceph packages would be a way to fix this.
ceph-osdomap-tool --omap-path ... --command resetv2
Fixes: http://tracker.ceph.com/issues/21328
Signed-off-by: David Zafman <dzafman@redhat.com>
Fix hard-coded "leveldb" backend. The command is broken in Luminous
now that "rocksdb" is the default.
Signed-off-by: David Zafman <dzafman@redhat.com>
* refs/remotes/upstream/pull/17608/head:
doc/cephfs/posix: put posix notes in perspective
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
entity_inst_t is huge; use uint64_t instead.
Note that this will currently confuse mds.0 vs osd.0, but we plan
to switch the mds to use mds.$gid soon anyway so that will go
away.
Signed-off-by: Sage Weil <sage@redhat.com>
a9e777f08f Merge pull request #35 from joscollin/wip-warning-dmclock
45c63a5b10 Merge pull request #36 from ceph/wip-fix-functional
40a9fe55a6 With upgrade to gcc 7.1.1 need to include <functional> in additional header files.
a2dd155f08 src/dmclock_server.h: silence warning from -Wmaybe-uninitialized
0d6c7c6544 Merge pull request #24 from bspark8/wip_online_client_info_f
a5e8cdea31 Add unit test for update_client_info, dynamic_cli_info_f.
1faf3524c6 Modify each client's QoS parameter applied time from client_rec creation time to each request's tagging creation time.
git-subtree-dir: src/dmclock
git-subtree-split: a9e777f08f288fe6834599afdeefcd9c7d31e6c1
ceph df accounts for pool size, so there is no need to do it in the test.
Fixes: http://tracker.ceph.com/issues/21381
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
rgw: fix lc process only schdule the first item of lc objects
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: fang.yuxiang <fang.yuxiang@eisoo.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
rgw: return 'Access-Control-Allow-Origin' header when the set and delete bucket website through XMLHttpRequest
Reviewed-by: Casey Bodley <cbodley@redhat.com>