Radoslaw Zarzynski
7c686463b9
osd: avoid unnecessary map lookups in PrimaryLogPG::do_op.
...
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-10-24 19:55:09 +02:00
Sage Weil
8a2f4429b1
mgr: adjust DaemonState device index when daemon metadata is updated
...
We need to unregister the old metadata (in particular, its devices
in the DaemonState device indexes) before adjusting and reregistering
the new metadata.
Do the whole thing under the DaemonState lock to that there isn't a window
where the osd metadata isn't present at all.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-10-24 12:55:08 -05:00
Sage Weil
c52fc7b5d3
mgr/DaemonState: clear devices in set_metadata
...
We are adding new fields in the new data provided; clear out any from the
previous values.
Signed-off-by: Sage Weil <sage@redhat.com>
2018-10-24 12:55:08 -05:00
Orit Wasserman
173bfc8754
rgw: use the same lock when resharding
...
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
2018-10-24 13:00:39 -04:00
Orit Wasserman
32d85970d4
rgw: renew resharding lock during bucket resharding
...
Signed-off-by: Orit Wasserman <owasserm@owasserm.redhat.com>
2018-10-24 13:00:39 -04:00
Tiago Melo
c0817527cc
ceph.in: Add support for python 3
...
This will allow the condition to work in both python 2 and 3 environments.
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-10-24 17:58:18 +01:00
Alfredo Deza
75eb578ae7
Merge pull request #24738 from alfredodeza/wip-rm36492
...
ceph-volume: do not send (lvm) stderr/stdout to the terminal, use the logfile
Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-10-24 12:22:52 -04:00
Sage Weil
74fc2f3b28
Merge PR #24665 into master
...
* refs/pull/24665/head:
common: remove unused ioprio thread/wq infrastructure
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
2018-10-24 10:34:44 -05:00
Sage Weil
0638eb1aa4
Merge PR #24701 into master
...
* refs/pull/24701/head:
os/bluestore: fix race between SharedBlobSet::lookup and SharedBlob::put
Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2018-10-24 10:34:29 -05:00
Sage Weil
82acec1835
Merge PR #24707 into master
...
* refs/pull/24707/head:
build/ops: drop sgdisk build/runtime dependencies
Reviewed-by: Tim Serong <tserong@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
2018-10-24 10:34:08 -05:00
Sage Weil
2ff2a1a44e
Merge PR #24687 into master
...
* refs/pull/24687/head:
src/test: fix unordered manifest-unset op
Reviewed-by: Sage Weil <sage@redhat.com>
2018-10-24 10:31:15 -05:00
Jos Collin
a2a7f417b8
rados: fix admin/build-doc warnings
...
Fixed admin/build-doc warnings in librados.h
and rados_types.h
Signed-off-by: Jos Collin <jcollin@redhat.com>
2018-10-24 20:33:43 +05:30
Alfredo Deza
6d6bcda75f
ceph-volume tests.api update monkeypatching to use **kw
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-10-24 10:55:06 -04:00
Alfredo Deza
04e51c956e
ceph-volume tests allow **kw when monkeypatching
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-10-24 10:54:48 -04:00
Alfredo Deza
581eed36ea
ceph-volume api.lvm: do not spit out errors on the terminal from LVM
...
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-10-24 10:54:18 -04:00
Jason Dillaman
484dc12089
qa/tasks/qemu: use unique clone directory to avoid race with workunit
...
If there is a workunit task associated with the same client, the two
tasks will attempt to clone the suite repo to the same directory.
Worse, if it's parallel tasks, the two clones will clobber each
other.
Fixes: http://tracker.ceph.com/issues/36542
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 5d56014c61
)
2018-10-24 10:30:43 -04:00
Kefu Chai
82db568d64
os/tests: should read size_t options using get_val<Option::size_t>()
...
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-10-24 22:18:34 +08:00
Lenz Grimmer
fb1afdf76c
Merge pull request #24722 from zmc/rbd-redirect
...
mgr/dashboard: Redirect /block to /block/rbd
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-10-24 11:47:13 +02:00
Patrick Nawracay
c98d5022b7
mgr/dashboard: Simplify frontend test helper
...
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-10-24 10:02:31 +02:00
Patrick Nawracay
061704080c
mgr/dashboard: TableActionsComponent cleanup
...
Rename `buttonCondition` to `canBePrimary`
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-10-24 10:02:31 +02:00
Patrick Nawracay
e8218ac145
mgr/dashboard: Rename DeletionModalComponent
to CriticalConfirmationModalComponent
...
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-10-24 10:02:31 +02:00
Patrick Nawracay
cc7bf7173c
mgr/dashboard: Cleanup OSD components
...
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-10-24 10:02:31 +02:00
Yao Zongyou
37ca6bef87
common: prefer std::size to ARRAY_SIZE macro
...
Signed-off-by: Yao Zongyou <yaozongyou@vip.qq.com>
2018-10-24 10:45:15 +08:00
Kefu Chai
86106ecb00
Merge pull request #19964 from runsisi/wip-build
...
cmake: move ceph-osdomap-tool, ceph-monstore-tool out of ceph-test
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-10-24 10:01:37 +08:00
Casey Bodley
5df9aad20d
librados: fix unitialized timeout in wait_for_osdmap
...
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-10-23 18:51:40 -04:00
Patrick Donnelly
f790de8e28
Merge PR #24540 into master
...
* refs/pull/24540/head:
mgr/status: fix fs status subcommand did not show standby-replay MDS' perf info
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-10-23 15:32:55 -07:00
Patrick Donnelly
6421aae0aa
mds: add missing mds_lock
...
Fixes: http://tracker.ceph.com/issues/36573
Introduced-by: ecbd4a8aa8
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-10-23 15:27:36 -07:00
Patrick Donnelly
9c62710edd
Merge PR #24709 into master
...
* refs/pull/24709/head:
PendingReleaseNotes: note about cephfs client state reclaim
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-10-23 15:24:09 -07:00
Patrick Donnelly
8c95f8e119
Merge PR #24466 into master
...
* refs/pull/24466/head:
common: assert if buffer advance length overflow
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-10-23 15:02:26 -07:00
Patrick Donnelly
bc93a6173a
Merge PR #24529 into master
...
* refs/pull/24529/head:
mds: cleanup command descriptions
Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-10-23 15:01:53 -07:00
Patrick Donnelly
6d9f39b096
Merge PR #24640 into master
...
* refs/pull/24640/head:
mds: remove MonClient reconnect
Reviewed-by: Sage Weil <sage@redhat.com>
2018-10-23 15:01:14 -07:00
Patrick Donnelly
60c63f71f6
Merge PR #24533 into master
...
* refs/pull/24533/head:
qa: add timeouts for remote ops for client mounts
Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-10-23 14:46:34 -07:00
Lenz Grimmer
f24b46ee4d
Merge pull request #24679 from tspmelo/wip-36528
...
mgr/dashboard: Fix HttpClient Module imports in unit tests
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-10-23 23:23:18 +02:00
Lenz Grimmer
549e00286e
Merge pull request #24632 from Devp00l/wip-issue-36468
...
mgr/dashboard: Handle class objects as regular objects in KV-table
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-10-23 23:22:05 +02:00
Josh Durgin
b148a231b4
test/librados/aio: remove unused callbacks
...
That callbacks are called is covered by many other tests.
These particular m_safe and m_complete fields were unused.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2018-10-23 16:19:51 -04:00
Josh Durgin
75a776c0eb
test/librados/aio: wait for all completions properly
...
Using global semaphores was error-prone and unnecessary. Unbalanced
usage resulted in a race like:
aio_write object foo -> dropped on full OSD
aio_read object foo -> -ENOENT
The intent of the test was to wait for the write to complete, so
do that explicitly for each aio test and remove the semaphores.
Fixes: http://tracker.ceph.com/issues/24587
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
2018-10-23 16:08:54 -04:00
Alfredo Deza
7ba945534f
Merge pull request #24674 from sileht/master
...
ceph-volume: extract flake8 config
Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-10-23 15:04:54 -05:00
Zack Cerza
57040391f5
mgr/dashboard: Redirect /block to /block/rbd
...
Fixes: https://tracker.ceph.com/issues/36401
Signed-off-by: Zack Cerza <zack@redhat.com>
2018-10-23 13:27:40 -06:00
Matt Benjamin
16dcd2ee6f
Merge pull request #23242 from linuxbox2/wip-rgw-inflight-ops
...
rgw: set default objecter_inflight_ops = 24576
2018-10-23 11:21:10 -04:00
Timofey Titovets
e298e756a0
os/bluestore/KernelDevice: Honor discard_granularity
...
Kernel ABI:
A discard_granularity of 0 means
that the device does not support discard functionality.
Also discard_granularity is RO attribute, while rotational are RW.
That means what rotational can be overridden in user space if needed.
Signed-off-by: Timofey Titovets <nefelim4ag@gmail.com>
2018-10-23 17:35:24 +03:00
Willem Jan Withagen
d7faa0de0b
common: Fix function const, when not all serial() are const.
...
And then Clang complains:
```
/home/jenkins/workspace/ceph-master/src/common/blkdev.cc:700:13: error: out-of-line definition of 'serial' does not match any declaration in 'Bl
kDev'
int BlkDev::serial(char *serial, size_t max)
^~~~~~
/home/jenkins/workspace/ceph-master/src/common/blkdev.h:50:7: note: member declaration does not match because it is const qualified
int serial(char *serial, size_t max) const;
^ ~~~~~
1 error generated.
```
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2018-10-23 15:32:56 +02:00
Sage Weil
39304caf95
common: remove unused ioprio thread/wq infrastructure
...
This is all now obsolete, with no remaining users.
Move ceph_gettid into Thread.{cc,h}
Signed-off-by: Sage Weil <sage@redhat.com>
2018-10-23 08:29:02 -05:00
xie xingguo
5bcac35213
mon/OSDMonitor: do not remove device class still referenced by ec-profiles
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-10-23 21:17:56 +08:00
xie xingguo
4bc54587a1
mon/OSDMonitor: make "ceph osd crush class rm" idempotent
...
Removing a non-existent device class should be generally okay.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2018-10-23 21:17:56 +08:00
Kefu Chai
86af98f42d
Merge pull request #24692 from tchaikov/wip-cmake-with-asan
...
cmake: fixes to enable WITH_ASAN with clang and GCC
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-10-23 19:26:59 +08:00
Lenz Grimmer
966a1e9629
Merge pull request #24664 from tspmelo/wip-36513
...
mgr/dashboard: Fix missing failed restore notification
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-10-23 12:59:06 +02:00
Lenz Grimmer
80dd99baa3
Merge pull request #24637 from ricardoasmarques/fix-rbd-actions-disable
...
mgr/dashboard: Fix RBD actions disable
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-10-23 12:35:53 +02:00
Lenz Grimmer
709e65e395
Merge pull request #24612 from Tinatinak/fix_bug24548
...
mgr/dashboard: Fixed documentation link on RGW page
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
2018-10-23 12:28:57 +02:00
Tiago Melo
fba0097a8c
mgr/dashboard: Fix HttpClient Module imports in unit tests
...
Some of the tests were importing the wrong HttpClient Module and that was
causing random errors.
Fixes: https://tracker.ceph.com/issues/36528
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-10-23 10:41:51 +01:00
Tiago Melo
2f4ce95725
mgr/dashboard: Fix missing failed restore notification
...
Fixes: http://tracker.ceph.com/issues/36513
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-10-23 10:34:03 +01:00