Matt Benjamin
9809e95308
Merge pull request #24402 from cbodley/wip-36302
...
librgw: initialize curl and http client for multisite
2018-10-11 15:51:49 -04:00
Sage Weil
f1dd265a36
Merge PR #24514 into master
...
* refs/pull/24514/head:
mgr/restful: do not print warning message at seeing unknown request
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2018-10-11 14:35:45 -05:00
Jason Dillaman
ddb7e5eb80
qa/workunits: replace 'realpath' with 'readlink -f' in fsstress.sh
...
Fixes: http://tracker.ceph.com/issues/36409
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-11 15:25:20 -04:00
Sage Weil
29c9fbe534
Merge PR #24264 into master
...
* refs/pull/24264/head:
tools/rados/rados.cc: fix rados rm --force-full blocking problem
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-10-11 14:24:12 -05:00
Sage Weil
28cca7bb5f
Merge PR #24287 into master
...
* refs/pull/24287/head:
osd/OSD: drop osd_lock only if pg osdmaps are truly laggy
Reviewed-by: Sage Weil <sage@redhat.com>
2018-10-11 14:22:44 -05:00
Sage Weil
65ea56d15b
Merge PR #24331 into master
...
* refs/pull/24331/head:
common: fix memory leaks in WeightedPriorityQueue.
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-10-11 14:22:28 -05:00
Sage Weil
5ea5dc2b0e
Merge PR #24365 into master
...
* refs/pull/24365/head:
erasure-code: var-sized array init is done separatly.
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-10-11 14:22:13 -05:00
Sage Weil
f5ffe4db69
Merge PR #24506 into master
...
* refs/pull/24506/head:
doc/rados/troubleshooting: update notes on rebuilding mon db
ceph-objectstore-tool: update-mon-db: remove pgmap references
ceph-monstore-tool: remove remaining pgmap references, inflate-pgmap command
ceph-monstore-tool: rebuild creating_pgs
ceph-monstore-tool: rebuild: remove obsolete pgmap_meta fields
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-10-11 13:53:20 -05:00
Greg Farnum
f155851e5f
mon: consider AUTH_NONE clients which "authenticate" to be finished
...
We check for AUTH_NONE success by examining the side effect of the caps being
filled in with allow_all, and we need that to be "finished" for purposes of
replying with a monmap as well.
Fixes: http://tracker.ceph.com/issues/36300
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2018-10-11 11:08:51 -07:00
Casey Bodley
4d8e2c0df6
Merge pull request #24409 from alimaredia/wip-rgw-dpp-auth
...
rgw: thread DoutPrefixProvider into RGW::Auth_S3::authorize
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-10-11 13:21:40 -04:00
Sage Weil
b371771383
doc/rados/troubleshooting-mon: update mondb recovery script
...
- some cleanup (e.g., use $ms throughput)
- behave if the local host is in the $hosts list (use $ms.remote)
- be clear about updating all mons
- mon.0 -> mon.foo
Signed-off-by: Sage Weil <sage@redhat.com>
2018-10-11 11:35:31 -05:00
Jason Dillaman
c60ffac61e
Merge pull request #24428 from trociny/wip-rbd-config-global
...
rbd: add 'config global' command to get/store overrides in mon config db
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-10-11 10:50:33 -04:00
Sage Weil
bc4a306790
Merge PR #24541 into master
...
* refs/pull/24541/head:
common/config.h: fix spelling error in this file
Reviewed-by: Sage Weil <sage@redhat.com>
2018-10-11 09:09:07 -05:00
John Spray
796a4efc80
mgr/selftest: fix disabled module selection
...
This was broken by always on modules -- it was also
unnecessary complication, let's just pick some
hardcoded module to use.
Signed-off-by: John Spray <john.spray@redhat.com>
2018-10-11 08:50:49 -04:00
Sage Weil
9d7473f78b
Merge PR #24305 into master
...
* refs/pull/24305/head:
msg/async: ProtocolV1: use continuations instead of direct function calls
msg/async: ProtocolV1 state machine ascii diagram
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
2018-10-11 07:27:11 -05:00
Sebastian Wagner
d8de543b7e
install-deps.sh: dashboard frontend needs git
...
Running `npm install` for the dashboard pulls dependenies with git.
Under some setups, git was not installed when building the frontend.
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-10-11 14:20:52 +02:00
Alfredo Deza
4e312b8751
Merge pull request #24404 from ceph/wip-batch-report-idempotent
...
ceph-volume: make `lvm batch` idempotent
Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-10-11 07:51:22 -04:00
xiaomanh
692abe1844
common/config.h: fix spelling error in this file
...
Signed-off-by: xiaomanh <huangxiaoman@cmss.chinamobile.com>
2018-10-11 18:00:51 +08:00
Boris Ranto
072bb4e178
Merge pull request #24425 from b-ranto/wip-ld-hardening
...
rpm: Use hardened LDFLAGS
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2018-10-11 04:55:37 -05:00
Kanika Murarka
c8f2e5af35
mgr/dashboard: Improves documentation for Grafana Setting
...
Fixes: http://tracker.ceph.com/issues/36371
Signed-off-by: Kanika Murarka <kmurarka@redhat.com>
2018-10-11 15:19:44 +05:30
huanwen ren
af06b0cd43
cephfs-shell: fixup 'str' object has no attribute 'decode'
...
Fixes: http://tracker.ceph.com/issues/36368
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
2018-10-11 17:27:59 +08:00
Patrick Donnelly
d03a8302b5
Merge PR #23069 into master
...
* refs/pull/23069/head:
tests/libcephfs: add simple reclaim test
mds: check auth name before reclaiming session
mds: reclaim session before allowing mds to become active
mds: allow client to specify its session timeout
mds: initial code for client states reclaim
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-10-10 15:29:41 -07:00
Andrew Schoen
df7ef5383b
ceph-volume: extracts batch.filter_devices from Batch._get_strategy
...
This allows us to easily provide tests for that method.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:30 -04:00
Andrew Schoen
172d4af9b9
ceph-volume: failing to get block db size from conf logs an exception
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:29 -04:00
Andrew Schoen
aa4fcd602f
ceph-volume: when all devices are filtered exit gracefully
...
Even if all devices are filtered we want to return a 0 exit code and
make sure the json reporting still works.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:29 -04:00
Andrew Schoen
fc9a10e548
ceph-volume: filter devices used by journals/block.db
...
If after filterering of data/block devices there are only
one device left it can not be used if it is an SSD and
has been used previously as a journal or block.db
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:29 -04:00
Andrew Schoen
7f6bfaaf0c
ceph-volume: add rotational property to Device class
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:29 -04:00
Andrew Schoen
62426db799
ceph-volume: add info about filtered devices to batch pretty reports
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:29 -04:00
Andrew Schoen
3b6d82afe7
ceph-volume: remove the used_by_ceph key in the json output
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:28 -04:00
Andrew Schoen
1143482061
ceph-volume: fix idempotency checks for lvm batch tests
...
The mixed type tests will change strategy after the idempotency test so
we need to handle that in test playbook.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:28 -04:00
Andrew Schoen
b3cf90604d
ceph-volume: fix bluestore strategy json reporting and type
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:28 -04:00
Andrew Schoen
a7ee36ca92
ceph-volume: ignore failure to load ceph configuration for block.db size
...
If we fail to load a ceph configureation file when trying to get the
block.db size then just use defaults instead of throwing an error.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:28 -04:00
Andrew Schoen
1dd15025bf
ceph-volume: fix strategy comparison in 'lvm batch'
...
This also fixes some small json reporting issues with the
filestore MixedType strategy
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:28 -04:00
Andrew Schoen
9dfc00f8e1
ceph-volume: raise a non zero exit code if strategy changes with batch
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:27 -04:00
Andrew Schoen
9752d03cc1
ceph-volume: add functional tests to ensure lvm batch is idempotent
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:27 -04:00
Andrew Schoen
a28e6531e4
ceph-volume: add tests for util.device.Device.used_by_ceph
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:27 -04:00
Andrew Schoen
36396229d3
ceph-volume: update tests to account for filtered_devices in batch
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:27 -04:00
Andrew Schoen
6751253011
ceph-volume: consider block and data devices used_by_ceph
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:27 -04:00
Andrew Schoen
0718d2e266
ceph-volume: add filtered_devices and used_by_ceph to all batch reports
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:26 -04:00
Andrew Schoen
4529f2d605
ceph-volume: pick strategy for batch with only the unused devices
...
This will pick a strategy, filter out any devices already been used by
ceph and then pick a strategy again. If the strategy has changed the
call should error, if the strategy is the same proceed. If there are no
unused devices then the command is a noop.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:26 -04:00
Andrew Schoen
10f1d577d4
ceph-volume: adds a 'changed' key to lvm batch --report
...
This will indicate if the command would result in any OSDs being created
or not. Other tooling can use that key for idempotency checks.
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:26 -04:00
Andrew Schoen
48d10c9ccf
ceph-volume: adds used_by_ceph to filestore singletype batch report
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:26 -04:00
Andrew Schoen
9d49a3708e
ceph-volume: adds a used_by_ceph property to the Device class
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:26 -04:00
Andrew Schoen
3dae3247ad
ceph-volume: adds a lvs property to the Device class
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:25 -04:00
Andrew Schoen
619810c0ef
ceph-volume: add vg_name to the Device class
...
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 15:30:25 -04:00
John Spray
ecb5845559
Merge pull request #24525 from jtlayton/k8s-no-module-warn
...
mgr/orchestrator: clarify error message about kubernetes python module
Reviewed-by: John Spray <john.spray@redhat.com>
2018-10-10 18:27:46 +01:00
Mohamad Gebai
e8f28c2584
osd: make 'cache drop' command require 'executable' permission
...
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
2018-10-10 11:46:54 -04:00
Mohamad Gebai
2b0b6a77f2
osd: rename 'drop cache' and 'get cache stats' to group them by component
...
Rename 'drop cache' to 'cache drop' and 'get cache stats' to 'cache
status'.
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
2018-10-10 11:46:54 -04:00
Mohamad Gebai
fc761f902b
doc: add documentation for 'drop cache' and 'get cache stats'
...
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
2018-10-10 11:46:18 -04:00
Mohamad Gebai
e2b06de7a5
osd: don't print osdmap cache stats in 'get cache stats' command
...
Signed-off-by: Mohamad Gebai <mgebai@suse.com>
2018-10-10 11:45:51 -04:00