]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoscripts: ceph-release-notes for development versions 6666/head
Loic Dachary [Fri, 20 Nov 2015 14:12:20 +0000 (15:12 +0100)]
scripts: ceph-release-notes for development versions

Relax the requirements for titles and issues when --strict is not set.
Collect and display the merge messages when they are not the same as the
PR title.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agorelease-notes: draft v10.0.0 release notes
Loic Dachary [Fri, 20 Nov 2015 13:55:08 +0000 (14:55 +0100)]
release-notes: draft v10.0.0 release notes

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #6603 from ukernel/wip-13782
John Spray [Fri, 20 Nov 2015 13:59:06 +0000 (13:59 +0000)]
Merge pull request #6603 from ukernel/wip-13782

client: avoid creating orphan object in Client::check_pool_perm()

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge branch 'osd-op-create' of git://github.com/majianpeng/ceph
Sage Weil [Fri, 20 Nov 2015 12:01:19 +0000 (07:01 -0500)]
Merge branch 'osd-op-create' of git://github.com/majianpeng/ceph

Conflicts:
src/osd/ReplicatedPG.cc

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6489 from xiexingguo/xxg-wip-13715
Sage Weil [Fri, 20 Nov 2015 11:57:43 +0000 (06:57 -0500)]
Merge pull request #6489 from xiexingguo/xxg-wip-13715

librados: fix pool alignment API overflow issue

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #6492 from cxwshawn/wip-perf-fix
Sage Weil [Fri, 20 Nov 2015 11:56:35 +0000 (06:56 -0500)]
Merge pull request #6492 from cxwshawn/wip-perf-fix

osd: change mutex to spinlock to optimize thread context switch.

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6550 from cernceph/wip-deepscrub
Sage Weil [Fri, 20 Nov 2015 11:56:04 +0000 (06:56 -0500)]
Merge pull request #6550 from cernceph/wip-deepscrub

osd: randomize deep scrubbing

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6568 from ghost/wip-scrub-error
Sage Weil [Fri, 20 Nov 2015 11:55:38 +0000 (06:55 -0500)]
Merge pull request #6568 from ghost/wip-scrub-error

scrub: do not assign value if read error

Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #6609 from liewegas/wip-newstore
Sage Weil [Fri, 20 Nov 2015 11:55:14 +0000 (06:55 -0500)]
Merge pull request #6609 from liewegas/wip-newstore

newstore: misc updates (including kv and os/fs stuff)

9 years agoMerge pull request #6622 from liewegas/wip-13796
Sage Weil [Fri, 20 Nov 2015 11:54:32 +0000 (06:54 -0500)]
Merge pull request #6622 from liewegas/wip-13796

osd: partial revert of "ReplicatedPG: result code not correctly set in some cases."

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #6658 from dachary/wip-releases
Loic Dachary [Thu, 19 Nov 2015 23:10:53 +0000 (00:10 +0100)]
Merge pull request #6658 from dachary/wip-releases

doc: add v0.80.11 to the release timeline

Reviewed-by: Nathan Cutler <ncutler@suse.cz>
9 years agoMerge pull request #6057 from rahul1aggarwal/master
Orit Wasserman [Thu, 19 Nov 2015 23:07:12 +0000 (00:07 +0100)]
Merge pull request #6057 from rahul1aggarwal/master

Bug #13207:  Rados Gateway: Anonymous user is able to read bucket with authenticated read ACL

9 years agodoc: add v0.80.11 to the release timeline 6658/head
Loic Dachary [Thu, 19 Nov 2015 22:47:48 +0000 (23:47 +0100)]
doc: add v0.80.11 to the release timeline

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agodoc/releases: add v0.80.11 to release table
Sage Weil [Thu, 19 Nov 2015 22:05:38 +0000 (17:05 -0500)]
doc/releases: add v0.80.11 to release table

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodoc/release-notes: final v0.80.11 notes
Sage Weil [Thu, 19 Nov 2015 22:04:22 +0000 (17:04 -0500)]
doc/release-notes: final v0.80.11 notes

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6374 from dachary/wip-release-notes-firefly
Sage Weil [Thu, 19 Nov 2015 22:03:43 +0000 (17:03 -0500)]
Merge pull request #6374 from dachary/wip-release-notes-firefly

release-notes: draft v0.80.11 release notes

9 years ago13207: Rados Gateway: Anonymous user is able to read bucket with authenticated read ACL 6057/head
root [Wed, 23 Sep 2015 18:51:13 +0000 (00:21 +0530)]
13207: Rados Gateway: Anonymous user is able to read bucket with authenticated read ACL

Signed-off-by: root <rahul.1aggarwal@gmail.com>
9 years agoMerge pull request #6654 from tchaikov/wip-unsigned-missing-scrub
David Zafman [Thu, 19 Nov 2015 19:06:59 +0000 (11:06 -0800)]
Merge pull request #6654 from tchaikov/wip-unsigned-missing-scrub

osd: note down the number of missing clones

Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoosd: note down the number of missing clones 6654/head
Kefu Chai [Thu, 19 Nov 2015 12:44:04 +0000 (20:44 +0800)]
osd: note down the number of missing clones

Caused by 2e0bb0ae9498fd9a0c49f1b81bf0c86f7a7cac42
Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6637 from Vicente-Cheng/update-ceph-disk-manual-page
Loic Dachary [Thu, 19 Nov 2015 10:06:35 +0000 (11:06 +0100)]
Merge pull request #6637 from Vicente-Cheng/update-ceph-disk-manual-page

doc: Update ceph-disk manual page with new feature deactivate/destroy.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoRadosClient: reimplement the pool alignment methods using the new ones 6489/head
xiexingguo [Thu, 19 Nov 2015 04:48:32 +0000 (12:48 +0800)]
RadosClient: reimplement the pool alignment methods using the new ones

so we don't less duplicated code and the logic reveals the problem of the old methods in a more visible way.
Fixes: #13715
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
9 years agodoc: Update ceph-disk manual page to remove some option description. 6637/head
Vicente Cheng [Thu, 19 Nov 2015 01:34:51 +0000 (09:34 +0800)]
doc: Update ceph-disk manual page to remove some option description.

  - remove `--mark-init` and `--activate-key` from options because
    they are not options that are common to all subcommands.

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agodoc: Update ceph-disk manual page with new feature deactivate/destroy.
Vicente Cheng [Thu, 19 Nov 2015 01:33:21 +0000 (09:33 +0800)]
doc: Update ceph-disk manual page with new feature deactivate/destroy.

  - Update the ceph-disk manual page

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoMerge pull request #6545 from dzafman/wip-dry-fixes
David Zafman [Wed, 18 Nov 2015 20:41:33 +0000 (12:41 -0800)]
Merge pull request #6545 from dzafman/wip-dry-fixes

Fix --dry-run for many ceph-objectstore-tool operations

Includes adding missing tests for xattr and omap
Add testing of --dry-run for most operations
Minor cleanup of rados command output

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6640 from david-z/wip-async-msg-crash-cephfs
Haomai Wang [Wed, 18 Nov 2015 15:53:07 +0000 (23:53 +0800)]
Merge pull request #6640 from david-z/wip-async-msg-crash-cephfs

Cephfs will crash if enabling async msg because of an assertion

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #6482 from herver/wip-13709
branto1 [Wed, 18 Nov 2015 15:03:53 +0000 (16:03 +0100)]
Merge pull request #6482 from herver/wip-13709

rgw: fix reload on non Debian systems.

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #5662 from ceph/wip-scrub-basic
John Spray [Wed, 18 Nov 2015 12:00:29 +0000 (12:00 +0000)]
Merge pull request #5662 from ceph/wip-scrub-basic

ScrubStack and "tag path" command

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoCephfs will crash if enabling async msg because of an assertion 6640/head
Zhi Zhang [Wed, 18 Nov 2015 10:28:12 +0000 (18:28 +0800)]
Cephfs will crash if enabling async msg because of an assertion

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
9 years agoosd: partial revert of "ReplicatedPG: result code not correctly set in some cases." 6622/head
Sage Weil [Tue, 17 Nov 2015 20:40:28 +0000 (15:40 -0500)]
osd: partial revert of "ReplicatedPG: result code not correctly set in some cases."

This reverts the parts of commit 3b5d54bec0f0556b7dd6e7ea7e6df02ec71f97d9
that change omap return values (i.e., do not just assert, but
change what the client sees).

Fixes: #13796
Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6541 from dillaman/wip-11287 6631/head 6648/head
Josh Durgin [Tue, 17 Nov 2015 19:39:51 +0000 (11:39 -0800)]
Merge pull request #6541 from dillaman/wip-11287

librbd: integrate journaling support for IO operations

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agolibrbd: copy operation needs to use AIO work queue for writes 6541/head
Jason Dillaman [Tue, 17 Nov 2015 14:33:17 +0000 (09:33 -0500)]
librbd: copy operation needs to use AIO work queue for writes

This ensures that the exclusive lock is properly acquired prior to
writing to the new image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: simplify IO flush handling
Jason Dillaman [Fri, 31 Jul 2015 02:31:55 +0000 (22:31 -0400)]
librbd: simplify IO flush handling

Add a new convenience method to ImageCtx for handling flush
requests and cleanup flush handling with dealing with the cache.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agolibrbd: possible deadlock attempting to drain parent image WQs
Jason Dillaman [Fri, 14 Aug 2015 17:30:41 +0000 (13:30 -0400)]
librbd: possible deadlock attempting to drain parent image WQs

Ensure all AIO to the parent image is properly flushed and assert
that all work queues are empty before closing the parent image.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoWorkQueue: PointerWQ drain no longer waits for other queues
Jason Dillaman [Fri, 14 Aug 2015 17:28:13 +0000 (13:28 -0400)]
WorkQueue: PointerWQ drain no longer waits for other queues

If another (independent) queue was processing, drain could
block waiting.  Instead, allow drain to exit quickly if
no items are being processed and the queue is empty for
the current WQ.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #5867 from Vicente-Cheng/ceph-disk-destroy-implementation
Loic Dachary [Tue, 17 Nov 2015 10:43:02 +0000 (11:43 +0100)]
Merge pull request #5867 from Vicente-Cheng/ceph-disk-destroy-implementation

ceph-disk: Add destroy and deactivate option

ceph-disk now understands deactivate to shutdown an OSD and umount the partition. It will remain in a "down" state until it is activated again with --reactivate. If a deactivated OSD is destroyed with ceph-disk destroy, it will be permanently removed from the cluster and from the crushmap.

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoceph-disk: remove the redundant try except and minor nits 5867/head
Vicente Cheng [Fri, 13 Nov 2015 01:59:27 +0000 (09:59 +0800)]
ceph-disk: remove the redundant try except and minor nits

  - remove the redundant try except

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agotests: ceph-disk: add wait_for_osd_down() in ceph-disk-test.py of qa
Vicente Cheng [Fri, 13 Nov 2015 01:28:10 +0000 (09:28 +0800)]
tests: ceph-disk: add wait_for_osd_down() in ceph-disk-test.py of qa

  - add wait_for_osd_down() to avoid the side effect of deactivate

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agotests: ceph-disk: modify the ceph-disk qa test cases
Vicente Cheng [Tue, 3 Nov 2015 09:45:55 +0000 (17:45 +0800)]
tests: ceph-disk: modify the ceph-disk qa test cases

  - minor correct for the latest ceph-disk qa test cases

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agotests: ceph-disk: improve the unit test to coverage all deactivate/destroy function.
Vicente Cheng [Tue, 3 Nov 2015 09:44:05 +0000 (17:44 +0800)]
tests: ceph-disk: improve the unit test to coverage all deactivate/destroy function.

  - rework the unit test to coverage all deactivate/destroy function
  - make test item simple and easier to read

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoceph-disk: improve the device query stage on deactivate/destroy feature.
Vicente Cheng [Tue, 3 Nov 2015 09:11:33 +0000 (17:11 +0800)]
ceph-disk: improve the device query stage on deactivate/destroy feature.

  - Make code path much easier to get device info. (get little bit overhead)
  - Let some error rasie the correct execption
  - for dmcrypt device, we unmap on the deactivate stage. (consist with activate)

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agotests: ceph-disk: add deactivate/reactivate/destroy test cases.
Vicente Cheng [Thu, 15 Oct 2015 06:32:20 +0000 (14:32 +0800)]
tests: ceph-disk: add deactivate/reactivate/destroy test cases.

  - using the deactivate/destroy feature to destroy osd
  - test reactivate option when the osd goes deactive
  - add check_osd_status to check osd status when osd goes up

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agotests: ceph-disk: add some unittest functions to coverage destroy/deactivate feature.
Vicente Cheng [Thu, 15 Oct 2015 06:42:17 +0000 (14:42 +0800)]
tests: ceph-disk: add some unittest functions to coverage destroy/deactivate feature.

  - Add new unittest functions to coverage the part of dmcrypt/mpath handling.

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoceph-disk: modify the destroy/deactivate behavior to handle dmcrypt/mpath feature.
Vicente Cheng [Thu, 15 Oct 2015 06:03:29 +0000 (14:03 +0800)]
ceph-disk: modify the destroy/deactivate behavior to handle dmcrypt/mpath feature.

  - modify the behavior to handle dmcrypt/mpath osd
  - add some functions to get the information of dmcrypt osd
  - fixed the logging format Use `%(filename)s` instead of `%(filename)`

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agotests: ceph-disk: Make unit test coverage all ceph-disk destroy/deactivate feature
Vicente Cheng [Fri, 25 Sep 2015 09:44:19 +0000 (17:44 +0800)]
tests: ceph-disk: Make unit test coverage all ceph-disk destroy/deactivate feature

  - Add some unit test to coverage all destroy/deactivate feature.
  - Do some minor modifications on the ceph-diskw

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agotests: ceph-disk: modified the destroy_osd test function.
Vicente Cheng [Fri, 18 Sep 2015 02:23:19 +0000 (10:23 +0800)]
tests: ceph-disk: modified the destroy_osd test function.

  - use the new implementation (ceph-disk deactivate/destroy) instead of step by step remove

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoceph-disk: Implement unittest for ceph-disk deactivate/destroy feature
Vicente Cheng [Fri, 18 Sep 2015 02:20:41 +0000 (10:20 +0800)]
ceph-disk: Implement unittest for ceph-disk deactivate/destroy feature

  - The unit tests cover all the implemention about deactivate/destroy.

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoceph-disk: add --reactivate option, modify parameter about deactivate and destroy
Vicente Cheng [Mon, 14 Sep 2015 12:03:55 +0000 (20:03 +0800)]
ceph-disk: add --reactivate option, modify parameter about deactivate and destroy

  - add `--reactivate` option (activate do no-op without reactivate with deactive flag)
  - for consistency, make both deactivate and destroy take the device/partition name
  - add `--deactivate-by-id` to deactivate and destroy for ease of use

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoceph-disk: add `--mark-out` option on deactivate feature.
Vicente Cheng [Fri, 11 Sep 2015 03:33:13 +0000 (11:33 +0800)]
ceph-disk: add `--mark-out` option on deactivate feature.

  - Using `--mark-out` option to mark osd out when
    deactivate this osd instead of always mark osd out.

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoceph-disk: use `ceph osd dump` to check osd status
Vicente Cheng [Thu, 10 Sep 2015 08:13:37 +0000 (16:13 +0800)]
ceph-disk: use `ceph osd dump` to check osd status

  - Before deactivated osd, we need to know the status
    including IN/OUT, UP/DOWN on this osd.

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoceph-disk: add destroy feature
Vicente Cheng [Thu, 10 Sep 2015 09:02:39 +0000 (17:02 +0800)]
ceph-disk: add destroy feature

  Implement destroy option on ceph-disk.

  - remove OSD from CRUSH map
  - remove OSD cephx key
  - deallocate OSD ID
  - destroy data (with --zap option)

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoceph-disk: add deactivate feature
Vicente Cheng [Thu, 10 Sep 2015 08:37:03 +0000 (16:37 +0800)]
ceph-disk: add deactivate feature

  Implement deactivate option on ceph-disk.

  - stop ceph-osd service if needed (If osd still in osd map, make it out first)
  - remove 'ready', 'active', and INIT-specific files
  - remove gpt partition type and change partition name (prevent triggered by udev)
  - create deactive flag
  - umount device and remove mount point

Signed-off-by: Vicente Cheng <freeze.bilsted@gmail.com>
9 years agoMerge pull request #6607 from dillaman/wip-13784
Josh Durgin [Mon, 16 Nov 2015 19:21:38 +0000 (11:21 -0800)]
Merge pull request #6607 from dillaman/wip-13784

rbd: support negative boolean command-line optionals

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6606 from dillaman/wip-13806
Josh Durgin [Mon, 16 Nov 2015 19:20:58 +0000 (11:20 -0800)]
Merge pull request #6606 from dillaman/wip-13806

rbd: add missing command aliases to refactored CLI

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agorbd: support negative boolean command-line optionals 6607/head
Jason Dillaman [Mon, 16 Nov 2015 18:31:34 +0000 (13:31 -0500)]
rbd: support negative boolean command-line optionals

Fixes: #13784
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoos/newstore: disable rocksdb compression 6609/head
Sage Weil [Fri, 16 Oct 2015 17:07:29 +0000 (13:07 -0400)]
os/newstore: disable rocksdb compression

This has been shown to be problematic for performance on the
monitor.  Note that this takes us from ~170/bytes per onode to
~540/bytes per onode.  (The encoded onode_t is 390 bytes, not
including the key name.)

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agocommon: mirror leveldb default tuning w/ rocksdb
Sage Weil [Tue, 6 Oct 2015 18:38:47 +0000 (14:38 -0400)]
common: mirror leveldb default tuning w/ rocksdb

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomon: disabled rocksdb compression when used as the backend
Sage Weil [Fri, 2 Oct 2015 13:15:33 +0000 (09:15 -0400)]
mon: disabled rocksdb compression when used as the backend

This significantly reduced CPU utilization on the bigbang scale
testing cluster at CERN.  Note that it is already disabled for
leveldb by default (in ceph_mon.cc).

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/fs/FS: fix zero()'s PUNCH_HOLE incancation
Sage Weil [Mon, 5 Oct 2015 18:47:46 +0000 (14:47 -0400)]
os/fs/FS: fix zero()'s PUNCH_HOLE incancation

We get EOPNOTSUPP unconditionally without KEEP_SIZE.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/fs/FS: fix zero() return value on fallback
Sage Weil [Mon, 5 Oct 2015 18:47:14 +0000 (14:47 -0400)]
os/fs/FS: fix zero() return value on fallback

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/RocksDBStore: set up $path.wal -> $path symlink
Sage Weil [Mon, 5 Oct 2015 20:00:37 +0000 (16:00 -0400)]
os/RocksDBStore: set up $path.wal -> $path symlink

If $path.wal doesn't exist, create it and symlink it to $path.
Set wal_dir to that.  This makes it easy to move the wal content
elsewhere later, or to pre-create the .wal dir.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/newstore: distinguish between db open and create
Sage Weil [Mon, 5 Oct 2015 20:01:04 +0000 (16:01 -0400)]
os/newstore: distinguish between db open and create

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/newstore: remove newstore_db_path option
Sage Weil [Mon, 5 Oct 2015 19:34:58 +0000 (15:34 -0400)]
os/newstore: remove newstore_db_path option

It is simpler to have fixed locations and symlinks.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/newstore: newstore_backend_options -> newstore_rocksdb_options
Sage Weil [Tue, 29 Sep 2015 02:35:04 +0000 (22:35 -0400)]
os/newstore: newstore_backend_options -> newstore_rocksdb_options

This way we can have default settings per-backend.  Also note that
this is what we currently do with leveldb on the mon and osd.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/newstore: set rocksdb default options
Sage Weil [Sun, 20 Sep 2015 17:41:51 +0000 (13:41 -0400)]
os/newstore: set rocksdb default options

 max_write_buffer_number=16
 min_write_buffer_number_to_merge=6

This cuts the amount of short-lived WAL data that gets
rewritten by roughly a factor of 6.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agotests: new rbd CLI command aliases 6606/head
Jason Dillaman [Mon, 16 Nov 2015 17:57:29 +0000 (12:57 -0500)]
tests: new rbd CLI command aliases

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agorbd: add missing command aliases to refactored CLI
Jason Dillaman [Mon, 16 Nov 2015 17:55:11 +0000 (12:55 -0500)]
rbd: add missing command aliases to refactored CLI

Fixes: #13806
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
9 years agoosd: scrub if load below daily avg and decreasing 6550/head
Dan van der Ster [Mon, 16 Nov 2015 16:57:25 +0000 (17:57 +0100)]
osd: scrub if load below daily avg and decreasing

Store a daily loadavg and use as an upper limit on when to allow
scrubs. Also track the 15 minute loadavg and only scrub when the
loadavg is decreasing (i.e. 1m < 15m).

Backports: hammer, infernalis

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
9 years agoosd: randomize deep scrubbing
Dan van der Ster [Thu, 12 Nov 2015 08:28:33 +0000 (09:28 +0100)]
osd: randomize deep scrubbing

osd_scrub_interval_randomize_ratio works to randomize the shallow scrubs
but doesn't prevent a thundering herd of deep scrubs every osd_deep_scrub_interval.
Add the option osd_deep_scrub_randomize_ratio which defines the rate at which scrubs
will randomly turn into deep scrubs.

Backports: hammer, infernalis

Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Signed-off-by: Herve Rousseau <herve.rousseau@cern.ch>
9 years agoMerge pull request #6590 from ceph/wip-rbd-user-option
Jason Dillaman [Mon, 16 Nov 2015 14:07:39 +0000 (09:07 -0500)]
Merge pull request #6590 from ceph/wip-rbd-user-option

rbd: accept --user, refuse -i command-line optionals

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoMerge pull request #6593 from trociny/fixup-rbd-refactor
Jason Dillaman [Mon, 16 Nov 2015 14:05:36 +0000 (09:05 -0500)]
Merge pull request #6593 from trociny/fixup-rbd-refactor

rbd: stripe unit/count set incorrectly from config

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agoclient: avoid creating orphan object in Client::check_pool_perm() 6603/head
Yan, Zheng [Mon, 16 Nov 2015 13:08:00 +0000 (21:08 +0800)]
client: avoid creating orphan object in Client::check_pool_perm()

Fixes: #13782
Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agoMerge pull request #6594 from chenji-kael/patch-2
Loic Dachary [Mon, 16 Nov 2015 06:33:08 +0000 (07:33 +0100)]
Merge pull request #6594 from chenji-kael/patch-2

Update .mailmap

9 years agoscrub: do not assign value if read error for ECBackend 6568/head
Li Wang [Mon, 16 Nov 2015 04:15:54 +0000 (12:15 +0800)]
scrub: do not assign value if read error for ECBackend

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
9 years agoscrub: do not assign value if read error for ReplicatedBackend
Li Wang [Mon, 16 Nov 2015 04:06:20 +0000 (12:06 +0800)]
scrub: do not assign value if read error for ReplicatedBackend

Signed-off-by: Li Wang <li.wang@kylin-cloud.com>
9 years agoosdservice: state changed to atomic_t to decrease thread context switch. 6492/head
Xiaowei Chen [Mon, 16 Nov 2015 02:56:22 +0000 (21:56 -0500)]
osdservice: state changed to atomic_t to decrease thread context switch.

    service.is_stopping is in the key IO path, hot call, better use spinlock.

Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
9 years agoosd: change mutex to spinlock to optimize thread context switch.
Xiaowei Chen [Mon, 16 Nov 2015 02:40:29 +0000 (21:40 -0500)]
osd: change mutex to spinlock to optimize thread context switch.

Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
9 years agoUpdate .mailmap 6594/head
chenji-kael [Mon, 16 Nov 2015 01:25:41 +0000 (09:25 +0800)]
Update .mailmap

9 years agorbd: stripe unit/count set incorrectly from config 6593/head
Mykola Golub [Sun, 15 Nov 2015 19:37:44 +0000 (21:37 +0200)]
rbd: stripe unit/count set incorrectly from config

(after rbd-refactor fixup)

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
9 years agoMerge pull request #6549 from kylinstorage/global_flags 6624/head
Josh Durgin [Sun, 15 Nov 2015 18:45:04 +0000 (10:45 -0800)]
Merge pull request #6549 from kylinstorage/global_flags

fix: use right init_flags to finish CephContext

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6575 from ceph/update-infernalis-releasenotes
Sage Weil [Sun, 15 Nov 2015 02:45:03 +0000 (21:45 -0500)]
Merge pull request #6575 from ceph/update-infernalis-releasenotes

doc: update infernalis release notes

9 years agoMerge pull request #6484 from XinzeChi/wip-journal-optimization
Sage Weil [Sun, 15 Nov 2015 02:44:18 +0000 (21:44 -0500)]
Merge pull request #6484 from XinzeChi/wip-journal-optimization

os: write file journal optimization

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: David Zafman <dzafman@redhat.com>
9 years agoMerge pull request #6371 from liewegas/wip-osd-less-crush
Sage Weil [Sun, 15 Nov 2015 02:42:17 +0000 (21:42 -0500)]
Merge pull request #6371 from liewegas/wip-osd-less-crush

osd: avoid calculating crush mapping for most ops

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6416 from rohanmars/wip-solaris-port
Sage Weil [Sun, 15 Nov 2015 02:41:31 +0000 (21:41 -0500)]
Merge pull request #6416 from rohanmars/wip-solaris-port

librados: Solaris port

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6439 from XinzeChi/wip-merge-tnx
Sage Weil [Sun, 15 Nov 2015 02:40:42 +0000 (21:40 -0500)]
Merge pull request #6439 from XinzeChi/wip-merge-tnx

osd: merge local_t and op_t txn to single one

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6547 from xiaoxichen/fix1
Sage Weil [Sun, 15 Nov 2015 02:39:46 +0000 (21:39 -0500)]
Merge pull request #6547 from xiaoxichen/fix1

osd: check do_shutdown before do_restart

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #6566 from kylinstorage/wip-fix-wrong-use-parenthesis
Sage Weil [Sun, 15 Nov 2015 02:38:50 +0000 (21:38 -0500)]
Merge pull request #6566 from kylinstorage/wip-fix-wrong-use-parenthesis

osd: fix wrong use of right parenthesis in localized read logic

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agorbd: accept --user, refuse -i 6590/head
Ilya Dryomov [Sat, 14 Nov 2015 20:56:15 +0000 (21:56 +0100)]
rbd: accept --user, refuse -i

--user is the equivalent of --id (mentioned in docs and ceph -h) and
used by at least a couple of qa scripts and teuthology.  Add it to the
list of valid rbd options - it's handled inside global_init() before
Shell:execute() is called.

OTOH allowing -i is bogus - global_init() wouldn't process it for
clients (CEPH_ENTITY_TYPE_CLIENT), which rbd tool is one of.  Drop it.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
9 years agoMerge pull request #6584 from dachary/wip-test
Sage Weil [Sat, 14 Nov 2015 17:50:16 +0000 (12:50 -0500)]
Merge pull request #6584 from dachary/wip-test

tests: ignore test-suite.log

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6583 from ceph/wip-krbd-map-args
Sage Weil [Sat, 14 Nov 2015 17:27:43 +0000 (12:27 -0500)]
Merge pull request #6583 from ceph/wip-krbd-map-args

rbd: unbreak rbd map + cephx_sign_messages option

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agotests: ignore test-suite.log 6584/head
Loic Dachary [Sat, 14 Nov 2015 16:57:23 +0000 (17:57 +0100)]
tests: ignore test-suite.log

Now that the tests at the top level directory are run via TESTS and not
check-local:, the test-suite.log file is created and must bit
gitignored.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agorbd: recognize cephx_sign_messages option 6583/head
Ilya Dryomov [Sat, 14 Nov 2015 15:06:03 +0000 (16:06 +0100)]
rbd: recognize cephx_sign_messages option

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
9 years agorbd: unbreak rbd map CLI
Ilya Dryomov [Sat, 14 Nov 2015 14:12:52 +0000 (15:12 +0100)]
rbd: unbreak rbd map CLI

Previously, if snapname wasn't specified we would pass NULL to
krbd_map(), which was a cue for it to use "-" as a snapshot name.  With
the new rbd CLI, "" is passed in; same goes for map options.

Change krbd_map() accordingly and update its other user.

Signed-off-by: Ilya Dryomov <idryomov@redhat.com>
9 years agotests: fix test case using new api 6484/head
Xinze Chi [Fri, 6 Nov 2015 13:45:18 +0000 (21:45 +0800)]
tests: fix test case using new api

Signed-off-by: Xinze Chi <xinze@xsky.com>
9 years agoMerge pull request #6574 from yuyuyu101/fix-broken-kinects
Sage Weil [Sat, 14 Nov 2015 02:14:56 +0000 (21:14 -0500)]
Merge pull request #6574 from yuyuyu101/fix-broken-kinects

kv/KineticStore: fix broken split_key

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #6571 from dachary/wip-test-run-cli
Sage Weil [Sat, 14 Nov 2015 00:27:45 +0000 (19:27 -0500)]
Merge pull request #6571 from dachary/wip-test-run-cli

tests: restore run-cli-tests

9 years agoMerge pull request #6578 from dachary/wip-13785-debian-rbd-replay
Loic Dachary [Fri, 13 Nov 2015 21:04:56 +0000 (22:04 +0100)]
Merge pull request #6578 from dachary/wip-13785-debian-rbd-replay

build/ops: rbd-replay moved from ceph-test-dbg to ceph-common-dbg

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoMerge pull request #4737 from kylinstorage/wip-temp-based-object-eviction
Sage Weil [Fri, 13 Nov 2015 20:39:54 +0000 (15:39 -0500)]
Merge pull request #4737 from kylinstorage/wip-temp-based-object-eviction

osd: improve temperature calculation for cache tier agent

Reviewed-by: Sage Weil
9 years agoMerge pull request #6422 from xiexingguo/xxg-wip13639
Sage Weil [Fri, 13 Nov 2015 20:22:08 +0000 (15:22 -0500)]
Merge pull request #6422 from xiexingguo/xxg-wip13639

librados: fix potential null pointer access when do pool_snap_list

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #6486 from XinzeChi/wip-multiple-finisher
Sage Weil [Fri, 13 Nov 2015 20:20:48 +0000 (15:20 -0500)]
Merge pull request #6486 from XinzeChi/wip-multiple-finisher

osd: FileStore: support multiple ondisk finish and apply finishers

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoMerge pull request #6518 from kylinstorage/wip-trivial-optimization
Sage Weil [Fri, 13 Nov 2015 20:20:13 +0000 (15:20 -0500)]
Merge pull request #6518 from kylinstorage/wip-trivial-optimization

osd: optimize scrub subset_last_update calculation

Reviewed-by: Sage Weil <sage@redhat.com>