]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Sungmin Lee [Fri, 26 May 2023 08:05:46 +0000 (17:05 +0900)]
doc:dev update how to use deduplication
Add prerequisite for deduplication, example outputs, and chunk-repair operation.
Signed-off-by: Sungmin Lee <sung_min.lee@samsung.com>
Ilya Dryomov [Thu, 15 Jun 2023 20:22:09 +0000 (22:22 +0200)]
Merge pull request #52064 from ajarr/wip-61688
mgr/rbd_support: add user-friendly stderr message when module is not ready
Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
Yuval Lifshitz [Thu, 15 Jun 2023 16:13:44 +0000 (19:13 +0300)]
Merge pull request #51962 from vedanshbhartia/coverity_1511072
rgw: pass boost intrusive_ptr to DataLogBackends flat_map
Yuval Lifshitz [Thu, 15 Jun 2023 16:13:09 +0000 (19:13 +0300)]
Merge pull request #51676 from vedanshbhartia/coverity_move
rgw: Do not forward functor objects in rgw_iam_policy.h
Yuval Lifshitz [Thu, 15 Jun 2023 16:11:22 +0000 (19:11 +0300)]
Merge pull request #51965 from vedanshbhartia/coverity_1510687
rgw: Fix use after move in cls_fifo_legacy.cc
Yuval Lifshitz [Thu, 15 Jun 2023 16:10:31 +0000 (19:10 +0300)]
Merge pull request #50330 from mohamedawnallah/fix-RGWEnv.get()-nullptr-default-value-to-the-default-returned-value
src/rgw/rgw_env.cc: Fix potential null pointer dereference in RGWEnv::get()
Ramana Raja [Wed, 14 Jun 2023 21:41:48 +0000 (17:41 -0400)]
mgr/rbd_support: log number of images
... that have one snapshot request pending when the
mirror_snapshot_schedule handler is shutting down.
Signed-off-by: Ramana Raja <rraja@redhat.com>
Guillaume Abrioux [Thu, 15 Jun 2023 11:44:00 +0000 (13:44 +0200)]
Merge pull request #52058 from guits/tracker_61673
ceph-volume: set lvm membership for mpath type devices
Venky Shankar [Thu, 15 Jun 2023 07:31:39 +0000 (13:01 +0530)]
Merge PR #52029 into main
* refs/pull/52029/head:
debian: install cephfs-mirror systemd unit files and man page
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Xiubo Li <xiubli@redhat.com>
zdover23 [Thu, 15 Jun 2023 05:28:30 +0000 (15:28 +1000)]
Merge pull request #52039 from zdover23/wip-doc-2023-06-14-operations-crush-map-2-of-x
doc/rados: edit crush-map.rst (2 of x)
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Jos Collin [Tue, 13 Jun 2023 11:54:34 +0000 (17:24 +0530)]
debian: install cephfs-mirror systemd unit files and man page
Fixes: https://tracker.ceph.com/issues/59682
Signed-off-by: Jos Collin <jcollin@redhat.com>
Venky Shankar [Thu, 15 Jun 2023 03:53:40 +0000 (09:23 +0530)]
Merge PR #50862 into main
* refs/pull/50862/head:
mon/MDSMonitor: batch last_metadata update with pending
mon/MDSMonitor: add debugging for update_metadata
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Zac Dover [Tue, 13 Jun 2023 15:41:09 +0000 (01:41 +1000)]
doc/rados: edit crush-map.rst (2 of x)
Edit doc/rados/operations/crush-map.rst.
https://tracker.ceph.com/issues/58485
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
zdover23 [Thu, 15 Jun 2023 01:22:06 +0000 (11:22 +1000)]
Merge pull request #52040 from zdover23/wip-doc-2023-06-14-operations-crush-map-ordered-list-fix
doc/rados: fix list in crush-map.rst
Ramana Raja [Wed, 14 Jun 2023 20:17:09 +0000 (16:17 -0400)]
mgr/rbd_support: add user-friendly stderr message
... when the rbd_support module is not ready.
Fixes: https://tracker.ceph.com/issues/61688
Signed-off-by: Ramana Raja <rraja@redhat.com>
Adam King [Wed, 14 Jun 2023 18:27:16 +0000 (14:27 -0400)]
Merge pull request #51946 from phlogistonjohn/jjm-cephadm-write-new
cephadm: add write_new function for robust file writes
Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
Adam King [Wed, 14 Jun 2023 18:25:56 +0000 (14:25 -0400)]
Merge pull request #51924 from adk3798/limit-policy-log-level
python-common/drive_selection: lower log level of limit policy message
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
Adam King [Wed, 14 Jun 2023 18:24:51 +0000 (14:24 -0400)]
Merge pull request #51861 from adk3798/spec-no-spec-validate
python-common/drive_group: handle fields outside of 'spec' even when 'spec' is provided
Reviewed-by: John Mulligan <jmulligan@redhat.com>
Adam King [Wed, 14 Jun 2023 18:23:27 +0000 (14:23 -0400)]
Merge pull request #51267 from phlogistonjohn/jjm-cephadm-versioning
Support cephadm "binary" versioning
Reviewed-by: Adam King <adking@redhat.com>
Adam King [Wed, 14 Jun 2023 16:51:14 +0000 (12:51 -0400)]
Merge pull request #51832 from rkachach/fix_issue_61499
cephadm: adding support for ipv6 when deploying ceph-exporter
Reviewed-by: Adam King <adking@redhat.com>
Adam King [Wed, 14 Jun 2023 16:49:58 +0000 (12:49 -0400)]
Merge pull request #51817 from rkachach/fix_issue_61494
mgr/cephadm: validate host label before removing
Reviewed-by: Adam King <adking@redhat.com>
Adam King [Wed, 14 Jun 2023 16:48:04 +0000 (12:48 -0400)]
Merge pull request #51070 from adk3798/reconfig-firewall-ports
cephadm: allow ports to be opened in firewall during adoption, reconfig, redeploy
Reviewed-by: Michael Fritch <mfritch@suse.com>
Reviewed-by: Redouane Kachach <rkachach@redhat.com>
Guillaume Abrioux [Wed, 14 Jun 2023 14:08:07 +0000 (14:08 +0000)]
ceph-volume: set lvm membership for mpath type devices
If any lvs is present, self.lvs should be set accordingly for mpath
type devices as well.
Otherwise, when re-running a command like following:
```
ceph-volume lvm batch --bluestore --no-auto /dev/mapper/mpatha /dev/mapper/mpathb
```
fails with error : "Device /dev/mapper/mpatha has a filesystem."
where the expected behavior is:
```
--> passed data devices: 2 physical, 0 LVM
--> relative data size: 1.0
--> All data devices are unavailable
Total OSDs: 0
Type Path LV Size % of device
```
Fixes: https://tracker.ceph.com/issues/61673
Signed-off-by: Guillaume Abrioux <gabrioux@ibm.com>
Yuval Lifshitz [Wed, 14 Jun 2023 09:01:32 +0000 (12:01 +0300)]
Merge pull request #52044 from vedanshbhartia/coverity_fix_tags
rgw: user correct tags for coverity annotations and add the SUPPRESS keyword
Vedansh Bhartia [Tue, 13 Jun 2023 18:17:48 +0000 (23:47 +0530)]
rgw: user correct tags for coverity annotations and add the SUPPRESS
keyword
Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
Casey Bodley [Tue, 13 Jun 2023 17:42:05 +0000 (13:42 -0400)]
Merge pull request #52012 from cbodley/wip-61428
qa: suppress SyscallParam error during startup on jammy
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Zac Dover [Tue, 13 Jun 2023 16:11:53 +0000 (02:11 +1000)]
doc/rados: fix list in crush-map.rst
Correct the numbering and formatting of an ordered list in
doc/rados/operations/crush-map.rst.
Signed-off-by: Zac Dover <zac.dover@proton.me>
Casey Bodley [Tue, 13 Jun 2023 15:54:43 +0000 (11:54 -0400)]
Merge pull request #52014 from cbodley/wip-test-cls-refcount-rename
test/cls: rename cls_refcount tests
Reviewed-by: Ali Maredia <amaredia@redhat.com>
zdover23 [Tue, 13 Jun 2023 15:08:47 +0000 (01:08 +1000)]
Merge pull request #52009 from zdover23/wip-doc-2023-06-12-rados-operations-placement-groups-math-markup
doc/rados: add math markup to placement-groups.rst
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Yuval Lifshitz [Tue, 13 Jun 2023 14:25:48 +0000 (17:25 +0300)]
Merge pull request #52011 from samarahu/d4n-warning-cleanup
RGW: Cleanup D4N unit test warning
zdover23 [Tue, 13 Jun 2023 14:14:43 +0000 (00:14 +1000)]
Merge pull request #52028 from zdover23/wip-doc-2023-06-13-dev-deploying-dev-cluster-link
doc/dev: fix "deploying dev cluster" link
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Daniel Gryniewicz [Tue, 13 Jun 2023 13:29:00 +0000 (09:29 -0400)]
Merge pull request #51989 from samarahu/remove-trace-comment
RGW: Replace trace with d4n in yaml long desc
zdover23 [Tue, 13 Jun 2023 11:59:25 +0000 (21:59 +1000)]
Merge pull request #52018 from zdover23/wip-doc-2023-06-13-operations-crush-map-1-of-x
doc/rados: edit crush-map.rst (1 of x)
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Zac Dover [Tue, 13 Jun 2023 11:51:26 +0000 (21:51 +1000)]
doc/dev: fix "deploying dev cluster" link
Fix a link to "Deploying a Development Cluster" that had been broken
since the transition from master to main.
This is the first part of an initiative to improve the vstart
documentation.
Signed-off-by: Zac Dover <zac.dover@proton.me>
Zac Dover [Mon, 12 Jun 2023 20:02:59 +0000 (06:02 +1000)]
doc/rados: edit crush-map.rst (1 of x)
Edit doc/rados/operations/crush-map.rst.
https://tracker.ceph.com/issues/58485
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
Nizamudeen A [Tue, 13 Jun 2023 08:40:58 +0000 (14:10 +0530)]
Merge pull request #51966 from rhcs-dashboard/grafana-url-deprecated
mgr/dashboard: change deprecated grafana URL in daemon logs
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Nizamudeen A [Tue, 13 Jun 2023 08:32:28 +0000 (14:02 +0530)]
Merge pull request #51953 from rhcs-dashboard/dashboard-status-popover
mgr/dashboard: add popover to cluster status card
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Matan [Tue, 13 Jun 2023 07:26:32 +0000 (09:26 +0200)]
Merge pull request #51945 from rzarzynski/wip-bug-61504
crimson/osd: fix Notify life-time mismanagement in Watch::notify_ack
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Matan Breizman <mbreizma@redhat.com>
Matan [Tue, 13 Jun 2023 07:11:14 +0000 (09:11 +0200)]
Merge pull request #51973 from Matan-B/wip-matan-lsan-supp
qa/lsan.supp: update heap_profiler suppression and ASAN_OPTIONS
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Xiubo Li [Tue, 13 Jun 2023 01:44:24 +0000 (09:44 +0800)]
Merge pull request #51703 from lxbsz/wip-59683
xfstests_dev: install extra packages from powertools repo for xfsprogs
Xiubo Li [Mon, 12 Jun 2023 23:39:00 +0000 (07:39 +0800)]
Merge pull request #50728 from lxbsz/wip-59195
qa: switch to use the merge fragment for fscrypt
Casey Bodley [Mon, 12 Jun 2023 17:38:03 +0000 (13:38 -0400)]
qa: suppress SyscallParam error during startup on jammy
Fixes: https://tracker.ceph.com/issues/61428
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Yuval Lifshitz [Mon, 12 Jun 2023 18:37:07 +0000 (21:37 +0300)]
Merge pull request #51972 from vedanshbhartia/coverity_resource_leak
rgw: Add coverity annotations for resource leak false positives
Casey Bodley [Mon, 12 Jun 2023 18:15:28 +0000 (14:15 -0400)]
test/cls: rename cls_refcount tests
test cases were copy/pasted from test_cls_rgw.cc without renaming
Signed-off-by: Casey Bodley <cbodley@redhat.com>
Samarah [Mon, 12 Jun 2023 14:49:09 +0000 (10:49 -0400)]
RGW: Cleanup D4N unit test warning
Signed-off-by: Samarah <samarah.uriarte@ibm.com>
Zac Dover [Mon, 12 Jun 2023 11:32:14 +0000 (21:32 +1000)]
doc/rados: add math markup to placement-groups.rst
Add some math markup to some of the mathematical expressions in
doc/rados/operations/placement-groups.rst.
This change has advantages as well as disadvantages. On the one hand,
the mathematical expressions look nicer and are easier to read. On the
other hand, the rendered mathematical expressions are not searchable as
a part of the text, which makes CTRL+F searches useless in finding them.
This PR is offered as an RFC on the matter of whether mathematical
expressions should be rendered with the :math: extension.
Signed-off-by: Zac Dover <zac.dover@proton.me>
Yuval Lifshitz [Mon, 12 Jun 2023 09:04:48 +0000 (12:04 +0300)]
Merge pull request #51864 from yuvalif/wip-yuval-fix-61540
rgw/kafka: make sure that destroy is called after connection is removed
Xiubo Li [Tue, 23 May 2023 11:08:15 +0000 (19:08 +0800)]
xfstests_dev: install extra packages from powertools repo for xfsprogs
Centos Stream 8 has removed the 'device-mapper-devel', 'libedit-devel'
and 'userspace-rcu-devel' packages from the mirrors and we need to
install it from powertools repo.
Fixes: https://tracker.ceph.com/issues/59683
Signed-off-by: Xiubo Li <xiubli@redhat.com>
zdover23 [Sun, 11 Jun 2023 21:46:53 +0000 (07:46 +1000)]
Merge pull request #51994 from zdover23/wip-doc-2023-06-11-rados-operations-placement-groups-3-of-x
doc/rados: edit placement-groups.rst (3 of x)
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Zac Dover [Sat, 10 Jun 2023 23:00:38 +0000 (09:00 +1000)]
doc/rados: edit placement-groups.rst (3 of x)
Edit doc/rados/operations/placement-groups.rst.
https://tracker.ceph.com/issues/58485
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
Yuval Lifshitz [Sun, 11 Jun 2023 18:22:17 +0000 (21:22 +0300)]
Merge pull request #51366 from SMIL-Infra/fix-test-build
rgw: fix tests build w/o AMQP
Yuval Lifshitz [Sun, 11 Jun 2023 14:36:25 +0000 (17:36 +0300)]
Merge pull request #51468 from vedanshbhartia/coverity_time
rgw: Add coverity annotations to ignore warnings about 32 bit time
zdover23 [Sun, 11 Jun 2023 08:33:07 +0000 (18:33 +1000)]
Merge pull request #51992 from zdover23/wip-doc-2023-06-10-rados-operations-change-mon-elections
doc/rados: edit change-mon-elections
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
zdover23 [Sun, 11 Jun 2023 00:42:18 +0000 (10:42 +1000)]
Merge pull request #51991 from zdover23/wip-doc-2023-06-09-rados-operations-placement-groups-2-of-x
doc/rados: edit placement-groups.rst (2 of x)
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Zac Dover [Sat, 10 Jun 2023 01:44:33 +0000 (11:44 +1000)]
doc/rados: edit placement-groups.rst (2 of x)
Edit doc/rados/operations/placement-groups.rst.
https://tracker.ceph.com/issues/58485
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
Zac Dover [Sat, 10 Jun 2023 02:08:41 +0000 (12:08 +1000)]
doc/rados: edit change-mon-elections
Edit doc/rados/operations/change-mon-elections.rst.
https://tracker.ceph.com/issues/58485
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
Laura Flores [Fri, 9 Jun 2023 17:55:46 +0000 (12:55 -0500)]
Merge pull request #51988 from ljflores/wip-release-checklist
doc/dev: update release checklist
Radoslaw Zarzynski [Fri, 9 Jun 2023 17:32:27 +0000 (17:32 +0000)]
crimson/osd: suppress the assertion in Watch::notify_ack
Replaced the assert with an error log entry but ultimately
this commit should be reverted.
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Radosław Zarzyński [Tue, 6 Jun 2023 15:43:21 +0000 (17:43 +0200)]
crimson/osd: fix Notify life-time mismanagement in Watch::notify_ack
Fixes: https://tracker.ceph.com/issues/61504
Signed-off-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Casey Bodley [Fri, 9 Jun 2023 17:21:01 +0000 (13:21 -0400)]
Merge pull request #49316 from BryceCao/wip-add-initialization-for-RGWGC-process-call
rgw : fix add initialization for RGWGC::process()
Reviewed-by: Yuval Lifshitz <ylifshit@redhat.com>
Casey Bodley [Fri, 9 Jun 2023 17:20:29 +0000 (13:20 -0400)]
Merge pull request #51715 from awojno-bloomberg/replication-race-condition-fix
RGW: Pass and check destination zone trace when fetching object
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Mark Kogan <mkogan@redhat.com>
Samarah [Fri, 9 Jun 2023 16:21:28 +0000 (12:21 -0400)]
RGW: Replace trace with d4n in yaml long desc
Signed-off-by: Samarah <samarah.uriarte@ibm.com>
Laura Flores [Fri, 9 Jun 2023 15:20:36 +0000 (10:20 -0500)]
doc/dev: update release checklist
Signed-off-by: Laura Flores <lflores@redhat.com>
zdover23 [Fri, 9 Jun 2023 13:30:32 +0000 (23:30 +1000)]
Merge pull request #51975 from zdover23/wip-doc-2023-06-09-rados-operations-placement-groups-1-of-x
doc/rados: edit placement-groups.rst (1 of x)
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Zac Dover [Thu, 8 Jun 2023 18:53:34 +0000 (04:53 +1000)]
doc/rados: edit placement-groups.rst (1 of x)
Edit doc/rados/operations/placement-groups.rst.
https://tracker.ceph.com/issues/58485
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Co-authored-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
Casey Bodley [Thu, 8 Jun 2023 15:44:55 +0000 (11:44 -0400)]
Merge pull request #48879 from samarahu/wip-d4n
RGW: WIP D4N
Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Matan Breizman [Thu, 8 Jun 2023 14:14:15 +0000 (14:14 +0000)]
qa/lsan.supp: update heap_profiler suppression and ASAN_OPTIONS
In continuation to:
8c099a534044bf7182e04f250e342aab76bc3e54
Regsiter singleton leak seems to be replaced by:
```
-----------------------------------------------------
Suppressions used:
count bytes template
1 8 ^InitModule
-----------------------------------------------------
```
In similarity to Crimson's suppression:
6ed8d839b421442a64410444ca8f88f157ae28b3
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
Anthony D'Atri [Thu, 8 Jun 2023 12:23:07 +0000 (08:23 -0400)]
Merge pull request #51967 from Dazul/add-config-missing-custom-container-images
doc: Add missing custom container_image
zdover23 [Thu, 8 Jun 2023 12:04:13 +0000 (22:04 +1000)]
Merge pull request #51958 from zdover23/wip-doc-2023-06-07-rados-operations-pools-4-of-x
doc/rados: edit pools.rst (4 of x)
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Reviewed-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
Nizamudeen A [Thu, 8 Jun 2023 06:43:54 +0000 (12:13 +0530)]
mgr/dashboard: change deprecated grafana URL in daemon logs
See https://github.com/grafana/grafana/issues/51276
I am also increasting the height of the panel
Fixes: https://tracker.ceph.com/issues/61618
Signed-off-by: Nizamudeen A <nia@redhat.com>
Nizamudeen A [Thu, 8 Jun 2023 08:48:14 +0000 (14:18 +0530)]
Merge pull request #51955 from rhcs-dashboard/teuth-e2e-fix
qa/workunits: fix test_dashboard_e2e.sh: no spec files found
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Ronen Friedman [Thu, 8 Jun 2023 08:43:59 +0000 (11:43 +0300)]
Merge pull request #51911 from ronen-fr/wip-rf-recovery-updates
qa/standalone: osd-recovery-scrub: fix slow updates and recovery concurrency
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sridhar Seshasayee <sseshasa@redhat.com>
Luis Domingues [Thu, 8 Jun 2023 08:09:06 +0000 (10:09 +0200)]
doc: Add missing custom container_image
While testing cephadm in order to migrate to it in the near
futur, I needed to use some custom images for haproxy
and keepalived. I needed to see into the code to see what
existed. So I put what I found on the code into documentation.
Signed-off-by: Luis Domingues <domingues.luis@protonmail.ch>
Vedansh Bhartia [Wed, 7 Jun 2023 17:25:44 +0000 (22:55 +0530)]
rgw: Fix use after move in cls_fifo_legacy.cc
Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
Yingxin [Thu, 8 Jun 2023 01:14:20 +0000 (09:14 +0800)]
Merge pull request #51948 from xxhdx1985126/wip-61608
crimson/os/seastore/cached_extent: add prepare_commit interface
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Myoungwon Oh <myoungwon.oh@samsung.com>
Neha Ojha [Wed, 7 Jun 2023 17:49:09 +0000 (10:49 -0700)]
Merge pull request #51917 from sseshasa/wip-mclock-cost-fix-relnotes
PendingReleaseNotes: Document mClock scheduler fixes and enhancements
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
Vedansh Bhartia [Wed, 7 Jun 2023 17:32:40 +0000 (23:02 +0530)]
rgw: Add coverity annotations for resource leak false positives
Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
Vedansh Bhartia [Wed, 7 Jun 2023 15:09:51 +0000 (20:39 +0530)]
rgw: pass boost intrusive_ptr to DataLogBackends flat_map
When emplacing a new backend, use an explicitly constructed
intrusive_ptr so that it gets destroyed if the emplace fails.
Though the destructor is already called, this behaviour cannot be relied
upon. std::map does not exhibit the same behaviour, and would have
leaked memory had it been used instead.
Signed-off-by: Vedansh Bhartia <vedanshbhartia@gmail.com>
Yuri Weinstein [Wed, 7 Jun 2023 15:03:18 +0000 (11:03 -0400)]
Merge pull request #51892 from rzarzynski/wip-bug-61547
mon: fix timestamp formatting in cluster log
Reviewed-by: Laura Flores <lflores@redhat.com>
Nizamudeen A [Wed, 7 Jun 2023 08:17:56 +0000 (13:47 +0530)]
mgr/dashboard: add popover to cluster status card
Previous dashboard has a popover for the status when there are some
warnings in the Cluster Health. Introducing the same behaviour on the
new landing page
Fixes: https://tracker.ceph.com/issues/61611
Signed-off-by: Nizamudeen A <nia@redhat.com>
Zac Dover [Wed, 7 Jun 2023 10:32:03 +0000 (20:32 +1000)]
doc/rados: edit pools.rst (4 of x)
Edit doc/operations/rados/pools.rst.
https://tracker.ceph.com/issues/58485
Co-authored-by: Cole Mitchell <cole.mitchell.ceph@gmail.com>
Co-authored-by: Anthony D'Atri <anthony.datri@gmail.com>
Signed-off-by: Zac Dover <zac.dover@proton.me>
zdover23 [Wed, 7 Jun 2023 09:53:27 +0000 (19:53 +1000)]
Merge pull request #51930 from zdover23/wip-doc-2023-06-06-rados-operations-pools-3-of-x
doc/rados: edit pools.rst (3 of x)
Reviewed-by: Anthony D'Atri <anthony.datri@gmail.com>
Matan [Wed, 7 Jun 2023 09:15:03 +0000 (11:15 +0200)]
Merge pull request #46062 from markhpc/wip-crimson-tcmalloc
crimson: Enable tcmalloc when using seastar
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radosław Zarzyński <rzarzyns@redhat.com>
Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Nizamudeen A [Wed, 7 Jun 2023 08:34:33 +0000 (14:04 +0530)]
qa/workunits: fix test_dashboard_e2e.sh: no spec files found
Fixes: https://tracker.ceph.com/issues/61578
Signed-off-by: Nizamudeen A <nia@redhat.com>
Nizamudeen A [Wed, 7 Jun 2023 08:29:50 +0000 (13:59 +0530)]
Merge pull request #50054 from rhcs-dashboard/cache-invalidation
mgr/dashboard: RBD cache invalidation
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Sridhar Seshasayee [Mon, 5 Jun 2023 08:11:28 +0000 (13:41 +0530)]
PendingReleaseNotes: Document mClock scheduler fixes and enhancements
Signed-off-by: Sridhar Seshasayee <sseshasa@redhat.com>
Xuehan Xu [Wed, 7 Jun 2023 01:55:38 +0000 (09:55 +0800)]
crimson/os/seastore/cached_extent: add prepare_commit interface
move new fixedkv-btree nodes' inter-node pointer adjustments into
the prepare_commit interface
Fixes: https://tracker.ceph.com/issues/61608
Signed-off-by: Xuehan Xu <xuxuehan@qianxin.com>
Laura Flores [Tue, 6 Jun 2023 18:35:35 +0000 (13:35 -0500)]
Merge pull request #51927 from ljflores/wip-rook-tests
qa/suites/rados: remove rook coverage from the rados suite
John Mulligan [Tue, 6 Jun 2023 17:26:35 +0000 (13:26 -0400)]
cephadm: use DEFAULT_MODE constant at additional locations
Now that we have a DEFAULT_MODE constant we can replace other locations
where 0o600 is used with the constant.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
John Mulligan [Tue, 6 Jun 2023 17:24:37 +0000 (13:24 -0400)]
cephadm: use 0o600 as the default mode for write_new
Add a constant DEFAULT_MODE of `0o600`, and make it the default of
the perms argument to write_new. This reduces a lot of code since
0o600 is the majority of the permissions used. Other cases can continue
to pass None to indicate no particular permissions are desired.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
John Mulligan [Tue, 6 Jun 2023 17:16:29 +0000 (13:16 -0400)]
cephadm: convert SNMPGateway create_daemon_conf to use write_new
While it is not entirely clear why this pattern of using os.open and
posix open flags instead of `open` directly was used I determined (using
strace) that the only major difference between these open flags and
those used by `open` was the lack of O_TRUNC. Unlike some other cases
this function does not use an intermediate temporary file. This means
that if the file being written already exists and the data being written
is smaller then the remaining data will not be over-written.
Example:
```
$ cat existing
AAAAAAAA
$ cat existing
bbbAAAAA
```
I looked over the context that this function is used in and decided that
this behavior must not be intentional. Thus it should be safe
to convert this function to `write_new`.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
John Mulligan [Tue, 6 Jun 2023 16:37:14 +0000 (12:37 -0400)]
cephadm: convert more temporary file writes to use write_new
Some functions are using the pattern:
```
with open(os.open(name + '.new, os.O_CREAT | os.O_WRONLY, 0o600), 'w') as f:
f.write(...)
os.rename(name + '.new', name)
```
While it is not entirely clear why this pattern was first used,
it accomplishes the same goal as `write_new` only directly calling
the posix open call. I analyzed the open flags for `write_new` and
these calls using `strace` and noted that the only significant
difference was the lack of O_TRUNC in these cases. Since the ".new"
files should not exist the lack of O_TRUC ought not make any difference.
With this decided we can convert these instances to `write_new`.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
John Mulligan [Tue, 6 Jun 2023 16:25:34 +0000 (12:25 -0400)]
cephadm: convert _write_custom_conf_files to use write_new
We double checked the meaning of "w+" and it will open the file
read-write. Since the file is never read there's no real reason
to keep it that way so its OK to convert to `write_new`.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
John Mulligan [Tue, 6 Jun 2023 00:12:59 +0000 (20:12 -0400)]
cephadm: convert some functions to use write_new
Convert a lot of the basic uses of the pattern:
with open(...) as f:
f.write(...)
os.fchown(f, ...) # sometimes
os.fchmod(f, ...) # sometimes
os.rename(...) # sometimes
These are the most obvious cases to convert to `write_new`
and should largely be uncontroversial.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
John Mulligan [Tue, 6 Jun 2023 00:08:49 +0000 (20:08 -0400)]
cephadm: create functional mock for fchown
The pyfakefs library apparently doesn't have its own mock for os.fchown.
This means that code using fchown currently calls into a mock with
no affect on the fake fs. For some reason I don't fully understand,
existing test cases work because they don't always follow the pattern
of open-write-rename. Switching to `write_new`, which always does a
rename, breaks some of the assertions performed in the tests on the fake
fs. Add a mock fchown that updates the state of the fake fs so
that converting call sites to use `write_new` will continue to work.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
John Mulligan [Tue, 6 Jun 2023 18:03:23 +0000 (14:03 -0400)]
cephadm: add unit tests for write_new
Signed-off-by: John Mulligan <jmulligan@redhat.com>
John Mulligan [Tue, 6 Jun 2023 00:12:10 +0000 (20:12 -0400)]
cephadm: add write_new function for robust file writes
The cephadm code has a very common pattern made of at least one of
the three following steps:
* call fchown on the open file to set ownership
* call fchmod on the open file to set permissions
* rename the file from a temp name to final name
Add the write_new function to encapsulate these common actions.
If owner is not None then fchown will be called.
If perms is not None then fchmod will be called.
An optional encoding value may be passed.
It always uses a temporary file as a temporary file ensures that
there can never be a partially written file even in the event of
a power outage or system crash.
Encapsulating this all into a function also allows us to make
changes to this approach in the future without touching every
call site using `open(..., "w")` etc.
Signed-off-by: John Mulligan <jmulligan@redhat.com>
Samarah [Thu, 23 Mar 2023 16:46:05 +0000 (12:46 -0400)]
QA: Add D4N teuthology suite
Signed-off-by: Samarah <samarah.uriarte@ibm.com>
Anthony D'Atri [Tue, 6 Jun 2023 17:18:04 +0000 (13:18 -0400)]
Merge pull request #51943 from dvanders/update-contact-dan
Update affiliation for Dan van der Ster
Laura Flores [Tue, 6 Jun 2023 16:14:32 +0000 (11:14 -0500)]
Merge pull request #51925 from ljflores/wip-tracker-59192
qa/suites/rados: whitelist POOL_APP_NOT_ENABLED for cls tests