]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoos/bluestore: use typedef for blob unused (uint16_t) 14316/head
Sage Weil [Wed, 5 Apr 2017 14:13:46 +0000 (10:13 -0400)]
os/bluestore: use typedef for blob unused (uint16_t)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: fsck: verify blob.unused field
Sage Weil [Tue, 4 Apr 2017 17:33:04 +0000 (13:33 -0400)]
os/bluestore: fsck: verify blob.unused field

Two checks:

- verify that no logical extents reference the portion of the
  blob marked unused, and
- verify that the csum (if present) is zero for any unused
  region.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: do not extend blobs with unused bitmap
Sage Weil [Tue, 4 Apr 2017 15:52:24 +0000 (11:52 -0400)]
os/bluestore: do not extend blobs with unused bitmap

If we resize the blob we need to adjust the resolution of the
unused bitmap, and that is only possible for some bit patterns.
For now just ignore blobs with unused blocks.

Add an assert in add_tail() so that we don't forget that
add_tail is (probably) where we'd would do that adjustment.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: some whitespace
Sage Weil [Tue, 4 Apr 2017 13:52:26 +0000 (09:52 -0400)]
os/bluestore: some whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: mark_used for wctx->writes
Sage Weil [Tue, 4 Apr 2017 13:52:22 +0000 (09:52 -0400)]
os/bluestore: mark_used for wctx->writes

The refactored blob reuse code needs to mark blobs used when
processing wctx->writes.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoos/bluestore: prefix fsck errors with 'fsck error:'
Sage Weil [Tue, 4 Apr 2017 15:27:55 +0000 (11:27 -0400)]
os/bluestore: prefix fsck errors with 'fsck error:'

Greppable!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14275 from ceph/evelu-cephdisk-race
Loic Dachary [Tue, 4 Apr 2017 12:17:18 +0000 (14:17 +0200)]
Merge pull request #14275 from ceph/evelu-cephdisk-race

ceph-disk: Adding retry loop in get_partition_dev()

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #14185 from DHB-liuhong/objects
Kefu Chai [Tue, 4 Apr 2017 11:10:16 +0000 (19:10 +0800)]
Merge pull request #14185 from DHB-liuhong/objects

mon/PGMap: make si units more readable in PGMap summary

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14313 from wjin/clean_mgr
Kefu Chai [Tue, 4 Apr 2017 11:01:50 +0000 (19:01 +0800)]
Merge pull request #14313 from wjin/clean_mgr

mgr: rm nonused main function

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoceph-disk: Adding retry loop in get_partition_dev() 14275/head
Erwan Velu [Fri, 31 Mar 2017 12:54:33 +0000 (14:54 +0200)]
ceph-disk: Adding retry loop in get_partition_dev()

There is very rare cases where get_partition_dev() is called before the actual partition is available in /sys/block/<device>.

It appear that waiting a very short is usually enough to get the partition beein populated.

Analysis:
update_partition() is supposed to be enough to avoid any racing between events sent by parted/sgdisk/partprobe and
the actual creation on the /sys/block/<device>/* entrypoint.
On our CI that race occurs pretty often but trying to reproduce it locally never been possible.

This patch is almost a workaround rather than a fix to the real problem.
It offer retrying after a very short to be make a chance the device to appear.
This approach have been succesful on the CI.

Note his patch is not changing the timing when the device is perfectly created on time and just differ by a 1/5th up to 2 seconds when the bug occurs.

A typical output from the build running on a CI with that code.
command_check_call: Running command: /usr/bin/udevadm settle --timeout=600
get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
get_partition_dev: Try 1/10 : partition 2 for /dev/sda does not in /sys/block/sda
get_partition_dev: Found partition 2 for /dev/sda after 1 tries
        get_dm_uuid: get_dm_uuid /dev/sda uuid path is /sys/dev/block/8:0/dm/uuid
get_dm_uuid: get_dm_uuid /dev/sda2 uuid path is /sys/dev/block/8:2/dm/uuid

fixes: #19428

Signed-off-by: Erwan Velu <erwan@redhat.com>
8 years agomgr: rm nonused main function 14313/head
Wei Jin [Tue, 4 Apr 2017 09:47:30 +0000 (17:47 +0800)]
mgr: rm nonused main function

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
8 years agoMerge pull request #14174 from shinobu-x/wp-sk-typo-osdmonitor-20170328
Nathan Cutler [Tue, 4 Apr 2017 06:37:09 +0000 (08:37 +0200)]
Merge pull request #14174 from shinobu-x/wp-sk-typo-osdmonitor-20170328

mon/OSDMonitor: Clean up: delete extra S signature for plural

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12243 from rzarzynski/wip-rgw-bulkupload
Orit Wasserman [Mon, 3 Apr 2017 18:54:32 +0000 (21:54 +0300)]
Merge pull request #12243 from rzarzynski/wip-rgw-bulkupload

rgw: add support for the BulkUpload of Swift API
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14120 from wangzhengyong/uninitialized
Yehuda Sadeh [Mon, 3 Apr 2017 18:33:23 +0000 (11:33 -0700)]
Merge pull request #14120 from wangzhengyong/uninitialized

rgw: fix uninitialized fields

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #14217 from Liuchang0812/wip-18584-pg-info-dump
Sage Weil [Mon, 3 Apr 2017 15:46:36 +0000 (10:46 -0500)]
Merge pull request #14217 from Liuchang0812/wip-18584-pg-info-dump

osd: print pg_info_t::purged_snaps as array, not string

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14036 from batrick/mds-debug-reply
John Spray [Mon, 3 Apr 2017 15:20:19 +0000 (16:20 +0100)]
Merge pull request #14036 from batrick/mds-debug-reply

mds: bump client_reply debug to match client_req

Reviewed-by: Yan, Zheng <zyan@redhat.com>
8 years agoMerge pull request #14296 from theanalyst/fix/script/credits
Loic Dachary [Mon, 3 Apr 2017 15:03:12 +0000 (17:03 +0200)]
Merge pull request #14296 from theanalyst/fix/script/credits

script: drop the -x arg for credits script

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13401 from liewegas/wip-kill-subop
Sage Weil [Mon, 3 Apr 2017 15:00:53 +0000 (10:00 -0500)]
Merge pull request #13401 from liewegas/wip-kill-subop

osd: kill all remaining MOSDSubOp users

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #14221 from jcsp/wip-19253-b
John Spray [Mon, 3 Apr 2017 14:31:29 +0000 (15:31 +0100)]
Merge pull request #14221 from jcsp/wip-19253-b

qa: whitelist another fullness log message

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoMerge pull request #14279 from jimmyway/wip-fix-pg-comment
Sage Weil [Mon, 3 Apr 2017 14:27:13 +0000 (09:27 -0500)]
Merge pull request #14279 from jimmyway/wip-fix-pg-comment

osd: fix comments about pg refs and lock

Reviewed-by: Pan Liu <liupan1111@gmail.com>
8 years agoMerge pull request #14277 from atheism/fix-test-objectstore-chain_xattr
Sage Weil [Mon, 3 Apr 2017 14:26:30 +0000 (09:26 -0500)]
Merge pull request #14277 from atheism/fix-test-objectstore-chain_xattr

test: objectstore: chain_xattr: fix wrong memset usage to fill buf

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13800 from xiexingguo/wip-clean-pgcreate-throttle
Sage Weil [Mon, 3 Apr 2017 13:38:07 +0000 (08:38 -0500)]
Merge pull request #13800 from xiexingguo/wip-clean-pgcreate-throttle

common/config_opts.h: kill mon_pg_create_interval

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13621 from Jing-Scott/add-remov-x-delete-feature
Radoslaw Zarzynski [Mon, 3 Apr 2017 13:19:12 +0000 (15:19 +0200)]
Merge pull request #13621 from Jing-Scott/add-remov-x-delete-feature

rgw: add the remove-x-delete feature to cancel swift object expiration

Reviewed-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #13862 from jcsp/wip-16523
John Spray [Mon, 3 Apr 2017 10:56:37 +0000 (11:56 +0100)]
Merge pull request #13862 from jcsp/wip-16523

qa, mds: add checks for fragmentation, and enable it by default

8 years agomon/OSDMonitor: Clean up: delete extra S signature for plural 14174/head
Shinobu Kinjo [Tue, 28 Mar 2017 03:23:48 +0000 (12:23 +0900)]
mon/OSDMonitor: Clean up: delete extra S signature for plural

Signed-off-by: Shinobu Kinjo <shinobu@redhat.com>
8 years agoMerge pull request #14156 from smithfarm/release-notes-add-rbd-mirror
Nathan Cutler [Mon, 3 Apr 2017 10:16:17 +0000 (12:16 +0200)]
Merge pull request #14156 from smithfarm/release-notes-add-rbd-mirror

tools: ceph-release-notes: prefixes and pep8 compliance

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoscript: drop the -x arg for credits script 14296/head
Abhishek Lekshmanan [Mon, 3 Apr 2017 09:57:34 +0000 (11:57 +0200)]
script: drop the -x arg for credits script

while useful for debugging creates a whole lot of output which we don't
need normally

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
8 years agoMerge pull request #12084 from hansbogert/patch-4
Orit Wasserman [Mon, 3 Apr 2017 07:21:25 +0000 (10:21 +0300)]
Merge pull request #12084 from hansbogert/patch-4

rgw: Add --zonegroup-new-name  in usage
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14269 from liewegas/wip-no-spinlock
Kefu Chai [Mon, 3 Apr 2017 07:16:58 +0000 (15:16 +0800)]
Merge pull request #14269 from liewegas/wip-no-spinlock

mon/OSDMonitor: spinlock -> std::mutex

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14274 from liewegas/wip-osd-beacon-fix
Kefu Chai [Mon, 3 Apr 2017 07:16:05 +0000 (15:16 +0800)]
Merge pull request #14274 from liewegas/wip-osd-beacon-fix

osd: fix some osd beacon bugs

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14288 from Adirl/small_leaks
Haomai Wang [Sun, 2 Apr 2017 20:28:56 +0000 (04:28 +0800)]
Merge pull request #14288 from Adirl/small_leaks

msg/async/rdma: Fix small memory leaks detected by valgrind

Reviewed-by: Haomai Wang <haomai@xsky.com>
8 years agorgw: add the check for Content-Length in BulkUpload. 12243/head
Radoslaw Zarzynski [Wed, 30 Nov 2016 20:58:30 +0000 (21:58 +0100)]
rgw: add the check for Content-Length in BulkUpload.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement the full response generation in BulkUpload of Swift API.
Radoslaw Zarzynski [Wed, 30 Nov 2016 20:57:26 +0000 (21:57 +0100)]
rgw: implement the full response generation in BulkUpload of Swift API.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: optimize metadata caching in BulkUpload of Swift API.
Radoslaw Zarzynski [Tue, 29 Nov 2016 10:43:02 +0000 (11:43 +0100)]
rgw: optimize metadata caching in BulkUpload of Swift API.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement the object creation in BulkUpload of Swift API.
Radoslaw Zarzynski [Thu, 24 Nov 2016 13:20:33 +0000 (14:20 +0100)]
rgw: implement the object creation in BulkUpload of Swift API.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement the container creation in BulkUpload of Swift API.
Radoslaw Zarzynski [Thu, 24 Nov 2016 12:10:56 +0000 (13:10 +0100)]
rgw: implement the container creation in BulkUpload of Swift API.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agomsg/async/rdma: Fix small memory leaks detected by valgrind 14288/head
Amir Vadai [Sun, 26 Mar 2017 10:24:19 +0000 (13:24 +0300)]
msg/async/rdma: Fix small memory leaks detected by valgrind

Issue: 995322
Change-Id: Iccffbd0defd09aa51c4b51b78733921444ea1c5f
Signed-off-by: Amir Vadai <amir@vadai.me>
8 years agorgw: implement the AlignedStreamGetter.
Radoslaw Zarzynski [Thu, 24 Nov 2016 11:03:18 +0000 (12:03 +0100)]
rgw: implement the AlignedStreamGetter.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement the basic security check for BulkUpload of Swift API.
Radoslaw Zarzynski [Wed, 30 Nov 2016 16:49:25 +0000 (17:49 +0100)]
rgw: implement the basic security check for BulkUpload of Swift API.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoMerge pull request #14170 from liewegas/wip-fewer-warnings
Kefu Chai [Sun, 2 Apr 2017 04:53:29 +0000 (12:53 +0800)]
Merge pull request #14170 from liewegas/wip-fewer-warnings

common/ceph_context: fewer warnings about experimental features

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14271 from joscollin/wip-krbd-warning
Brad Hubbard [Sat, 1 Apr 2017 22:59:38 +0000 (08:59 +1000)]
Merge pull request #14271 from joscollin/wip-krbd-warning

rbd: warning, ‘devno’ may be used uninitialized in this function

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13909 from kestrels/wip-19217
Kefu Chai [Sat, 1 Apr 2017 17:44:03 +0000 (01:44 +0800)]
Merge pull request #13909 from kestrels/wip-19217

crc32c: Add crc32c function optimized for ppc architecture

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14124 from Fabian-Gruenbichler/ipv6_fix
Kefu Chai [Sat, 1 Apr 2017 17:41:50 +0000 (01:41 +0800)]
Merge pull request #14124 from Fabian-Gruenbichler/ipv6_fix

common: fix segfault in public IPv6 addr picking

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14173 from badone/wip-do_request-abort
Kefu Chai [Sat, 1 Apr 2017 17:40:30 +0000 (01:40 +0800)]
Merge pull request #14173 from badone/wip-do_request-abort

common: Fix heap buffer overflow in do_request

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #14193 from liupan1111/wip-fix-delete-full
Kefu Chai [Sat, 1 Apr 2017 17:39:46 +0000 (01:39 +0800)]
Merge pull request #14193 from liupan1111/wip-fix-delete-full

librados: set the flag CEPH_OSD_FLAG_FULL_TRY of Op in the right place.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14248 from badone/wip-simple_spin_lock-delay
Kefu Chai [Sat, 1 Apr 2017 17:38:13 +0000 (01:38 +0800)]
Merge pull request #14248 from badone/wip-simple_spin_lock-delay

common: Make spinlock delay more conventional

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13690 from jcsp/wip-17503
Kefu Chai [Sat, 1 Apr 2017 17:37:31 +0000 (01:37 +0800)]
Merge pull request #13690 from jcsp/wip-17503

mgr: pass through cluster log to plugins

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agorgw: implement the TAR extraction loop of Swift's BulkUpload.
Radoslaw Zarzynski [Thu, 24 Nov 2016 10:34:01 +0000 (11:34 +0100)]
rgw: implement the TAR extraction loop of Swift's BulkUpload.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement the TAR format interpreter.
Radoslaw Zarzynski [Fri, 25 Nov 2016 16:37:41 +0000 (17:37 +0100)]
rgw: implement the TAR format interpreter.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: implement RGWBulkUploadOp::DecoratedStreamGetter.
Radoslaw Zarzynski [Wed, 23 Nov 2016 15:39:06 +0000 (16:39 +0100)]
rgw: implement RGWBulkUploadOp::DecoratedStreamGetter.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agorgw: initial class structure for BulkUpload of Swift API.
Radoslaw Zarzynski [Mon, 21 Nov 2016 18:43:39 +0000 (19:43 +0100)]
rgw: initial class structure for BulkUpload of Swift API.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
8 years agoosd: fix comments about pg refs and lock 14279/head
tang.jin [Sat, 1 Apr 2017 08:44:21 +0000 (16:44 +0800)]
osd: fix comments about pg refs and lock

Signed-off-by: tang.jin <tang.jin@istuary.com>
8 years agoMerge pull request #14276 from atheism/rgw-rgwop-remove-unused-iter
Orit Wasserman [Sat, 1 Apr 2017 06:48:46 +0000 (09:48 +0300)]
Merge pull request #14276 from atheism/rgw-rgwop-remove-unused-iter

rgw: rgw_op: remove unused variable iter
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agotest: objectstore: chain_xattr: fix wrong memset usage to fill buf 14277/head
Weibing Zhang [Sat, 1 Apr 2017 05:24:42 +0000 (13:24 +0800)]
test: objectstore: chain_xattr: fix wrong memset usage to fill buf

    Current usage:
        memset(buf, sizeof(buf), 0x1F);
    should be:
        memset(buf, 0x1F, sizeof(buf));
    to fill the buffer with '0x1F'.

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
8 years agorgw: rgw_op: remove unused variable iter 14276/head
Weibing Zhang [Sat, 1 Apr 2017 03:52:59 +0000 (11:52 +0800)]
rgw: rgw_op: remove unused variable iter

    The variable iter is not used in  RGWInitMultipart::execute().

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
8 years agoMerge pull request #13811 from rzarzynski/wip-bs-bitmap-mem-cleanup
Sage Weil [Sat, 1 Apr 2017 01:54:22 +0000 (20:54 -0500)]
Merge pull request #13811 from rzarzynski/wip-bs-bitmap-mem-cleanup

os/bluestore: memory and dereference clean-up in the BitAllocator

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14121 from majianpeng/bluefs-get-allocated
Sage Weil [Sat, 1 Apr 2017 01:54:07 +0000 (20:54 -0500)]
Merge pull request #14121 from majianpeng/bluefs-get-allocated

os/bluestore/BlueFS: optimize get_allocated

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14162 from majianpeng/optimize-bluestore-force-flush
Sage Weil [Sat, 1 Apr 2017 01:53:57 +0000 (20:53 -0500)]
Merge pull request #14162 from majianpeng/optimize-bluestore-force-flush

os/bluestore: clean up flush logic

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14225 from ivancich/wip_fix_throttle_config_change
Sage Weil [Sat, 1 Apr 2017 01:52:59 +0000 (20:52 -0500)]
Merge pull request #14225 from ivancich/wip_fix_throttle_config_change

os/bluestore: make live changes for BlueStore throttle config work like initial config

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoosd: only send beacon on connect if active 14274/head
Sage Weil [Fri, 31 Mar 2017 19:23:27 +0000 (15:23 -0400)]
osd: only send beacon on connect if active

Otherwise the mon will just ignore it and we'll wait another
cycle.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: fix beacon condition
Sage Weil [Fri, 31 Mar 2017 19:22:00 +0000 (15:22 -0400)]
osd: fix beacon condition

- && should have been ||
- change this to instead not send when monmap epoch==0,
  and only set last_sent_beacon if we actually send.  That
  way we'll send on the next tick after we get a real monmap.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/ReplicatedBackend: remove MOSDSubOp cruft from repop_commit 13401/head
Sage Weil [Tue, 28 Mar 2017 21:01:13 +0000 (17:01 -0400)]
osd/ReplicatedBackend: remove MOSDSubOp cruft from repop_commit

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: drop unused MOSDSubOp includes
Sage Weil [Tue, 28 Mar 2017 18:13:06 +0000 (14:13 -0400)]
osd: drop unused MOSDSubOp includes

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/ReplicatedBackend: rename sub_op_modify* do_repop*
Sage Weil [Tue, 28 Mar 2017 18:12:26 +0000 (14:12 -0400)]
osd/ReplicatedBackend: rename sub_op_modify* do_repop*

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/ReplicatedBackend: no empty MOSDSubOps anymore
Sage Weil [Tue, 28 Mar 2017 18:11:16 +0000 (14:11 -0400)]
osd/ReplicatedBackend: no empty MOSDSubOps anymore

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/ReplicatedBackend: use more __func__
Sage Weil [Tue, 28 Mar 2017 18:09:41 +0000 (14:09 -0400)]
osd/ReplicatedBackend: use more __func__

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: drop unnecessary declarations in headers
Sage Weil [Tue, 28 Mar 2017 18:06:42 +0000 (14:06 -0400)]
osd: drop unnecessary declarations in headers

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: use MOSDScrubReserve instead of MOSDSubOp for scrub reservations
Sage Weil [Mon, 13 Feb 2017 21:36:37 +0000 (16:36 -0500)]
osd: use MOSDScrubReserve instead of MOSDSubOp for scrub reservations

This is the last MOSDSubOp user.

Note that while the next step is to move to AsyncReserver internally,
this isn't quite yet possible since AsyncReserve "blocks" indefinitely
so we wouldn't generate a REJECT.  Changing how we schdule scrubs
internally will take a bit more work.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: use new MOSDRepScrubMap message for ScrubMap instead of MOSDSubOp
Sage Weil [Fri, 10 Feb 2017 19:05:26 +0000 (14:05 -0500)]
osd: use new MOSDRepScrubMap message for ScrubMap instead of MOSDSubOp

This is one of the last remaining users of MOSDSubOp!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd: use new MOSDPGBackfillRemove instead of MOSDSubOp
Sage Weil [Mon, 13 Feb 2017 18:53:59 +0000 (13:53 -0500)]
osd: use new MOSDPGBackfillRemove instead of MOSDSubOp

One of the last remaining MOSDSubOp users!

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/ReplicatedBackend: remove legacy push/pull op handling
Sage Weil [Tue, 28 Mar 2017 17:41:47 +0000 (13:41 -0400)]
osd/ReplicatedBackend: remove legacy push/pull op handling

These are never sent, and thus never recieved.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14229 from ceph/wip-systemd
vasukulkarni [Fri, 31 Mar 2017 16:15:53 +0000 (09:15 -0700)]
Merge pull request #14229 from ceph/wip-systemd

qa: Add reboot case for systemd test

8 years agoMerge pull request #14254 from idryomov/wip-vstart-runner-ps
John Spray [Fri, 31 Mar 2017 16:15:30 +0000 (17:15 +0100)]
Merge pull request #14254 from idryomov/wip-vstart-runner-ps

qa/vstart_runner: amend ps invocation

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #14226 from ceph/preset-mon
vasukulkarni [Fri, 31 Mar 2017 16:15:21 +0000 (09:15 -0700)]
Merge pull request #14226 from ceph/preset-mon

systemd: remove ceph-create-keys from presets

8 years agoMerge pull request #14266 from tchaikov/wip-require-mgr-for-pg-dump
Sage Weil [Fri, 31 Mar 2017 15:58:56 +0000 (10:58 -0500)]
Merge pull request #14266 from tchaikov/wip-require-mgr-for-pg-dump

tests: add MGR=1 so 'pg dump' won't be blocked

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #14259 from johnwilkins/wip-doc-multisite
Sage Weil [Fri, 31 Mar 2017 15:52:53 +0000 (10:52 -0500)]
Merge pull request #14259 from johnwilkins/wip-doc-multisite

doc: wip-doc-multisite ports downstream multisite document upstream.

8 years agorbd: warning, ‘devno’ may be used uninitialized in this function 14271/head
Jos Collin [Fri, 31 Mar 2017 14:31:23 +0000 (20:01 +0530)]
rbd: warning, ‘devno’ may be used uninitialized in this function

The following warning appears during make. Fixed in both unmap_image() functions in krbd.cc

--
krbd.cc: In function ‘int krbd_unmap_by_spec(krbd_ctx*, const char*, const char*, const char*, const char*)’:
krbd.cc:608:65: warning: ‘devno’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   return do_unmap(ctx->udev, devno, build_unmap_buf(id, options));
                                                                 ^
krbd.cc:591:9: note: ‘devno’ was declared here
   dev_t devno;
--

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agomon/OSDMonitor: spinlock -> std::mutex 14269/head
Sage Weil [Fri, 31 Mar 2017 13:33:19 +0000 (09:33 -0400)]
mon/OSDMonitor: spinlock -> std::mutex

I think spinlock is dangerous here: we're doing semi-unbounded
work (decode).  Also seemingly innocuous code like dout macros
take mutexes.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoosd/OSDMap: use _pg_to_up_acting_osds() to get_pg_acting_primary() 14266/head
Kefu Chai [Fri, 31 Mar 2017 10:32:41 +0000 (18:32 +0800)]
osd/OSDMap: use _pg_to_up_acting_osds() to get_pg_acting_primary()

avoid unnecessary swap() call of vector<int> which will be dropped on
the floor after getting its first element, which can be retrieved using
another parameter using _pg_to_up_acting_osds() directly.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomgr: use OSDMap::get_pg_acting_primary() to get the primary
Kefu Chai [Fri, 31 Mar 2017 10:30:53 +0000 (18:30 +0800)]
mgr: use OSDMap::get_pg_acting_primary() to get the primary

OSDMap::pg_to_acting_osds() assumes that the "acting" parameter is not
null.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agotests: add MGR=1 so 'pg dump' won't be blocked
Kefu Chai [Fri, 31 Mar 2017 06:26:09 +0000 (14:26 +0800)]
tests: add MGR=1 so 'pg dump' won't be blocked

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocommon/config_opts: kill mon_pg_create_interval 13800/head
xie xingguo [Mon, 6 Mar 2017 06:47:38 +0000 (14:47 +0800)]
common/config_opts: kill mon_pg_create_interval

This is not needed anymore.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
8 years agoMerge pull request #14260 from dmick/wip-workunit-clone-with-branch
Kefu Chai [Fri, 31 Mar 2017 05:17:46 +0000 (13:17 +0800)]
Merge pull request #14260 from dmick/wip-workunit-clone-with-branch

workunit: request branch when cloning

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agocommon: Make spinlock delay more conventional 14248/head
Brad Hubbard [Thu, 30 Mar 2017 06:50:32 +0000 (16:50 +1000)]
common: Make spinlock delay more conventional

The accepted method of implementing a spinlock delay is the "pause"
instruction.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
8 years agotasks/workunit.py: specify the branch name when cloning a branch 14260/head
Kefu Chai [Thu, 30 Mar 2017 04:37:01 +0000 (12:37 +0800)]
tasks/workunit.py: specify the branch name when cloning a branch

c1309fb failed to specify a branch when cloning using --depth=1, which
by default clones the HEAD. and we can not "git checkout" a specific
sha1 if it is not HEAD, after cloning using '--depth=1', so in this
change, we dispatch "tag", "branch", "HEAD" using three Refspec classes.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agorgw: fix uninitialized fields 14120/head
wangzhengyong [Fri, 24 Mar 2017 06:27:22 +0000 (14:27 +0800)]
rgw: fix uninitialized fields

Signed-off-by: wangzhengyong@cmss.chinamobile.com
8 years agoMerge pull request #14219 from ShiqiCooperation/master
Sage Weil [Thu, 30 Mar 2017 22:23:09 +0000 (17:23 -0500)]
Merge pull request #14219 from ShiqiCooperation/master

os/bluestore: clean up Invalid return value judgment

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #14228 from ifed01/wip-bluestore-fix-store-test
Sage Weil [Thu, 30 Mar 2017 22:21:55 +0000 (17:21 -0500)]
Merge pull request #14228 from ifed01/wip-bluestore-fix-store-test

test/store_test: fix bluestore test cases disablement

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #13617 from liewegas/wip-mgr-commands
Sage Weil [Thu, 30 Mar 2017 22:12:00 +0000 (17:12 -0500)]
Merge pull request #13617 from liewegas/wip-mgr-commands

mon,mgr: tag some commands for ceph-mgr

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agomon/ConfigKeyService: wait for quorum 13617/head
Sage Weil [Thu, 30 Mar 2017 16:42:31 +0000 (12:42 -0400)]
mon/ConfigKeyService: wait for quorum

Among other things, this prevents a mgr activation stall if it
happens to request config-keys from a mon that is out of
quorum.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: show delta
Sage Weil [Thu, 30 Mar 2017 16:31:35 +0000 (12:31 -0400)]
mon/MgrMonitor: show delta

This is mostly because I couldn't debug a weird state where
it kept updating but it appeared the addr was not changing
(always '-').

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMap: implement dump, add to ceph-dencoder
Sage Weil [Thu, 30 Mar 2017 16:19:41 +0000 (12:19 -0400)]
mon/MgrMap: implement dump, add to ceph-dencoder

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: print MgrMap to log on each change
Sage Weil [Thu, 30 Mar 2017 16:06:43 +0000 (12:06 -0400)]
mon/MgrMonitor: print MgrMap to log on each change

The other services do this.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/MgrMonitor: health warn/err if no active mgr
Sage Weil [Thu, 30 Mar 2017 14:40:23 +0000 (10:40 -0400)]
mon/MgrMonitor: health warn/err if no active mgr

Start warning once mons are luminous; start erroring once
require_luminous is set in osdmap.  Allow a grace period for
mgr to restart or standby to take over before we turn a warning
into an error.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoPorted the downstream (and tested) document upstream. 14259/head
John Wilkins [Thu, 30 Mar 2017 21:54:42 +0000 (14:54 -0700)]
Ported the downstream (and tested) document upstream.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
8 years agoClarified index.
John Wilkins [Thu, 30 Mar 2017 21:53:49 +0000 (14:53 -0700)]
Clarified index.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
8 years agodoc: Added a new version of the multi-site graphic.
John Wilkins [Thu, 30 Mar 2017 21:07:07 +0000 (14:07 -0700)]
doc: Added a new version of the multi-site graphic.

Signed-off-by: John Wilkins <jowilkin@redhat.com>
8 years agoMerge pull request #14183 from joscollin/wip-rgw-cleanup-removeunwantedheaders
Orit Wasserman [Thu, 30 Mar 2017 17:44:12 +0000 (20:44 +0300)]
Merge pull request #14183 from joscollin/wip-rgw-cleanup-removeunwantedheaders

rgw: Removed Unwanted headers
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoMerge pull request #14194 from joscollin/wip-rgw_rados-warning
Yehuda Sadeh [Thu, 30 Mar 2017 17:43:37 +0000 (10:43 -0700)]
Merge pull request #14194 from joscollin/wip-rgw_rados-warning

rgw: warning, output may be truncated before the last format character

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
8 years agoqa/vstart_runner: amend ps invocation 14254/head
Ilya Dryomov [Thu, 30 Mar 2017 16:59:08 +0000 (18:59 +0200)]
qa/vstart_runner: amend ps invocation

"ps -xwwu<id>" is parsed as BSD, because -x is not a UNIX option.
"u" is a BSD option for user-oriented format, so the <id> ends up being
parsed as an old-style "select by pid".  The only reason this command
doesn't dump other user's processes is that the BSD "only yourself"
restriction is in effect.

I'm not sure what's wrong with a simple "ps xww", but if we want to
select by euid, let's do it right.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>