]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agoqa: use small default pg count for CephFS pools 30816/head
Patrick Donnelly [Wed, 9 Oct 2019 17:41:35 +0000 (10:41 -0700)]
qa: use small default pg count for CephFS pools

The pg count needs to be a power-of-two since
dff5697464edb9931d5dfa08cd4a30f85c1f237e.

Also, mon_pg_warn_min_per_osd is disabled by default now (or set to a
low value in vstart/testing) so there's no need to base the pg count on
this value.

Ideally someday we can remove this so that the default cluster value is
used but we need to keep this for deployments of older versions of Ceph.

Fixes: https://tracker.ceph.com/issues/42228
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years ago*: remove config of "mon pg warn min per osd" in testing
Patrick Donnelly [Wed, 9 Oct 2019 18:06:40 +0000 (11:06 -0700)]
*: remove config of "mon pg warn min per osd" in testing

Follows: 609ab5aa850b147dd0ea799ff14ac594951cf748
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge pull request #30742 from croit/rgw-fix-max-concurrent-ios-docs
Casey Bodley [Thu, 10 Oct 2019 16:35:14 +0000 (12:35 -0400)]
Merge pull request #30742 from croit/rgw-fix-max-concurrent-ios-docs

radosgw-admin: update help for max-concurrent-ios

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #26524 from linuxbox2/wip-lc-days-0
Matt Benjamin [Thu, 10 Oct 2019 14:27:23 +0000 (10:27 -0400)]
Merge pull request #26524 from linuxbox2/wip-lc-days-0

rgw: lifecycle days may be 0

5 years agoMerge pull request #30735 from yuvalif/fix_race_condition_in_amqp_test
Yuval Lifshitz [Thu, 10 Oct 2019 13:35:28 +0000 (16:35 +0300)]
Merge pull request #30735 from yuvalif/fix_race_condition_in_amqp_test

rgw/amqp: fix race condition in AMQP unit test

5 years agoMerge pull request #30725 from smithfarm/wip-more-cbs-2
Nathan Cutler [Thu, 10 Oct 2019 12:25:43 +0000 (14:25 +0200)]
Merge pull request #30725 from smithfarm/wip-more-cbs-2

ceph-backport.sh: automate setting of milestone and component label, implement --version option

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
5 years agoceph-backport.sh: do not say "1 commits" 30725/head
Nathan Cutler [Mon, 7 Oct 2019 19:56:39 +0000 (21:56 +0200)]
ceph-backport.sh: do not say "1 commits"

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoceph-backport.sh: correctly add note to backport tracker
Nathan Cutler [Mon, 7 Oct 2019 19:40:12 +0000 (21:40 +0200)]
ceph-backport.sh: correctly add note to backport tracker

Before this commit, the JSON was wrong and Redmine silently ignored the note.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoceph-backport.sh: set SCRIPT_VERSION using --update-version
Nathan Cutler [Mon, 7 Oct 2019 11:56:37 +0000 (13:56 +0200)]
ceph-backport.sh: set SCRIPT_VERSION using --update-version

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoceph-backport.sh: implement --update-version and --version options
Nathan Cutler [Mon, 7 Oct 2019 11:33:26 +0000 (13:33 +0200)]
ceph-backport.sh: implement --update-version and --version options

--update-version (intended for use by script maintainer only) will derive
version number from the output of "git describe" and set the SCRIPT_VERSION
variable inside the script.

--version will display a version number message and exit immediately thereafter.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoceph-backport.sh: guess component label
Nathan Cutler [Sun, 6 Oct 2019 19:32:42 +0000 (21:32 +0200)]
ceph-backport.sh: guess component label

If component label is not provided explicitly on the command line, attempt to
guess it.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #29447 from rafaelquint/osdtest2
Tatjana Dehler [Thu, 10 Oct 2019 11:05:16 +0000 (13:05 +0200)]
Merge pull request #29447 from rafaelquint/osdtest2

mgr/dashboard: Verify fields on OSDs page

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #30400 from rhcs-dashboard/fix-41867-master
Ricardo Marques [Thu, 10 Oct 2019 10:45:13 +0000 (11:45 +0100)]
Merge pull request #30400 from rhcs-dashboard/fix-41867-master

mgr: change perf-counter precision to float

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #30814 from Devp00l/wip-42077
Tatjana Dehler [Thu, 10 Oct 2019 10:15:49 +0000 (12:15 +0200)]
Merge pull request #30814 from Devp00l/wip-42077

mgr/dashboard: Fixes random cephfs tab test failure

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
5 years agoMerge pull request #30834 from tchaikov/wip-crimson/pg-lease
Kefu Chai [Thu, 10 Oct 2019 09:28:52 +0000 (17:28 +0800)]
Merge pull request #30834 from tchaikov/wip-crimson/pg-lease

crimson/osd: should handle pg_lease messages

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agomgr/dashboard: Fixes random cephfs tab test failure 30814/head
Stephan Müller [Wed, 9 Oct 2019 15:47:36 +0000 (17:47 +0200)]
mgr/dashboard: Fixes random cephfs tab test failure

Fixes: https://tracker.ceph.com/issues/42077
Signed-off-by: Stephan Müller <smueller@suse.com>
5 years agorgw/amqp: fix race condition in AMQP unit test 30735/head
Yuval Lifshitz [Sun, 6 Oct 2019 08:31:35 +0000 (11:31 +0300)]
rgw/amqp: fix race condition in AMQP unit test

Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agocrimson/osd: always init BufferedRecoveryMessages w/ octopus 30834/head
Kefu Chai [Thu, 10 Oct 2019 07:02:59 +0000 (15:02 +0800)]
crimson/osd: always init BufferedRecoveryMessages w/ octopus

we don't need to be compatible with pre-octopus releases

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: use in-class initialization to init member variables
Kefu Chai [Thu, 10 Oct 2019 07:02:05 +0000 (15:02 +0800)]
crimson/osd: use in-class initialization to init member variables

for better readability

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: should handle pg_lease and pg_lease_ack
Kefu Chai [Thu, 10 Oct 2019 06:50:58 +0000 (14:50 +0800)]
crimson/osd: should handle pg_lease and pg_lease_ack

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30787 from zhangdaolong/master
Kefu Chai [Thu, 10 Oct 2019 06:04:56 +0000 (14:04 +0800)]
Merge pull request #30787 from zhangdaolong/master

doc, qa: remove invalid option mon_pg_warn_max_per_osd

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge PR #30724 into master
Sage Weil [Thu, 10 Oct 2019 02:30:44 +0000 (21:30 -0500)]
Merge PR #30724 into master

* refs/pull/30724/head:
mgr/telemetry: bump content revision and add a release note
telemetry/server: add device report endpoint
mgr/telemetry: include device telemetry
mgr/devicehealth: factor _get_device_metrics out of show_device_metrics
mgr/devicehealth: pull out MAX_SAMPLES

Reviewed-by: Dan Mick <dmick@redhat.com>
5 years agomgr/telemetry: bump content revision and add a release note 30724/head
Sage Weil [Fri, 4 Oct 2019 21:20:31 +0000 (16:20 -0500)]
mgr/telemetry: bump content revision and add a release note

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotelemetry/server: add device report endpoint
Sage Weil [Fri, 4 Oct 2019 20:17:07 +0000 (15:17 -0500)]
telemetry/server: add device report endpoint

Add a standalone endpoint to report device telemetry.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/telemetry: include device telemetry
Sage Weil [Fri, 4 Oct 2019 20:03:53 +0000 (15:03 -0500)]
mgr/telemetry: include device telemetry

- anonymize device id
- anonymize host names
- strip out the serial number

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #30809 into master
Patrick Donnelly [Wed, 9 Oct 2019 20:30:20 +0000 (13:30 -0700)]
Merge PR #30809 into master

* refs/pull/30809/head:
qa: tolerate ECONNRESET errcode during logrotate

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30738 into master
Sage Weil [Wed, 9 Oct 2019 19:13:40 +0000 (14:13 -0500)]
Merge PR #30738 into master

* refs/pull/30738/head:
mgr/alerts: raise health alert if smtplib has a problem
mgr/alerts: simple module to send health alerts

Reviewed-by: Tim Serong <tserong@suse.com>
5 years agoMerge pull request #30793 from ricardoasmarques/rbd-parent-namespace
Jason Dillaman [Wed, 9 Oct 2019 19:04:40 +0000 (15:04 -0400)]
Merge pull request #30793 from ricardoasmarques/rbd-parent-namespace

pybind/rbd: parent_info should return pool namespace

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30800 from liewegas/wip-container-image
Jason Dillaman [Wed, 9 Oct 2019 17:05:26 +0000 (13:05 -0400)]
Merge pull request #30800 from liewegas/wip-container-image

common: rename 'image' to 'container_image'

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #30619 from dang/wip-dang-zipper-2
Daniel Gryniewicz [Wed, 9 Oct 2019 16:38:27 +0000 (12:38 -0400)]
Merge pull request #30619 from dang/wip-dang-zipper-2

rgw: Project Zipper - Bucketlist

5 years agoMerge pull request #30811 from rzarzynski/wip-script-run-cbt-on-classical
Kefu Chai [Wed, 9 Oct 2019 15:01:39 +0000 (23:01 +0800)]
Merge pull request #30811 from rzarzynski/wip-script-run-cbt-on-classical

script/run-cbt.sh: add support for ceph-osd testing.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoscript/run-cbt.sh: add support for ceph-osd testing. 30811/head
Radoslaw Zarzynski [Wed, 9 Oct 2019 13:25:50 +0000 (15:25 +0200)]
script/run-cbt.sh: add support for ceph-osd testing.

The patch brings `--classical` switch to the `run-cbt.sh`
script. Its purpose is to automate the apple-to-apple
comparison between OSD implementations. In both cases
memstore is selected and the same benchmarks are used.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #30747 from rjfd/wip-dashboard-task-controller-race
Kefu Chai [Wed, 9 Oct 2019 12:53:35 +0000 (20:53 +0800)]
Merge pull request #30747 from rjfd/wip-dashboard-task-controller-race

mgr/dashboard: tasks: only unblock controller thread after TaskManager thread

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
5 years agoqa: tolerate ECONNRESET errcode during logrotate 30809/head
Venky Shankar [Wed, 9 Oct 2019 04:52:20 +0000 (00:52 -0400)]
qa: tolerate ECONNRESET errcode during logrotate

Fixes: http://tracker.ceph.com/issues/41800
Signed-off-by: Venky Shankar <vshankar@redhat.com>
5 years agopybind/rbd: deprecate `parent_info` 30793/head
Ricardo Marques [Wed, 9 Oct 2019 09:51:21 +0000 (10:51 +0100)]
pybind/rbd: deprecate `parent_info`

`parent_info` is not returning the parent pool namespace
so `get_parent_image_spec` should be used instead.

Signed-off-by: Ricardo Marques <rimarques@suse.com>
5 years agodoc, qa:remove invalid option mon_pg_warn_max_per_osd 30787/head
zhangdaolong [Tue, 8 Oct 2019 11:15:43 +0000 (19:15 +0800)]
doc, qa:remove invalid option mon_pg_warn_max_per_osd

The older mon_pg_warn_max_per_osd option has been removed in v12.2.1 Luminous
https://ceph.com/releases/v12-2-1-luminous-released/

Fixes: https://tracker.ceph.com/issues/42221
Signed-off-by: zhang daolong <zhangdaolong@fiberhome.com>
5 years agoMerge pull request #30682 from badone/wip-bz1749874-pid-in-large-omap-log
Brad Hubbard [Wed, 9 Oct 2019 07:31:24 +0000 (17:31 +1000)]
Merge pull request #30682 from badone/wip-bz1749874-pid-in-large-omap-log

osd/PG: Add PG to large omap log message

Reviewed-by: Vikhyat Umrao <vikhyat@redhat.com>
5 years agoMerge pull request #30645 from tchaikov/wip-doc/man/ceph/config
Kefu Chai [Wed, 9 Oct 2019 07:20:25 +0000 (15:20 +0800)]
Merge pull request #30645 from tchaikov/wip-doc/man/ceph/config

doc/man/ceph: document 'ceph config'

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #30250 from tchaikov/wip-do-cmake.sh
Kefu Chai [Wed, 9 Oct 2019 06:52:44 +0000 (14:52 +0800)]
Merge pull request #30250 from tchaikov/wip-do-cmake.sh

do_cmake.sh: remove -DCMAKE_BUILD_TYPE=Debug from cmake options

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #30799 from badone/wip-change-cmake-to-debug-default
Kefu Chai [Wed, 9 Oct 2019 06:43:24 +0000 (14:43 +0800)]
Merge pull request #30799 from badone/wip-change-cmake-to-debug-default

cmake: Do a debug build by default

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30794 from rzarzynski/wip-test-cbt-randread
Kefu Chai [Wed, 9 Oct 2019 06:40:41 +0000 (14:40 +0800)]
Merge pull request #30794 from rzarzynski/wip-test-cbt-randread

test/crimson: cbt test does rand-reads instead of seq-reads.

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30726 from tchaikov/wip-musl-alphine
Kefu Chai [Wed, 9 Oct 2019 04:46:26 +0000 (12:46 +0800)]
Merge pull request #30726 from tchaikov/wip-musl-alphine

test: define ALLPERMS if not yet

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
5 years agodo_cmake.sh: remove -DCMAKE_BUILD_TYPE=Debug from cmake options 30250/head
Kefu Chai [Wed, 9 Oct 2019 04:26:06 +0000 (12:26 +0800)]
do_cmake.sh: remove -DCMAKE_BUILD_TYPE=Debug from cmake options

so we can use do_cmake.sh for building release builds, which are
required for performance tests.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocmake: Do a debug build by default 30799/head
Brad Hubbard [Wed, 9 Oct 2019 01:52:33 +0000 (11:52 +1000)]
cmake: Do a debug build by default

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
5 years agocommon: rename 'image' to 'container_image' 30800/head
Sage Weil [Wed, 9 Oct 2019 02:59:07 +0000 (21:59 -0500)]
common: rename 'image' to 'container_image'

This conflicted with the rbd CLI --image argument.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoMerge PR #30752 into master
Patrick Donnelly [Tue, 8 Oct 2019 20:31:57 +0000 (13:31 -0700)]
Merge PR #30752 into master

* refs/pull/30752/head:
backport-create-issue: resolve parent if all backports resolved/rejected

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agotest/crimson: cbt test does rand-reads instead of seq-reads. 30794/head
Radoslaw Zarzynski [Tue, 8 Oct 2019 17:34:05 +0000 (19:34 +0200)]
test/crimson: cbt test does rand-reads instead of seq-reads.

The rationale behind the change is not only that random
read performance tends to be more important and meaningful.
Actually, the current procedure is broken because of how
`rados bench` internally operates: the number of seq read
operations is limited by the number of write ops used to
create the data set (`write` with the `--no-cleanup` option):

  ```cpp
  int ObjBencher::write_bench(/* ... */) {
    // ...
    //write object size/number data for read benchmarks
    encode(data.object_size, b_write);
    encode(data.finished, b_write);

    //...

  int ObjBencher::fetch_bench_metadata(// ...
                                       int* num_ops, /* ... */) {
    // ...
    decode(*object_size, p);
    decode(*num_ops, p);

  int ObjBencher::seq_read_bench(
    int seconds_to_run, int num_ops, int num_objects,
    int concurrentios, int pid, bool no_verify) {

    // ...

    //start initial reads
    for (int i = 0; i < concurrentios; ++i) {
      // ...
      ++data.started;
    }

    // ...

    while ((seconds_to_run && mono_clock::now() < finish_time) &&
           num_ops > data.started) {
  ```

This makes significant problem as the cbt test uses short (3 sec.)
period of prefill. In the consequence, the sequential read testing
takes around half-second.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge PR #30476 into master
Patrick Donnelly [Tue, 8 Oct 2019 18:42:44 +0000 (11:42 -0700)]
Merge PR #30476 into master

* refs/pull/30476/head:
doc: list FS subvolumes, subvolume groups and their snapshots
qa/tasks: tests for ls
mgr/volumes: list FS subvolumes, subvolume groups and their snapshots

Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
5 years agoMerge PR #30788 into master
Sage Weil [Tue, 8 Oct 2019 15:11:56 +0000 (10:11 -0500)]
Merge PR #30788 into master

* refs/pull/30788/head:
Revert "ceph-volume: accept --no-tmpfs argument for bluestore"
Revert "ceph-volume: no_tmpfs -> tmpfs"

Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Guillaume Abrioux <gabrioux@redhat.com>
5 years agoMerge pull request #30707 from rishabh-d-dave/cv-remove-purge-from-vg-filter
Jan Fajerski [Tue, 8 Oct 2019 14:42:26 +0000 (16:42 +0200)]
Merge pull request #30707 from rishabh-d-dave/cv-remove-purge-from-vg-filter

ceph-volume: VolumeGroups.filter shouldn't purge itself

5 years agoMerge pull request #30703 from rishabh-d-dave/cv-remove-purge-from-pvolumes-filter
Jan Fajerski [Tue, 8 Oct 2019 14:41:39 +0000 (16:41 +0200)]
Merge pull request #30703 from rishabh-d-dave/cv-remove-purge-from-pvolumes-filter

ceph-volume: PVolumes.filter shouldn't purge itself

5 years agoRevert "ceph-volume: accept --no-tmpfs argument for bluestore" 30788/head
Sage Weil [Tue, 8 Oct 2019 12:28:23 +0000 (07:28 -0500)]
Revert "ceph-volume: accept --no-tmpfs argument for bluestore"

This reverts commit e6c578a2bc1e5b6d91676274444122c5388bddc0.

It turns out this change isn't actually needed to make ceph-daemon do its thing, since
ceph-volume alrady skips doing anything with tmpfs if the data dir already exists.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoRevert "ceph-volume: no_tmpfs -> tmpfs"
Sage Weil [Tue, 8 Oct 2019 12:28:05 +0000 (07:28 -0500)]
Revert "ceph-volume: no_tmpfs -> tmpfs"

This reverts commit 0092c5b603a3573a6ef9d8fc995d5f3ce74d90ac.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/alerts: raise health alert if smtplib has a problem 30738/head
Sage Weil [Mon, 7 Oct 2019 14:05:43 +0000 (09:05 -0500)]
mgr/alerts: raise health alert if smtplib has a problem

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc: list FS subvolumes, subvolume groups and their snapshots 30476/head
Jos Collin [Mon, 7 Oct 2019 09:58:23 +0000 (15:28 +0530)]
doc: list FS subvolumes, subvolume groups and their snapshots

Fixes: https://tracker.ceph.com/issues/41842
Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agoqa/tasks: tests for ls
Jos Collin [Fri, 27 Sep 2019 11:42:34 +0000 (17:12 +0530)]
qa/tasks: tests for ls

tests for:
* fs subvolume ls
* 'fs subvolume ls' for non-existent default group
* fs subvolumegroup ls
* 'fs subvolumegroup ls' for not-existent /volume
* fs subvolume snapshot ls
* fs subvolumegroup snapshot ls

Fixes: https://tracker.ceph.com/issues/41842
Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agomgr/volumes: list FS subvolumes, subvolume groups and their snapshots
Jos Collin [Tue, 17 Sep 2019 09:31:04 +0000 (15:01 +0530)]
mgr/volumes: list FS subvolumes, subvolume groups and their snapshots

Fixes: https://tracker.ceph.com/issues/41842
Signed-off-by: Jos Collin <jcollin@redhat.com>
5 years agoMerge PR #30593 into master 32165/head
Sage Weil [Tue, 8 Oct 2019 00:56:49 +0000 (19:56 -0500)]
Merge PR #30593 into master

* refs/pull/30593/head:
os/bluestore: memorize layout of BlueFS on management.

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
5 years agoMerge PR #30603 into master
Sage Weil [Mon, 7 Oct 2019 20:31:14 +0000 (15:31 -0500)]
Merge PR #30603 into master

* refs/pull/30603/head:
ceph-daemon: -n type.id instead of -i id
ceph-daemon: drop unused VERSION
ceph-daemon: clean up dir helpers, tighten up permissions
ceph-daemon: fchmod before writing to keyring file
test_ceph_daemon.sh: skip ssh until container image has remoto
ceph-daemon: decode utf-8 in run() helper
mgr/ssh: clean up debug cruft
mgr/ssh: clean up bare except: block
ceph-daemon: clean up bare except: blocks
ceph-daemon: all imports to top
ceph-volume: no_tmpfs -> tmpfs
doc/bootstrap: add new bootstrap documentation
ceph-daemon: add --output-pub-ssh-key for bootstrap
ceph-daemon: make 'shell' easier to use
ceph-daemon: support docker; prefer podman
qa: add ceph-daemon
debian: ceph-daemon package, required by ceph-mgr-ssh
ceph.spec.in: ceph-daemon package, required by ceph-mgr
common/options: cleanup whitespace
mgr/ssh: simplify getting the cluster fsid
mgr/ssh: pipe ceph-daemon script to stdin of python3
ceph-daemon: add support for args and/or stdin from top of script
ceph-daemon: make ceph-volume use get_config_and_keyring
ceph-daemon: ls: behave if /var/log/ceph doesn't exist
ceph-daemon: implement 'adopt' for legacy style daemons
ceph-daemon: fix fsid detection for legacy osds
ceph-daemon: make rm-cluster clean up system-ceph*.slice too
ceph-daemon: configure ssh orchestrator
ceph-daemon: be more restrictive with file permissions
mgr/ssh: create osd with ceph-daemon
mgr/ssh: pass daemon id separately to _create_daemon
ceph-daemon: add --config-and-keyring to ceph-volume command
ceph-daemon: create log path for shell (if needed)
mgr/ssh: use _run_ceph_daemon for _create_daemon
mgr/ssh: factor _run_ceph_daemon out of _get_device_inventory
mon/ConfigMonitor: allow entity type only for 'config get'
ceph-daemon: add ceph-volume subcommand
ceph-daemon: remove unused CephContainer dname property
ceph-daemon: drop useless uid/gid checks
mgr/ssh: deploy new mgrs with ceph-daemon
mgr/ssh: factor _create_daemon out of create_mon
mon/MonCap: allow mgr to create new auth keys
mgr/ssh: run c-v with podman when getting inventory
mgr/ssh: simplify ssh connection management
mgr/ssh: use ceph-daemon for deploying mon
ceph-daemon: allow --mon-network for deploying new mon (vs specifying IP)
ceph-daemon: --config-and-keyring (not key)
common/options: add 'image' config option
test_ceph_daemon: specify image name
vstart.sh: add --ssh to enable+configure ssh orchestrator
mgr/ssh: use ssh identity from config-key, if present
mgr/ssh: hardcode default ssh_config
ceph-daemon: store ssh identity in mon config-key store
ceph-daemon: --privileged arg for 'exec'
ceph-daemon: make deploy work for osd (do a c-v prepare)
ceph-daemon: make shell privileged
ceph-daemon: move get_container_mounts to a helper
ceph-daemon: pass full path for entrypoint
ceph-daemon: make id portion of 'shell' optional
ceph-volume: accept --no-tmpfs argument for bluestore
ceph-daemon: 'unit' command
ceph-daemon: fix run command to use call(), not check_output()
src/ceph-daemon: whitespace
ceph-daemon: add 'enter', 'exec' commands
ceph-daemon: bind config to default location
test_ceph_daemon.sh: test deploy mds too
ceph-daemon: generate ssh keys
ceph-daemon: --config, not --conf
ceph-daemon: long lines
ceph-daemon: add --config to bootstrap
ceph-daemon: add 'shell' command
ceph-daemon: do not import subprocess symbols directly
ceph-daemon: add mons with 'deploy mon.x ...'
ceph-daemon: add 'ls'
ceph-daemon: simplify uid/gid a bit
ceph-daemon: fix libudev
ceph-daemon: autodetect uid/gid from container image
ceph-daemon: default to empty log files, log to stderr (systemd journal)
ceph-daemon: rm-{daemon,cluster}
ceph-daemon: fix bootstrap config
ceph-daemon: fix args.fsid usage
ceph-daemon: be careful overwriting live files
ceph-daemon: slurp some options over from the standard systemd unit
ceph-daemon: add ceph.target and ceph-$fsid.target units
test_ceph_daemon.sh: stupid test script
ceph-daemon: bootstrap and deploy (mgr) work
ceph-daemon: initial checkin
ceph-mon: fix debug print of public_addr

5 years agodoc/mgr/dashboard: Fix duplication for NFS-Ganesha (#30700)
Lenz Grimmer [Mon, 7 Oct 2019 15:11:04 +0000 (15:11 +0000)]
doc/mgr/dashboard: Fix duplication for NFS-Ganesha (#30700)

doc/mgr/dashboard: Fix duplication for NFS-Ganesha

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
5 years agomgr/alerts: simple module to send health alerts
Sage Weil [Sun, 6 Oct 2019 15:45:57 +0000 (10:45 -0500)]
mgr/alerts: simple module to send health alerts

Initialy SMTP support is implemented; nothing else.

This is just smart enough for me to get emails from my home cluster when
something goes wrong.  No bells and whistled at this point.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agobackport-create-issue: resolve parent if all backports resolved/rejected 30752/head
Nathan Cutler [Mon, 7 Oct 2019 12:50:53 +0000 (14:50 +0200)]
backport-create-issue: resolve parent if all backports resolved/rejected

Until now, parent would be resolved only if all backports were *Resolved*.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agomgr/dashboard: tasks: only unblock controller thread after TaskManager thread 30747/head
Ricardo Dias [Mon, 7 Oct 2019 09:39:10 +0000 (10:39 +0100)]
mgr/dashboard: tasks: only unblock controller thread after TaskManager thread

Fixes: https://tracker.ceph.com/issues/42187
Signed-off-by: Ricardo Dias <rdias@suse.com>
5 years agoMerge pull request #30736 from tchaikov/wip-crimson/osd/cleanups
Kefu Chai [Mon, 7 Oct 2019 09:38:47 +0000 (17:38 +0800)]
Merge pull request #30736 from tchaikov/wip-crimson/osd/cleanups

crimson/osd: cleanups

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agomgr/dashboard: Unify Tasks and Notifications into a sidebar (#29706)
Lenz Grimmer [Mon, 7 Oct 2019 08:55:27 +0000 (08:55 +0000)]
mgr/dashboard: Unify Tasks and Notifications into a sidebar (#29706)

mgr/dashboard: Unify Tasks and Notifications into a sidebar

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #30720 from rhcs-dashboard/fix-constraints-backend-api-tests
Lenz Grimmer [Mon, 7 Oct 2019 08:48:14 +0000 (08:48 +0000)]
Merge pull request #30720 from rhcs-dashboard/fix-constraints-backend-api-tests

mgr/dashboard: fix missing constraints file in backend API tests

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #30711 from dillaman/wip-41938
Mykola Golub [Mon, 7 Oct 2019 08:30:02 +0000 (11:30 +0300)]
Merge pull request #30711 from dillaman/wip-41938

librbd: v1 clones are restricted to the same namespace

Reviewed-by: Mykola Golub <mgolub@suse.com>
5 years agoMerge pull request #30656 from tchaikov/wip-install-deps-for-el8
Kefu Chai [Mon, 7 Oct 2019 08:06:30 +0000 (16:06 +0800)]
Merge pull request #30656 from tchaikov/wip-install-deps-for-el8

install-deps.sh: enable PowerTool repo for EL8

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #30693 from rzarzynski/wip-msg-fix-comments-std_set
Kefu Chai [Mon, 7 Oct 2019 07:15:42 +0000 (15:15 +0800)]
Merge pull request #30693 from rzarzynski/wip-msg-fix-comments-std_set

msg: fix comments in Messenger.h after the set -> std::set switch.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #30719 from pdvian/wip-fix-sign-compare-warning
Kefu Chai [Mon, 7 Oct 2019 05:25:03 +0000 (13:25 +0800)]
Merge pull request #30719 from pdvian/wip-fix-sign-compare-warning

client/Client : Fix sign compare compiler warning

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoclient/Client : Fix sign compare compiler warning 30719/head
Prashant D [Fri, 4 Oct 2019 13:00:56 +0000 (09:00 -0400)]
client/Client : Fix sign compare compiler warning

introduced by 394720ca6b7

Signed-off-by: Prashant D <pdhange@redhat.com>
5 years agoMerge pull request #29783 from scarvalhojr/ssevault
Ali Maredia [Mon, 7 Oct 2019 02:33:36 +0000 (22:33 -0400)]
Merge pull request #29783 from scarvalhojr/ssevault

rgw: add SSE-KMS with Vault using token auth

5 years agoradosgw-admin: update help for max-concurrent-ios 30742/head
Paul Emmerich [Sun, 6 Oct 2019 22:14:05 +0000 (00:14 +0200)]
radosgw-admin: update help for max-concurrent-ios

--max-concurrent-ios works for all bucket operations and is quite
important when working with huge buckets

Signed-off-by: Paul Emmerich <paul.emmerich@croit.io>
5 years agoMerge PR #30217 into master
Sage Weil [Sun, 6 Oct 2019 14:08:28 +0000 (09:08 -0500)]
Merge PR #30217 into master

* refs/pull/30217/head:
crimson: common/admin_socket kludge so that it builds
mon/MonClient: fix sending mon command to a specific rank
src/.gitignore: ignore .tox
mon/MonClient: interpret numeric mon target name as rank
mgr,mgr/MgrClient: use fsid to signal mon-mgr vs cli MCommands
qa/workunits/cephtool: fix errpr checks for 'ceph daemon' commands
common/ceph_context: make 'config unset' idempotent
qa/tasks/dump_stuck: mon.a, not mon.0
qa/suites/rados/singleton/all/admin-socket: fix test
common/config: EPERM setting config option after startup
qa/workunits/cephtool/test.sh: fix tell output error check
common/admin_socket: pass Formatter from generic infrastructure
common/admin_socket: pass ostream to call() for error output
os/bluestore: fix asok hook return value
rgw: fix asok return value
common/ceph_context: return error code from asok commands
test/pybind/test_rados: fix accidental mon tell test
mon: print entity_name along with caps to debug log
PendingReleaseNotes: notes about asok changes
mgr/MgrClient: empty target string for 'tell' means active mgr
common/admin_socket: report error code as part of output string
osd: change trigger_[deep_]scrub tommands to a pg tell command
osd: remove old command workqueue, threadpool
osd: drop MMonCommand handling
osdc/Objecter: resend OSD tell commands on EAGAIN
osd: route tell commands to asok; migrate commands
osd: use unique_ptr<Formatter> for asok_command
common/ceph_context: add generic asok 'injectargs'
common/admin_socket: allow dup prefixes
common/admin_socket: refactor with sync and async execute_command variants
common/admin_socket: pass input bufferlist
osd: transition to call_async() for asok
common/admin_socket: support alternative call_async()
mon/MonClient: send tell commands out of band via MCommand
mon: accept tell commands via MCommand and send them to asok handler
common/admin_socket: return int from hook call()
mgr/DaemonServer: route MCommand (for octopus+) to asok commands
do not use 'ceph tell mgr'
pybind/ceph_argparse: disambiguate mgr tell and CLI commands
ceph: make 'ceph tell mgr.*' send to the active mgr
ceph: send 'ceph tell mgr.X' to the right mgr
librados: add rados_mgr_command_target
mgr/MgrClient: add start_command variant that takes a target
common/admin_socket: drop unregister_command(); use per-hook variant
common/admin_socket: drop explicit prefix arg to register_command
common/admin_socket: simplify command routing
common/admin_socket: add ability to process MCommand via asok queue
common/admin_socket: pass cmdvec to execute_command
common/admin_socket: use pipe for general wakeup
include/compat: add flags arg to pipe_cloexec
common/admin_socket: drop unused args

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #30715 into master
Sage Weil [Sun, 6 Oct 2019 14:05:27 +0000 (09:05 -0500)]
Merge PR #30715 into master

* refs/pull/30715/head:
osd/PrimaryLogPG: skip obcs that don't exist during backfill scan_range

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge PR #30721 into master
Sage Weil [Sun, 6 Oct 2019 13:58:32 +0000 (08:58 -0500)]
Merge PR #30721 into master

* refs/pull/30721/head:
osd/PeeringState: base lease support checks on features, not require_osd_release

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: ignore returned futures 30736/head
Kefu Chai [Sun, 6 Oct 2019 09:19:05 +0000 (17:19 +0800)]
crimson/osd: ignore returned futures

the peering events are handled in the background, we need to make sure
the these continuations won't outlive the PG before destroying it
though.

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: should return ostream in operator<<()
Kefu Chai [Sun, 6 Oct 2019 09:11:56 +0000 (17:11 +0800)]
crimson/osd: should return ostream in operator<<()

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agocrimson/osd: #include necessary header file
Kefu Chai [Sun, 6 Oct 2019 09:10:46 +0000 (17:10 +0800)]
crimson/osd: #include necessary header file

for using `seastar::sleep()`, we need to include sleep.hh

Signed-off-by: Kefu Chai <kchai@redhat.com>
5 years agoceph-daemon: -n type.id instead of -i id 30603/head
Sage Weil [Sat, 5 Oct 2019 19:16:11 +0000 (14:16 -0500)]
ceph-daemon: -n type.id instead of -i id

This just makes for an easier-to-read '[podman] ps' output (easier to grep,
grok, etc.).

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: drop unused VERSION
Sage Weil [Fri, 4 Oct 2019 22:01:00 +0000 (17:01 -0500)]
ceph-daemon: drop unused VERSION

Originally the 'version' command showed this; now it shows the version
inside the container.

Not sure if we should add a --version command and have the cmake parse in
a 'git describe' version into the code... ?

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: clean up dir helpers, tighten up permissions
Sage Weil [Fri, 4 Oct 2019 21:59:24 +0000 (16:59 -0500)]
ceph-daemon: clean up dir helpers, tighten up permissions

- don't pass args.{data,log}_dir to get_{data,log}_dir
- pass uid, gid, and mode to makedirs
- add make_data_dir and make_log_dir helpers, that optionally take uid/gid
- add make_data_dir_base that requires uid/gid
- use standard data and log dir modes, defined at top of file (0o700 for
  data, 0o770 for logs).  The data dir mode applies both to the fsid
  directory for the whole cluster and to each daemon's subdirectory; the
  log mode applies only to the fsid dir for the whole cluster, where
  all daemon logs are combined together in one directory.

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: fchmod before writing to keyring file
Sage Weil [Fri, 4 Oct 2019 20:58:19 +0000 (15:58 -0500)]
ceph-daemon: fchmod before writing to keyring file

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agotest_ceph_daemon.sh: skip ssh until container image has remoto
Sage Weil [Fri, 4 Oct 2019 19:36:30 +0000 (14:36 -0500)]
test_ceph_daemon.sh: skip ssh until container image has remoto

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: decode utf-8 in run() helper
Sage Weil [Fri, 4 Oct 2019 19:31:59 +0000 (14:31 -0500)]
ceph-daemon: decode utf-8 in run() helper

Less repetition

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: clean up debug cruft
Sage Weil [Fri, 4 Oct 2019 19:31:04 +0000 (14:31 -0500)]
mgr/ssh: clean up debug cruft

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agomgr/ssh: clean up bare except: block
Sage Weil [Fri, 4 Oct 2019 19:30:56 +0000 (14:30 -0500)]
mgr/ssh: clean up bare except: block

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: clean up bare except: blocks
Sage Weil [Fri, 4 Oct 2019 19:30:40 +0000 (14:30 -0500)]
ceph-daemon: clean up bare except: blocks

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: all imports to top
Sage Weil [Fri, 4 Oct 2019 19:24:26 +0000 (14:24 -0500)]
ceph-daemon: all imports to top

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-volume: no_tmpfs -> tmpfs
Sage Weil [Fri, 4 Oct 2019 19:21:09 +0000 (14:21 -0500)]
ceph-volume: no_tmpfs -> tmpfs

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agodoc/bootstrap: add new bootstrap documentation
Sage Weil [Fri, 4 Oct 2019 17:40:05 +0000 (12:40 -0500)]
doc/bootstrap: add new bootstrap documentation

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: add --output-pub-ssh-key for bootstrap
Sage Weil [Fri, 4 Oct 2019 17:39:16 +0000 (12:39 -0500)]
ceph-daemon: add --output-pub-ssh-key for bootstrap

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: make 'shell' easier to use
Sage Weil [Fri, 4 Oct 2019 17:18:04 +0000 (12:18 -0500)]
ceph-daemon: make 'shell' easier to use

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-daemon: support docker; prefer podman
Sage Weil [Fri, 4 Oct 2019 16:25:10 +0000 (11:25 -0500)]
ceph-daemon: support docker; prefer podman

Signed-off-by: Sage Weil <sage@redhat.com>
5 years agoceph-backport.sh: fix an error message
Nathan Cutler [Sat, 5 Oct 2019 14:40:36 +0000 (16:40 +0200)]
ceph-backport.sh: fix an error message

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoceph-backport.sh: always try to set backport PR milestone
Nathan Cutler [Fri, 4 Oct 2019 20:34:58 +0000 (22:34 +0200)]
ceph-backport.sh: always try to set backport PR milestone

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoceph-backport.sh/setup_advice: more info on GitHub token
Nathan Cutler [Thu, 3 Oct 2019 15:38:13 +0000 (17:38 +0200)]
ceph-backport.sh/setup_advice: more info on GitHub token

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoscript/ceph-backport.sh: tweak setup_report
Nathan Cutler [Wed, 11 Sep 2019 12:30:57 +0000 (14:30 +0200)]
script/ceph-backport.sh: tweak setup_report

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoscript/ceph-backport.sh: fail gracefully when github_token is wrong
Nathan Cutler [Wed, 11 Sep 2019 11:55:49 +0000 (13:55 +0200)]
script/ceph-backport.sh: fail gracefully when github_token is wrong

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agoscript/ceph-backport.sh: check Redmine API status code on PUT request
Nathan Cutler [Wed, 11 Sep 2019 11:01:11 +0000 (13:01 +0200)]
script/ceph-backport.sh: check Redmine API status code on PUT request

When updating the Backport tracker issue in Redmine, upon success the status
code should be 2**.

A status code of 4** indicates a problem with authentication.

Signed-off-by: Nathan Cutler <ncutler@suse.com>