Commit Graph

75615 Commits

Author SHA1 Message Date
Kefu Chai
bc3930a139 common/options: more constness
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-21 06:27:23 -04:00
Kefu Chai
2c6669c5a4 common/options: specialize on non bool integeral types
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-21 06:27:23 -04:00
Sage Weil
fe1c592c8c common/options: new options infrastructure
Define schema for config options.  Helper to generate a header fragment
to declare the types.

Unlike the old config_opts.h approach, we will not intialize values in
the header.  This avoids a recompile if there is a change and also allows
us to specify different defaults and do parsing and validation at runtime.
Instead, we'll intialize values in the constructure of the containing
class.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 06:27:23 -04:00
Sage Weil
8463894575 common: remove max_open_files config option
The only user is init-ceph, and it can get at it via ceph-conf without
the option being declared here.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 06:27:22 -04:00
Sage Weil
03ef427b31 ceph-syn: parse --num-client locally; remove global option
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 06:27:22 -04:00
Kefu Chai
0193e38b3f Merge pull request #16028 from jcsp/wip-mgr-commands
mon: load mgr commands at runtime

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-21 18:16:13 +08:00
Kefu Chai
d76b376e78 Merge pull request #16415 from xiexingguo/wip-health-mon
mon: a few health fixes

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-21 18:12:31 +08:00
Kefu Chai
73186686e9 Merge pull request #16409 from liupan1111/wip-restructure-bs
os/bluestore: move aio.h/cc from fs dir to bluestore dir

Reviewed-by: Sage Weil <sage@redhat.com>
2017-07-21 16:55:38 +08:00
Kefu Chai
41c59530c1 Merge pull request #16328 from neha-ojha/recovery_sleep_default
osd: Add recovery sleep configuration option for HDDs and SSDs

Reviewed-by: Sage Weil <sage@redhat.com>
2017-07-21 16:55:02 +08:00
Kefu Chai
2c9b2b1fe6 Merge pull request #16470 from tchaikov/wip-watch-audit-channel
qa/workunits/cephtool/test.sh: fix test to watch audit channel

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-07-21 13:41:43 +08:00
Sage Weil
6c4992aeca qa/workunits/cephtool/test.sh: fix test to watch audit channel
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-21 11:40:48 +08:00
Sage Weil
27e8d75f61 Merge pull request #16429 from liewegas/wip-jewel-x
qa/suites/upgrade/jewel-x: misc fixes for new health checks
2017-07-20 10:47:05 -05:00
Sage Weil
ed48ed1b74 Merge pull request #16374 from majianpeng/bluestore-double-count-kv-queue-lat
os/bluestore/BlueStore: Avoid double counting state_kv_queued_lat.

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-07-20 10:44:40 -05:00
Sage Weil
3de9f22ce0 Merge pull request #16423 from liewegas/wip-ls
mon: '* list' -> '* ls'

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-20 10:43:34 -05:00
Sage Weil
de856e7371 Merge pull request #16434 from badone/wip-fix-deep-age-reporting
mon: Fix deep_age copy paste error

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-20 10:43:15 -05:00
Kefu Chai
acc24bf0dc Merge pull request #16444 from tchaikov/wip-test-osd-stat
qa/workunits/cephtool/test.sh: "ceph osd stat" output changed, update accordingly

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2017-07-20 23:41:53 +08:00
Yuri Weinstein
94b02a69d4 Merge pull request #14287 from oritwas/wip-rgw-usage
rgw: usage

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
2017-07-20 08:39:21 -07:00
Yuri Weinstein
c31f25bedf Merge pull request #15673 from yehudasa/wip-20107
cls/refcount: store and use list of retired tags

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2017-07-20 08:35:07 -07:00
Kefu Chai
153d030e1d Merge pull request #16421 from tchaikov/wip-19939
messages/: always set header.version in encode_payload()

Reviewed-by: Haomai Wang <haomai@xsky.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2017-07-20 22:52:17 +08:00
Jos Collin
c6e90d93a3 Merge pull request #16418 from theanalyst/doc-rgw-tenant-names
doc: rgw clarify limitations when creating tenant names

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-07-20 14:38:45 +00:00
Kefu Chai
3dfa9daeca Merge pull request #16443 from wjwithagen/bug-wjw-qa-test-reorder
cephtool/test.sh: Only delete a test pool when no longer needed.

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-07-20 22:13:37 +08:00
Jason Dillaman
b47eb210c8 Merge pull request #16451 from tchaikov/wip-qa-reg11184
qa/tasks/reg11184: use literal 'foo' instead pool_name

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-07-20 09:37:53 -04:00
Kefu Chai
a1d16185a2 qa/tasks/reg11184: use literal 'foo' instead pool_name
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-07-20 21:35:41 +08:00
Kefu Chai
ff039c082f Merge pull request #16412 from wido/zabbix-release-notes
doc: Add Zabbix ceph-mgr plugin to PendingReleaseNotes

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-20 20:20:54 +08:00
Wido den Hollander
dacd41e043
release notes: Add Zabbix ceph-mgr module to PendingReleaseNotes
Signed-off-by: Wido den Hollander <wido@42on.com>
2017-07-20 14:08:45 +02:00
Abhishek Lekshmanan
878d8486be doc: rgw clarify limitations when creating tenant names
We only allow alphanumeric and underscore characters in tenant names
according to the validation in `RGWHandler_REST::validate_tenant_name`

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-07-20 14:01:07 +02:00
Kefu Chai
ba525a829c qa/workunits/cephtool/test.sh: "ceph osd stat" output changed, update test accordingly
Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-07-20 19:34:53 +08:00
Willem Jan Withagen
e3760fa936 cephtool/test.sh: Only delete a test pool when no longer needed.
the pool_getset pool is deleted before all tests on it are complete

4: /home/jenkins/workspace/ceph-master/qa/workunits/cephtool/test.sh:1990: test_mon_osd_pool_set:  ceph osd pool delete pool_get
set pool_getset --yes-i-really-really-mean-it
4: pool 'pool_getset' removed
4: /home/jenkins/workspace/ceph-master/qa/workunits/cephtool/test.sh:1992: test_mon_osd_pool_set:  ceph osd pool get rbd crush_r
ule
4: /home/jenkins/workspace/ceph-master/qa/workunits/cephtool/test.sh:1992: test_mon_osd_pool_set:  grep 'crush_rule: '
4: crush_rule: replicated_rule
4: /home/jenkins/workspace/ceph-master/qa/workunits/cephtool/test.sh:1994: test_mon_osd_pool_set:  ceph -f json osd pool get poo
l_getset compression_mode
4: Error ENOENT: unrecognized pool 'pool_getset'

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-07-20 12:24:14 +02:00
Kefu Chai
aea471d73a Merge pull request #16403 from wjwithagen/bug-wjw-ceph-osd-stat
test: ceph osd stat out has changed, fix tests for that

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-20 18:06:47 +08:00
Ilya Dryomov
67db89f6c2 Merge pull request #16428 from idryomov/wip-krbd-luminous-thrash
qa: thrash tests for backoff and upmap

Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
2017-07-20 11:28:22 +02:00
Kefu Chai
37a7035a8e Merge pull request #16424 from tchaikov/wip-assert-in-c
include/assert: test c++ before using static_cast<>

Reviewed-by: Sage Weil <sage@redhat.com>
2017-07-20 14:49:49 +08:00
Sage Weil
25bbe36b98 Merge pull request #16400 from liewegas/wip-crush-rule-id
crush: s/ruleset/id/ in decompiled output; prevent compilation when ruleset != id

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-07-19 22:02:41 -05:00
Sage Weil
676ea6e2d7 Merge pull request #16402 from liewegas/wip-20105
ceph_test_rados_api_watch_notify: flush after unwatch

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-19 22:02:04 -05:00
Sage Weil
d6db84ca76 mon: hide 'osd crush rule list' (we prefer 'ls')
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-19 22:47:21 -04:00
Kefu Chai
c483e8b658 Merge pull request #16433 from dmick/wip-ccache
do_cmake.sh: fix syntax for /bin/sh (doesn't have +=)

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-20 10:09:28 +08:00
xie xingguo
47cc691ae8 mon/HealthMonitor: fix summary of monitor clock skew
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2017-07-20 08:27:00 +08:00
Brad Hubbard
a262385270 mon: Fix deep_age copy paste error
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-07-20 09:27:10 +10:00
Dan Mick
137f3018cd do_cmake.sh: fix syntax for /bin/sh (doesn't have +=)
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-07-19 15:04:47 -07:00
Sage Weil
a09ac4003a librados: 'pg ls' is not a mgr command
Note that this breaks the command *during* the mon upgrade from jewel ->
luminous, which is slightly annoying, but means we avoid proxying via the
mon after upgrade is complete, which is good and IMO more important.

In the future we may want librados to cache the command descriptions so
that commands can be directed automatically.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-19 17:21:24 -04:00
Sage Weil
e07a84a01f mon: restore mgr command lookup so that we can still proxy to mgr
Since mgr commands aren't in the main mon_commands array now, we need to
explicitly look up commands there too.  This restores the behavior
implemented below in which we forward misdirected mgr commands to the mon.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-19 17:21:24 -04:00
Sage Weil
3e89e32455 mon: constify _get_moncommand
Signed-off-by: Sage Weil <sage@redhat.com>
2017-07-19 17:21:24 -04:00
Neha Ojha
70f11d2644 doc: update osd recovery sleep description
Signed-off-by: Neha Ojha <nojha@redhat.com>
2017-07-19 14:14:42 -07:00
Casey Bodley
4961a46b75 Merge pull request #16309 from fangyuxiangGL/fix-admin-rest-api
rgw: modify email to empty by admin RESTful api doesn't work

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-07-19 16:13:27 -04:00
Yuri Weinstein
c968a3d5ba Merge pull request #15952 from jdurgin/wip-peering-deletes
osd: process deletes during recovery instead of peering

Reviewed-by: Sage Weil <sage@redhat.com>
2017-07-19 12:53:25 -07:00
Yuri Weinstein
77ff17200d Merge pull request #16376 from jecluis/wip-mon-fix-loglast
mon/LogMonitor: don't read list's end() for log last

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-07-19 12:52:09 -07:00
Casey Bodley
6f5d375206 Merge pull request #16419 from Abhishekvrshny/fix-err-msg
rgw: fix error message in removing bucket with --bypass-gc flag

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
2017-07-19 15:48:06 -04:00
Neha Ojha
cef6e044e7 doc: add osd recovery sleep for HDDs and SSDs
Signed-off-by: Neha Ojha <nojha@redhat.com>
2017-07-19 11:51:21 -07:00
Sage Weil
fcd84e2cf5 Merge pull request #16431 from jeffgreenca/master
doc: Fixed a typo in yum repo filename script
2017-07-19 12:57:14 -05:00
Sage Weil
adfe940fa2 Merge pull request #15763 from dillaman/wip-pool-tags
mon: support pool application metadata key/values

Reviewed-by: Sage Weil <sage@redhat.com>
2017-07-19 12:56:10 -05:00
Jeff Green
b0db88ed15 doc: Fixed a typo in yum repo filename script
Signed-off-by: Jeff Green <jeff.green.ca@gmail.com>
2017-07-19 10:51:09 -07:00