]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoqa: fix wait for wrong health message 16640/head
Patrick Donnelly [Thu, 27 Jul 2017 21:35:47 +0000 (14:35 -0700)]
qa: fix wait for wrong health message

Fixes: http://tracker.ceph.com/issues/20805
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #16629 from johnwilkins/wip-doc-remove-contractions
Gregory Farnum [Thu, 27 Jul 2017 17:49:38 +0000 (10:49 -0700)]
Merge pull request #16629 from johnwilkins/wip-doc-remove-contractions

Remove contractions from the documentation.

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
7 years agoMerge pull request #16572 from liewegas/wip-pidfile
Sage Weil [Thu, 27 Jul 2017 17:32:36 +0000 (12:32 -0500)]
Merge pull request #16572 from liewegas/wip-pidfile

test: add separate ceph-helpers-based smoke test

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agodoc/cephfs: Removed contractions for ESL speakers. 16629/head
John Wilkins [Thu, 27 Jul 2017 17:01:29 +0000 (10:01 -0700)]
doc/cephfs: Removed contractions for ESL speakers.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
7 years agodoc/start: Removed contractions for ESL speakers.
John Wilkins [Thu, 27 Jul 2017 16:59:00 +0000 (09:59 -0700)]
doc/start: Removed contractions for ESL speakers.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
7 years agodoc/man: Removed contractions for ESL speakers.
John Wilkins [Thu, 27 Jul 2017 16:57:23 +0000 (09:57 -0700)]
doc/man: Removed contractions for ESL speakers.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
7 years agodoc/install: Removed contractions for ESL speakers.
John Wilkins [Thu, 27 Jul 2017 16:55:58 +0000 (09:55 -0700)]
doc/install: Removed contractions for ESL speakers.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
7 years agodoc/rgw: Removed contractions for ESL speakers.
John Wilkins [Thu, 27 Jul 2017 16:54:37 +0000 (09:54 -0700)]
doc/rgw: Removed contractions for ESL speakers.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
7 years agodoc/rbd: Removed contractions for ESL speakers.
John Wilkins [Thu, 27 Jul 2017 16:52:56 +0000 (09:52 -0700)]
doc/rbd: Removed contractions for ESL speakers.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
7 years agodoc/rados: Removed contractions to improve readabilty for ESL speakers.
John Wilkins [Thu, 27 Jul 2017 16:46:53 +0000 (09:46 -0700)]
doc/rados: Removed contractions to improve readabilty for ESL speakers.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
7 years agoMerge pull request #16569 from liewegas/wip-set-not-put
Sage Weil [Thu, 27 Jul 2017 16:34:37 +0000 (11:34 -0500)]
Merge pull request #16569 from liewegas/wip-set-not-put

mon: 'config-key put' -> 'config-key set'

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
7 years agoqa/standalone/crush/crush-classes: fix test 16572/head
Sage Weil [Thu, 27 Jul 2017 16:25:25 +0000 (12:25 -0400)]
qa/standalone/crush/crush-classes: fix test

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/standalone/README
Sage Weil [Thu, 27 Jul 2017 14:55:56 +0000 (10:55 -0400)]
qa/standalone/README

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agotest/smoke.sh: add simple ceph-helpers-based smoke test
Sage Weil [Wed, 26 Jul 2017 20:26:43 +0000 (16:26 -0400)]
test/smoke.sh: add simple ceph-helpers-based smoke test

This is just enough during make check to know things aren't totally
broken.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16388 from xiexingguo/wip-class-misc-fixes
Sage Weil [Thu, 27 Jul 2017 16:04:33 +0000 (11:04 -0500)]
Merge pull request #16388 from xiexingguo/wip-class-misc-fixes

crush, mon: simplify device class manipulation commands

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16172 from ivancich/wip-dup-ops
Josh Durgin [Thu, 27 Jul 2017 15:57:39 +0000 (08:57 -0700)]
Merge pull request #16172 from ivancich/wip-dup-ops

PGLog: store extra duplicate ops beyond the normal log entries

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16558 from hjwsm1989/fix-recovering-hang-with-unfound-objects
Yuri Weinstein [Thu, 27 Jul 2017 15:37:15 +0000 (08:37 -0700)]
Merge pull request #16558 from hjwsm1989/fix-recovering-hang-with-unfound-objects

  osd/PrimaryLogPG: fix recovering hang when have unfound objects

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16561 from Yan-waller/wip-walle-0725osddumpclinfo
Yuri Weinstein [Thu, 27 Jul 2017 15:36:23 +0000 (08:36 -0700)]
Merge pull request #16561 from Yan-waller/wip-walle-0725osddumpclinfo

osd: add dump filter for tracked ops

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
7 years agoPGLog: continuation, store extra duplicate ops beyond the normal log entries 16172/head
J. Eric Ivancich [Mon, 8 May 2017 20:48:18 +0000 (16:48 -0400)]
PGLog: continuation, store extra duplicate ops beyond the normal log entries

This helps us avoid replaying non-idempotent client operations when
the pg log is very short, e.g. in an effort to force OSDs to use
backfill rather than regular recovery. This can be advantageous to
avoid blocking i/o to objects, at the cost of longer total time to
become clean (since backfill requires scanning the objects to see what
is missing).

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #16384 from mikulely/2-checkout-placmenet-target-existness
Yuri Weinstein [Thu, 27 Jul 2017 14:29:13 +0000 (07:29 -0700)]
Merge pull request #16384 from mikulely/2-checkout-placmenet-target-existness

rgw: check placement target existence during bucket creation

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #16389 from prallabh/wip-20661
Yuri Weinstein [Thu, 27 Jul 2017 14:27:37 +0000 (07:27 -0700)]
Merge pull request #16389 from prallabh/wip-20661

rgw: Do not decrement stats cache when the cache values are zero

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
7 years agoMerge pull request #16463 from cbodley/wip-20708
Yuri Weinstein [Thu, 27 Jul 2017 14:25:50 +0000 (07:25 -0700)]
Merge pull request #16463 from cbodley/wip-20708

rgw: fix parse/eval of policy conditions with IfExists

Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
7 years agoMerge pull request #16495 from weiqiaomiao/wip_weiqm_rgw_crash
Yuri Weinstein [Thu, 27 Jul 2017 14:22:59 +0000 (07:22 -0700)]
Merge pull request #16495 from weiqiaomiao/wip_weiqm_rgw_crash

rgw: fix radosgw will crash when service is restarted during lifecycl…

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
7 years agoMerge pull request #16531 from rzarzynski/wip-rgw-20757
Yuri Weinstein [Thu, 27 Jul 2017 14:19:22 +0000 (07:19 -0700)]
Merge pull request #16531 from rzarzynski/wip-rgw-20757

rgw: fix memory leaks during Swift Static Website's error handling.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #16601 from rzarzynski/wip-rgw-20774
Yuri Weinstein [Thu, 27 Jul 2017 14:18:42 +0000 (07:18 -0700)]
Merge pull request #16601 from rzarzynski/wip-rgw-20774

rgw: never let http_redirect_code of RGWRedirectInfo to stay uninitialized

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
7 years agoMerge pull request #16604 from rzarzynski/wip-rgw-20779
Yuri Weinstein [Thu, 27 Jul 2017 14:17:32 +0000 (07:17 -0700)]
Merge pull request #16604 from rzarzynski/wip-rgw-20779

rgw: fix the UTF8 check on bucket entry name in rgw_log_op().

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #16575 from liewegas/wip-20693
Sage Weil [Thu, 27 Jul 2017 13:31:53 +0000 (08:31 -0500)]
Merge pull request #16575 from liewegas/wip-20693

qa/suites/rados: at-end: ignore PG_{AVAILABILITY,DEGRADED}

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16398 from dillaman/wip-20655
Jason Dillaman [Thu, 27 Jul 2017 12:27:39 +0000 (08:27 -0400)]
Merge pull request #16398 from dillaman/wip-20655

rbd-mirror: guard the deletion of non-primary images

Reviewed-by: Venky Shankar <vshankar@redhat.com>
7 years agoMerge pull request #16574 from batrick/rgw-rbd-stripped-build
Kefu Chai [Thu, 27 Jul 2017 05:10:07 +0000 (13:10 +0800)]
Merge pull request #16574 from batrick/rgw-rbd-stripped-build

CMakeLists: trim rbd/rgw forced dependencies

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16603 from dillaman/wip-rbd-mirror-valgrind
Venky Shankar [Thu, 27 Jul 2017 02:54:28 +0000 (08:24 +0530)]
Merge pull request #16603 from dillaman/wip-rbd-mirror-valgrind

rbd-mirror: initialize timer context pointer to null

7 years agoMerge pull request #16613 from liewegas/wip-vstart-mgr
Sage Weil [Thu, 27 Jul 2017 02:04:25 +0000 (21:04 -0500)]
Merge pull request #16613 from liewegas/wip-vstart-mgr

vstart.sh: start mgr after mon, before osds

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
7 years agoMerge pull request #16584 from gregsfortytwo/wip-deletes-coverity
Jos Collin [Thu, 27 Jul 2017 01:11:01 +0000 (01:11 +0000)]
Merge pull request #16584 from gregsfortytwo/wip-deletes-coverity

messages: default-initialize MOSDPGRecoveryDelete[Reply] members

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agovstart.sh: start mgr after mon, before osds 16613/head
Sage Weil [Wed, 26 Jul 2017 21:22:25 +0000 (17:22 -0400)]
vstart.sh: start mgr after mon, before osds

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16610 from dzafman/wip-fix-reg11184
David Zafman [Wed, 26 Jul 2017 18:42:15 +0000 (11:42 -0700)]
Merge pull request #16610 from dzafman/wip-fix-reg11184

test: reg11184 might not always find pg 2.0 prior to import

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoPendingReleaseNotes: note about put -> set 16569/head
Sage Weil [Wed, 26 Jul 2017 12:00:45 +0000 (08:00 -0400)]
PendingReleaseNotes: note about put -> set

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/workunits/cephtool/test.sh: add some config-key tests
Sage Weil [Tue, 25 Jul 2017 15:25:00 +0000 (11:25 -0400)]
qa/workunits/cephtool/test.sh: add some config-key tests

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon: 'config-key put' -> 'config-key set'
Sage Weil [Tue, 25 Jul 2017 15:24:50 +0000 (11:24 -0400)]
mon: 'config-key put' -> 'config-key set'

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16530 from xiexingguo/wip-fix-pgtemp
Sage Weil [Wed, 26 Jul 2017 18:09:33 +0000 (13:09 -0500)]
Merge pull request #16530 from xiexingguo/wip-fix-pgtemp

mon: prime pg_temp and a few health warning fixes

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16587 from dzafman/wip-20770
David Zafman [Wed, 26 Jul 2017 17:53:16 +0000 (10:53 -0700)]
Merge pull request #16587 from dzafman/wip-20770

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16600 from dingdangzhang/master
Kefu Chai [Wed, 26 Jul 2017 17:03:12 +0000 (01:03 +0800)]
Merge pull request #16600 from dingdangzhang/master

bluestore/BlueFS: pass string as const ref

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16563 from hjwsm1989/readable-thread-info
Kefu Chai [Wed, 26 Jul 2017 17:00:31 +0000 (01:00 +0800)]
Merge pull request #16563 from hjwsm1989/readable-thread-info

common/WorkQueue: use threadpoolname + threadaddr for heartbeat_han…

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16576 from liewegas/wip-20371
Kefu Chai [Wed, 26 Jul 2017 17:00:07 +0000 (01:00 +0800)]
Merge pull request #16576 from liewegas/wip-20371

mon/MonClient: scale backoff interval down when we have a healthy mon session

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16559 from hjwsm1989/dump-stuck
Sage Weil [Wed, 26 Jul 2017 16:59:21 +0000 (11:59 -0500)]
Merge pull request #16559 from hjwsm1989/dump-stuck

qa/tasks/dump_stuck: fix dump_stuck test bug

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16516 from Liuchang0812/nit-close-formatter-section
Kefu Chai [Wed, 26 Jul 2017 16:55:05 +0000 (00:55 +0800)]
Merge pull request #16516 from Liuchang0812/nit-close-formatter-section

mon/MDSMonitor: close object section of formatter

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16553 from wumingqiao/wip-leveldb-store-crash
Kefu Chai [Wed, 26 Jul 2017 16:54:21 +0000 (00:54 +0800)]
Merge pull request #16553 from wumingqiao/wip-leveldb-store-crash

kv: resolve a crash issue in ~LevelDBStore()

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16578 from liewegas/wip-20771
Sage Weil [Wed, 26 Jul 2017 16:53:17 +0000 (11:53 -0500)]
Merge pull request #16578 from liewegas/wip-20771

common/common_init: disable default dout logging for UTILITY_NODOUT too

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16522 from majianpeng/bluestore-remove-unused-code
Kefu Chai [Wed, 26 Jul 2017 16:46:34 +0000 (00:46 +0800)]
Merge pull request #16522 from majianpeng/bluestore-remove-unused-code

os/bluestore/BlueStore: remove unused code.

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest: reg11184 might not always find pg 2.0 prior to import 16610/head
David Zafman [Wed, 26 Jul 2017 16:46:15 +0000 (09:46 -0700)]
test: reg11184 might not always find pg 2.0 prior to import

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #16571 from ceph/wip-cd-bluestore-2
Sage Weil [Wed, 26 Jul 2017 16:43:50 +0000 (11:43 -0500)]
Merge pull request #16571 from ceph/wip-cd-bluestore-2

qa/tasks/ceph-deploy: Fix bluestore options for ceph-deploy

Reviewed-by: Tamil Muthamizhan <tmuthami@redhat.com>
7 years agoMerge pull request #16452 from wjwithagen/wjw-warning-unused
Kefu Chai [Wed, 26 Jul 2017 15:19:57 +0000 (23:19 +0800)]
Merge pull request #16452 from wjwithagen/wjw-warning-unused

buffer: silence unused var warning on FreeBSD

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #16483 from ddiss/cmake_install_includedir
Kefu Chai [Wed, 26 Jul 2017 15:19:05 +0000 (23:19 +0800)]
Merge pull request #16483 from ddiss/cmake_install_includedir

cmake: use CMAKE_INSTALL_INCLUDEDIR

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #15033 from rzarzynski/wip-rgw-19831
Casey Bodley [Wed, 26 Jul 2017 15:13:33 +0000 (11:13 -0400)]
Merge pull request #15033 from rzarzynski/wip-rgw-19831

rgw: fix segfault in RevokeThread during its shutdown procedure.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoPGLog: store extra duplicate ops beyond the normal log entries
Josh Durgin [Tue, 18 Apr 2017 22:49:21 +0000 (15:49 -0700)]
PGLog: store extra duplicate ops beyond the normal log entries

This helps us avoid replaying non-idempotent client operations when
the pg log is very short, e.g. in an effort to force OSDs to use
backfill rather than regular recovery. This can be advantageous to
avoid blocking i/o to objects, at the cost of longer total time to
become clean (since backfill requires scanning the objects to see what
is missing).

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #16013 from xiexingguo/wip-blue-tool
Sage Weil [Wed, 26 Jul 2017 15:04:26 +0000 (10:04 -0500)]
Merge pull request #16013 from xiexingguo/wip-blue-tool

os/bluestore/bluestore_tool: add sanity check to get rid of occasionally crash

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #16528 from tchaikov/wip-ceph-release-notes
Kefu Chai [Wed, 26 Jul 2017 15:03:01 +0000 (23:03 +0800)]
Merge pull request #16528 from tchaikov/wip-ceph-release-notes

tools: ceph-release-notes: escape _ for unintended links

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
7 years agoMerge pull request #16404 from dzafman/wip-20041
David Zafman [Wed, 26 Jul 2017 14:59:43 +0000 (07:59 -0700)]
Merge pull request #16404 from dzafman/wip-20041

osd: scrub_to specifies clone ver, but transaction include head write…

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agodoc/rados/operations/crush-map: s/die/dice/ 16388/head
xie xingguo [Tue, 25 Jul 2017 12:42:30 +0000 (20:42 +0800)]
doc/rados/operations/crush-map: s/die/dice/

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agomon/OSDMonitor: be more helpful for new weight-set CLI users
xie xingguo [Tue, 25 Jul 2017 12:34:15 +0000 (20:34 +0800)]
mon/OSDMonitor: be more helpful for new weight-set CLI users

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agodoc/release-notes: update device-class cli family
xie xingguo [Tue, 18 Jul 2017 09:05:50 +0000 (17:05 +0800)]
doc/release-notes: update device-class cli family

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest/crush: fix memory leak
xie xingguo [Tue, 18 Jul 2017 10:49:45 +0000 (18:49 +0800)]
test/crush: fix memory leak

use unique_ptr<> instead, otherwise static analyzer will complain.
as ASSERT_EQ will bail out without executing delete c

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agotest/crush: kill dead class_is_in_use test
xie xingguo [Tue, 25 Jul 2017 11:23:34 +0000 (19:23 +0800)]
test/crush: kill dead class_is_in_use test

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: kill 'class rename'
xie xingguo [Wed, 26 Jul 2017 14:11:34 +0000 (22:11 +0800)]
crush: kill 'class rename'

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: kill "class create" command
xie xingguo [Tue, 18 Jul 2017 08:53:50 +0000 (16:53 +0800)]
crush: kill "class create" command

The device class is now self and automatically managed.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: allow "crush class rm" to automatically recycle shadow tree(s)
xie xingguo [Tue, 18 Jul 2017 03:05:27 +0000 (11:05 +0800)]
crush: allow "crush class rm" to automatically recycle shadow tree(s)

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: rm-device-class support
xie xingguo [Sat, 15 Jul 2017 10:49:25 +0000 (18:49 +0800)]
crush: rm-device-class support

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: tidy up class_map on remove_root()
xie xingguo [Wed, 26 Jul 2017 12:22:58 +0000 (20:22 +0800)]
crush: tidy up class_map on remove_root()

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: implement find_shadow_roots
xie xingguo [Wed, 26 Jul 2017 12:07:53 +0000 (20:07 +0800)]
crush: implement find_shadow_roots

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: use is_shadow_item() wrapper if possible
xie xingguo [Wed, 26 Jul 2017 11:59:19 +0000 (19:59 +0800)]
crush: use is_shadow_item() wrapper if possible

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: reuse find_roots to implement find_nonshadow_roots
xie xingguo [Tue, 11 Jul 2017 08:07:43 +0000 (16:07 +0800)]
crush: reuse find_roots to implement find_nonshadow_roots

to reduce code redundance...

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: guard set-device-class
xie xingguo [Tue, 25 Jul 2017 07:18:44 +0000 (15:18 +0800)]
crush: guard set-device-class

If a device has already been bounded to a class,
do not allow to change its class silently.
Require user call rm-device-class first.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: fix class_is_in_use()
xie xingguo [Fri, 14 Jul 2017 11:43:26 +0000 (19:43 +0800)]
crush: fix class_is_in_use()

A class can be considered as in-use only if it is referenced by
any of the existing crush rules.

The patch also makes the output more human readable. For example:

./bin/ceph osd crush rule create-replicated myrule default host ssd
./bin/ceph osd crush class rm ssd
Error EBUSY: class 'ssd' still referenced by crush_rule 'myrule'

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: rebuild shadow tree on "crush create-or-move/move"
xie xingguo [Tue, 25 Jul 2017 06:15:24 +0000 (14:15 +0800)]
crush: rebuild shadow tree on "crush create-or-move/move"

This patch solves the problem below:

./bin/ceph osd crush move osd.0 root=foo rack=foo-rack host=foo-host
moved item id 0 name 'osd.0' to location {host=foo-host,rack=foo-rack,root=foo} in crush map

 ./bin/ceph osd crush rule create-replicated foo-rule foo host ssd
Error EINVAL: root foo has no devices with class ssd

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agocrush: fix "crush create-or-move/move" would drop osd's class
xie xingguo [Mon, 17 Jul 2017 05:55:54 +0000 (13:55 +0800)]
crush: fix "crush create-or-move/move" would drop osd's class

    Was:
     ./bin/ceph osd tree
    ID CLASS WEIGHT  TYPE NAME                                        UP/DOWN REWEIGHT PRI-AFF
    -1       3.00000 root default
    -2       3.00000     host gitbuilder-ceph-rpm-centos7-amd64-basic
     0   ssd 1.00000         osd.0                                         up  1.00000 1.00000
     1   ssd 1.00000         osd.1                                         up  1.00000 1.00000
     2   ssd 1.00000         osd.2                                         up  1.00000 1.00000

    ./bin/ceph osd crush move osd.0 root=foo rack=foo-rack  host=foo-host
    moved item id 0 name 'osd.0' to location {host=foo-host,rack=foo-rack,root=foo} in crush map

     ./bin/ceph osd tree
    ID CLASS WEIGHT  TYPE NAME                                        UP/DOWN REWEIGHT PRI-AFF
    -7       1.00000 root foo
    -6       1.00000     rack foo-rack
    -5       1.00000         host foo-host
     0       1.00000             osd.0                                     up  1.00000 1.00000
    -1       2.00000 root default
    -2       2.00000     host gitbuilder-ceph-rpm-centos7-amd64-basic
     1   ssd 1.00000         osd.1                                         up  1.00000 1.00000
     2   ssd 1.00000         osd.2                                         up  1.00000 1.00000

    Now:
    ./bin/ceph osd tree
    ID CLASS WEIGHT  TYPE NAME                                        UP/DOWN REWEIGHT PRI-AFF
    -1       3.00000 root default
    -2       3.00000     host gitbuilder-ceph-rpm-centos7-amd64-basic
     0   ssd 1.00000         osd.0                                         up  1.00000 1.00000
     1   ssd 1.00000         osd.1                                         up  1.00000 1.00000
     2   ssd 1.00000         osd.2                                         up  1.00000 1.00000

    ./bin/ceph osd crush move osd.0 root=foo rack=foo-rack  host=foo-host
    moved item id 0 name 'osd.0' to location {host=foo-host,rack=foo-rack,root=foo} in crush map

    ./bin/ceph osd tree
    ID CLASS WEIGHT  TYPE NAME                                        UP/DOWN REWEIGHT PRI-AFF
    -7       1.00000 root foo
    -6       1.00000     rack foo-rack
    -5       1.00000         host foo-host
     0   ssd 1.00000             osd.0                                     up  1.00000 1.00000
    -1       2.00000 root default
    -2       2.00000     host gitbuilder-ceph-rpm-centos7-amd64-basic
     1   ssd 1.00000         osd.1                                         up  1.00000 1.00000
     2   ssd 1.00000         osd.2                                         up  1.00000 1.00000

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agomon/OSDMonitor: optional show-shadow for "crush tree" command
xie xingguo [Wed, 26 Jul 2017 06:47:07 +0000 (14:47 +0800)]
mon/OSDMonitor: optional show-shadow for "crush tree" command

 ./bin/ceph osd crush tree --show-shadow
ID WEIGHT  TYPE NAME
-4 3.00000 root default~ssd
-3 3.00000     host gitbuilder-ceph-rpm-centos7-amd64-basic~ssd
 0 1.00000         osd.0
 1 1.00000         osd.1
 2 1.00000         osd.2
-1 3.00000 root default
-2 3.00000     host gitbuilder-ceph-rpm-centos7-amd64-basic
 0 1.00000         osd.0
 1 1.00000         osd.1
 2 1.00000         osd.2

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #16579 from liewegas/wip-fix-nonregression
Sage Weil [Wed, 26 Jul 2017 13:46:43 +0000 (08:46 -0500)]
Merge pull request #16579 from liewegas/wip-fix-nonregression

qa/suites/rados/singleton/all/erasure-code-nonregression: fix typo

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Amik Kumar <amitkuma@redhat.com>
7 years agoqa/workunits/erasure-code/encode-decode-nonregression: do not require git checkout 16579/head
Sage Weil [Wed, 26 Jul 2017 13:35:46 +0000 (09:35 -0400)]
qa/workunits/erasure-code/encode-decode-nonregression: do not require git checkout

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agorgw: fix the UTF8 check on bucket entry name in rgw_log_op(). 16604/head
Radoslaw Zarzynski [Wed, 26 Jul 2017 13:25:36 +0000 (09:25 -0400)]
rgw: fix the UTF8 check on bucket entry name in rgw_log_op().

Fixes: http://tracker.ceph.com/issues/20779
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #16580 from liewegas/wip-20767
Sage Weil [Wed, 26 Jul 2017 13:24:00 +0000 (08:24 -0500)]
Merge pull request #16580 from liewegas/wip-20767

pybind/mgr/zabbix: fix health in non-compat mode

Reviewed-by: Wido den Hollander <wido@widodh.nl>
7 years agoMerge pull request #16573 from liewegas/wip-osd-manual
Alfredo Deza [Wed, 26 Jul 2017 13:19:17 +0000 (09:19 -0400)]
Merge pull request #16573 from liewegas/wip-osd-manual

doc/install/manual-deployment: update osd creation steps

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agorbd-mirror: initialize timer context pointer to null 16603/head
Jason Dillaman [Wed, 26 Jul 2017 12:52:24 +0000 (08:52 -0400)]
rbd-mirror: initialize timer context pointer to null

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years ago bluestore/BlueFS: pass string as const ref 16600/head
dingdangzhang [Wed, 26 Jul 2017 12:05:01 +0000 (20:05 +0800)]
 bluestore/BlueFS: pass string as const ref

Signed-off-by: dingdangzhang <boqian.zy@alibaba-inc.com>
7 years agotest: Fixes for test_pidfile 16587/head
David Zafman [Wed, 26 Jul 2017 01:39:56 +0000 (18:39 -0700)]
test: Fixes for test_pidfile

Add a short delay for one test
Fix test that had unreliable log output

Fixes: http://tracker.ceph.com/issues/20770
Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agorgw: rgw_website.h doesn't assume inclusion of the std namespace anymore. 16601/head
Radoslaw Zarzynski [Wed, 26 Jul 2017 12:16:11 +0000 (08:16 -0400)]
rgw: rgw_website.h doesn't assume inclusion of the std namespace anymore.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agorgw: never let http_redirect_code of RGWRedirectInfo to stay uninitialized.
Radoslaw Zarzynski [Wed, 26 Jul 2017 12:12:30 +0000 (08:12 -0400)]
rgw: never let http_redirect_code of RGWRedirectInfo to stay uninitialized.

Fixes: http://tracker.ceph.com/issues/20774
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
7 years agoMerge pull request #14868 from wangzhengyong/librbd
Jason Dillaman [Wed, 26 Jul 2017 12:00:57 +0000 (08:00 -0400)]
Merge pull request #14868 from wangzhengyong/librbd

librbd: add compare and write API

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librbd: fixed compiler warnings
Jason Dillaman [Wed, 26 Jul 2017 11:42:30 +0000 (07:42 -0400)]
test/librbd: fixed compiler warnings

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librbd: improved compare_and_write testing
Jason Dillaman [Wed, 26 Jul 2017 11:41:52 +0000 (07:41 -0400)]
test/librbd: improved compare_and_write testing

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agotest/librbd: add compare_and_write test for fsx
wangzhengyong [Mon, 12 Jun 2017 13:25:32 +0000 (21:25 +0800)]
test/librbd: add compare_and_write test for fsx
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agotest/librbd: add compare_and_write testcase
wangzhengyong [Mon, 12 Jun 2017 13:25:12 +0000 (21:25 +0800)]
test/librbd: add compare_and_write testcase
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agotest/librbd: add Mock Image cache for compare_and_write
wangzhengyong [Mon, 12 Jun 2017 13:24:38 +0000 (21:24 +0800)]
test/librbd: add Mock Image cache for compare_and_write
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agotest/librbd: handle compare_and_write op in test_mock_Replay
wangzhengyong [Mon, 12 Jun 2017 13:24:04 +0000 (21:24 +0800)]
test/librbd: handle compare_and_write op in test_mock_Replay
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agolibrbd/journal: handle compare_and_write event
wangzhengyong [Mon, 12 Jun 2017 13:23:04 +0000 (21:23 +0800)]
librbd/journal: handle compare_and_write event
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agotest/librbd: handle cmpext request in LibradosTestStub
wangzhengyong [Mon, 12 Jun 2017 13:21:55 +0000 (21:21 +0800)]
test/librbd: handle cmpext request in LibradosTestStub
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agolibrbd: add compare_and_write/aio_compare_and_write API
wangzhengyong [Mon, 12 Jun 2017 13:18:29 +0000 (21:18 +0800)]
librbd: add compare_and_write/aio_compare_and_write API
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agolibrbd: add compare_and_write perfcounter
wangzhengyong [Mon, 12 Jun 2017 13:16:47 +0000 (21:16 +0800)]
librbd: add compare_and_write perfcounter
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agolibrbd: handle compare_and_write imagerequest in ImageRequestWQ
wangzhengyong [Mon, 12 Jun 2017 13:16:14 +0000 (21:16 +0800)]
librbd: handle compare_and_write imagerequest in ImageRequestWQ
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agolibrbd: add compare_and_write ImageRequest
wangzhengyong [Mon, 12 Jun 2017 13:14:19 +0000 (21:14 +0800)]
librbd: add compare_and_write ImageRequest
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agolibrbd: add CompareAndWrite ObjectRequest
wangzhengyong [Fri, 2 Jun 2017 07:41:23 +0000 (15:41 +0800)]
librbd: add CompareAndWrite ObjectRequest
Signed-off-by: Zhengyong Wang <wangzhengyong@cmss.chinamobile.com>
7 years agoMerge pull request #16595 from wjwithagen/wip-wjw-freebsd-run-standalone
Sage Weil [Wed, 26 Jul 2017 11:58:37 +0000 (06:58 -0500)]
Merge pull request #16595 from wjwithagen/wip-wjw-freebsd-run-standalone

qa: make run-standalone work on FreeBSD

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomon/MonClient: do not send_log if conn is not active anymore 16576/head
Kefu Chai [Wed, 26 Jul 2017 05:54:58 +0000 (13:54 +0800)]
mon/MonClient: do not send_log if conn is not active anymore

the log message to be sent will be appended to waiting_for_session
instead. but we will send the logs anyway when the MonClient is
authorized with the new connection. so, avoid doing this as it's not
necessary.

also refactor the schedule_tick() call into a scope_guard, so it is
always called upon the return of the tick() method.

Signed-off-by: Kefu Chai <kchai@redhat.com>