]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agobluestore: fixed compilation error when enable spdk with gcc 4.8.5 16945/head
Pan Liu [Wed, 9 Aug 2017 13:16:54 +0000 (21:16 +0800)]
bluestore: fixed compilation error when enable spdk with gcc 4.8.5

Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
8 years agoMerge pull request #16475 from amitkumar50/branchAffliation
Jos Collin [Fri, 21 Jul 2017 13:19:09 +0000 (13:19 +0000)]
Merge pull request #16475 from amitkumar50/branchAffliation

Add amitkumar50 affiliation to .organizationmap

Reviewed-by: Jos Collin <jcollin@redhat.com>
8 years agoAdd amitkumar50 affiliation to .organizationmap 16475/head
amitkuma [Fri, 21 Jul 2017 14:56:20 +0000 (20:26 +0530)]
Add amitkumar50 affiliation to .organizationmap

Signed-off-by: Amit Kumar <amitkuma@redhat.com>
8 years agoMerge pull request #16430 from yuriw/wip_add_luminous
Jos Collin [Fri, 21 Jul 2017 12:11:29 +0000 (12:11 +0000)]
Merge pull request #16430 from yuriw/wip_add_luminous

qa: Added luminous to the mix in schedule_subset.sh

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
8 years agoMerge pull request #16211 from jcsp/wip-options-jcsp
John Spray [Fri, 21 Jul 2017 12:02:16 +0000 (13:02 +0100)]
Merge pull request #16211 from jcsp/wip-options-jcsp

common: Revamp config option definitions

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #16313 from Songweibin/wip-mirror-peer
Jason Dillaman [Fri, 21 Jul 2017 12:00:50 +0000 (08:00 -0400)]
Merge pull request #16313 from Songweibin/wip-mirror-peer

rbd: make it more understandable when adding peer returns error

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #16462 from wjwithagen/wjw-warning-unused-unsetdumpable
Kefu Chai [Fri, 21 Jul 2017 11:50:45 +0000 (19:50 +0800)]
Merge pull request #16462 from wjwithagen/wjw-warning-unused-unsetdumpable

common: prevent unset_dumpable from generating warnings

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #16454 from liewegas/wip-fix-ceph-scrub
Kefu Chai [Fri, 21 Jul 2017 11:31:19 +0000 (19:31 +0800)]
Merge pull request #16454 from liewegas/wip-fix-ceph-scrub

qa/tasks/ceph_manager: wait for osd to start after objectstore-tool sequence

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocommon/options: update for latest added 16211/head
John Spray [Fri, 21 Jul 2017 10:30:27 +0000 (06:30 -0400)]
common/options: update for latest added

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: fix erasure_code_dir definition
John Spray [Thu, 20 Jul 2017 15:54:33 +0000 (11:54 -0400)]
common: fix erasure_code_dir definition

This was missing its `safe` flag, causing some attempts
to set it during testing to fail.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agotest: use config set_val_or_die instead of set_val
John Spray [Thu, 20 Jul 2017 15:53:38 +0000 (11:53 -0400)]
test: use config set_val_or_die instead of set_val

...in places that the return code was not being checked.

This fixes cases where an error in the config schema or the
value being passed in would cause weird failures beacuse the
set_val had not taken effect.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon/options: fix overflowing 64 bit literals
John Spray [Thu, 20 Jul 2017 11:58:41 +0000 (07:58 -0400)]
common/options: fix overflowing 64 bit literals

This manifested as a failure in objectstore tool test_fuse.sh

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agotest: update daemon_config.cc for conf changes
John Spray [Thu, 20 Jul 2017 00:37:02 +0000 (20:37 -0400)]
test: update daemon_config.cc for conf changes

This was only partially updated in previous commits
for --num-clients, --num-open-files.

Also update int validation test to reflect that values
are now 64 bit internally.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: update options.cc for latest master
John Spray [Wed, 19 Jul 2017 12:10:42 +0000 (08:10 -0400)]
common: update options.cc for latest master

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: fix Option::is_safe
John Spray [Thu, 13 Jul 2017 09:19:18 +0000 (05:19 -0400)]
common: fix Option::is_safe

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: remove usage of set_daemon_default for now
John Spray [Fri, 14 Jul 2017 09:54:01 +0000 (05:54 -0400)]
common: remove usage of set_daemon_default for now

The code in common_preinit is still there to override
these settings as appropriate.

The set_daemon_default stuff was breaking ceph-conf tests (because
you would get the client-side defaults when asking about an OSD's
settings), and md_config_t isn't properly identifying daemons
using code_env yet.

Ticket to add it back in:
http://tracker.ceph.com/issues/20627

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: run validator on all defaults
John Spray [Fri, 14 Jul 2017 00:34:42 +0000 (20:34 -0400)]
common: run validator on all defaults

RBD relies on this behaviour to get the int-ized
form for rbd_default_features.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agorgw: set mins on options to avoid unneeded max()
John Spray [Thu, 13 Jul 2017 17:14:59 +0000 (13:14 -0400)]
rgw: set mins on options to avoid unneeded max()

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: update options.cc for master
John Spray [Thu, 13 Jul 2017 16:53:07 +0000 (12:53 -0400)]
common: update options.cc for master

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: move validation in Option and add a test
John Spray [Thu, 13 Jul 2017 16:43:43 +0000 (12:43 -0400)]
common: move validation in Option and add a test

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agotest: update md_config_t unit test
John Spray [Thu, 13 Jul 2017 12:26:01 +0000 (08:26 -0400)]
test: update md_config_t unit test

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: revert public_addr setting to a string
John Spray [Thu, 13 Jul 2017 12:24:31 +0000 (08:24 -0400)]
common: revert public_addr setting to a string

This was a string in the old schema, and tests
depended on that -- if we want to change its type
let's do that separately to the infrastructure changes.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agotools: avoid max() calls on rbd config options
John Spray [Wed, 12 Jul 2017 23:54:59 +0000 (19:54 -0400)]
tools: avoid max() calls on rbd config options

These were awkward for typing of the '1' literal vs.
the int64_t settings.  The whole max() thing is also
unnecessary now, if we set proper bounds on the option
definitions.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon/options: separate "service" from "tags"
John Spray [Wed, 12 Jul 2017 23:22:25 +0000 (19:22 -0400)]
common/options: separate "service" from "tags"

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: enforce min/max/enum on config options
John Spray [Wed, 12 Jul 2017 21:58:19 +0000 (17:58 -0400)]
common: enforce min/max/enum on config options

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoinclude/uuid: give uuid_d a < comparator
John Spray [Wed, 12 Jul 2017 21:20:02 +0000 (17:20 -0400)]
include/uuid: give uuid_d a < comparator

This is only there so that a variant<> containing
a uuid (amongst other types) can have operator< acting on it.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: update options.cc for latest additions
John Spray [Wed, 12 Jul 2017 21:19:24 +0000 (17:19 -0400)]
common: update options.cc for latest additions

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomon: implement `config set`
John Spray [Wed, 12 Jul 2017 14:10:06 +0000 (10:10 -0400)]
mon: implement `config set`

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomds: implement `config set`
John Spray [Wed, 12 Jul 2017 14:09:33 +0000 (10:09 -0400)]
mds: implement `config set`

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoosd: implement `config set`
John Spray [Wed, 12 Jul 2017 13:05:32 +0000 (09:05 -0400)]
osd: implement `config set`

This is a friendlier replacement for injectargs.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: pass up error strings from set_val
John Spray [Wed, 12 Jul 2017 12:49:43 +0000 (08:49 -0400)]
common: pass up error strings from set_val

This is so that we can use it as a replacment
for the ugly injectargs.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: implement "config help" to output schema
John Spray [Wed, 12 Jul 2017 11:57:10 +0000 (07:57 -0400)]
common: implement "config help" to output schema

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agorgw: treat config ints as 64 bit
John Spray [Tue, 11 Jul 2017 18:24:26 +0000 (14:24 -0400)]
rgw: treat config ints as 64 bit

In the new world, all int config values are 64 bit.  When
doing a min() like this, need both sides in the same type.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: respect daemon defaults in config options
John Spray [Tue, 11 Jul 2017 14:08:20 +0000 (10:08 -0400)]
common: respect daemon defaults in config options

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: re-add unsigned config option type
John Spray [Tue, 11 Jul 2017 12:25:26 +0000 (08:25 -0400)]
common: re-add unsigned config option type

As long as some options are being consumed
via md_config_t:: members, various users
of (unsigned) int values will get compile warnings
when they e.g. compare them with other unsigned values.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: reinstate config opt validators
John Spray [Tue, 11 Jul 2017 11:00:54 +0000 (07:00 -0400)]
common: reinstate config opt validators

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: sync up options.cc with latest master
John Spray [Mon, 10 Jul 2017 12:43:25 +0000 (08:43 -0400)]
common: sync up options.cc with latest master

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon/config: hook in new Option config descriptions
John Spray [Fri, 7 Jul 2017 14:12:18 +0000 (10:12 -0400)]
common/config: hook in new Option config descriptions

The C++ class member fields continue to exist for
settings defined in common/legacy_config_opts.h, but
all the schema information is coming from common/options.cc
now.

The values in md_config_t::values are automatically
copied into the C++ class member fields for legacy config
options as needed.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agolog/SubsystemMap: return a size_t from get_num
John Spray [Fri, 7 Jul 2017 14:08:57 +0000 (10:08 -0400)]
log/SubsystemMap: return a size_t from get_num

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr: tighten initialization of keyring setting
John Spray [Fri, 7 Jul 2017 14:08:07 +0000 (10:08 -0400)]
mgr: tighten initialization of keyring setting

We should not proceed if setting this fails.  Also
the meta=false setting is not what you want when
calling into set_val after initialization, I'm not sure
how that ever worked!

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: separate config opts definitions from subsys definitions
John Spray [Wed, 5 Jul 2017 20:32:05 +0000 (16:32 -0400)]
common: separate config opts definitions from subsys definitions

Previously these were all in one header and inclusions of it
got really verbose from everyone having to define SUBSYS and OPTION
macros even though they only wanted to pick out one or the other.

Also, this separates the subsys.h stuff (staying) from the legacy
config opt definitions (transitional, will go).

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: remove ::validate definitions
John Spray [Wed, 5 Jul 2017 20:25:17 +0000 (16:25 -0400)]
common: remove ::validate definitions

These will be replaced by validate methods
on Option subclasses that need them.  The code
that was in these files moved to options.[h|cc]

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: hook in 'safe' flag to new config options
John Spray [Wed, 5 Jul 2017 13:12:46 +0000 (09:12 -0400)]
common: hook in 'safe' flag to new config options

It's a poor substitute for real a concurrency solution
but for the moment carry it forward so that the options
structure can replace the list of config_option
in md_config_t.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: s/config_opts/legacy_config_opts/
John Spray [Wed, 5 Jul 2017 11:18:30 +0000 (07:18 -0400)]
common: s/config_opts/legacy_config_opts/

Name change reflects that newly added config opts
don't need to go here.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: use a vector instead of array in options.cc
John Spray [Wed, 5 Jul 2017 11:04:47 +0000 (07:04 -0400)]
common: use a vector instead of array in options.cc

Avoids retro 80s style blank entry at the end :-)

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agocommon: rip out option code generation bit
John Spray [Wed, 5 Jul 2017 10:58:09 +0000 (06:58 -0400)]
common: rip out option code generation bit

We can have a legacy (static field) config object
that includes fields from config_opts.h, and
then switch to using dynamic get() for newly
added options, so that we don't need to do
code generation for the new config infrastructure.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agog++ ../src/convert.cc -o cv -I../src -I.
Sage Weil [Mon, 26 Jun 2017 19:31:34 +0000 (15:31 -0400)]
g++ ../src/convert.cc -o cv -I../src -I.
./cv > /tmp/foo
...and copy that into options.cc
bin/generate_option_header > ../src/common/config_fields.h

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agocommon/options: more constness
Kefu Chai [Wed, 7 Jun 2017 03:42:32 +0000 (11:42 +0800)]
common/options: more constness

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocommon/options: specialize on non bool integeral types
Kefu Chai [Wed, 7 Jun 2017 03:11:55 +0000 (11:11 +0800)]
common/options: specialize on non bool integeral types

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocommon/options: new options infrastructure
Sage Weil [Fri, 12 May 2017 03:31:50 +0000 (22:31 -0500)]
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>
8 years agocommon: remove max_open_files config option
Sage Weil [Fri, 12 May 2017 02:52:23 +0000 (21:52 -0500)]
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>
8 years agoceph-syn: parse --num-client locally; remove global option
Sage Weil [Fri, 12 May 2017 02:49:35 +0000 (21:49 -0500)]
ceph-syn: parse --num-client locally; remove global option

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #16028 from jcsp/wip-mgr-commands
Kefu Chai [Fri, 21 Jul 2017 10:16:13 +0000 (18:16 +0800)]
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>
8 years agoMerge pull request #16415 from xiexingguo/wip-health-mon
Kefu Chai [Fri, 21 Jul 2017 10:12:31 +0000 (18:12 +0800)]
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>
8 years agoMerge pull request #16409 from liupan1111/wip-restructure-bs
Kefu Chai [Fri, 21 Jul 2017 08:55:38 +0000 (16:55 +0800)]
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>
8 years agoMerge pull request #16328 from neha-ojha/recovery_sleep_default
Kefu Chai [Fri, 21 Jul 2017 08:55:02 +0000 (16:55 +0800)]
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>
8 years agocommon: prevent unset_dumpable from generating warnings 16462/head
Willem Jan Withagen [Thu, 20 Jul 2017 21:01:20 +0000 (23:01 +0200)]
common: prevent unset_dumpable from generating warnings

 - Let the struct at least have a CTR

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #16470 from tchaikov/wip-watch-audit-channel
Kefu Chai [Fri, 21 Jul 2017 05:41:43 +0000 (13:41 +0800)]
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>
8 years agoqa/workunits/cephtool/test.sh: fix test to watch audit channel 16470/head
Sage Weil [Thu, 20 Jul 2017 21:37:03 +0000 (17:37 -0400)]
qa/workunits/cephtool/test.sh: fix test to watch audit channel

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/tasks/reg11184: import run 16454/head
Sage Weil [Thu, 20 Jul 2017 21:42:59 +0000 (17:42 -0400)]
qa/tasks/reg11184: import run

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #16429 from liewegas/wip-jewel-x
Sage Weil [Thu, 20 Jul 2017 15:47:05 +0000 (10:47 -0500)]
Merge pull request #16429 from liewegas/wip-jewel-x

qa/suites/upgrade/jewel-x: misc fixes for new health checks

8 years agoMerge pull request #16374 from majianpeng/bluestore-double-count-kv-queue-lat
Sage Weil [Thu, 20 Jul 2017 15:44:40 +0000 (10:44 -0500)]
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>
8 years agoMerge pull request #16423 from liewegas/wip-ls
Sage Weil [Thu, 20 Jul 2017 15:43:34 +0000 (10:43 -0500)]
Merge pull request #16423 from liewegas/wip-ls

mon: '* list' -> '* ls'

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #16434 from badone/wip-fix-deep-age-reporting
Sage Weil [Thu, 20 Jul 2017 15:43:15 +0000 (10:43 -0500)]
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>
8 years agoMerge pull request #16444 from tchaikov/wip-test-osd-stat
Kefu Chai [Thu, 20 Jul 2017 15:41:53 +0000 (23:41 +0800)]
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>
8 years agoqa/tasks/ceph_manager: wait for osd to start after objectstore-tool sequence
Sage Weil [Thu, 20 Jul 2017 15:41:36 +0000 (11:41 -0400)]
qa/tasks/ceph_manager: wait for osd to start after objectstore-tool sequence

Fixes: http://tracker.ceph.com/issues/20705
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14287 from oritwas/wip-rgw-usage
Yuri Weinstein [Thu, 20 Jul 2017 15:39:21 +0000 (08:39 -0700)]
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>
8 years agoMerge pull request #15673 from yehudasa/wip-20107
Yuri Weinstein [Thu, 20 Jul 2017 15:35:07 +0000 (08:35 -0700)]
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>
8 years agoMerge pull request #16421 from tchaikov/wip-19939
Kefu Chai [Thu, 20 Jul 2017 14:52:17 +0000 (22:52 +0800)]
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>
8 years agoMerge pull request #16418 from theanalyst/doc-rgw-tenant-names
Jos Collin [Thu, 20 Jul 2017 14:38:45 +0000 (14:38 +0000)]
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>
8 years agoMerge pull request #16443 from wjwithagen/bug-wjw-qa-test-reorder
Kefu Chai [Thu, 20 Jul 2017 14:13:37 +0000 (22:13 +0800)]
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>
8 years agoMerge pull request #16451 from tchaikov/wip-qa-reg11184
Jason Dillaman [Thu, 20 Jul 2017 13:37:53 +0000 (09:37 -0400)]
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>
8 years agoqa/tasks/reg11184: use literal 'foo' instead pool_name 16451/head
Kefu Chai [Thu, 20 Jul 2017 13:20:30 +0000 (21:20 +0800)]
qa/tasks/reg11184: use literal 'foo' instead pool_name

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #16412 from wido/zabbix-release-notes
Kefu Chai [Thu, 20 Jul 2017 12:20:54 +0000 (20:20 +0800)]
Merge pull request #16412 from wido/zabbix-release-notes

doc: Add Zabbix ceph-mgr plugin to PendingReleaseNotes

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorelease notes: Add Zabbix ceph-mgr module to PendingReleaseNotes 16412/head
Wido den Hollander [Wed, 19 Jul 2017 07:33:50 +0000 (09:33 +0200)]
release notes: Add Zabbix ceph-mgr module to PendingReleaseNotes

Signed-off-by: Wido den Hollander <wido@42on.com>
8 years agodoc: rgw clarify limitations when creating tenant names 16418/head
Abhishek Lekshmanan [Wed, 19 Jul 2017 11:57:48 +0000 (13:57 +0200)]
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>
8 years agoqa/workunits/cephtool/test.sh: "ceph osd stat" output changed, update test accordingly 16444/head
Kefu Chai [Thu, 20 Jul 2017 11:34:35 +0000 (19:34 +0800)]
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>
8 years agocephtool/test.sh: Only delete a test pool when no longer needed. 16443/head
Willem Jan Withagen [Thu, 20 Jul 2017 10:24:14 +0000 (12:24 +0200)]
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>
8 years agoMerge pull request #16403 from wjwithagen/bug-wjw-ceph-osd-stat
Kefu Chai [Thu, 20 Jul 2017 10:06:47 +0000 (18:06 +0800)]
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>
8 years agoMerge pull request #16428 from idryomov/wip-krbd-luminous-thrash
Ilya Dryomov [Thu, 20 Jul 2017 09:28:22 +0000 (11:28 +0200)]
Merge pull request #16428 from idryomov/wip-krbd-luminous-thrash

qa: thrash tests for backoff and upmap

Reviewed-by: Vasu Kulkarni <vasu@redhat.com>
8 years agoMerge pull request #16424 from tchaikov/wip-assert-in-c
Kefu Chai [Thu, 20 Jul 2017 06:49:49 +0000 (14:49 +0800)]
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>
8 years agoMerge pull request #16400 from liewegas/wip-crush-rule-id
Sage Weil [Thu, 20 Jul 2017 03:02:41 +0000 (22:02 -0500)]
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>
8 years agoMerge pull request #16402 from liewegas/wip-20105
Sage Weil [Thu, 20 Jul 2017 03:02:04 +0000 (22:02 -0500)]
Merge pull request #16402 from liewegas/wip-20105

ceph_test_rados_api_watch_notify: flush after unwatch

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomon: hide 'osd crush rule list' (we prefer 'ls') 16423/head
Sage Weil [Thu, 20 Jul 2017 02:47:21 +0000 (22:47 -0400)]
mon: hide 'osd crush rule list' (we prefer 'ls')

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #16433 from dmick/wip-ccache
Kefu Chai [Thu, 20 Jul 2017 02:09:28 +0000 (10:09 +0800)]
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>
8 years agomon/HealthMonitor: fix summary of monitor clock skew 16415/head
xie xingguo [Thu, 20 Jul 2017 00:27:00 +0000 (08:27 +0800)]
mon/HealthMonitor: fix summary of monitor clock skew

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agomon: Fix deep_age copy paste error 16434/head
Brad Hubbard [Wed, 19 Jul 2017 23:27:10 +0000 (09:27 +1000)]
mon: Fix deep_age copy paste error

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agodo_cmake.sh: fix syntax for /bin/sh (doesn't have +=) 16433/head
Dan Mick [Wed, 19 Jul 2017 22:02:02 +0000 (15:02 -0700)]
do_cmake.sh: fix syntax for /bin/sh (doesn't have +=)

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agolibrados: 'pg ls' is not a mgr command 16028/head
Sage Weil [Wed, 19 Jul 2017 21:00:00 +0000 (17:00 -0400)]
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>
8 years agomon: restore mgr command lookup so that we can still proxy to mgr
Sage Weil [Wed, 19 Jul 2017 20:58:14 +0000 (16:58 -0400)]
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>
8 years agomon: constify _get_moncommand
Sage Weil [Wed, 19 Jul 2017 20:57:16 +0000 (16:57 -0400)]
mon: constify _get_moncommand

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agodoc: update osd recovery sleep description 16328/head
Neha Ojha [Wed, 19 Jul 2017 21:14:42 +0000 (14:14 -0700)]
doc: update osd recovery sleep description

Signed-off-by: Neha Ojha <nojha@redhat.com>
8 years agoMerge pull request #16309 from fangyuxiangGL/fix-admin-rest-api
Casey Bodley [Wed, 19 Jul 2017 20:13:27 +0000 (16:13 -0400)]
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>
8 years agoMerge pull request #15952 from jdurgin/wip-peering-deletes
Yuri Weinstein [Wed, 19 Jul 2017 19:53:25 +0000 (12:53 -0700)]
Merge pull request #15952 from jdurgin/wip-peering-deletes

osd: process deletes during recovery instead of peering

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #16376 from jecluis/wip-mon-fix-loglast
Yuri Weinstein [Wed, 19 Jul 2017 19:52:09 +0000 (12:52 -0700)]
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>
8 years agoMerge pull request #16419 from Abhishekvrshny/fix-err-msg
Casey Bodley [Wed, 19 Jul 2017 19:48:06 +0000 (15:48 -0400)]
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>
8 years agodoc: add osd recovery sleep for HDDs and SSDs
Neha Ojha [Wed, 19 Jul 2017 18:47:10 +0000 (11:47 -0700)]
doc: add osd recovery sleep for HDDs and SSDs

Signed-off-by: Neha Ojha <nojha@redhat.com>
8 years agoMerge pull request #16431 from jeffgreenca/master
Sage Weil [Wed, 19 Jul 2017 17:57:14 +0000 (12:57 -0500)]
Merge pull request #16431 from jeffgreenca/master

doc: Fixed a typo in yum repo filename script

8 years agoMerge pull request #15763 from dillaman/wip-pool-tags
Sage Weil [Wed, 19 Jul 2017 17:56:10 +0000 (12:56 -0500)]
Merge pull request #15763 from dillaman/wip-pool-tags

mon: support pool application metadata key/values

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agodoc: Fixed a typo in yum repo filename script 16431/head
Jeff Green [Wed, 19 Jul 2017 17:51:09 +0000 (10:51 -0700)]
doc: Fixed a typo in yum repo filename script

Signed-off-by: Jeff Green <jeff.green.ca@gmail.com>