]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agotest_sessionmap: use sudo_write_file() from teuthology.misc 29123/head
Rishabh Dave [Fri, 19 Jul 2019 04:35:18 +0000 (10:05 +0530)]
test_sessionmap: use sudo_write_file() from teuthology.misc

Instead of defining a method to write files within the testsuite, use
sudo_write_file() from teuthology.misc.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge PR #29067 into master
Patrick Donnelly [Fri, 19 Jul 2019 01:45:27 +0000 (18:45 -0700)]
Merge PR #29067 into master

* refs/pull/29067/head:
qa/tasks: add exception in do_thrash()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa/tasks: add exception in do_thrash() 29067/head
Jos Collin [Tue, 16 Jul 2019 23:11:49 +0000 (04:41 +0530)]
qa/tasks: add exception in do_thrash()

Fixes the bug during DaemonWatchdog testing:

Traceback (most recent call last):
  File "/home/teuthworker/src/github.com_ceph_ceph-c_wip-daemonwatchdog-testing13/qa/tasks/daemonwatchdog.py", line 38, in _run
    self.watch()
  File "/home/teuthworker/src/github.com_ceph_ceph-c_wip-daemonwatchdog-testing13/qa/tasks/daemonwatchdog.py", line 112, in watch
    if thrasher.e is not None:
AttributeError: MonitorThrasher instance has no attribute 'e'

Signed-off-by: Jos Collin <jcollin@redhat.com>
6 years agoMerge PR #29011 into master
Sage Weil [Thu, 18 Jul 2019 21:10:08 +0000 (16:10 -0500)]
Merge PR #29011 into master

* refs/pull/29011/head:
doc/releases/nautilus: move note to 14.2.2
doc/releases/nautilus: typo
doc/releases/nautilus.rst: pool stats fix was merged for 14.2.2 after all
doc: release notes for nautilus 14.2.2

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #28692 into master
Patrick Donnelly [Thu, 18 Jul 2019 21:03:50 +0000 (14:03 -0700)]
Merge PR #28692 into master

* refs/pull/28692/head:
test_volume_client: add positive test for ceph_volume_client method
test_volume_client: rename test_put_object_versioned()
test_volume_client: rewrite test_put_object_versioned
test_volume_client: use sudo_write_file() form teuthology
test_volume_client: make test_object_versioned py3 compatible

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #22788 from adamyanova/wip-s3java
Ali Maredia [Thu, 18 Jul 2019 18:37:50 +0000 (14:37 -0400)]
Merge pull request #22788 from adamyanova/wip-s3java

A task to run S3 Java tests against RGW

6 years agoMerge pull request #29048 from rjfd/wip-dashboard-progress-tasks
Ricardo Marques [Thu, 18 Jul 2019 14:46:41 +0000 (15:46 +0100)]
Merge pull request #29048 from rjfd/wip-dashboard-progress-tasks

mgr/dashboard: integrate progress mgr module events into dashboard tasks list

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #28006 from Devp00l/wip-39482
Ricardo Marques [Thu, 18 Jul 2019 14:44:41 +0000 (15:44 +0100)]
Merge pull request #28006 from Devp00l/wip-39482

mgr/dashboard: Watch for pool pg's increase and decrease

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #29092 into master
Sage Weil [Thu, 18 Jul 2019 13:59:58 +0000 (08:59 -0500)]
Merge PR #29092 into master

* refs/pull/29092/head:
osd/ECTransaction,ReplicatedBackend: create op is new in octopus

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jianpeng Ma <jianpeng.ma@intel.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28935 from votdev/issue_40248
Ricardo Marques [Thu, 18 Jul 2019 13:37:19 +0000 (14:37 +0100)]
Merge pull request #28935 from votdev/issue_40248

mgr/dashboard: Allow users to change their password on the UI

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #28928 from p-na/wip-pna-e2e-pools
Ricardo Marques [Thu, 18 Jul 2019 13:32:23 +0000 (14:32 +0100)]
Merge pull request #28928 from p-na/wip-pna-e2e-pools

mgr/dashboard: Write E2E tests for pool creation, deletion and verification

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Rafael Quintero <rquinter@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #28882 from rjfd/wip-mgr-perf-counter-timestamp
Ricardo Dias [Thu, 18 Jul 2019 11:18:16 +0000 (12:18 +0100)]
Merge pull request #28882 from rjfd/wip-mgr-perf-counter-timestamp

mgr: return perf_counters data timestamps in nanosecs

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
6 years agodoc/releases/nautilus: move note to 14.2.2 29011/head
Sage Weil [Wed, 17 Jul 2019 22:26:38 +0000 (17:26 -0500)]
doc/releases/nautilus: move note to 14.2.2

Oops! This change was merged in 404ed645d42471b675f11fb7d11f46c006248152,
which was not part of 14.2.1 after all.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agodoc/releases/nautilus: typo
Sage Weil [Wed, 17 Jul 2019 22:25:53 +0000 (17:25 -0500)]
doc/releases/nautilus: typo

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #29069 into master
Sage Weil [Wed, 17 Jul 2019 22:20:12 +0000 (17:20 -0500)]
Merge PR #29069 into master

* refs/pull/29069/head:
qa/tasks/ceph_manager: make upmap thrasher behave when no pools/pgs

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #29095 into master
Patrick Donnelly [Wed, 17 Jul 2019 19:49:05 +0000 (12:49 -0700)]
Merge PR #29095 into master

* refs/pull/29095/head:
script/ptl-tool: update for python3

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #28900 into master
Patrick Donnelly [Wed, 17 Jul 2019 18:53:58 +0000 (11:53 -0700)]
Merge PR #28900 into master

* refs/pull/28900/head:
doc: Update troubleshooting.rst
doc: drop kernel-client-troubleshooting.rst

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoscript/ptl-tool: update for python3 29095/head
Patrick Donnelly [Wed, 17 Jul 2019 18:14:31 +0000 (11:14 -0700)]
script/ptl-tool: update for python3

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #29071 into master
Sage Weil [Wed, 17 Jul 2019 17:00:50 +0000 (12:00 -0500)]
Merge PR #29071 into master

* refs/pull/29071/head:
selinux: Allow ceph to read udev db

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoosd/ECTransaction,ReplicatedBackend: create op is new in octopus 29092/head
Sage Weil [Wed, 17 Jul 2019 16:55:42 +0000 (11:55 -0500)]
osd/ECTransaction,ReplicatedBackend: create op is new in octopus

Not nautilus!

Fixes: https://tracker.ceph.com/issues/40755
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #28987 into master
Sage Weil [Wed, 17 Jul 2019 16:27:15 +0000 (11:27 -0500)]
Merge PR #28987 into master

* refs/pull/28987/head:
Revert "mgr/dashboard: Add nolockdep option to e2e-script"
common: refactor handling of lockdep's group name in debug locks.
common: shared_mutex_debug doesn't use empty group name for lockdep.
common, crypto: give names to OpenSSL's mutexes.
common: tiny_vector – CPU-friendly container for mutexes & co.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #29051 into master
Sage Weil [Wed, 17 Jul 2019 16:26:18 +0000 (11:26 -0500)]
Merge PR #29051 into master

* refs/pull/29051/head:
mon/OSDMonitor: tolerate duplicate MRemoveSnaps messages

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #28468 from jmolmo/ansible_orchestrator
Sebastian Wagner [Wed, 17 Jul 2019 15:09:25 +0000 (17:09 +0200)]
Merge pull request #28468 from jmolmo/ansible_orchestrator

mgr/ansible: RGW service

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agomgr: return perf_counters data timestamps in nanosecs 28882/head
Ricardo Dias [Thu, 4 Jul 2019 14:09:35 +0000 (15:09 +0100)]
mgr: return perf_counters data timestamps in nanosecs

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: frontend: move ellipsis to before progress in task execution description 28006/head
Ricardo Dias [Wed, 17 Jul 2019 11:37:53 +0000 (12:37 +0100)]
mgr/dashboard: frontend: move ellipsis to before progress in task execution description

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: test_pool: fix pool unit tests
Ricardo Dias [Tue, 16 Jul 2019 14:45:45 +0000 (15:45 +0100)]
mgr/dashboard: test_pool: fix pool unit tests

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: Add rudimentary pool create/exist/delete test 28928/head
Patrick Nawracay [Mon, 1 Jul 2019 15:42:55 +0000 (17:42 +0200)]
mgr/dashboard: Add rudimentary pool create/exist/delete test

Fixes: http://tracker.ceph.com/issues/38093
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agoMerge branch 'master' into ansible_orchestrator 28468/head
Sebastian Wagner [Wed, 17 Jul 2019 13:37:11 +0000 (15:37 +0200)]
Merge branch 'master' into ansible_orchestrator

6 years agomgr/dashboard: tests: fix tests by mocking progress service 29048/head
Ricardo Dias [Mon, 15 Jul 2019 15:12:36 +0000 (16:12 +0100)]
mgr/dashboard: tests: fix tests by mocking progress service

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: frontend/task.service: format task title for progress tasks
Ricardo Dias [Mon, 15 Jul 2019 14:11:07 +0000 (15:11 +0100)]
mgr/dashboard: frontend/task.service: format task title for progress tasks

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: add progress module tasks to list of dashboard tasks
Ricardo Dias [Mon, 15 Jul 2019 14:08:39 +0000 (15:08 +0100)]
mgr/dashboard: add progress module tasks to list of dashboard tasks

Fixes: https://tracker.ceph.com/issues/38202
Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: progress mgr module service
Ricardo Dias [Mon, 15 Jul 2019 14:07:42 +0000 (15:07 +0100)]
mgr/dashboard: progress mgr module service

This service module implements helper methods to retrieve
tasks information from the progress mgr module.

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/progress: persist started_at and finished_at timestamps
Ricardo Dias [Mon, 15 Jul 2019 14:07:00 +0000 (15:07 +0100)]
mgr/progress: persist started_at and finished_at timestamps

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/progress: export more event properties to json
Ricardo Dias [Mon, 15 Jul 2019 08:46:03 +0000 (09:46 +0100)]
mgr/progress: export more event properties to json

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: Add SSO guard service. 28935/head
Volker Theile [Wed, 17 Jul 2019 09:18:48 +0000 (11:18 +0200)]
mgr/dashboard: Add SSO guard service.

Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agomgr/dashboard: Allow users to change their password on the UI
Volker Theile [Tue, 9 Jul 2019 07:57:44 +0000 (09:57 +0200)]
mgr/dashboard: Allow users to change their password on the UI

Fixes: https://tracker.ceph.com/issues/40248
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #28959 from tchaikov/wip-crimson-op-write
Kefu Chai [Wed, 17 Jul 2019 03:26:43 +0000 (11:26 +0800)]
Merge pull request #28959 from tchaikov/wip-crimson-op-write

crimson/osd: differentiate write from writefull

Reviewed-by: Samuel Just <sjust@redhat.com>
6 years agodoc/releases/nautilus.rst: pool stats fix was merged for 14.2.2 after all
Sage Weil [Wed, 17 Jul 2019 01:21:56 +0000 (20:21 -0500)]
doc/releases/nautilus.rst: pool stats fix was merged for 14.2.2 after all

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #28861 from smanjara/wip-multi-meta
Ali Maredia [Tue, 16 Jul 2019 21:07:14 +0000 (17:07 -0400)]
Merge pull request #28861 from smanjara/wip-multi-meta

rgw/multisite: Don't allow certain radosgw-admin commands to run on non-master zone

6 years agoMerge pull request #28809 from joscollin/wip-fix-rgw-warning
Ali Maredia [Tue, 16 Jul 2019 20:57:51 +0000 (16:57 -0400)]
Merge pull request #28809 from joscollin/wip-fix-rgw-warning

rgw: Silence warning: control reaches end of non-void function

6 years agoMerge PR #28003 into master
Patrick Donnelly [Tue, 16 Jul 2019 20:40:03 +0000 (13:40 -0700)]
Merge PR #28003 into master

* refs/pull/28003/head:
client: do not return EEXIST for mkdirs
pybind/mgr/volumes: print exceptions in purge thread
pybind/mgr/volumes: refactor trash readdir
pybind/mgr/volumes: use existing client provided recursive mkdir
pybind/mgr/volumes: cleanup fs removal
pybind/mgr/subvolumes: use bytes for paths
pybind/mgr/volumes: remove unused property
test: add basic purge queue validation test
mgr / volumes: schedule purge job for volumes on init
mgr / volumes: purge queue for async subvolume delete
mgr / volumes: maintain connection pool for fs volumes
mgr / volumes: wrap rmtree() call within try..except block
mgr / volumes: use negative error codes everywhere
test: cleanup removing all subvolumes before removing subvolume group

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoselinux: Allow ceph to read udev db 29071/head
Boris Ranto [Tue, 16 Jul 2019 17:10:48 +0000 (19:10 +0200)]
selinux: Allow ceph to read udev db

We are using libudev and reading the udev db files because of that. We
need to allow ceph to access these files in the SELinux policy.

Signed-off-by: Boris Ranto <branto@redhat.com>
6 years agoMerge PR #29030 into master
Sage Weil [Tue, 16 Jul 2019 16:31:16 +0000 (11:31 -0500)]
Merge PR #29030 into master

* refs/pull/29030/head:
qa/tasks/ceph_deploy: assume systemd and simplify shutdown wonkiness

Reviewed-by: Alfredo Deza <adeza@redhat.com>
6 years agoMerge pull request #28994 from smithfarm/wip-40645
Ricardo Marques [Tue, 16 Jul 2019 15:48:10 +0000 (16:48 +0100)]
Merge pull request #28994 from smithfarm/wip-40645

build/ops: run "npm ci" with a one-hour timeout

Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoqa/tasks/ceph_deploy: assume systemd and simplify shutdown wonkiness 29030/head
Sage Weil [Fri, 12 Jul 2019 19:06:10 +0000 (14:06 -0500)]
qa/tasks/ceph_deploy: assume systemd and simplify shutdown wonkiness

The 'service' command was succeeding but not actually stopping ceph.  But
we can safely assume systemd now so get rid of the weirdness here.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #28839 into master
Sage Weil [Tue, 16 Jul 2019 15:07:53 +0000 (10:07 -0500)]
Merge PR #28839 into master

* refs/pull/28839/head:
osd: support osd_repair_during_recovery

Reviewed-by: David Zafman <dzafman@redhat.com>
6 years agoMerge PR #28907 into master
Sage Weil [Tue, 16 Jul 2019 15:07:37 +0000 (10:07 -0500)]
Merge PR #28907 into master

* refs/pull/28907/head:
mgr/progress: added the time an event has been in progress
mgr/progress: added the time an event has been in progress
mgr/progress: added the time an event has been in progress
mgr/progress: added the time an event has been in progress

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
6 years agoMerge PR #29027 into master
Sage Weil [Tue, 16 Jul 2019 15:07:02 +0000 (10:07 -0500)]
Merge PR #29027 into master

* refs/pull/29027/head:
common/options: Set concurrent bluestore rocksdb compactions to 2

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoqa/tasks/ceph_manager: make upmap thrasher behave when no pools/pgs 29069/head
Sage Weil [Tue, 16 Jul 2019 15:04:29 +0000 (10:04 -0500)]
qa/tasks/ceph_manager: make upmap thrasher behave when no pools/pgs

Fixes: https://tracker.ceph.com/issues/40635
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agomgr/dashboard: pool: make _get and _wait_for_pgs class methods
Ricardo Dias [Tue, 16 Jul 2019 14:44:59 +0000 (15:44 +0100)]
mgr/dashboard: pool: make _get and _wait_for_pgs class methods

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #28820 from trociny/wip-journal-fetch-corrupt-end
Jason Dillaman [Tue, 16 Jul 2019 14:10:29 +0000 (10:10 -0400)]
Merge pull request #28820 from trociny/wip-journal-fetch-corrupt-end

journal: return error after first corruption detected

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoclient: do not return EEXIST for mkdirs 28003/head
Patrick Donnelly [Tue, 16 Jul 2019 13:52:23 +0000 (06:52 -0700)]
client: do not return EEXIST for mkdirs

Behavior should be similar to `mkdir -p`.

Introduced-by: 26905ca82776e8119a347a9a2e8d65c272c7ed62
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28633 from p-na/wip-pna-refactor-unit-tests
Ricardo Marques [Tue, 16 Jul 2019 13:13:28 +0000 (14:13 +0100)]
Merge pull request #28633 from p-na/wip-pna-refactor-unit-tests

mgr/dashboard: Reduce code duplication through TableActionComponent UnitTests

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #28999 from rafaelquint/bucketstest3
Ricardo Marques [Tue, 16 Jul 2019 13:07:28 +0000 (14:07 +0100)]
Merge pull request #28999 from rafaelquint/bucketstest3

mgr/dashboard: RGW bucket E2E Tests

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Reduce code duplication through TableActionComponent Unit Tests 28633/head
Tiago Melo [Tue, 28 May 2019 17:06:25 +0000 (17:06 +0000)]
mgr/dashboard: Reduce code duplication through TableActionComponent Unit Tests

Fixes: http://tracker.ceph.com/issues/40399
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr/dashboard: E2E Tests for Create, Edit, Delete, and Invalid Input on RGW Buckets 28999/head
Rafael Quintero [Thu, 11 Jul 2019 18:19:44 +0000 (14:19 -0400)]
mgr/dashboard: E2E Tests for Create, Edit, Delete, and Invalid Input on RGW Buckets

Fixes: https://tracker.ceph.com/issues/40372
Fixes: https://tracker.ceph.com/issues/40484
Fixes: https://tracker.ceph.com/issues/40259
Signed-off-by: Adam King <adking@redhat.com>
Signed-off-by: Rafael Quintero <rquinter@redhat.com>
6 years agoMerge pull request #28879 from Devp00l/wip-40580
Ricardo Dias [Tue, 16 Jul 2019 10:48:39 +0000 (11:48 +0100)]
Merge pull request #28879 from Devp00l/wip-40580

mgr/dashboard: Fix the table mouseenter event handling test

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #28916 from p-na/wip-pna-fix-tag
Ricardo Marques [Tue, 16 Jul 2019 10:16:33 +0000 (11:16 +0100)]
Merge pull request #28916 from p-na/wip-pna-fix-tag

mgr/dashboard: Add linter for unclosed HTML tags

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomgr/dashboard: Add missing closing tag for container 28916/head
Patrick Nawracay [Tue, 16 Jul 2019 08:51:07 +0000 (10:51 +0200)]
mgr/dashboard: Add missing closing tag for container

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agoMerge pull request #27463 from rjfd/wip-dashboard-ssl-cert
Ricardo Marques [Tue, 16 Jul 2019 08:25:38 +0000 (09:25 +0100)]
Merge pull request #27463 from rjfd/wip-dashboard-ssl-cert

mgr/dashboard: commands to set SSL certificate and key

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #28213 from sebastian-philipp/orchestrator_cache
Sebastian Wagner [Tue, 16 Jul 2019 08:17:45 +0000 (10:17 +0200)]
Merge pull request #28213 from sebastian-philipp/orchestrator_cache

mgr/orchestrator: Add cache for Inventory and Services

Reviewed-by: Tim Serong <tserong@suse.com>
6 years agopybind/mgr/volumes: print exceptions in purge thread
Patrick Donnelly [Tue, 16 Jul 2019 01:27:31 +0000 (18:27 -0700)]
pybind/mgr/volumes: print exceptions in purge thread

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/mgr/volumes: refactor trash readdir
Patrick Donnelly [Mon, 15 Jul 2019 23:56:32 +0000 (16:56 -0700)]
pybind/mgr/volumes: refactor trash readdir

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/mgr/volumes: use existing client provided recursive mkdir
Patrick Donnelly [Mon, 15 Jul 2019 23:39:50 +0000 (16:39 -0700)]
pybind/mgr/volumes: use existing client provided recursive mkdir

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/mgr/volumes: cleanup fs removal
Patrick Donnelly [Mon, 15 Jul 2019 20:09:06 +0000 (13:09 -0700)]
pybind/mgr/volumes: cleanup fs removal

In Nautilus, the simplest sequence is:

    fs fail name
    fs rm name --yes-i-really-mean-it

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agopybind/mgr/subvolumes: use bytes for paths
Patrick Donnelly [Wed, 10 Jul 2019 23:08:29 +0000 (16:08 -0700)]
pybind/mgr/subvolumes: use bytes for paths

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #28700 from batrick/i39620
Jos Collin [Tue, 16 Jul 2019 04:06:11 +0000 (09:36 +0530)]
Merge pull request #28700 from batrick/i39620

doc/cephfs: improve add/remove MDS section

Reviewed-by: Jos Collin <jcollin@redhat.com>
6 years agoMerge pull request #29033 from neha-ojha/wip-add-yt
Neha Ojha [Mon, 15 Jul 2019 18:31:45 +0000 (11:31 -0700)]
Merge pull request #29033 from neha-ojha/wip-add-yt

doc/dev/developer_guide/index.rst: add youtube references

Reviewed-by: Noah Watkins <nwatkins@redhat.com>
6 years agoMerge pull request #28649 from votdev/issue_40427
Ricardo Marques [Mon, 15 Jul 2019 17:51:16 +0000 (18:51 +0100)]
Merge pull request #28649 from votdev/issue_40427

mgr/dashboard: Pool form uses different loading spinner

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agomon/OSDMonitor: tolerate duplicate MRemoveSnaps messages 29051/head
Sage Weil [Mon, 15 Jul 2019 17:48:40 +0000 (12:48 -0500)]
mon/OSDMonitor: tolerate duplicate MRemoveSnaps messages

Fixes: http://tracker.ceph.com/issues/40774
Signed-off-by: Sage Weil <sage@redhat.com>
6 years agodoc/mgr/dashboard: update SSL configuration instructions 27463/head
Ricardo Dias [Tue, 9 Apr 2019 12:46:34 +0000 (13:46 +0100)]
doc/mgr/dashboard: update SSL configuration instructions

Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agomgr/dashboard: added CLI commands to set SSL certificate and key
Ricardo Dias [Tue, 9 Apr 2019 12:42:57 +0000 (13:42 +0100)]
mgr/dashboard: added CLI commands to set SSL certificate and key

Fixes: https://tracker.ceph.com/issues/39123
Signed-off-by: Ricardo Dias <rdias@suse.com>
6 years agoRevert "mgr/dashboard: Add nolockdep option to e2e-script" 28987/head
Radoslaw Zarzynski [Mon, 15 Jul 2019 14:53:47 +0000 (10:53 -0400)]
Revert "mgr/dashboard: Add nolockdep option to e2e-script"

This reverts commit d92117d8ea7018c533cc422e31c09d7e45a0793a
at the rason for it has been fixed.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: refactor handling of lockdep's group name in debug locks.
Radoslaw Zarzynski [Sat, 13 Jul 2019 00:00:27 +0000 (20:00 -0400)]
common: refactor handling of lockdep's group name in debug locks.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: shared_mutex_debug doesn't use empty group name for lockdep.
Radoslaw Zarzynski [Fri, 12 Jul 2019 16:17:09 +0000 (12:17 -0400)]
common: shared_mutex_debug doesn't use empty group name for lockdep.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon, crypto: give names to OpenSSL's mutexes.
Radoslaw Zarzynski [Fri, 12 Jul 2019 13:44:38 +0000 (09:44 -0400)]
common, crypto: give names to OpenSSL's mutexes.

Fixes: http://tracker.ceph.com/issues/40698
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agocommon: tiny_vector – CPU-friendly container for mutexes & co.
Radoslaw Zarzynski [Tue, 30 Jan 2018 00:01:00 +0000 (01:01 +0100)]
common: tiny_vector – CPU-friendly container for mutexes & co.

Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agomgr/dashboard: Pool form uses different loading spinner 28649/head
Volker Theile [Fri, 5 Jul 2019 08:40:01 +0000 (10:40 +0200)]
mgr/dashboard: Pool form uses different loading spinner

Use the 'cd-loading-panel' element to display the loading progress.

Fixes: https://tracker.ceph.com/issues/40427
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #29043 from votdev/issue_40778
Ricardo Marques [Mon, 15 Jul 2019 14:30:01 +0000 (15:30 +0100)]
Merge pull request #29043 from votdev/issue_40778

mgr/dashboard: Form fields do not show error messages/hints.

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #28951 into master
Patrick Donnelly [Mon, 15 Jul 2019 14:00:46 +0000 (07:00 -0700)]
Merge PR #28951 into master

* refs/pull/28951/head:
mds: apply configuration changes through MDSRank
common/TrackedOp: make settings atomic

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd/heartbeat: use v2 address also 28959/head
Kefu Chai [Mon, 15 Jul 2019 07:49:35 +0000 (15:49 +0800)]
crimson/osd/heartbeat: use v2 address also

as we support v2 protocol, so no need to pick v1 address.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agomessages/MOSDRepOpReply: include necessary header
Kefu Chai [Mon, 15 Jul 2019 04:14:13 +0000 (12:14 +0800)]
messages/MOSDRepOpReply: include necessary header

for accessing the member variables of `MOSDRepOp`, we should include its
header file for its definition.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #28964 from cbodley/wip-qa-workunit-s3tests
Casey Bodley [Mon, 15 Jul 2019 13:14:41 +0000 (09:14 -0400)]
Merge pull request #28964 from cbodley/wip-qa-workunit-s3tests

qa/rgw: update run-s3tests.sh

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
6 years agomgr/dashboard: Add linter for unclosed HTML tags
Patrick Nawracay [Mon, 8 Jul 2019 09:42:45 +0000 (11:42 +0200)]
mgr/dashboard: Add linter for unclosed HTML tags

Fixes: http://tracker.ceph.com/issues/40686
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
6 years agomgr/dashboard: Form fields do not show error messages/hints. 29043/head
Volker Theile [Mon, 15 Jul 2019 10:09:57 +0000 (12:09 +0200)]
mgr/dashboard: Form fields do not show error messages/hints.

Fixes: https://tracker.ceph.com/issues/40778
Signed-off-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #28682 from cyx1231st/wip-seastar-msgr-socket2
Kefu Chai [Mon, 15 Jul 2019 07:46:13 +0000 (15:46 +0800)]
Merge pull request #28682 from cyx1231st/wip-seastar-msgr-socket2

crimson/net: implement preemptive shutdown/close

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: an MOSDOp should be waiting for min_epoch
Kefu Chai [Fri, 12 Jul 2019 06:48:37 +0000 (14:48 +0800)]
crimson/osd: an MOSDOp should be waiting for min_epoch

for MOSDOp, get_min_epoch() is an alias of get_map_epoch(), but
get_min_epoch() is symantically more correct.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agocrimson/osd: add a dedicate code path for WRITE
Kefu Chai [Wed, 10 Jul 2019 12:07:36 +0000 (20:07 +0800)]
crimson/osd: add a dedicate code path for WRITE

differentiate WRITE from WRITEALL.
and handles differnt cases of `os.oi.truncate_seq` caused by
`write_trunc` and/or `trunc` ops.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agotest_volume_client: add positive test for ceph_volume_client method 28692/head
Rishabh Dave [Fri, 21 Jun 2019 10:36:01 +0000 (16:06 +0530)]
test_volume_client: add positive test for ceph_volume_client method

ceph_volume_client.py's put_object_versioned() has only one test. Since
this only test is a negative test it may fail to assure that
put_object_versioned() works as expected with positive inputs even when
it completes successfully. Therefore, write a positive test for better
coverage.

Also, make sure the new test is both python 2 and python3 compatible.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agotest_volume_client: rename test_put_object_versioned()
Rishabh Dave [Fri, 21 Jun 2019 10:33:54 +0000 (16:03 +0530)]
test_volume_client: rename test_put_object_versioned()

test_put_object_versioned() is too generic for a negative test that
specifically tests if the version is verified before writing.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agotest_volume_client: rewrite test_put_object_versioned
Rishabh Dave [Fri, 21 Jun 2019 10:13:07 +0000 (15:43 +0530)]
test_volume_client: rewrite test_put_object_versioned

The test's success depends on whether CommandFailedError exception is
raised. This manner of testing is unreliable since there's no way to
check if the exception was raised by the statement (in the embedded
Python program) the test expects to.

This implies that this test's failure may go undetected. This is primary
reason why bugs like tracker #38946 occured despite of having a test.

Fixes: http://tracker.ceph.com/issues/39510
Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agotest_volume_client: use sudo_write_file() form teuthology
Rishabh Dave [Tue, 9 Jul 2019 14:26:40 +0000 (19:56 +0530)]
test_volume_client: use sudo_write_file() form teuthology

Instead of defining another method to write a file as root user in
test_volume_client.py, use the method from teuthology/misc.py.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agotest_volume_client: make test_object_versioned py3 compatible
Rishabh Dave [Fri, 21 Jun 2019 09:26:49 +0000 (14:56 +0530)]
test_volume_client: make test_object_versioned py3 compatible

Convert strings to bytes in the Python program embedded inside this
test. Also, in the process don't lose Python 2 compatibility.

Fixes: http://tracker.ceph.com/issues/39405
Signed-off-by: Rishabh Dave <ridave@redhat.com>
6 years agoMerge PR #26104 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:18:02 +0000 (17:18 -0700)]
Merge PR #26104 into master

* refs/pull/26104/head:
client/Client: change dir's size delta to current write file size delta

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28683 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:16:53 +0000 (17:16 -0700)]
Merge PR #28683 into master

* refs/pull/28683/head:
mon/MDSMonitor: use stringstream instead of dout for mds repaired

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28710 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:16:02 +0000 (17:16 -0700)]
Merge PR #28710 into master

* refs/pull/28710/head:
cephfs-shell: Remove undefined variable files in do_rm()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #28831 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:15:01 +0000 (17:15 -0700)]
Merge PR #28831 into master

* refs/pull/28831/head:
client: support the fallocate() when fuse version >= 2.9

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #28906 into master
Patrick Donnelly [Sat, 13 Jul 2019 00:14:20 +0000 (17:14 -0700)]
Merge PR #28906 into master

* refs/pull/28906/head:
cephfs-shell: Fix TypeError in poutput()

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomds: apply configuration changes through MDSRank 28951/head
Patrick Donnelly [Mon, 8 Jul 2019 17:30:26 +0000 (10:30 -0700)]
mds: apply configuration changes through MDSRank

This avoids the need to acquire the mds_lock prior to responding to config
changes. The MDSRank can create a finisher context that acquires the lock
later.

Fixes: https://tracker.ceph.com/issues/40694
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agocommon/TrackedOp: make settings atomic
Patrick Donnelly [Mon, 8 Jul 2019 19:42:18 +0000 (12:42 -0700)]
common/TrackedOp: make settings atomic

To avoid locks on configuration changes.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>