]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoqa/workunits/rbd: fixed python interpreter for EL8 32409/head
Jason Dillaman [Mon, 23 Dec 2019 20:23:49 +0000 (15:23 -0500)]
qa/workunits/rbd: fixed python interpreter for EL8

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #32368 from xiexingguo/wip-balancer-efficiency-4
Xie Xingguo [Mon, 23 Dec 2019 08:08:23 +0000 (16:08 +0800)]
Merge pull request #32368 from xiexingguo/wip-balancer-efficiency-4

osd/OSDMap: consider overfull osds only when trying to do upmap

Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #32289 from xiexingguo/wip-balancer-efficiency-2
Xie Xingguo [Mon, 23 Dec 2019 08:07:21 +0000 (16:07 +0800)]
Merge pull request #32289 from xiexingguo/wip-balancer-efficiency-2

mgr/balancer: eliminate usage of MS infrastructure for upmap mode

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
5 years agoMerge PR #32389 into master
Sage Weil [Sun, 22 Dec 2019 18:00:05 +0000 (12:00 -0600)]
Merge PR #32389 into master

* refs/pull/32389/head:
test_cephadm.sh: pass --fsid to shell command

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #32286 into master
Sage Weil [Sun, 22 Dec 2019 16:56:57 +0000 (10:56 -0600)]
Merge PR #32286 into master

* refs/pull/32286/head:
cephadm: correct ipv6 support in port open detection

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge pull request #32388 from wjwithagen/wjw-fix-boost_spirit-isblank-assert
Kefu Chai [Sun, 22 Dec 2019 16:40:31 +0000 (00:40 +0800)]
Merge pull request #32388 from wjwithagen/wjw-fix-boost_spirit-isblank-assert

test: Do not test unicode if boost::spirit >= 1.72

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agotest: Do not test unicode if boost::spirit >= 1.72 32388/head
Willem Jan Withagen [Sun, 22 Dec 2019 11:11:53 +0000 (12:11 +0100)]
test: Do not test unicode if boost::spirit >= 1.72

Testing with Boost 1.72 unittest_confutil crashes with:
```
[ RUN      ] ConfUtils.ReadFiles2
Assertion failed: (strict_ischar(ch)), function isblank, file /usr/local/include/boost/spirit/home/support/char_encoding/standard.hpp, line 129.
Abort
```

Which is due to the fact that in Boost 1.72 most of the character
testing has been garded with an assert to make sure char holds an
ascii char.
Like:
```
        static bool
        isblank BOOST_PREVENT_MACRO_SUBSTITUTION (int ch)
        {
            BOOST_ASSERT(strict_ischar(ch));
            return (ch == ' ' || ch == '\t');
        }
```
And ReadFile2 explicitly tests for strings with char value > 0x7f.
So that is certainly going to crash.

Now I can imagine that we would like to be able to have users use
different encodings for things like logfiles.
But for now that is not going to work with the boost:spirit parser

Fixes: https://tracker.ceph.com/issues/43406
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
5 years agotest_cephadm.sh: pass --fsid to shell command 32389/head
Sage Weil [Sun, 22 Dec 2019 14:48:50 +0000 (08:48 -0600)]
test_cephadm.sh: pass --fsid to shell command

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32261 into master
Sage Weil [Sun, 22 Dec 2019 01:59:37 +0000 (19:59 -0600)]
Merge PR #32261 into master

* refs/pull/32261/head:
mgr/orchestrator: use full device path for blinking lights (if available)
mgr: report device by-path paths too
common/blkdev: include by-path path for each device in metadata
common/blkdev: factor get_device_metadata out of mon, osd

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge PR #32333 into master
Sage Weil [Sun, 22 Dec 2019 01:59:18 +0000 (19:59 -0600)]
Merge PR #32333 into master

* refs/pull/32333/head:
qa/quites/rados/singleton-flat/valgrind-leaks: specify centos8
qa/suites/rados: test cephadm on centos and ubuntu both
qa/workunits/cephadm/test_cephadm.sh: detect python3 and python2

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoqa/quites/rados/singleton-flat/valgrind-leaks: specify centos8 32333/head
Sage Weil [Sat, 21 Dec 2019 14:19:12 +0000 (08:19 -0600)]
qa/quites/rados/singleton-flat/valgrind-leaks: specify centos8

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados: test cephadm on centos and ubuntu both
Sage Weil [Wed, 18 Dec 2019 17:11:21 +0000 (11:11 -0600)]
qa/suites/rados: test cephadm on centos and ubuntu both

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/cephadm/test_cephadm.sh: detect python3 and python2
Sage Weil [Wed, 18 Dec 2019 17:08:42 +0000 (11:08 -0600)]
qa/workunits/cephadm/test_cephadm.sh: detect python3 and python2

Only test on whichever pythons are available on the host.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32384 into master
Sage Weil [Sat, 21 Dec 2019 14:21:04 +0000 (08:21 -0600)]
Merge PR #32384 into master

* refs/pull/32384/head:
qa/tasks/mgr/test_orchestrator_cli: fix device ls test
mgr/orchestrator_cli: no need for colored=False

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #32334 into master
Sage Weil [Sat, 21 Dec 2019 02:41:07 +0000 (20:41 -0600)]
Merge PR #32334 into master

* refs/pull/32334/head:
cephadm: add some coarse-grained locking
cephadm: add FileLock class

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #32327 into master
Sage Weil [Sat, 21 Dec 2019 02:38:45 +0000 (20:38 -0600)]
Merge PR #32327 into master

* refs/pull/32327/head:
mgr/cephadm: remove old remotes
mgr/cephadm: try various pythons for root mode _run_cephadm
mgr/cephadm: no need to _get_connection from _create_daemon
mgr/cephadm: include host name in check-host result
mgr/cephadm: remove 'cephadm prepare-host' command

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #27866 into master
Patrick Donnelly [Sat, 21 Dec 2019 02:16:11 +0000 (18:16 -0800)]
Merge PR #27866 into master

* refs/pull/27866/head:
mds: fix deadlock when xlocking policylock
mds: handle link request with zero depth filepath2
mds: enable lock cache for openc/unlink requests
mds: include linkage type in dentry lease
mds: cleanup Server::set_trace_dist()
mds: define lease mask bits
mds: delegete lock cache to client
mds: suppress frozen inode when locks of dir operation is cached.
mds: invalidate lock caches when freezing dirfrag/subtree
mds: invalidate lock caches if they hold conflicting locks
mds: initial code for lock cache
mds: adjust locking for subtree migration
mds: add 'path_locked' flag to MDCache::find_ino_peers()
mds: change MDCache::discover_path()'s wants_xlocked semantic
mds: introduce Server::rdlock_two_paths_xlock_destdn()
mds: make Server::rdlock_path_xlock_dentry take locks
mds: make Server::rdlock_path_pin_ref() take dentry rdlocks
mds: take snaplock and policylock during path traverse.
mds: let Locker::acquire_locks()'s caller choose locking order

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #32380 from athanatos/sjust/wip-dmclock-fix
Samuel Just [Fri, 20 Dec 2019 22:48:47 +0000 (14:48 -0800)]
Merge pull request #32380 from athanatos/sjust/wip-dmclock-fix

src/dmclock: bring in fixes for indirect_intrusive_heap

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agomgr/cephadm: remove old remotes 32327/head
Sage Weil [Thu, 19 Dec 2019 20:46:22 +0000 (14:46 -0600)]
mgr/cephadm: remove old remotes

These are not used.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/cephadm: try various pythons for root mode _run_cephadm
Sage Weil [Wed, 18 Dec 2019 16:02:23 +0000 (10:02 -0600)]
mgr/cephadm: try various pythons for root mode _run_cephadm

Some distros don't have the /usr/bin/python link.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/mgr/test_orchestrator_cli: fix device ls test 32384/head
Sage Weil [Fri, 20 Dec 2019 22:14:34 +0000 (16:14 -0600)]
qa/tasks/mgr/test_orchestrator_cli: fix device ls test

No more "$host:" formatting as of 594179f1aae5fcca631b24c2f1e2dbf4a3b5c460

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/orchestrator_cli: no need for colored=False
Sage Weil [Tue, 17 Dec 2019 13:32:43 +0000 (07:32 -0600)]
mgr/orchestrator_cli: no need for colored=False

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32332 into master
Sage Weil [Fri, 20 Dec 2019 22:07:54 +0000 (16:07 -0600)]
Merge PR #32332 into master

* refs/pull/32332/head:
cephadm: bootstrap: force password choice

Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge PR #32383 into master
Sage Weil [Fri, 20 Dec 2019 21:47:37 +0000 (15:47 -0600)]
Merge PR #32383 into master

* refs/pull/32383/head:
qa/standalone: python -> python3
qa/standalone/special/ceph_objectstore_tool: python3

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32272 into master
Sage Weil [Fri, 20 Dec 2019 21:43:04 +0000 (15:43 -0600)]
Merge PR #32272 into master

* refs/pull/32272/head:
pybind/mgr: Add orchestrator_cli to mgr/tox.ini
mgr/orchestrator_cli: Fix NFS

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32314 into master
Sage Weil [Fri, 20 Dec 2019 21:42:47 +0000 (15:42 -0600)]
Merge PR #32314 into master

* refs/pull/32314/head:
mgr/cephadm: fix listing services by host

Reviewed-by: Sebastian Wagner <swagner@suse.com>
5 years agoMerge PR #32378 into master
Sage Weil [Fri, 20 Dec 2019 21:42:05 +0000 (15:42 -0600)]
Merge PR #32378 into master

* refs/pull/32378/head:
cephadm: python3 shebang

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #32381 from athanatos/sjust/wip-read-from-replica-py2
Samuel Just [Fri, 20 Dec 2019 21:07:56 +0000 (13:07 -0800)]
Merge pull request #32381 from athanatos/sjust/wip-read-from-replica-py2

osd: propagate mlcod to replicas and fix problems with read from replica

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32382 from athanatos/sjust/wip-backoff-fix
Samuel Just [Fri, 20 Dec 2019 21:07:17 +0000 (13:07 -0800)]
Merge pull request #32382 from athanatos/sjust/wip-backoff-fix

osd/scheduler/OpSchedulerItem: schedule backoffs as client ops

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32375 into master
Sage Weil [Fri, 20 Dec 2019 20:57:00 +0000 (14:57 -0600)]
Merge PR #32375 into master

* refs/pull/32375/head:
qa/tasks/cephadm: ceph.git branches are now pushed to quay.io

Reviewed-by: Michael Fritch <mfritch@suse.com>
5 years agoqa/standalone: python -> python3 32383/head
Sage Weil [Fri, 20 Dec 2019 19:33:21 +0000 (13:33 -0600)]
qa/standalone: python -> python3

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/standalone/special/ceph_objectstore_tool: python3
Sage Weil [Fri, 20 Dec 2019 19:32:53 +0000 (13:32 -0600)]
qa/standalone/special/ceph_objectstore_tool: python3

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: python3 shebang 32378/head
Sage Weil [Fri, 20 Dec 2019 17:50:00 +0000 (11:50 -0600)]
cephadm: python3 shebang

We need to figure out if/how we can make this as tolerant as possible for
the curl users so that it can still run on a python2-only host.

Maybe.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #30669 from theanalyst/rgw/user-stats-flush
Abhishek L [Fri, 20 Dec 2019 17:25:32 +0000 (18:25 +0100)]
Merge pull request #30669 from theanalyst/rgw/user-stats-flush

rgw: radosgw-admin flush user stats output

5 years agoMerge pull request #30993 from theanalyst/rgw/mp-list-encoding
Abhishek L [Fri, 20 Dec 2019 17:14:22 +0000 (18:14 +0100)]
Merge pull request #30993 from theanalyst/rgw/mp-list-encoding

rgw: support encoding-type param for list bucket multiparts

5 years agoMerge pull request #31127 from theanalyst/rgw/qa-s3-user-caps
Abhishek L [Fri, 20 Dec 2019 17:13:03 +0000 (18:13 +0100)]
Merge pull request #31127 from theanalyst/rgw/qa-s3-user-caps

qa: rgw: add user-policy caps for the s3tests users

Reviewed-By: Casey Bodley <cbodley@redhat.com>
Reviewed-By: Pritha Srivastava <prsivas@redhat.com>
5 years agoMerge pull request #31124 from theanalyst/rgw/user-policy-args
Abhishek L [Fri, 20 Dec 2019 17:12:22 +0000 (18:12 +0100)]
Merge pull request #31124 from theanalyst/rgw/user-policy-args

rgw: iam: add all http args to req_info

Reviewed-By: Casey Bodley <cbodley@redhat.com>
Reviewed-By: Pritha Srivastava <prsivas@redhat.com>
Reviewed-By: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agoMerge PR #32362 into master
Sage Weil [Fri, 20 Dec 2019 15:29:47 +0000 (09:29 -0600)]
Merge PR #32362 into master

* refs/pull/32362/head:
qa/packages/packages: el8 has granular -debuginfo
qa/tasks/cbt: include py2 deps on ubuntu for now
src/test: misc python -> python3
qa/suites/rados/singleton-flag/valgrind-leaks: run on latest centos
qa/workunits: env python -> env python3
qa/suites/rados/dashboard/tasks/dashboard: whitelist OSDMAP_FLAGS
qa/suites/rados/verify: ping to specific centos
qa/workunits/rados/test_envlibrados_rocksdb: enable el8 PowerTools
qa/workunits/rados/test_pool_access.sh: python -> python3
mgr/crash: fix signature for py3

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoqa/tasks/cephadm: ceph.git branches are now pushed to quay.io 32375/head
Sage Weil [Fri, 20 Dec 2019 14:56:09 +0000 (08:56 -0600)]
qa/tasks/cephadm: ceph.git branches are now pushed to quay.io

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #32374 from zdover23/wip-doc-osd-verb-commit-20-dec-2019
Kefu Chai [Fri, 20 Dec 2019 14:33:46 +0000 (22:33 +0800)]
Merge pull request #32374 from zdover23/wip-doc-osd-verb-commit-20-dec-2019

doc: added an "is" where it was needed.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32371 from tchaikov/wip-mgr-dashboard-popd
Kefu Chai [Fri, 20 Dec 2019 14:28:29 +0000 (22:28 +0800)]
Merge pull request #32371 from tchaikov/wip-mgr-dashboard-popd

mgr/dashboard: restore working directory after creating venv

Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoqa/tasks/vstart_runner.py: use current python executable 32371/head
Kefu Chai [Fri, 20 Dec 2019 13:39:48 +0000 (21:39 +0800)]
qa/tasks/vstart_runner.py: use current python executable

python3 is not always the path to executable used by current python
session.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoqa/packages/packages: el8 has granular -debuginfo 32362/head
Sage Weil [Fri, 20 Dec 2019 02:16:44 +0000 (20:16 -0600)]
qa/packages/packages: el8 has granular -debuginfo

Also add a bunch of missing packages.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/cbt: include py2 deps on ubuntu for now
Sage Weil [Thu, 19 Dec 2019 22:35:45 +0000 (16:35 -0600)]
qa/tasks/cbt: include py2 deps on ubuntu for now

...until cbt is converted to py3

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agosrc/test: misc python -> python3
Sage Weil [Thu, 19 Dec 2019 22:31:34 +0000 (16:31 -0600)]
src/test: misc python -> python3

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/singleton-flag/valgrind-leaks: run on latest centos
Sage Weil [Thu, 19 Dec 2019 22:24:35 +0000 (16:24 -0600)]
qa/suites/rados/singleton-flag/valgrind-leaks: run on latest centos

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits: env python -> env python3
Sage Weil [Thu, 19 Dec 2019 22:14:38 +0000 (16:14 -0600)]
qa/workunits: env python -> env python3

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/dashboard/tasks/dashboard: whitelist OSDMAP_FLAGS
Sage Weil [Thu, 19 Dec 2019 22:12:58 +0000 (16:12 -0600)]
qa/suites/rados/dashboard/tasks/dashboard: whitelist OSDMAP_FLAGS

"2019-12-19T20:42:43.020748+0000 mon.b (mon.0) 2771 : cluster [WRN] Health check failed: noout flag(s) set (OSDMAP_FLAGS)" in cluster log

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/verify: ping to specific centos
Sage Weil [Thu, 19 Dec 2019 22:10:42 +0000 (16:10 -0600)]
qa/suites/rados/verify: ping to specific centos

The simple

 os_type: centos

in valgrind.yaml doesn't pick a particular centos, and we end up with
the teuthology default (currently 7.6).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/rados/test_envlibrados_rocksdb: enable el8 PowerTools
Sage Weil [Thu, 19 Dec 2019 22:05:39 +0000 (16:05 -0600)]
qa/workunits/rados/test_envlibrados_rocksdb: enable el8 PowerTools

We need it for snappy-devel

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/rados/test_pool_access.sh: python -> python3
Sage Weil [Thu, 19 Dec 2019 21:55:19 +0000 (15:55 -0600)]
qa/workunits/rados/test_pool_access.sh: python -> python3

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/crash: fix signature for py3
Sage Weil [Thu, 19 Dec 2019 21:52:37 +0000 (15:52 -0600)]
mgr/crash: fix signature for py3

With python3 the sig.digest() is bytes, so c is an int, not a char.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc: added an "is" where it was needed. 32374/head
Zac Dover [Fri, 20 Dec 2019 13:08:38 +0000 (23:08 +1000)]
doc: added an "is" where it was needed.

This tiny commit changes "The foregoing functionality
equivalent to" to "The foregoing functionality is
equivalent to".

Signed-off-by: Zac Dover <zac.dover@gmail.com>
5 years agomgr/orchestrator: use full device path for blinking lights (if available) 32261/head
Sage Weil [Sun, 15 Dec 2019 16:36:51 +0000 (10:36 -0600)]
mgr/orchestrator: use full device path for blinking lights (if available)

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/dashboard: restore working directory after creating venv
Kefu Chai [Fri, 20 Dec 2019 11:56:19 +0000 (19:56 +0800)]
mgr/dashboard: restore working directory after creating venv

this change addresses the regression introduced by 79584862f6

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32353 from mgfritch/wip-cephadm-rename-tox
Sebastian Wagner [Fri, 20 Dec 2019 09:13:37 +0000 (10:13 +0100)]
Merge pull request #32353 from mgfritch/wip-cephadm-rename-tox

cephadm: Rename tox tests ceph-daemon -> cephadm

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoosd/OSDMap: consider overfull osds only when trying to do upmap 32368/head
xie xingguo [Fri, 20 Dec 2019 08:26:44 +0000 (16:26 +0800)]
osd/OSDMap: consider overfull osds only when trying to do upmap

By definition, we should only upmap pgs from overfull osds to
underfull osds. Hence we could make a safe exit if we start
to hit underfull osds when searching a target osd for upmapping.

Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
5 years agoMerge pull request #32173 from rosinL/wip-fix-coremask
Kefu Chai [Fri, 20 Dec 2019 08:37:20 +0000 (16:37 +0800)]
Merge pull request #32173 from rosinL/wip-fix-coremask

msg/async/dpdk: Fix the overflow while parsing dpdk coremask

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoPrimaryLogPG: report ENOENT on missing clone on replica 32381/head
Samuel Just [Wed, 18 Dec 2019 23:01:59 +0000 (15:01 -0800)]
PrimaryLogPG: report ENOENT on missing clone on replica

Can't check is_degraded_or_backfilling etc on replica.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoPG: drop replica reads from prior intervals
Samuel Just [Thu, 5 Dec 2019 21:00:33 +0000 (21:00 +0000)]
PG: drop replica reads from prior intervals

Otherwise, they cause misdirected op warnings.

See comment for details.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoPrimaryLogPG: drop replica obc cache upon repop
Samuel Just [Sat, 7 Dec 2019 00:37:27 +0000 (16:37 -0800)]
PrimaryLogPG: drop replica obc cache upon repop

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoosd/: bounce writes on objects written since mlcod back to primary
Samuel Just [Tue, 10 Dec 2019 02:27:32 +0000 (18:27 -0800)]
osd/: bounce writes on objects written since mlcod back to primary

If there are any writes since mlcod on an object with the same head,
our ondisk state may be unstable or may reflect uncommitted state.
Bounce back to primary.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoosd/: maintain PeeringState::min_last_complete_ondisk on replica
Samuel Just [Fri, 13 Dec 2019 21:28:09 +0000 (13:28 -0800)]
osd/: maintain PeeringState::min_last_complete_ondisk on replica

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoReplicatedBackend,MOSDRepOp: replace pg_roll_forward_to with mlcod
Samuel Just [Fri, 13 Dec 2019 20:54:28 +0000 (12:54 -0800)]
ReplicatedBackend,MOSDRepOp: replace pg_roll_forward_to with mlcod

New clients will ignore the field on header.version <= 2.  New
primaries will send the old variant if there are peers expecting
the old variant.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoReplicatedBackend: always rollforward on repop to version
Samuel Just [Fri, 13 Dec 2019 20:11:55 +0000 (12:11 -0800)]
ReplicatedBackend: always rollforward on repop to version

The primary always sets this field to be at_version, and we're
going to reuse this field to mean min_last_complete_ondisk.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoosd/PGBackend: rename submit_transaction field roll_forward_to
Samuel Just [Fri, 13 Dec 2019 20:06:31 +0000 (12:06 -0800)]
osd/PGBackend: rename submit_transaction field roll_forward_to

This field is actually just a lower bound on committed, client
visible log versions.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoceph_test_rados: use - not _ in args
Sage Weil [Fri, 23 Aug 2019 18:43:28 +0000 (13:43 -0500)]
ceph_test_rados: use - not _ in args

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/thrash[-erasure-code]: add misc -{localized,balanced}.yaml jobs
Sage Weil [Thu, 22 Aug 2019 21:34:45 +0000 (16:34 -0500)]
qa/suites/rados/thrash[-erasure-code]: add misc -{localized,balanced}.yaml jobs

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/rados: add {localize,balance}_reads field
Sage Weil [Thu, 22 Aug 2019 21:33:42 +0000 (16:33 -0500)]
qa/tasks/rados: add {localize,balance}_reads field

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph_test_rados: add --localize_reads option
Sage Weil [Thu, 22 Aug 2019 21:29:39 +0000 (16:29 -0500)]
ceph_test_rados: add --localize_reads option

Same as balance_reads, but sets the LOCALIZE_READS op flag on read ops.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoosd/scheduler/OpSchedulerItem: schedule backoffs as client ops 32382/head
Samuel Just [Fri, 20 Dec 2019 01:29:58 +0000 (17:29 -0800)]
osd/scheduler/OpSchedulerItem: schedule backoffs as client ops

The backoff machinery relies on backoffs being ordered the same
way as client ops.

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agosrc/dmclock: bring in fixes for indirect_intrusive_heap 32380/head
Samuel Just [Wed, 18 Dec 2019 23:02:13 +0000 (15:02 -0800)]
src/dmclock: bring in fixes for indirect_intrusive_heap

Signed-off-by: Samuel Just <sjust@redhat.com>
5 years agoMerge PR #32359 into master
Sage Weil [Thu, 19 Dec 2019 22:21:44 +0000 (16:21 -0600)]
Merge PR #32359 into master

* refs/pull/32359/head:
qa/workunits: python -> python3 throughout
qa/workunits/fs/misc/direct_io.py: fix for py3
qa/tasks/cephfs: os.write takes bytes, not str

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32355 into master
Sage Weil [Thu, 19 Dec 2019 22:20:45 +0000 (16:20 -0600)]
Merge PR #32355 into master

* refs/pull/32355/head:
qa/suites/rados/perf: run on ubuntu

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #32356 into master
Sage Weil [Thu, 19 Dec 2019 22:17:19 +0000 (16:17 -0600)]
Merge PR #32356 into master

* refs/pull/32356/head:
qa/suites/rados/thrash-old-clients: centos -> ubuntu

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #32357 into master
Sage Weil [Thu, 19 Dec 2019 22:17:06 +0000 (16:17 -0600)]
Merge PR #32357 into master

* refs/pull/32357/head:
qa/tasks/swift: remove swift tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agocephadm: correct ipv6 support in port open detection 32286/head
Paul Cuzner [Tue, 17 Dec 2019 02:23:49 +0000 (15:23 +1300)]
cephadm: correct ipv6 support in port open detection

Updated the port_in_use function to work better
in ipv4 and ipv6 environments.

Signed-off-by: Paul Cuzner <pcuzner@redhat.com>
5 years agomgr/cephadm: no need to _get_connection from _create_daemon
Sage Weil [Thu, 19 Dec 2019 20:33:14 +0000 (14:33 -0600)]
mgr/cephadm: no need to _get_connection from _create_daemon

This is leftover from ages ago; we don't use conn in this context.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #32117 into master
Patrick Donnelly [Thu, 19 Dec 2019 19:59:24 +0000 (11:59 -0800)]
Merge PR #32117 into master

* refs/pull/32117/head:
doc: add config help/get/set section for runtime client configuration

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #32168 into master
Patrick Donnelly [Thu, 19 Dec 2019 19:54:36 +0000 (11:54 -0800)]
Merge PR #32168 into master

* refs/pull/32168/head:
test_cephfs_shell: fix test_du_works_for_hardlinks

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agocephadm: bootstrap: force password choice 32332/head
Sage Weil [Wed, 18 Dec 2019 17:22:08 +0000 (11:22 -0600)]
cephadm: bootstrap: force password choice

Ignore the password complexity checks, since we might (randomly) generate
something that fails whatever the current criteria are.

INFO:cephadm:Non-zero exit code 22 from /usr/bin/podman run --rm --net=host -e CONTAINER_IMAGE=ceph/daemon-base:latest-master-devel -e NODE_NAME=gnit -v /var/log/ceph/00000000-0000-0000-0000-0000deadbeef:/var/log/ceph:z -v /tmp/ceph-tmp6if8iaha:/etc/ceph/ceph.client.admin.keyring:z -v /tmp/ceph-tmp4vyvfiio:/etc/ceph/ceph.conf:z --entrypoint /usr/bin/ceph ceph/daemon-base:latest-master-devel dashboard ac-user-create admin oaaacwf4ul administrator
INFO:cephadm:/usr/bin/ceph:stderr Error EINVAL: Password cannot contain repetitive characters.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: add some coarse-grained locking 32334/head
Sage Weil [Wed, 18 Dec 2019 17:05:32 +0000 (11:05 -0600)]
cephadm: add some coarse-grained locking

Take per-cluster 'deploy' lock for

 bootstrap
 deploy
 adopt
 rm-daemon
 rm-cluster

No locking for

 version
 pull
 run (this is never actually used anyway)
 shell
 enter
 ceph-volume
 unit (this is a clean pass-through to systemctl)
 logs
 ls
 check-host

The only one I'm not sure about is ceph-volume.  I don't want the c-v
list/inventory commands to block, but perhaps the deploy ones should...
but perhaps not, since there's no reason we can't deploy multiple OSDs
on different devices at the same time.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agocephadm: add FileLock class
Sage Weil [Wed, 18 Dec 2019 17:01:33 +0000 (11:01 -0600)]
cephadm: add FileLock class

This is an abbreviated version of https://github.com/benediktschmitt/py-filelock

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits: python -> python3 throughout 32359/head
Sage Weil [Thu, 19 Dec 2019 18:38:03 +0000 (12:38 -0600)]
qa/workunits: python -> python3 throughout

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/workunits/fs/misc/direct_io.py: fix for py3
Sage Weil [Thu, 19 Dec 2019 18:35:13 +0000 (12:35 -0600)]
qa/workunits/fs/misc/direct_io.py: fix for py3

os.write takes bytes, os.read returns bytes

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/swift: remove swift tests 32357/head
Sage Weil [Thu, 19 Dec 2019 18:21:21 +0000 (12:21 -0600)]
qa/tasks/swift: remove swift tests

- This is an ancient swift version
- The tempest tests are newer and show provide similar coverage
- It somehow broke with the py3 transition

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/thrash-old-clients: centos -> ubuntu 32356/head
Sage Weil [Thu, 19 Dec 2019 18:16:00 +0000 (12:16 -0600)]
qa/suites/rados/thrash-old-clients: centos -> ubuntu

We can't upgrade packages from el7 to el8, so do this on ubuntu 18.04.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/suites/rados/perf: run on ubuntu 32355/head
Sage Weil [Thu, 19 Dec 2019 18:03:10 +0000 (12:03 -0600)]
qa/suites/rados/perf: run on ubuntu

pdsh and collectl packages don't seem to exist on el8.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoqa/tasks/cephfs: os.write takes bytes, not str
Sage Weil [Thu, 19 Dec 2019 17:08:59 +0000 (11:08 -0600)]
qa/tasks/cephfs: os.write takes bytes, not str

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #31142 from zhangsw/fix-rgw-reshard-list-error
Casey Bodley [Thu, 19 Dec 2019 16:19:14 +0000 (11:19 -0500)]
Merge pull request #31142 from zhangsw/fix-rgw-reshard-list-error

rgw: don't print error log when list reshard result is not truncated.

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge PR #32335 into master
Sage Weil [Thu, 19 Dec 2019 16:16:10 +0000 (10:16 -0600)]
Merge PR #32335 into master

* refs/pull/32335/head:
qa/tasks/s3tests_java: move to gradle 6.0.1

Reviewed-by: Ali Maredia <amaredia@redhat.com>
5 years agoMerge PR #32343 into master
Sage Weil [Thu, 19 Dec 2019 15:27:36 +0000 (09:27 -0600)]
Merge PR #32343 into master

* refs/pull/32343/head:
doc: update '--force' flag to be precise

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #31186 from zhangsw/clean-rgw-check-buckets-shard
Casey Bodley [Thu, 19 Dec 2019 15:24:10 +0000 (10:24 -0500)]
Merge pull request #31186 from zhangsw/clean-rgw-check-buckets-shard

rgw: remove unused bucket parameter in check_bucket_shards

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agocephadm: Rename tox tests ceph-daemon -> cephadm 32353/head
Michael Fritch [Thu, 19 Dec 2019 14:45:45 +0000 (07:45 -0700)]
cephadm: Rename tox tests ceph-daemon -> cephadm

Signed-off-by: Michael Fritch <mfritch@suse.com>
5 years agoMerge pull request #31150 from zhangsw/cleanup-rgw-reshard-last_run
Casey Bodley [Thu, 19 Dec 2019 15:14:16 +0000 (10:14 -0500)]
Merge pull request #31150 from zhangsw/cleanup-rgw-reshard-last_run

rgw: remove unused 'last_run' in reshard thread entry

5 years agoMerge PR #32339 into master
Sage Weil [Thu, 19 Dec 2019 14:13:27 +0000 (08:13 -0600)]
Merge PR #32339 into master

* refs/pull/32339/head:
qa/tasks/cephfs: python3
qa/workunits/fs: python3
qa/tasks/cephfs/fuse_mount: use python3

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #32344 from kotreshhr/boost_cmake_py3_fix
Kefu Chai [Thu, 19 Dec 2019 09:57:06 +0000 (17:57 +0800)]
Merge pull request #32344 from kotreshhr/boost_cmake_py3_fix

cmake/Boost: Fix python3 version

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocmake/Boost: Fix python3 version 32344/head
Kotresh HR [Thu, 19 Dec 2019 09:08:24 +0000 (14:38 +0530)]
cmake/Boost: Fix python3 version

Signed-off-by: Kotresh HR <khiremat@redhat.com>
5 years agodoc: update '--force' flag to be precise 32343/head
Jos Collin [Thu, 19 Dec 2019 06:29:44 +0000 (11:59 +0530)]
doc: update '--force' flag to be precise

Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agoMerge pull request #31525 from tchaikov/wip-no-py2-in-make-check
Kefu Chai [Thu, 19 Dec 2019 05:31:29 +0000 (13:31 +0800)]
Merge pull request #31525 from tchaikov/wip-no-py2-in-make-check

install-deps.sh,src: drop python2 support

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>