]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
5 years agomgr/dashboard: Fix error when listing RBD while deleting or moving 34120/head
Tiago Melo [Mon, 23 Mar 2020 13:40:19 +0000 (12:40 -0100)]
mgr/dashboard: Fix error when listing RBD while deleting or moving

This fix is based on a commit made to octopus, that fixed this problem in
octopus/master: 5627919c016785a27666b1992d336f8ff378a072.

Since the codebase is very different and a backport is not recommended or even
possible, I have created this commit with only the minimal code necessary.

Fixes: https://tracker.ceph.com/issues/42330
Signed-off-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #33738 from rhcs-dashboard/wip-44434-nautilus
Yuri Weinstein [Sun, 22 Mar 2020 20:21:25 +0000 (13:21 -0700)]
Merge pull request #33738 from rhcs-dashboard/wip-44434-nautilus

nautilus: vstart.sh: set prometheus port for each mgr.

Reviewed-by: David Zafman <dzafman@redhat.com>
5 years agoMerge pull request #33530 from thmour/nautilus_test
Yuri Weinstein [Sun, 22 Mar 2020 20:20:46 +0000 (13:20 -0700)]
Merge pull request #33530 from thmour/nautilus_test

nautilus: osd: fix racy accesses to OSD::osdmap.

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
5 years agoMerge pull request #34064 from smithfarm/wip-44145-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 20:43:38 +0000 (13:43 -0700)]
Merge pull request #34064 from smithfarm/wip-44145-nautilus

nautilus: rgw: set correct storage class for append

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33913 from shyukri/wip-42324-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 20:43:00 +0000 (13:43 -0700)]
Merge pull request #33913 from shyukri/wip-42324-nautilus

nautilus: qa: get rid of iterkeys for py3 compatibility

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33649 from k0ste/wip-44364-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 20:42:04 +0000 (13:42 -0700)]
Merge pull request #33649 from k0ste/wip-44364-nautilus

nautilus: mgr/telemetry: fix and document proxy usage

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33421 from k0ste/wip-44218-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 20:41:00 +0000 (13:41 -0700)]
Merge pull request #33421 from k0ste/wip-44218-nautilus

nautilus: common/blkdev: fix some problems with smart scraping

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33420 from k0ste/wip-44219-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 20:04:20 +0000 (13:04 -0700)]
Merge pull request #33420 from k0ste/wip-44219-nautilus

nautilus: mgr/pg_autoscaler: fix division by zero

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
5 years agoMerge pull request #33409 from k0ste/wip-44199-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 20:03:11 +0000 (13:03 -0700)]
Merge pull request #33409 from k0ste/wip-44199-nautilus

nautilus: mgr/telemetry: add 'last_upload' to status

Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33355 from shyukri/wip-44141-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 20:00:36 +0000 (13:00 -0700)]
Merge pull request #33355 from shyukri/wip-44141-nautilus

nautilus: rgw: sts: add all http args to req_info

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
5 years agoMerge pull request #33893 from rhcs-dashboard/wip-44200-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 19:43:14 +0000 (12:43 -0700)]
Merge pull request #33893 from rhcs-dashboard/wip-44200-nautilus

nautilus: mgr: Add get_rates_from_data to mgr_util.py

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
5 years agoMerge pull request #33275 from smithfarm/wip-44081-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 19:42:34 +0000 (12:42 -0700)]
Merge pull request #33275 from smithfarm/wip-44081-nautilus

nautilus: mon/PGMap: fix summary display of >32bit pg states

Reviewed-by: Kefu Chai <kchai@redhat.com>
5 years agoMerge pull request #33261 from smithfarm/wip-43997-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 19:41:59 +0000 (12:41 -0700)]
Merge pull request #33261 from smithfarm/wip-43997-nautilus

nautilus: global: ensure CEPH_ARGS is decoded before early arg processing

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
5 years agoMerge pull request #33032 from shyukri/wip-42164-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 19:41:10 +0000 (12:41 -0700)]
Merge pull request #33032 from shyukri/wip-42164-nautilus

nautilus: mgr/dashboard: REST API: OpenAPI docs require internet connection

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
5 years agoMerge pull request #32891 from shyukri/wip-42673-nautilus
Yuri Weinstein [Fri, 20 Mar 2020 19:40:17 +0000 (12:40 -0700)]
Merge pull request #32891 from shyukri/wip-42673-nautilus

nautilus: mgr/dashboard: Searchable objects for table

Reviewed-by: Stephan Müller <smueller@suse.com>
5 years agoMerge pull request #34087 from jdurgin/wip-target-ratio-nautilus
Neha Ojha [Fri, 20 Mar 2020 19:10:45 +0000 (12:10 -0700)]
Merge pull request #34087 from jdurgin/wip-target-ratio-nautilus

nautilus: mgr/pg_autoscaler: treat target ratios as weights

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoPendingReleaseNotes: mention target_size_ratio change 34087/head
Josh Durgin [Sat, 1 Feb 2020 20:28:33 +0000 (15:28 -0500)]
PendingReleaseNotes: mention target_size_ratio change

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 9118065c4c3803f8a2c26c28c69ffc9f14ff260a)

5 years agoMerge pull request #34036 from ajarr/nautilus-volumes-cancel-clone
Gregory Farnum [Thu, 19 Mar 2020 21:12:36 +0000 (14:12 -0700)]
Merge pull request #34036 from ajarr/nautilus-volumes-cancel-clone

nautilus: fs subvolume clone cancel

Reviewed-by: Venky Shankar <vshankar@redhat.com>
5 years agodoc: update autoscaler docs for target ratio
Josh Durgin [Sat, 1 Feb 2020 20:27:37 +0000 (15:27 -0500)]
doc: update autoscaler docs for target ratio

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 0a29cf7d6c9076c79416ef7868be3635921fd140)

5 years agomgr/pg_autoscaler: include effective target ratio in status
Josh Durgin [Sat, 1 Feb 2020 20:22:50 +0000 (15:22 -0500)]
mgr/pg_autoscaler: include effective target ratio in status

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 9758197afa856f3680d5b5d599c79353816e9927)

5 years agomgr/pg_autoscaler: add warning when target bytes and ratio are both set
Josh Durgin [Sat, 1 Feb 2020 19:59:13 +0000 (14:59 -0500)]
mgr/pg_autoscaler: add warning when target bytes and ratio are both set

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 772d7c1d3c1adf49821670da0f6cdb06e293dc0d)

5 years agomgr/pg_autoscaler: remove target ratio warning
Josh Durgin [Sat, 1 Feb 2020 19:41:32 +0000 (14:41 -0500)]
mgr/pg_autoscaler: remove target ratio warning

Since the ratios are normalized, they cannot exceed 1.0 or overcommit
combined with target_bytes.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit d62c121ee3839a2fd4243a9b1c33aded1cc3db13)

5 years agoqa: use ratios >1 in pg_autoscaler test
Josh Durgin [Sun, 2 Feb 2020 21:22:04 +0000 (16:22 -0500)]
qa: use ratios >1 in pg_autoscaler test

Also check for pg_num_target being set correctly, rather than pg_num,
so the test doesn't depend on merging/splitting speed.

Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 1ea8ce3480e96aa87b4d4f570022f9844bc54c17)

5 years agomgr/pg_autoscaler: treat target ratios as weights
Josh Durgin [Sat, 1 Feb 2020 04:31:40 +0000 (23:31 -0500)]
mgr/pg_autoscaler: treat target ratios as weights

Normalize across pools so that it's simpler to use - this way you
don't have to adjust every other pool when you add one.

Handle pools with target_bytes by taking their capacity off the top,
and dividing the rest into the pools with a target_ratio.

If both target bytes and ratio are specified, ignore bytes. This
matches the docs and makes accounting simpler.

Fixes: https://tracker.ceph.com/issues/43947
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
(cherry picked from commit 435c56a03b7424b23fe977a13c4704304189e829)

5 years agoMerge pull request #33978 from yuvalif/wip-yuval-fix-44614
Yuri Weinstein [Thu, 19 Mar 2020 19:39:25 +0000 (12:39 -0700)]
Merge pull request #33978 from yuvalif/wip-yuval-fix-44614

nautilus: rgw/notifications: fix topic action fail with "MethodNotAllowed"

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Pritha Srivastava <prsrivas@redhat.com>
5 years agoMerge pull request #33965 from smithfarm/wip-44466-nautilus
Yuri Weinstein [Thu, 19 Mar 2020 19:38:38 +0000 (12:38 -0700)]
Merge pull request #33965 from smithfarm/wip-44466-nautilus

nautilus: rgw: get barbican secret key request maybe return error code

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33666 from yaarith/nautilus-fix-uuid-str-concat
Yuri Weinstein [Thu, 19 Mar 2020 18:10:51 +0000 (11:10 -0700)]
Merge pull request #33666 from yaarith/nautilus-fix-uuid-str-concat

nautilus: mgr/telemetry: fix UUID and STR concat

Reviewed-by: Sage Weil <sage@redhat.com>
5 years agoMerge pull request #33560 from liewegas/workaround-43914-nautilus
Nathan Cutler [Thu, 19 Mar 2020 16:43:57 +0000 (17:43 +0100)]
Merge pull request #33560 from liewegas/workaround-43914-nautilus

nautilus: qa/tasks/ceph_manager: increase CLI command timeout

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agorgw: set correct storage class for append 34064/head
yuliyang [Wed, 23 Oct 2019 13:39:44 +0000 (21:39 +0800)]
rgw: set correct storage class for append

fix https://tracker.ceph.com/issues/42444

Signed-off-by: yuliyang <yuliyang@cmss.chinamobile.com>
(cherry picked from commit ef3ec2e56236fb031ddd4404121449c656a62481)

Conflicts:
src/rgw/rgw_putobj_processor.cc
- cur_manifest assignment looks different in nautilus

5 years agodoc: document `clone cancel` command 34036/head
Venky Shankar [Tue, 25 Feb 2020 07:29:54 +0000 (02:29 -0500)]
doc: document `clone cancel` command

Fixes: http://tracker.ceph.com/issues/44208
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 60105f6101d2370f34c2d758e1452acddf962075)

5 years agotest: add `clone cancel` tests
Venky Shankar [Tue, 4 Feb 2020 10:02:56 +0000 (05:02 -0500)]
test: add `clone cancel` tests

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit ba4b9358e125eb44f621a4087f46d13636d73d20)

5 years agomgr/volumes: introduce "clone cancel" volume command
Venky Shankar [Tue, 14 Jan 2020 09:20:50 +0000 (04:20 -0500)]
mgr/volumes: introduce "clone cancel" volume command

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit a427c7074ce92e6e832566e0afd43c8d7d8e2770)

5 years agomgr/volumes: allow canceling a single asynchronous job for a volume
Venky Shankar [Tue, 14 Jan 2020 09:19:42 +0000 (04:19 -0500)]
mgr/volumes: allow canceling a single asynchronous job for a volume

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 89a16c7867415085dd20c06d87e97bfa7de34fb2)

5 years agomgr/volumes: helper for looking up a clone entry index
Venky Shankar [Tue, 14 Jan 2020 09:10:22 +0000 (04:10 -0500)]
mgr/volumes: helper for looking up a clone entry index

... this would be used when canceling a clone operation to
find the clone index for a given clone.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 2dc41ea2db423b1e8178d41ce2fef6ca0eeccf32)

5 years agomgr/volumes: periodically check if clone operations should be canceled
Venky Shankar [Wed, 8 Jan 2020 06:07:03 +0000 (01:07 -0500)]
mgr/volumes: periodically check if clone operations should be canceled

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 2f93b3beb421f6be4611ffab8d1fb7fbe3fb856c)

5 years agomgr/volumes: periodically check if copy operations should be canceled
Venky Shankar [Wed, 8 Jan 2020 06:00:20 +0000 (01:00 -0500)]
mgr/volumes: periodically check if copy operations should be canceled

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 9a0507acb62249e904d54c5ed11ef106f3239bd8)

5 years agomgr/volumes: introduce 'canceled' state in clone op state machine
Venky Shankar [Tue, 14 Jan 2020 09:13:16 +0000 (04:13 -0500)]
mgr/volumes: introduce 'canceled' state in clone op state machine

When fetching the next execution state, -EINTR jumps to 'canceled'
state signifying a canceled (interrupted) operation. Also include
a helper routine to check if a given state machine is in initial
state.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit ac9d697b1cdb93b4c7e532727b482cece3674155)

5 years agomgr/volumes: OpSmException.error -> OpSmException.errno
Michael Fritch [Tue, 3 Mar 2020 15:22:57 +0000 (08:22 -0700)]
mgr/volumes: OpSmException.error -> OpSmException.errno

fixes mypy errors:

volumes/fs/async_cloner.py: note: In function "handle_clone_pending":
volumes/fs/async_cloner.py:71: error: "OpSmException" has no attribute "error"; maybe "errno"?

volumes/fs/async_cloner.py: note: In function "handle_clone_in_progress":
volumes/fs/async_cloner.py:139: error: "OpSmException" has no attribute "error"; maybe "errno"?

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 7fa4da445650fd4a9f799c48ba513cb6f1a0d26c)

5 years agomgr/volumes: remove unneeded assignment to `NoneType`
Michael Fritch [Tue, 3 Mar 2020 15:22:48 +0000 (08:22 -0700)]
mgr/volumes: remove unneeded assignment to `NoneType`

fixes mypy error:

volumes/fs/operations/versions/__init__.py: note: In member "get_subvolume_object" of class "SubvolumeLoader":
volumes/fs/operations/versions/__init__.py:70: error: Incompatible types in assignment (expression has type "None", variable has type "SubvolumeBase")

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit a09af07cb69fbca68f08b5740036cf52aa6f3c27)

5 years agomgr/volumes: add missing OpSmException import
Michael Fritch [Tue, 3 Mar 2020 15:21:59 +0000 (08:21 -0700)]
mgr/volumes: add missing OpSmException import

fixes mypy error:

volumes/fs/operations/versions/__init__.py: note: In member "upgrade_legacy_subvolume" of class "SubvolumeLoader":
volumes/fs/operations/versions/__init__.py:56: error: Name 'OpSmException' is not defined

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit d5c1a7cbd5e800950495b4e70a83a8becf2f0abd)

5 years agomgr/volumes: add missing error code
Michael Fritch [Tue, 3 Mar 2020 15:21:54 +0000 (08:21 -0700)]
mgr/volumes: add missing error code

fixes mypy error:

volumes/fs/operations/versions/__init__.py: note: In member "_load_supported_versions" of class "SubvolumeLoader":
volumes/fs/operations/versions/__init__.py:35: error: Too few arguments for "VolumeException"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 22b4cb9405051b6ea17f76dac85a117b1ab34a41)

5 years agomgr/volumes: remove stray return
Michael Fritch [Tue, 3 Mar 2020 15:21:49 +0000 (08:21 -0700)]
mgr/volumes: remove stray return

fixes mypy errors:

volumes/fs/purge_queue.py: note: In function "get_trash_entry_for_volume":
volumes/fs/purge_queue.py:28: error: Name 'ret' is not defined

volumes/fs/async_cloner.py: note: In function "get_next_clone_entry":
volumes/fs/async_cloner.py:39: error: Name 'ret' is not defined

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 760a5918398626c956f22017a6513c7a70ac359a)

5 years agomgr/volumes: fixup format string args
Michael Fritch [Tue, 3 Mar 2020 15:21:36 +0000 (08:21 -0700)]
mgr/volumes: fixup format string args

fixes mypy errors:

volumes/fs/purge_queue.py:26: error: Cannot find replacement for positional format specifier 1
volumes/fs/async_cloner.py:37: error: Cannot find replacement for positional format specifier 1

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 85e57a64cbdb1e5a072e16f3f0f8015787a5abd3)

5 years agomgr/volumes: add missing `mgr` param
Michael Fritch [Tue, 3 Mar 2020 15:21:30 +0000 (08:21 -0700)]
mgr/volumes: add missing `mgr` param

fixes mypy errors:

volumes/fs/operations/volume.py: note: In function "create_volume":
volumes/fs/operations/volume.py:216: error: Too few arguments for "remove_pool"
volumes/fs/operations/volume.py:223: error: Too few arguments for "remove_pool"
volumes/fs/operations/volume.py:224: error: Too few arguments for "remove_pool"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit a3b61a357730e0834ded4e6c47be0998bc4ea472)

5 years agomgr/volumes: assert self.fs
Michael Fritch [Tue, 3 Mar 2020 15:21:25 +0000 (08:21 -0700)]
mgr/volumes: assert self.fs

fixes mypy errors:

volumes/fs/operations/volume.py: note: In member "disconnect" of class "Connection":
volumes/fs/operations/volume.py:94: error: Item "None" of "Optional[Any]" has no attribute "get_addrs"
volumes/fs/operations/volume.py:95: error: Item "None" of "Optional[Any]" has no attribute "shutdown"

volumes/fs/operations/volume.py: note: In member "abort" of class "Connection":
volumes/fs/operations/volume.py:105: error: Item "None" of "Optional[Any]" has no attribute "abort_conn"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit cd97420965b4fb33f2048826c708283b5e116a97)

5 years agomgr/volumes: fixup threading.Timer import
Michael Fritch [Tue, 3 Mar 2020 15:20:09 +0000 (08:20 -0700)]
mgr/volumes: fixup threading.Timer import

Python 3.3 changed `Timer` from a factory function to a class
https://docs.python.org/3.8/library/threading.html#timer-objects

fixes mypy error:

volumes/fs/operations/volume.py:9: error: Module 'threading' has no attribute '_Timer'; maybe "Timer"?

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit a611864dae86fcee9ea9cb9725aa26318396b55e)

5 years agomgr/volumes: fix positional str formatting
Michael Fritch [Tue, 3 Mar 2020 15:20:01 +0000 (08:20 -0700)]
mgr/volumes: fix positional str formatting

fixes mypy error:

volumes/fs/operations/group.py: note: In function "create_group":
volumes/fs/operations/group.py:135: error: Not all arguments converted during string formatting

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit f46b5059e635228f07dd5fe593f2d7454c3aa67b)

5 years agomgr/volumes: place getters and setters next to each other
Michael Fritch [Tue, 3 Mar 2020 15:19:53 +0000 (08:19 -0700)]
mgr/volumes: place getters and setters next to each other

workaround for mypy issue:
https://github.com/python/mypy/issues/1465

fixes mypy errors:

volumes/fs/operations/group.py: note: In class "Group":
volumes/fs/operations/group.py:44: error: Name 'uid' already defined on line 36
volumes/fs/operations/group.py:44: error: "Callable[[Group], Any]" has no attribute "setter"
volumes/fs/operations/group.py:48: error: Name 'gid' already defined on line 40
volumes/fs/operations/group.py:48: error: "Callable[[Group], Any]" has no attribute "setter"

volumes/fs/operations/group.py: note: In function "open_group":
volumes/fs/operations/group.py:170: error: Property "uid" defined in "Group" is read-only
volumes/fs/operations/group.py:171: error: Property "gid" defined in "Group" is read-only

volumes/fs/operations/versions/subvolume_base.py: note: In class "SubvolumeBase":
volumes/fs/operations/versions/subvolume_base.py:45: error: Name 'uid' already defined on line 33
volumes/fs/operations/versions/subvolume_base.py:45: error: "Callable[[SubvolumeBase], Any]" has no attribute "setter"
volumes/fs/operations/versions/subvolume_base.py:49: error: Name 'gid' already defined on line 37
volumes/fs/operations/versions/subvolume_base.py:49: error: "Callable[[SubvolumeBase], Any]" has no attribute "setter"
volumes/fs/operations/versions/subvolume_base.py:53: error: Name 'mode' already defined on line 41
volumes/fs/operations/versions/subvolume_base.py:53: error: "Callable[[SubvolumeBase], Any]" has no attribute "setter"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 6a04ecdc9cb76f87a8e2c54a17d590b20037ef3f)

5 years agomgr/volumes: reverse params passed to `isinstace()`
Michael Fritch [Tue, 3 Mar 2020 15:18:43 +0000 (08:18 -0700)]
mgr/volumes: reverse params passed to `isinstace()`

fixes mypy error:

volumes/fs/operations/clone_index.py: note: In member "track" of class "CloneIndex":
volumes/fs/operations/clone_index.py:38: error: Argument 2 to "isinstance" has incompatible type "Union[VolumeException, Any]"; expected "Union[type, Tuple[Union[type, Tuple[Any, ...]], ...]]"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 896448324f35bb1c307baff46e67a05d5d23e83b)

5 years agomgr/volumes: fix arg typo '.' -> ','
Michael Fritch [Tue, 3 Mar 2020 15:18:36 +0000 (08:18 -0700)]
mgr/volumes: fix arg typo '.' -> ','

fixes mypy error:

volumes/fs/fs_util.py: note: In function "get_ancestor_xattr":
volumes/fs/fs_util.py:129: error: Too few arguments for "VolumeException"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit e2516a480679090a27de3401410d4f9a85cae8d2)

5 years agomgr/volumes: `threading.Event.isSet` no longer exists in py3
Michael Fritch [Tue, 3 Mar 2020 15:18:11 +0000 (08:18 -0700)]
mgr/volumes: `threading.Event.isSet` no longer exists in py3

fixes mypy errors:

volumes/fs/async_job.py: note: In member "should_cancel" of class "JobThread":
volumes/fs/async_job.py:70: error: "Event" has no attribute "isSet"

volumes/fs/volume.py: note: In member "is_stopping" of class "VolumeClient":
volumes/fs/volume.py:59: error: "Event" has no attribute "isSet"

volumes/fs/volume.py: note: In member "list_fs_volumes" of class "VolumeClient":
volumes/fs/volume.py:106: error: "Event" has no attribute "isSet"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit aaed49a142722089f8a24ceb8b846b7c1c51d5f6)

5 years agomgr/volumes: assert JobThread class
Michael Fritch [Tue, 3 Mar 2020 15:16:11 +0000 (08:16 -0700)]
mgr/volumes: assert JobThread class

fixes mypy error:

volumes/fs/async_job.py: note: In member "run" of class "JobThread":
volumes/fs/async_job.py:43: error: "Thread" has no attribute "should_cancel"

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 6907c440e1350e4088c0562bffcc08439633298f)

5 years agomgr/volumes: import VolumeException
Michael Fritch [Tue, 3 Mar 2020 15:16:03 +0000 (08:16 -0700)]
mgr/volumes: import VolumeException

fixes mypy errors:

volumes/fs/operations/index.py: note: In member "track" of class "Index":
volumes/fs/operations/index.py:19: error: Name 'VolumeException' is not defined

volumes/fs/operations/index.py: note: In member "untrack" of class "Index":
volumes/fs/operations/index.py:22: error: Name 'VolumeException' is not defined

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 5b9d5e2e43e3d2e2d391e9bce2328868a6159e53)

5 years agomgr/volumes: use `SafeConfigParser` with py2
Michael Fritch [Tue, 3 Mar 2020 15:15:57 +0000 (08:15 -0700)]
mgr/volumes: use `SafeConfigParser` with py2

Python3.2 renamed `SafeConfigParser` -> `ConfigParser`

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 23efb9240ea6187386677e262dab7f87e1dbac42)

5 years agomgr/volumes: use python version during configparser import
Michael Fritch [Tue, 3 Mar 2020 15:15:50 +0000 (08:15 -0700)]
mgr/volumes: use python version during configparser import

fixes mypy error:

volumes/fs/operations/versions/metadata_manager.py:8: error: Name 'configparser' already defined (by an import)

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit f213b646db883e4d9899d5ecb51f7ac591237901)

5 years agoMerge pull request #33927 from rhcs-dashboard/wip-44574-nautilus
Lenz Grimmer [Thu, 19 Mar 2020 09:31:41 +0000 (10:31 +0100)]
Merge pull request #33927 from rhcs-dashboard/wip-44574-nautilus

nautilus:  mgr/dashboard: Dashboard does not allow you to set norebalance OSD flag

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
5 years agoMerge pull request #33751 from batrick/i44291
Gregory Farnum [Thu, 19 Mar 2020 03:15:17 +0000 (20:15 -0700)]
Merge pull request #33751 from batrick/i44291

nautilus: mds: SIGSEGV in Migrator::export_sessions_flushed

Reviewed-by: Zheng Yan <zyan@redhat.com>
5 years agomgr/volumes: import errno
Michael Fritch [Tue, 3 Mar 2020 15:15:37 +0000 (08:15 -0700)]
mgr/volumes: import errno

fixes mypy errors:

volumes/fs/operations/op_sm.py:36: error: Name 'errno' is not defined
volumes/fs/operations/op_sm.py:39: error: Name 'errno' is not defined
volumes/fs/operations/op_sm.py:46: error: Name 'errno' is not defined
volumes/fs/operations/op_sm.py:49: error: Name 'errno' is not defined
volumes/fs/operations/template.py:5: error: Name 'errno' is not defined
volumes/fs/operations/template.py:14: error: Name 'errno' is not defined
volumes/fs/operations/template.py:23: error: Name 'errno' is not defined
volumes/fs/operations/template.py:32: error: Name 'errno' is not defined
volumes/fs/operations/template.py:42: error: Name 'errno' is not defined
volumes/fs/operations/template.py:45: error: Name 'errno' is not defined
volumes/fs/operations/template.py:62: error: Name 'errno' is not defined
volumes/fs/operations/template.py:74: error: Name 'errno' is not defined
volumes/fs/operations/template.py:85: error: Name 'errno' is not defined
volumes/fs/operations/template.py:94: error: Name 'errno' is not defined
volumes/fs/operations/template.py:103: error: Name 'errno' is not defined
volumes/fs/operations/template.py:112: error: Name 'errno' is not defined
volumes/fs/operations/template.py:121: error: Name 'errno' is not defined
volumes/fs/operations/template.py:130: error: Name 'errno' is not defined
volumes/fs/operations/template.py:139: error: Name 'errno' is not defined
volumes/fs/operations/template.py:148: error: Name 'errno' is not defined
volumes/fs/operations/template.py:158: error: Name 'errno' is not defined
volumes/fs/operations/template.py:169: error: Name 'errno' is not defined
volumes/fs/operations/template.py:180: error: Name 'errno' is not defined
volumes/fs/operations/index.py:18: error: Name 'errno' is not defined
volumes/fs/operations/index.py:21: error: Name 'errno' is not defined

Fixes: https://tracker.ceph.com/issues/44393
Signed-off-by: Michael Fritch <mfritch@suse.com>
(cherry picked from commit 8478b72dc3706190993bc2dcf29667805b791e26)

5 years agoMerge pull request #33722 from jan--f/wip-44331-nautilus
Jan Fajerski [Wed, 18 Mar 2020 14:25:51 +0000 (15:25 +0100)]
Merge pull request #33722 from jan--f/wip-44331-nautilus

nautilus: ceph-volume: strip _dmcrypt suffix in simple scan json output

5 years agoceph-volume: strip _dmcrypt suffix in simple scan json output 33722/head
Jan Fajerski [Wed, 5 Feb 2020 05:01:16 +0000 (06:01 +0100)]
ceph-volume: strip _dmcrypt suffix in simple scan json output

LUKS encrypted OSDs name their block* files with a _dmcrypt suffix.
activate fails on json files like this. Stripping this suffix in scan
fixes this.

Fixes: https://tracker.ceph.com/issues/43966
Signed-off-by: Jan Fajerski <jfajerski@suse.com>
(cherry picked from commit 2ddf76d118d77659c590ea076d34ce9a8e351a86)

5 years agoMerge pull request #33391 from jan--f/c-v-nautilus-func-tests
Jan Fajerski [Wed, 18 Mar 2020 12:01:57 +0000 (13:01 +0100)]
Merge pull request #33391 from jan--f/c-v-nautilus-func-tests

nautilus: ceph-volume: fix nautilus functional tests

5 years agorgw/notifications: fix topic action fail with "MethodNotAllowed" 33978/head
Yuval Lifshitz [Sun, 15 Mar 2020 12:19:52 +0000 (14:19 +0200)]
rgw/notifications: fix topic action fail with "MethodNotAllowed"

Note that this ommit cannot be cherry-picked from master because it's fixing a
regression introduced by a backport which went into 14.2.8.

Fixes: 33bb1bad74234b913a82bb3773022113b02ffa75
Fixes: http://tracker.ceph.com/issues/44614
Signed-off-by: Yuval Lifshitz <yuvalif@yahoo.com>
5 years agoMerge pull request #34008 from smithfarm/wip-44641-nautilus
Nathan Cutler [Wed, 18 Mar 2020 07:42:15 +0000 (08:42 +0100)]
Merge pull request #34008 from smithfarm/wip-44641-nautilus

nautilus: do_cmake.sh: fix application of -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF

Reviewed-by: Thomas Bechtold <tbechtold@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
5 years agoMerge pull request #33877 from ajarr/wip-sync-attrs-nautilus
Gregory Farnum [Wed, 18 Mar 2020 07:24:44 +0000 (00:24 -0700)]
Merge pull request #33877 from ajarr/wip-sync-attrs-nautilus

nautilus: mgr/volumes: synchronize ownership (for symlinks) and inode timestamps for cloned subvolumes

Reviewed-by: Venky Shankar <vshankar@redhat.com>
5 years agoMerge pull request #33820 from rzarzynski/wip-43808-nautilus
Yuri Weinstein [Tue, 17 Mar 2020 18:31:44 +0000 (11:31 -0700)]
Merge pull request #33820 from rzarzynski/wip-43808-nautilus

nautilus: msgr: backport the EventCenter-related fixes

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #33834 from tchaikov/nautilus-44524
Yuri Weinstein [Tue, 17 Mar 2020 18:21:59 +0000 (11:21 -0700)]
Merge pull request #33834 from tchaikov/nautilus-44524

nautilus: mgr: update "hostname" when we already have the daemon state from that entity

Reviewed-by: Neha Ojha <nojha@redhat.com>
5 years agoMerge pull request #33716 from tchaikov/nautilus-43747
Yuri Weinstein [Tue, 17 Mar 2020 18:21:27 +0000 (11:21 -0700)]
Merge pull request #33716 from tchaikov/nautilus-43747

nautilus: cmake: Improve test for 16-byte atomic support on IBM Z

Reviewed-by: Nathan Cutler <ncutler@suse.com>
5 years agoMerge pull request #33234 from rhcs-dashboard/wip-44095-nautilus
Yuri Weinstein [Tue, 17 Mar 2020 18:20:48 +0000 (11:20 -0700)]
Merge pull request #33234 from rhcs-dashboard/wip-44095-nautilus

nautilus: mgr/dashboard: Use booleanText pipe

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #33749 from cbodley/wip-44444
Yuri Weinstein [Tue, 17 Mar 2020 18:17:00 +0000 (11:17 -0700)]
Merge pull request #33749 from cbodley/wip-44444

nautilus: rgw: making implicit_tenants backwards compatible.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
5 years agoMerge pull request #33503 from sseshasa/wip-44259-nautilus
Yuri Weinstein [Tue, 17 Mar 2020 18:16:12 +0000 (11:16 -0700)]
Merge pull request #33503 from sseshasa/wip-44259-nautilus

nautilus: osd/OSD: Log slow ops/types to cluster logs

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Vikhyat Umrao <vikhyat@redhat.com>
5 years agoMerge pull request #33295 from mchangir/wip-42441-nautilus
Gregory Farnum [Tue, 17 Mar 2020 14:49:15 +0000 (07:49 -0700)]
Merge pull request #33295 from mchangir/wip-42441-nautilus

nautilus: mds: add configurable snapshot limit

Reviewed-by: Raman Raja <rraja@redhat.com>
5 years agodo_cmake.sh: fix application of -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF 34008/head
Nathan Cutler [Tue, 17 Mar 2020 14:39:24 +0000 (15:39 +0100)]
do_cmake.sh: fix application of -DWITH_RADOSGW_KAFKA_ENDPOINT=OFF

50ba25b2aa4db34319a7b95e789065540347f895 broke do_cmake.sh in nautilus
and the backport of 46b3d671b4408a766aaed379274242ad4b38afb3 (which
was included in the same PR) did not fix it enough.

This commit cannot be backported from master. It is needed to fix
a partially broken backport.

After this commit is applied, the relevant part of do_cmake.sh in
nautilus will look exactly like it does now in master.

Fixes: 50ba25b2aa4db34319a7b95e789065540347f895
Fixes: https://tracker.ceph.com/issues/44641
Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agodo_cmake.sh: set WITH_RADOSGW_AMQP_ENDPOINT using ARGS
Kefu Chai [Sat, 28 Sep 2019 14:15:15 +0000 (22:15 +0800)]
do_cmake.sh: set WITH_RADOSGW_AMQP_ENDPOINT using ARGS

so we can extend ARGS in a more unified way

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 612376a74964c79af5b4029c650c8add5fd50120)

Conflicts:
do_cmake.sh
- nautilus does not have 9a47b328b80e5e502bd67cb94f925efe0c53c755

5 years agoqa: get rid of iterkeys for py3 compatibility 33913/head
Kyr Shatskyy [Fri, 11 Oct 2019 15:57:47 +0000 (17:57 +0200)]
qa: get rid of iterkeys for py3 compatibility

Fixes: https://tracker.ceph.com/issues/42287
Signed-off-by: Kyr Shatskyy <kyrylo.shatskyy@suse.com>
(cherry picked from commit 5f95b532aa26249cecea4586166399a0bf10ad47)

 Conflicts:
qa/tasks/barbican.py
qa/tasks/keystone.py
qa/tasks/vault.py

- ensured that all instances of iterkeys() under qa/ in luminous are changed to keys()
- removed barbican.py and vault.py; install_packages
method per PR comments.

5 years agomgr/volumes: type convert uid and gid to int 33877/head
Ramana Raja [Fri, 13 Mar 2020 14:00:05 +0000 (19:30 +0530)]
mgr/volumes: type convert uid and gid to int

This fix is only needed in nautilus. The issue
was observed during upstream teuthology testing in CentOS 7.5
machines.

  File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 153, in do_clone
    bulk_copy(fs_handle, src_path, dst_path, should_cancel)
  File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 144, in bulk_copy
    cptree(source_path, dst_path)
  File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 134, in cptree
    sync_attrs(fs_handle, d_full_dst, stx)
  File "/usr/share/ceph/mgr/volumes/fs/async_cloner.py", line 77, in sync_attrs
    fs_handle.lchown(target_path, source_statx["uid"], source_statx["gid"])

The issue wasn't observed in master/octopus teuthology
testing.

Signed-off-by: Ramana Raja <rraja@redhat.com>
5 years agoqa: allow keeping sudo in command arguments
Rishabh Dave [Wed, 20 Feb 2019 16:36:41 +0000 (22:06 +0530)]
qa: allow keeping sudo in command arguments

sudo cannot be omitted from the given command's arguments, when running
passwd, chown and, specially, when sudo is used for running the given
command as different user.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 3e0a1361f78452d79c283f70b5dc2b865d62cb61)

5 years agoqa: make execution abortion optional for command ran through run_shell()
Rishabh Dave [Wed, 20 Feb 2019 16:33:00 +0000 (22:03 +0530)]
qa: make execution abortion optional for command ran through run_shell()

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 5df2b82c4f9ce71cd82889531333be184c84707c)

5 years agotest: add test_statx for new statx()
huanwen ren [Thu, 26 Sep 2019 13:00:38 +0000 (21:00 +0800)]
test: add test_statx for new statx()

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
(cherry picked from commit ea8527b5e8a9695050275a6715ebce2798579de2)

5 years agoclient: add statx in cephfs.pyx
huanwen ren [Mon, 23 Sep 2019 21:53:59 +0000 (05:53 +0800)]
client: add statx in cephfs.pyx

add statx in cephfs.pyx, support single mask query operation

Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
(cherry picked from commit b212124e546395b0ff36ae7f4d7fa55b1697e13b)

5 years agopybind/cephfs: define variable for hexcode used in stat()
Rishabh Dave [Wed, 7 Aug 2019 05:05:57 +0000 (10:35 +0530)]
pybind/cephfs: define variable for hexcode used in stat()

Instead of using the same hexcode at multiple locations, define it as a
variable and use the variable instead.

Signed-off-by: Rishabh Dave <ridave@redhat.com>
(cherry picked from commit 1798832951f0cd3f356a01ead4b7907920e1278f)

5 years agotest_volumes: fix _verify_clone_attrs call
Ramana Raja [Fri, 6 Mar 2020 11:33:51 +0000 (17:03 +0530)]
test_volumes: fix _verify_clone_attrs call

... to verify the attributes of clone and source subvolume belonging
to different subvolume groups.

Introduced in e22d546beb0472bf7e9bb038aa5e781d90a52349

Fixes: https://tracker.ceph.com/issues/44438
Signed-off-by: Ramana Raja <rraja@redhat.com>
(cherry picked from commit d2e327c41c5490be32c120b1c845fe6f4977198c)

5 years agodoc: update clone section for mgr/volumes w/ attr synchronization changes
Venky Shankar [Fri, 7 Feb 2020 05:47:27 +0000 (00:47 -0500)]
doc: update clone section for mgr/volumes w/ attr synchronization changes

Fixes: http://tracker.ceph.com/issues/43965
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 33f6263e5f453778c6cb056b21b8fff21c2b5915)

5 years agodoc: add mgr/volumes clone commands
Venky Shankar [Fri, 24 Jan 2020 06:31:19 +0000 (12:01 +0530)]
doc: add mgr/volumes clone commands

Fixes: http://tracker.ceph.com/issues/24880
Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit 97f875bb3209f6e90a62b369d5257b3a5895eee2)

5 years agodoc: update '--force' flag to be precise
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>
(cherry picked from commit f35d03a0377f31d72e17813030124a5d99d95437)

5 years agodoc: list FS subvolumes, subvolume groups and their snapshots
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>
(cherry picked from commit b5769367d53d0d1580a9007af1c5b5198f0ecba8)

5 years agotest: revert to default mount state in test_cephfs:test_mount_root()
Venky Shankar [Fri, 28 Feb 2020 07:36:36 +0000 (02:36 -0500)]
test: revert to default mount state in test_cephfs:test_mount_root()

without this tests written after test_mount_root() in the source
were failing with

     cephfs.LibCephFSStateError: You cannot perform that operation on a
     CephFS object in state initialized.

... since the test fiddles with the default mount which is root.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit db8b8a6791060eeb4aa10d00ffbb56e71a22142e)

5 years agotest: add test for verifying inode attrbiutes sync on clone
Venky Shankar [Fri, 7 Feb 2020 05:29:38 +0000 (00:29 -0500)]
test: add test for verifying inode attrbiutes sync on clone

Also, for existing tests, additionally verify inode attributes
for clones.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit e22d546beb0472bf7e9bb038aa5e781d90a52349)

5 years agomgr/volumes: synchronize inode attributes for cloned subvolumes
Venky Shankar [Fri, 7 Feb 2020 05:26:03 +0000 (00:26 -0500)]
mgr/volumes: synchronize inode attributes for cloned subvolumes

Synchronize ownership, permission and inode timestamp (access and
modification times) for all supported inode types. Note that inode
timestamps are synchronized upto seconds granularity.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit aac6b5f1cef7d055bdde797519aece779d06fb41)

 Conflicts:
src/pybind/mgr/volumes/fs/async_cloner.py
        - uid and gid arguments of chown() and copy_file() were
          type converted to `int` for nautilus.

5 years agoget barbican secret key request return error code 33965/head
Richard Bai(白学余) [Tue, 13 Aug 2019 13:16:49 +0000 (21:16 +0800)]
get barbican secret key request return error code

Signed-off-by: Richard Bai(白学余) <baixueyu@inspur.com>
(cherry picked from commit fbe2be57474df43996dd45bf04d1a1137a02c729)

Conflicts:
src/rgw/rgw_http_client.cc
- nautilus uses Mutex::Locker instead of std::lock_guard

5 years agomds: add configurable snapshot limit 33295/head
Milind Changire [Fri, 13 Mar 2020 07:44:35 +0000 (13:14 +0530)]
mds: add configurable snapshot limit

Added config option "mds_max_snaps_per_dir" defaulting to 100

Fixes: https://tracker.ceph.com/issues/41209
Signed-off-by: Milind Changire <mchangir@redhat.com>
(cherry picked from commit c15905cd9774a28d07d9a1151e18feb89d024d97)

Conflicts:
        src/common/options.cc (differences between octopus and nautilus)

5 years agomgr/dashboard: NoRebalance flag is added to the Dashboard 33927/head
Nizamudeen [Tue, 10 Mar 2020 16:32:41 +0000 (22:02 +0530)]
mgr/dashboard: NoRebalance flag is added to the Dashboard

This commit will add a norebalance flag into the Cluster-wide Flags in the OSDs which can be set/unset.
Fixes: https://tracker.ceph.com/issues/44543
Signed-off-by: Nizamudeen <nia@redhat.com>
(cherry picked from commit 7e30c261c0c57ccb26097e56ee442f3d6bf08e4a)

5 years agoMerge pull request #33863 from smithfarm/wip-nautilus-wipe-pendingreleasenotes
Abhishek L [Thu, 12 Mar 2020 09:49:07 +0000 (10:49 +0100)]
Merge pull request #33863 from smithfarm/wip-nautilus-wipe-pendingreleasenotes

nautilus: doc: reset PendingReleaseNotes following 14.2.8 release

Reviewed-By: Abhishek Lekshmanan <abhishek@suse.com>
5 years agopybind/cephfs: pybind calls for changing inode timestamps
Venky Shankar [Thu, 6 Feb 2020 10:34:24 +0000 (05:34 -0500)]
pybind/cephfs: pybind calls for changing inode timestamps

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit fc49ffd227b06495b30674eff9897a34f9fd60be)

5 years agopybind/cephfs: pybind call for changing ownership for symlinks
Venky Shankar [Wed, 5 Feb 2020 04:18:55 +0000 (23:18 -0500)]
pybind/cephfs: pybind call for changing ownership for symlinks

Signed-off-by: Venky Shankar <vshankar@redhat.com>
(cherry picked from commit ea97410fb796afc4ac8d522003dae5a278c3f96f)

5 years agodoc: reset PendingReleaseNotes following 14.2.8 release 33863/head
Nathan Cutler [Tue, 10 Mar 2020 16:43:05 +0000 (17:43 +0100)]
doc: reset PendingReleaseNotes following 14.2.8 release

This commit cannot be cherry-picked from master because
PendingReleaseNotes is maintained separately for each stable release.

Signed-off-by: Nathan Cutler <ncutler@suse.com>
5 years agomgr: Add get_rates_from_data to mgr_util.py 33893/head
Stephan Müller [Fri, 14 Jun 2019 13:45:53 +0000 (15:45 +0200)]
mgr: Add get_rates_from_data to mgr_util.py

The function calculates the difference between the values
in a time series list.

The previous location of it was in the dashboard, that's why the
function has doc tests. In order to be able to test them as part of the
manager utilities a bit of tox magic was added.

Fixes: https://tracker.ceph.com/issues/40365
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 34976bae148aec013b53e1376b45a7af98e69b93)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
Conflicts:
src/pybind/mgr/dashboard/controllers/osd.py

5 years agorgw: making implicit_tenants backwards compatible. 33749/head
Marcus Watts [Wed, 30 May 2018 20:37:31 +0000 (16:37 -0400)]
rgw: making implicit_tenants backwards compatible.

In jewel, "rgw keystone implicit tenants" only applied to swift. As of
luminous), this option applies to s3 also.
Sites that used this feature with jewel now have outstanding data that
depends on the old behavior.

The fix here is to expand "rgw keystone implicit tenants" so that it
can be set to any of "none", "all", "s3" or "swift" (also 0=false=none,
1=true=all).  When set to "s3" or "swift", the actual id lookup
is also partitioned.

Formerly "rgw keystone implicit tenants" was a legacy opt.
This change converts it to the new style of option,
including support for dynamically changing it.

Fixes: http://tracker.ceph.com/issues/24348
Signed-off-by: Marcus Watts <mwatts@redhat.com>
(cherry picked from commit 3ba7be8d1ac7ee43e69eebb58263cd080cca1d38)

Conflicts:
src/rgw/rgw_main.cc (amqp, kafka)
src/rgw/rgw_auth_registry.h (sts_strategy)

5 years agoMerge pull request #33668 from epuertat/wip-44378-nautilus
Lenz Grimmer [Wed, 11 Mar 2020 13:02:29 +0000 (14:02 +0100)]
Merge pull request #33668 from epuertat/wip-44378-nautilus

nautilus: mgr/dashboard: Use default language when running "npm run build"

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
5 years agoMerge pull request #33860 from rhcs-dashboard/wip-44549-nautilus
Lenz Grimmer [Wed, 11 Mar 2020 10:29:00 +0000 (11:29 +0100)]
Merge pull request #33860 from rhcs-dashboard/wip-44549-nautilus

nautilus: monitoring: fix RGW grafana chart 'Average GET/PUT Latencies'

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
5 years agoMerge pull request #33714 from smithfarm/wip-44146-nautilus
Yuri Weinstein [Tue, 10 Mar 2020 20:07:58 +0000 (13:07 -0700)]
Merge pull request #33714 from smithfarm/wip-44146-nautilus

nautilus: rgw: Add support bucket policy for subuser

Reviewed-by: Casey Bodley <cbodley@redhat.com>