Commit Graph

95311 Commits

Author SHA1 Message Date
Alfredo Deza
7324744712
Merge pull request #26471 from tnaganawa/patch-3
ceph-deploy would not support --cluster option anymore

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2019-02-20 12:23:38 -05:00
Sage Weil
cfc3e6429f osd/PG: fix comments in merge_from
Some of these were stale.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-02-20 10:48:10 -06:00
Ilya Dryomov
1f411c0f85 test/librbd: add test cases for compare-and-write with copyup
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-20 15:20:28 +01:00
Ilya Dryomov
032cccea60 test/librbd: make get_temp_image_name() static
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-20 15:20:28 +01:00
Ilya Dryomov
6a2986fcb2 test/librados_test_stub: reimplement cmpext()
cmpext is a read operation.  As such, it shouldn't be creating objects
or extending them and it should accept snapshots.

The compare code is completely broken, resulting in false positives
(i.e. failures to detect mismatches) in many cases.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-20 15:20:28 +01:00
Casey Bodley
4c43dd9475
Merge pull request #26299 from yuvalif/add_pubsub_tests
rgw/pubsub: add pubsub tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
2019-02-20 09:10:17 -05:00
Ricardo Dias
59db0acfaf
test/msgr: remove test_msgr2 unused test
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-20 13:36:13 +00:00
Ricardo Dias
5a6910bfba
msg/async: msgr2: resolve reconnect races
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-20 13:36:13 +00:00
Ricardo Dias
f22d583184
test/msgr: msgr2 unit tests using the protocol interceptor WIP
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-20 13:36:13 +00:00
Ricardo Dias
71ad12d538
msg/async: Protocol interceptor infrastructure
This interceptor infrastructure allows to control the protocol
steps by the testing code.
The test code can force the protocol to pause in a specific step,
and then it can control whether the protocol continues or if it
fails at that point.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-20 13:36:13 +00:00
Sage Weil
a15115fd05 Merge PR #26484 into master
* refs/pull/26484/head:
	msg/async: msgr2: don't smash client cookie on reconnect
	doc/msgr2: session establishment failure scenarios
	msg/async: msgr2: don't smash peer_name and features on reconnect
	msg/async: msgr2: added client and server cookie to protocol

Reviewed-by: Sage Weil <sage@redhat.com>
2019-02-20 07:16:12 -06:00
Sage Weil
618c0ea5da Merge PR #26417 into master
* refs/pull/26417/head:
	qa, doc: update ec fast read setting
	qa/suites: remove mon kv backend options

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-20 07:03:56 -06:00
Sage Weil
dd05d8ca26 Merge PR #26489 into master
* refs/pull/26489/head:
	qa/standalone/osd/osd-markdown: disable CLI command dups

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2019-02-20 07:03:28 -06:00
Sage Weil
e58d1b463f Merge PR #26490 into master
* refs/pull/26490/head:
	osd: fix typo in numa node check; lower debug level

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-02-20 07:03:12 -06:00
Sage Weil
75cf9e6f26 Merge PR #26492 into master
* refs/pull/26492/head:
	osd: fix pg split/merge prime during startup

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-02-20 07:02:44 -06:00
Lenz Grimmer
09935f0473
Merge pull request #26408 from tspmelo/wip-pool-slash
mgr/dashboard: Allow "/" in pool name

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-02-20 13:42:09 +01:00
Matt Benjamin
fcb8149951
Merge pull request #25866 from yuvalif/add_amqp_push_endpoint_new
rgw/pubsub: add amqp push endpoint
2019-02-20 07:37:34 -05:00
Lenz Grimmer
f47ae25128
Merge pull request #26433 from tspmelo/wip-rbd-slash
mgr/dashboard: Improve RBD form

Reviewed-by: Volker Theile <vtheile@suse.com>
2019-02-20 12:56:26 +01:00
Sebastian Wagner
3ea23f0c03
Merge pull request #26443 from sebastian-philipp/orchestrator_fix_readme.md
mgr/orchestrator_cli: Fix README.md

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
2019-02-20 12:21:07 +01:00
Lenz Grimmer
cb833af568
Merge pull request #26509 from p-na/wip-pna-fix-ganesha-pylint
mgr/dashboard: Clean up pylint's `disable:no-else-return`

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-02-20 09:35:48 +01:00
Tim Serong
124ba674c2 src/tools: only build dedup tool if WITH_TESTS is set
We need to only build the dedup tool if WITH_TESTS is set.
Otherwise, when building an RPM *without* tests enabled, the build
will fail with "error: Installed (but unpackaged) file(s) found:
/usr/bin/cephdeduptool".

Signed-off-by: Tim Serong <tserong@suse.com>
2019-02-20 18:24:32 +11:00
Xie Xingguo
9c962896ab
Merge pull request #26478 from xiexingguo/wip-calc-upmap-vec-reserve
osd/OSDMap: using std::vector::reserve to reduce memory reallocation

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
2019-02-20 14:13:41 +08:00
Xie Xingguo
cd4c7765d6
Merge pull request #26505 from xiexingguo/wip-balancer-weekday-range
mgr/balancer: add min/max fields for weekday and be compatible with C

Reviewed-by: Volker Theile <vtheile@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2019-02-20 14:12:59 +08:00
Brad Hubbard
e91e2f8134 test: Verify a log trim trims the dup_index
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2019-02-20 15:47:26 +10:00
Kefu Chai
e6fe3589f6
Merge pull request #25138 from stackhpc/rdma-cm
msgr/async/rdma: Return from poll system call with EINTR should be retried

Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-02-20 13:08:01 +08:00
Stig Telfer
6a9f944ab3 msg/async/rdma: retry if poll() returns EINTR
Fixes: https://tracker.ceph.com/issues/37292
Signed-off-by: Stig Telfer <stig@stackhpc.com>
2019-02-20 12:02:17 +08:00
Kefu Chai
01c9e2a632 rpm,deb: remove btrfs-tools as a build-dependency
this change reverts 7d48d21a

we are using bluestore for testing by default on GNU/Linux now. and on
FreeBSD, install-deps.sh does not look at spec.in or d/control.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-20 11:32:11 +08:00
Kefu Chai
8bec5c99f4 rpm,deb: remove bc as a build-dependency
this change reverts 3ff4be6d, because in ce9c0298, we replaced bc
with awk.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-02-20 11:32:05 +08:00
vasukulkarni
fc22d352f5
Merge pull request #26328 from badone/wip-update-ceph_stable_release-to-mimic
qa/ceph-ansible: Set ceph_stable_release to mimic
2019-02-19 18:11:59 -08:00
Tiago Melo
e0f317a419 mgr/dashboard: Allow create and edit of pools with "/" in the name
Fixes: http://tracker.ceph.com/issues/38302

Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-19 21:17:56 +00:00
Jason Dillaman
5f28a6b003
Merge pull request #25945 from trociny/wip-migration-parent
librbd: make it possible to migrate parent images

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-19 14:52:03 -05:00
Jason Dillaman
3e0094910a qa/workunits: fixed mon address parsing for rbd-mirror
The test extracts the mon addresses from the monmap, but with the
recent v2 format change it extracted an invalid address.

Fixes: http://tracker.ceph.com/issues/38385
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2019-02-19 14:22:34 -05:00
Ilya Dryomov
4daddf0564 librados: don't claim ObjectOperation::cmpext() buffer
This is counter-intuitive and doesn't match the behavior of either
other compare ops (cmpxattr, omap_cmp) or write ops.

Fixes: http://tracker.ceph.com/issues/38383
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-19 20:06:02 +01:00
Yuval Lifshitz
b0cdb195fe rgw: pubsub tests. use bukcet checkpoint. allow redundant events
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
2019-02-19 19:18:01 +02:00
Tiago Melo
b3234b5b27 mgr/dashboard: Improve RBD form
Remove pools with '/' in the name and add RBD name validation.

Fixes: http://tracker.ceph.com/issues/38303

Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-19 16:48:35 +00:00
Tiago Melo
8acf2952ab mgr/dashboard: Replace encodeURI for encodeURIComponent
Fixes: http://tracker.ceph.com/issues/38303

Signed-off-by: Tiago Melo <tmelo@suse.com>
2019-02-19 16:39:03 +00:00
Ricardo Dias
8dede06f15
msg/async: msgr2: don't smash client cookie on reconnect
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-19 16:01:11 +00:00
Sage Weil
c6f9a4069b osd/PG: align past_intervals and last_epoch_clean for fabricated merge target
Fix fix from b79442efce.  We need to
use last_epoch_clean *after* we set it when comparing it to the
past_intervals.

Fixes: http://tracker.ceph.com/issues/37511
Fixes: http://tracker.ceph.com/issues/24866
Signed-off-by: Sage Weil <sage@redhat.com>
2019-02-19 09:34:31 -06:00
Volker Theile
cdcf877013 mgr: Selftest fails, dashboard/server_port not string
Fixes: http://tracker.ceph.com/issues/38380

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-02-19 16:16:32 +01:00
Ilya Dryomov
60f042130a osd/osd_types: show cmpext arguments
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2019-02-19 16:04:45 +01:00
Sage Weil
f8f76b3aa9 Merge PR #26469 into master
* refs/pull/26469/head:
	common/ceph_timer: stop timer's thread when it is suspended

Reviewed-by: Neha Ojha <nojha@redhat.com>
2019-02-19 08:31:39 -06:00
Sage Weil
08a05e21c6 Merge PR #26470 into master
* refs/pull/26470/head:
	mgr/MgrStandby: include addrs in metadata

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-02-19 08:31:23 -06:00
Sage Weil
963a977e7f Merge PR #26479 into master
* refs/pull/26479/head:
	pybind: move FLAGS into Flag class

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-02-19 08:31:03 -06:00
Sage Weil
6e1598bf22 Merge PR #26485 into master
* refs/pull/26485/head:
	qa/suites/upgrade/luminous-x: force clone v1 format for final rbd python test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2019-02-19 08:30:41 -06:00
Casey Bodley
14c430337b rgw: wakeup lease_cr after abort on bucket sync disable
the 'bucket sync disable' tests were causing data sync to lag behind
because these calls to lease_cr->abort() were still waiting for the
RGWContinuousLeaseCR to wake up from its sleep. added data sync
checkpoints to each 'bucket sync disable' test to make sure that data
sync catches up before running other tests, as this was causing failures
in the new 'datalog autotrim' test

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2019-02-19 08:37:20 -05:00
Kefu Chai
cf56af222f
Merge pull request #26452 from tchaikov/wip-crimson-send-known-addresses
crimson/osd: send known addresses at boot

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2019-02-19 20:23:26 +08:00
Ricardo Dias
d5fab790ef
doc/msgr2: session establishment failure scenarios
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-19 12:14:51 +00:00
Ricardo Dias
50ed065c0b
msg/async: msgr2: don't smash peer_name and features on reconnect
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-19 12:14:39 +00:00
Ricardo Dias
b564d808fd
msg/async: msgr2: added client and server cookie to protocol
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-02-19 12:14:17 +00:00
Lenz Grimmer
34e7f09017
Merge pull request #26450 from s0nea/wip-dashboard-readonly-config-options-2
mgr/dashboard: disallow editing read-only config options (part 2)

Reviewed-by: Volker Theile <vtheile@suse.com>
2019-02-19 12:50:30 +01:00