]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoos/bluestore:remove invalid statement 15718/head 16335/head
zhanglei [Fri, 16 Jun 2017 02:51:01 +0000 (22:51 -0400)]
os/bluestore:remove invalid statement

Signed-off-by: zhanglei <243290414@qq.com>
8 years agoMerge branch 'ceph' into zl 15595/head
zhanglei [Mon, 12 Jun 2017 01:23:34 +0000 (21:23 -0400)]
Merge branch 'ceph' into zl

8 years agoMerge pull request #15610 from wjwithagen/wip-wjw-freebsd-py-pecan
Sage Weil [Sat, 10 Jun 2017 17:50:10 +0000 (12:50 -0500)]
Merge pull request #15610 from wjwithagen/wip-wjw-freebsd-py-pecan

core: Install Pecan for FreeBSD

8 years agoMerge pull request #15574 from dillaman/wip-20223
Mykola Golub [Sat, 10 Jun 2017 15:24:16 +0000 (18:24 +0300)]
Merge pull request #15574 from dillaman/wip-20223

pybind/rbd: OSError should be picklable

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15576 from dachary/wip-ceph-disk
Loic Dachary [Sat, 10 Jun 2017 13:39:54 +0000 (15:39 +0200)]
Merge pull request #15576 from dachary/wip-ceph-disk

ceph-disk: sensible default for block.db

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agocore: Install Pecan for FreeBSD 15610/head
Willem Jan Withagen [Sat, 10 Jun 2017 10:12:23 +0000 (12:12 +0200)]
core: Install Pecan for FreeBSD

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agoMerge pull request #15609 from stiwari/wip-19879
Gregory Farnum [Sat, 10 Jun 2017 04:27:19 +0000 (21:27 -0700)]
Merge pull request #15609 from stiwari/wip-19879

Merge pull request from stiwari/wip-19879

8 years agoMerge pull request #12851 from zhangsw/fix-rgw-bucketcheck-bug
Yehuda Sadeh [Fri, 9 Jun 2017 22:16:55 +0000 (15:16 -0700)]
Merge pull request #12851 from zhangsw/fix-rgw-bucketcheck-bug

rgw: bucket index check in radosgw-admin removes valid index.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
8 years agoMerge pull request #15606 from stiwari/fix_1
Gregory Farnum [Fri, 9 Jun 2017 21:39:11 +0000 (14:39 -0700)]
Merge pull request #15606 from stiwari/fix_1

Documentation Fixes for http://tracker.ceph.com/issues/19879

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
8 years agoMerge pull request #15588 from liewegas/wip-20216
Sage Weil [Fri, 9 Jun 2017 21:26:18 +0000 (16:26 -0500)]
Merge pull request #15588 from liewegas/wip-20216

pybind/mgr/dashboard: monkeypatch os.exit to stop cherrypy from taking down mgr

Reviewed-by: John Spray <jspray@redhat.com>
8 years agoMerge pull request #15550 from jcsp/wip-doc-cephfs-objsize
Josh Durgin [Fri, 9 Jun 2017 21:22:56 +0000 (14:22 -0700)]
Merge pull request #15550 from jcsp/wip-doc-cephfs-objsize

doc/cephfs: mention RADOS object size limit

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoceph-disk: sensible default for block.db 15576/head
Loic Dachary [Thu, 8 Jun 2017 13:52:52 +0000 (15:52 +0200)]
ceph-disk: sensible default for block.db

If bluestore_block_db_size is unset or zero, fallback to a sensible
default which is block_size / 100. With a minimum of 1GB.

Signed-off-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #13395 from dang/wip-quota-cache-doc
Matt Benjamin [Fri, 9 Jun 2017 17:56:52 +0000 (13:56 -0400)]
Merge pull request #13395 from dang/wip-quota-cache-doc

Document RGW quota cache options

8 years agoMerge pull request #15568 from guihecheng/rgw_file-cleanup-names
Matt Benjamin [Fri, 9 Jun 2017 17:41:45 +0000 (13:41 -0400)]
Merge pull request #15568 from guihecheng/rgw_file-cleanup-names

rgw: rgw_file cleanup names

8 years agoMerge pull request #15541 from guihecheng/rgw_file-cleanup
Matt Benjamin [Fri, 9 Jun 2017 16:48:20 +0000 (12:48 -0400)]
Merge pull request #15541 from guihecheng/rgw_file-cleanup

rgw_file: replace raw fs->fh_lru.unref with predefined fs->unref

8 years agoMerge pull request #15558 from Linbing/wip-osd-optimize-send-failues
Kefu Chai [Fri, 9 Jun 2017 16:27:44 +0000 (00:27 +0800)]
Merge pull request #15558 from Linbing/wip-osd-optimize-send-failues

osd: when osd in not in failure_pending, we don't need to get osd inst from osdmap.

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15223 from badone/wip-ceph_test_admin_socket_output
Yuri Weinstein [Fri, 9 Jun 2017 16:01:52 +0000 (09:01 -0700)]
Merge pull request #15223 from badone/wip-ceph_test_admin_socket_output

tests: Add integration tests for admin socket output

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #15573 from liewegas/wip-20208
Yuri Weinstein [Fri, 9 Jun 2017 16:00:10 +0000 (09:00 -0700)]
Merge pull request #15573 from liewegas/wip-20208

mon/PGMap: fix osd_epoch update when removing osd_stat

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
8 years agoMerge pull request #15594 from idryomov/wip-krbd-rados-ls
Jason Dillaman [Fri, 9 Jun 2017 14:50:20 +0000 (10:50 -0400)]
Merge pull request #15594 from idryomov/wip-krbd-rados-ls

qa: update krbd_data_pool.sh to match the new rados ls behavior

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #15600 from ceph/luminous
Sage Weil [Fri, 9 Jun 2017 14:13:59 +0000 (09:13 -0500)]
Merge pull request #15600 from ceph/luminous

12.0.3

8 years agoMerge pull request #15180 from theanalyst/doc/rgw-dev-s3tests
Sage Weil [Fri, 9 Jun 2017 13:32:10 +0000 (08:32 -0500)]
Merge pull request #15180 from theanalyst/doc/rgw-dev-s3tests

doc: dev improve the s3tests doc to reflect current scripts

8 years agoos/bluestore/BlueFS:.slow should be compared with dirname
zhanglei [Fri, 9 Jun 2017 09:38:24 +0000 (05:38 -0400)]
os/bluestore/BlueFS:.slow should be compared with dirname

Signed-off-by: zhanglei <243290414@qq.com>
8 years agoMerge pull request #15570 from joscollin/wip-cleanup-testmsgr-warning
Jos Collin [Fri, 9 Jun 2017 07:00:35 +0000 (12:30 +0530)]
Merge pull request #15570 from joscollin/wip-cleanup-testmsgr-warning

test/msgr: silence warnings from -Wsign-compare

Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
8 years agoMerge pull request #15100 from kestrels/wip-crc32c-fastzero2
Sage Weil [Fri, 9 Jun 2017 01:39:59 +0000 (20:39 -0500)]
Merge pull request #15100 from kestrels/wip-crc32c-fastzero2

crc32c: Add ppc64le fast zero optimized assembly.

Reviewed-By: Piotr Dałek <piotr.dalek@corp.ovh.com>
8 years agoMerge pull request #15387 from jecluis/wip-20123
Sage Weil [Fri, 9 Jun 2017 01:39:33 +0000 (20:39 -0500)]
Merge pull request #15387 from jecluis/wip-20123

mon/PGMap: show %used in formatted output

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15508 from tchaikov/wip-ceph.in-cleanup
Sage Weil [Fri, 9 Jun 2017 01:39:15 +0000 (20:39 -0500)]
Merge pull request #15508 from tchaikov/wip-ceph.in-cleanup

ceph.in: drop the compatiiblity to handle non json commands

8 years agoMerge pull request #15560 from dmick/master
Sage Weil [Fri, 9 Jun 2017 01:38:58 +0000 (20:38 -0500)]
Merge pull request #15560 from dmick/master

mgr/DaemonServer.cc: log daemon type string as well as id

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15562 from tchaikov/wip-no-assert.h
Sage Weil [Fri, 9 Jun 2017 01:38:23 +0000 (20:38 -0500)]
Merge pull request #15562 from tchaikov/wip-no-assert.h

common,osdc: remove atomic_t completely

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15567 from Fabian-Gruenbichler/pull/logrotatesync
Sage Weil [Fri, 9 Jun 2017 01:38:08 +0000 (20:38 -0500)]
Merge pull request #15567 from Fabian-Gruenbichler/pull/logrotatesync

debian: sync logrotate packaging with downstream

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15578 from jcsp/wip-mgr-cleanup
Sage Weil [Fri, 9 Jun 2017 01:37:53 +0000 (20:37 -0500)]
Merge pull request #15578 from jcsp/wip-mgr-cleanup

mgr: cleanup, stop clients sending in perf counters

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15582 from liewegas/wip-20226
Sage Weil [Fri, 9 Jun 2017 01:37:27 +0000 (20:37 -0500)]
Merge pull request #15582 from liewegas/wip-20226

osd: take PGRef for recovery sleep wakeup event

Reviewed-by: Gregory Farnum <gfarnum@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agopybind/mgr/dashboard: monkeypatch os.exit to stop cherrypy from taking down mgr 15588/head
Sage Weil [Thu, 8 Jun 2017 22:12:02 +0000 (18:12 -0400)]
pybind/mgr/dashboard: monkeypatch os.exit to stop cherrypy from taking down mgr

Fixes: http://tracker.ceph.com/issues/20216
Suggested-by: Tim Serong <tserong@suse.com>
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15405 from liewegas/wip-rest-test
Sage Weil [Thu, 8 Jun 2017 22:07:22 +0000 (17:07 -0500)]
Merge pull request #15405 from liewegas/wip-rest-test

pybind/mgr/restful: improve cert handling; work with vstart

Reviewed-by: Boris Ranto <branto@redhat.com>
8 years agodebian/control: Build-Depends on python-pecan 15405/head
Sage Weil [Thu, 8 Jun 2017 17:49:30 +0000 (13:49 -0400)]
debian/control: Build-Depends on python-pecan

This is needed for make check (so that restful mgr module can load).

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15557 from liewegas/wip-mgr-respawn
Sage Weil [Thu, 8 Jun 2017 20:45:52 +0000 (15:45 -0500)]
Merge pull request #15557 from liewegas/wip-mgr-respawn

mgr/MgrStandby: respawn when deactivated

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15301 from shashalu/rgw-ssl
Casey Bodley [Thu, 8 Jun 2017 20:01:47 +0000 (16:01 -0400)]
Merge pull request #15301 from shashalu/rgw-ssl

rgw: add "rgw_verify_ssl" config

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15257 from shashalu/fix-rgw-admin-retcode
Casey Bodley [Thu, 8 Jun 2017 20:00:02 +0000 (16:00 -0400)]
Merge pull request #15257 from shashalu/fix-rgw-admin-retcode

rgw: fix radosgw-admin retcode

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #14950 from fangyuxiangGL/set-obj-accounted-size
Casey Bodley [Thu, 8 Jun 2017 19:59:20 +0000 (15:59 -0400)]
Merge pull request #14950 from fangyuxiangGL/set-obj-accounted-size

rgw: set object accounted size correctly

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agomgr/Mgr: fix deadlock in load_config
Sage Weil [Mon, 5 Jun 2017 20:15:43 +0000 (16:15 -0400)]
mgr/Mgr: fix deadlock in load_config

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agopybind/mgr/dashboard: get_localized_config for server_{addr,port}
Sage Weil [Mon, 5 Jun 2017 19:43:18 +0000 (15:43 -0400)]
pybind/mgr/dashboard: get_localized_config for server_{addr,port}

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa/workunits/rest/test_mgr_rest_api.py: improvements
Sage Weil [Thu, 1 Jun 2017 14:34:06 +0000 (10:34 -0400)]
qa/workunits/rest/test_mgr_rest_api.py: improvements

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agopybind/mgr/restful: store each key+pass in a separate key
Sage Weil [Fri, 2 Jun 2017 14:25:00 +0000 (10:25 -0400)]
pybind/mgr/restful: store each key+pass in a separate key

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agopybind/mgr/restful: prefix commands with 'restful'
Sage Weil [Fri, 2 Jun 2017 14:31:41 +0000 (10:31 -0400)]
pybind/mgr/restful: prefix commands with 'restful'

And use - instead of _, following the ceph convention.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr: add get_config_prefix
Sage Weil [Fri, 2 Jun 2017 14:24:39 +0000 (10:24 -0400)]
mgr: add get_config_prefix

Fetch a dict of all config options with a given prefix.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agopybind/mgr/restful: localize key/crt keys
Sage Weil [Fri, 2 Jun 2017 14:05:54 +0000 (10:05 -0400)]
pybind/mgr/restful: localize key/crt keys

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/PyState: add get_mgr_id() to module interface
Sage Weil [Fri, 2 Jun 2017 14:05:08 +0000 (10:05 -0400)]
mgr/PyState: add get_mgr_id() to module interface

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/PyModules: prefix by mgr/, not mgr/$id/
Sage Weil [Fri, 2 Jun 2017 13:50:18 +0000 (09:50 -0400)]
mgr/PyModules: prefix by mgr/, not mgr/$id/

If modules want per-instance state, they can include
the mgr id in their portion of the key name.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomon/ConfigKeyService: more useful status message
Sage Weil [Thu, 1 Jun 2017 20:33:42 +0000 (16:33 -0400)]
mon/ConfigKeyService: more useful status message

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: start up mgr restful API
Sage Weil [Thu, 1 Jun 2017 04:06:24 +0000 (00:06 -0400)]
vstart.sh: start up mgr restful API

We try to stagger the ports that mgr modules bind to so that
concurrent vstart instances can run with consecutive ports but
the services will not collide.  Yes, this is awkward.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agopybind/mgr/restful: all crt/key or filename in config-key
Sage Weil [Thu, 1 Jun 2017 04:05:09 +0000 (00:05 -0400)]
pybind/mgr/restful: all crt/key or filename in config-key

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoceph.spec.in: add python-pecan as BuildDepends too
Sage Weil [Thu, 1 Jun 2017 03:29:11 +0000 (23:29 -0400)]
ceph.spec.in: add python-pecan as BuildDepends too

For install-deps.sh's benefit.

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: load 'restful' (not 'rest') mgr module
Sage Weil [Thu, 1 Jun 2017 03:23:24 +0000 (23:23 -0400)]
vstart.sh: load 'restful' (not 'rest') mgr module

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agotest/vstart_wrapper.sh: fix MGR_PYTHON_PATH
Sage Weil [Fri, 2 Jun 2017 03:05:17 +0000 (23:05 -0400)]
test/vstart_wrapper.sh: fix MGR_PYTHON_PATH

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agovstart.sh: start mgr dashboard, echo URL(s)
Sage Weil [Tue, 23 May 2017 19:06:49 +0000 (15:06 -0400)]
vstart.sh: start mgr dashboard, echo URL(s)

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15507 from zhangsw/fix-rgw-logtrim-bug
Yehuda Sadeh [Thu, 8 Jun 2017 18:26:44 +0000 (11:26 -0700)]
Merge pull request #15507 from zhangsw/fix-rgw-logtrim-bug

rgw: datalog trim and mdlog trim handles the result returned by osd incorrectly.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
8 years agoMerge pull request #15102 from majianpeng/blockdevice-pmem
Sage Weil [Thu, 8 Jun 2017 18:15:52 +0000 (13:15 -0500)]
Merge pull request #15102 from majianpeng/blockdevice-pmem

os/bluestore/BlockDevice: support pmem device as bluestore backend

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoosd: take PGRef for recovery sleep wakeup event 15582/head
Sage Weil [Thu, 8 Jun 2017 18:08:52 +0000 (14:08 -0400)]
osd: take PGRef for recovery sleep wakeup event

The raw PG* may not remain valid when the event fires.

Fixes: http://tracker.ceph.com/issues/20226
Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoqa: update krbd_data_pool.sh to match the new rados ls behavior 15594/head
Ilya Dryomov [Thu, 8 Jun 2017 13:57:59 +0000 (15:57 +0200)]
qa: update krbd_data_pool.sh to match the new rados ls behavior

See commit e9973adf1fb7 ("PendingReleaseNotes: notes on whiteouts vs
pgnls").

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
8 years agoMerge pull request #15577 from jcsp/wip-dashboard-cleanup
Jason Dillaman [Thu, 8 Jun 2017 17:56:19 +0000 (13:56 -0400)]
Merge pull request #15577 from jcsp/wip-dashboard-cleanup

mgr: dashboard code cleanup

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agomgr/dashboard: remove confusing SyncObject stuff 15577/head
John Spray [Thu, 8 Jun 2017 12:57:50 +0000 (08:57 -0400)]
mgr/dashboard: remove confusing SyncObject stuff

This was a hangover from when these wrapper classes
were borrowed from Calamari, which used these
versions/equality functions to work out when
to go fetch data from the ceph cluster.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr/dashboard: fix server view on funny version format
John Spray [Thu, 8 Jun 2017 12:06:12 +0000 (08:06 -0400)]
mgr/dashboard: fix server view on funny version format

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr/dashboard: fix error handling in remote_view_cache
John Spray [Wed, 7 Jun 2017 16:50:38 +0000 (12:50 -0400)]
mgr/dashboard: fix error handling in remote_view_cache

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr/dashboard: keep a global librados instance
John Spray [Wed, 7 Jun 2017 16:48:40 +0000 (12:48 -0400)]
mgr/dashboard: keep a global librados instance

...so that classes that need one aren't creating
their own all the time.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15566 from baruza/wip-doc-20199
Kefu Chai [Thu, 8 Jun 2017 15:10:51 +0000 (23:10 +0800)]
Merge pull request #15566 from baruza/wip-doc-20199

doc: Change the default values of some OSD options

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #15485 from ceph/wip-hdd-throttle-cost
Sage Weil [Thu, 8 Jun 2017 15:02:54 +0000 (10:02 -0500)]
Merge pull request #15485 from ceph/wip-hdd-throttle-cost

common/config_opts.h: Lower HDD throttle cost.

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15203 from Liuchang0812/wip-kill-broken-links
Kefu Chai [Thu, 8 Jun 2017 14:59:11 +0000 (22:59 +0800)]
Merge pull request #15203 from Liuchang0812/wip-kill-broken-links

doc: kill some broken links

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agodebian: sync logrotate packaging with downstream 15567/head
Fabian Grünbichler [Tue, 6 Jun 2017 10:20:06 +0000 (12:20 +0200)]
debian: sync logrotate packaging with downstream

both Ubuntu and Debian put the logrotate script into
ceph-common, to ensure that radosgw logs are rotated as
well.

to prevent duplicate logrotate scripts handling the same log
files, and to minimize the delta between upstream and
downstream packaging, sync this change back upstream.

Fixes: http://tracker.ceph.com/issues/19938
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
8 years agomgr: drop PyModules::lock around module shutdown calls 15578/head
John Spray [Thu, 8 Jun 2017 12:46:33 +0000 (08:46 -0400)]
mgr: drop PyModules::lock around module shutdown calls

This deadlocked if the module's shutdown call was trying
to take a pythonland lock that was held by a thread
that was in turn trying to call into C++ land and take
PyModules::lock.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr: don't let TYPE_CLIENT entities send stats
John Spray [Thu, 8 Jun 2017 12:43:02 +0000 (08:43 -0400)]
mgr: don't let TYPE_CLIENT entities send stats

Anyone instantiating librados instances ended up
appearing as a weird entry in DaemonStateIndex.

Come back to this at the point we want e.g. stats
from RGWs or NFS gateways.

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agomgr: don't log successful ceph_config_get as err
John Spray [Wed, 7 Jun 2017 15:11:48 +0000 (11:11 -0400)]
mgr: don't log successful ceph_config_get as err

Signed-off-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #15575 from liewegas/wip-pgnls-note
Gregory Farnum [Thu, 8 Jun 2017 13:55:37 +0000 (06:55 -0700)]
Merge pull request #15575 from liewegas/wip-pgnls-note

PendingReleaseNotes: notes on whiteouts vs pgnls

8 years agoMerge pull request #15309 from ifed01/wip-bluestore-boost-statfs
Sage Weil [Thu, 8 Jun 2017 13:52:34 +0000 (08:52 -0500)]
Merge pull request #15309 from ifed01/wip-bluestore-boost-statfs

os/bluestore: keep statfs replica in RAM to avoid expensive KV retrieval

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoPendingReleaseNotes: notes on whiteouts vs pgnls 15575/head
Sage Weil [Thu, 8 Jun 2017 13:41:25 +0000 (09:41 -0400)]
PendingReleaseNotes: notes on whiteouts vs pgnls

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agopybind/rbd: OSError should be picklable 15574/head
Jason Dillaman [Thu, 8 Jun 2017 13:30:31 +0000 (09:30 -0400)]
pybind/rbd: OSError should be picklable

Fixes: http://tracker.ceph.com/issues/20223
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
8 years agomon/PGMap: erase osd_epochs entry too when we erase osd_stat entry 15573/head
Sage Weil [Thu, 8 Jun 2017 02:49:23 +0000 (22:49 -0400)]
mon/PGMap: erase osd_epochs entry too when we erase osd_stat entry

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agomgr/ClusterState: dump pgmap and inc at dout 30
Sage Weil [Wed, 7 Jun 2017 21:48:40 +0000 (17:48 -0400)]
mgr/ClusterState: dump pgmap and inc at dout 30

Signed-off-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #15532 from dillaman/wip-rbd-mirror-stress
Mykola Golub [Thu, 8 Jun 2017 11:42:29 +0000 (14:42 +0300)]
Merge pull request #15532 from dillaman/wip-rbd-mirror-stress

rbd-mirror: lock loss during sync should wait for in-flight copies

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #15518 from dillaman/wip-rbd-missing-default-pool
Mykola Golub [Thu, 8 Jun 2017 11:41:51 +0000 (14:41 +0300)]
Merge pull request #15518 from dillaman/wip-rbd-missing-default-pool

rbd: removed hardcoded default pool

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoos/bluestore: introduce a debug switch to bypass kv update. 15309/head
Igor Fedotov [Thu, 13 Apr 2017 14:51:33 +0000 (17:51 +0300)]
os/bluestore: introduce a debug switch to bypass kv update.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: introduce debug parameter to bypass bdev verification
Igor Fedotov [Fri, 26 May 2017 12:55:47 +0000 (05:55 -0700)]
os/bluestore: introduce debug parameter to bypass bdev verification

E.g. this allows to backup WAL/DB volumes after preconditioning and quickly rollback to that state when needed.

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: keep statfs replica in memory to avoid expensive KV access
Igor Fedotov [Fri, 26 May 2017 12:33:05 +0000 (15:33 +0300)]
os/bluestore: keep statfs replica in memory to avoid expensive KV access

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agoos/bluestore: move volatile_statfs struct out of TransContext
Igor Fedotov [Fri, 26 May 2017 12:07:28 +0000 (15:07 +0300)]
os/bluestore: move volatile_statfs struct out of TransContext

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
8 years agotest/msgr: silence warnings from -Wsign-compare 15570/head
Jos Collin [Thu, 8 Jun 2017 11:18:20 +0000 (16:48 +0530)]
test/msgr: silence warnings from -Wsign-compare

The following warning appears during make in the latest code:

ceph/src/test/msgr/test_msgr.cc:1474:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     CHECK_AND_WAIT_TRUE(srv_dispatcher.count > last + 1);
                         ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
ceph/src/test/msgr/test_msgr.cc:54:9: note: in definition of macro ‘CHECK_AND_WAIT_TRUE’
     if (expr)                           \
         ^~~~
ceph/src/test/msgr/test_msgr.cc:1475:30: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (srv_dispatcher.count == last) {

Signed-off-by: Jos Collin <jcollin@redhat.com>
8 years agoMerge pull request #15433 from wjwithagen/wip-wjw-prettytable
Loic Dachary [Thu, 8 Jun 2017 10:52:31 +0000 (12:52 +0200)]
Merge pull request #15433 from wjwithagen/wip-wjw-prettytable

ceph-disk: add setting for external py-modules for tox-testing

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agorgw_file: use predefined format_child_name to replace raw string concatenation 15568/head
Gui Hecheng [Thu, 8 Jun 2017 10:25:50 +0000 (18:25 +0800)]
rgw_file: use predefined format_child_name to replace raw string concatenation

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
8 years agodoc: Change the default values of some OSD options 15566/head
Barbora Ančincová [Wed, 7 Jun 2017 10:10:53 +0000 (12:10 +0200)]
doc: Change the default values of some OSD options

These values were changed to reflect this change a3f9cba

Fixes: http://tracker.ceph.com/issues/20199
Signed-off-by: Bara Ancincova <bara@redhat.com>
8 years agoceph-disk: use system modules if needed 15433/head
Willem Jan Withagen [Fri, 2 Jun 2017 14:53:43 +0000 (16:53 +0200)]
ceph-disk: use system modules if needed

 - prettytable usage was introduced in:
https://github.com/ceph/ceph/commit/3fa8bb1
   It is in the install-deps.sh file to be installed, but
   it is not per default installed in the testenvironment
   So allow tox tests to use "external" modules

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
8 years agorgw_file: pass bucketname instead of uri for bucket create/delete
Gui Hecheng [Thu, 8 Jun 2017 07:05:21 +0000 (15:05 +0800)]
rgw_file: pass bucketname instead of uri for bucket create/delete

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
8 years agotools/rbd_mirror: do not include ununsed header 15562/head
Kefu Chai [Thu, 8 Jun 2017 04:19:39 +0000 (12:19 +0800)]
tools/rbd_mirror: do not include ununsed header

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoclient: s/atomic_t/std::atomic<>
Kefu Chai [Thu, 8 Jun 2017 04:18:42 +0000 (12:18 +0800)]
client: s/atomic_t/std::atomic<>

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocmake,debian,rpm: remove atomic_t completely
Kefu Chai [Thu, 8 Jun 2017 03:31:51 +0000 (11:31 +0800)]
cmake,debian,rpm: remove atomic_t completely

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomsg,client,os,journal: do not include unused header
Kefu Chai [Thu, 8 Jun 2017 03:32:39 +0000 (11:32 +0800)]
msg,client,os,journal: do not include unused header

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomsg/async: s/atomic_t/atomic<>/
Kefu Chai [Thu, 8 Jun 2017 03:40:00 +0000 (11:40 +0800)]
msg/async: s/atomic_t/atomic<>/

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agorgw: rgw_rados: s/atomic_t/atomic<>/
Kefu Chai [Thu, 8 Jun 2017 03:32:02 +0000 (11:32 +0800)]
rgw: rgw_rados: s/atomic_t/atomic<>/

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomsg,common: do not include assert.h everywhere to clobber <assert.h>
Kefu Chai [Thu, 8 Jun 2017 03:21:11 +0000 (11:21 +0800)]
msg,common: do not include assert.h everywhere to clobber <assert.h>

* reverts c93daaf92b643a06a822558973d377733dbd9d85
* add "#include "include/assert.h" to where <cassert> or <assert.h> are
  included, or avoid including them if possible.

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agoosdc/Objecter: s/atomic_t/std::atomic<>/
Kefu Chai [Thu, 8 Jun 2017 03:20:02 +0000 (11:20 +0800)]
osdc/Objecter: s/atomic_t/std::atomic<>/

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agocommon/ceph_context: s/atomic_t/std::atomic<>/
Kefu Chai [Thu, 8 Jun 2017 03:18:10 +0000 (11:18 +0800)]
common/ceph_context: s/atomic_t/std::atomic<>/

Signed-off-by: Kefu Chai <kchai@redhat.com>
8 years agomgr/DaemonServer.cc: log daemon type string as well as id 15560/head
Dan Mick [Thu, 8 Jun 2017 02:52:13 +0000 (19:52 -0700)]
mgr/DaemonServer.cc: log daemon type string as well as id

Signed-off-by: Dan Mick <dan.mick@redhat.com>
8 years agoMerge pull request #14866 from chardan/jfw-wip-halflife_atomic_t-varan
Kefu Chai [Thu, 8 Jun 2017 01:57:26 +0000 (09:57 +0800)]
Merge pull request #14866 from chardan/jfw-wip-halflife_atomic_t-varan

common,test: migrate atomic_t to std::atomic

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoosd: when osd is not in failure_pending, we don't need to get osd inst from osdmap. 15558/head
linbing [Thu, 8 Jun 2017 00:39:47 +0000 (08:39 +0800)]
osd: when osd is not in failure_pending, we don't need to get osd inst from osdmap.

Signed-off-by: linbing <linbing@t2cloud.net>