Commit Graph

133654 Commits

Author SHA1 Message Date
Casey Bodley
c8e6576da3 rgw: remove replace_region_with_zonegroup()
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-08-22 17:50:09 -04:00
Casey Bodley
b857860f8d rgw: remove RGWRegionMap and RGWZoneGroupMap
these are leftovers from radosgw-agent. we kept them around for the
conversion logic, but that was only necessary to support upgrades to
jewel and kraken

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-08-22 17:50:09 -04:00
Casey Bodley
bc11400f15 rgw: remove RGWOp_ZoneGroupMap_Get from /admin/config API
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-08-22 17:50:09 -04:00
Anthony D'Atri
5ce745801b
Merge pull request #47690 from mty22/update-inactive-ceph-mirrors
doc: Remove inactive Ceph mirrors.
2022-08-22 14:16:24 -07:00
David Galloway
f92133ca52 admin: Fix check if PR or release branch docs build
Uses built-in RTD vars.  https://docs.readthedocs.io/en/stable/environment-variables.html.

Follow up to https://github.com/ceph/ceph/pull/46917#discussion_r942359130.

Signed-off-by: David Galloway <dgallowa@redhat.com>
2022-08-22 16:40:09 -04:00
Casey Bodley
c1bb5feef7 cls/rgw: restore backward-compatible encoding of cls_rgw_bucket_instance_entry
the encoding of `cls_rgw_bucket_instance_entry` changed in
bd0b0e5d98 such that pacific/quincy
OSDs cannot read the version written by reef OSDs

two fields (bucket_instance_id and num_shards) were removed in the v2
encoder, but the v1 decoder still expects them to be present

since we haven't released reef yet, we can fix this with a v3 that adds
the fields back

Fixes: https://tracker.ceph.com/issues/57232

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-08-22 15:59:18 -04:00
Anthony D'Atri
e87b47d855
Merge pull request #45552 from wxypro/man-cephfs-mirror
doc/man/cephfs-mirror.rst: Update missing options for cephfs-mirror
2022-08-22 11:43:16 -07:00
Anthony D'Atri
103b3f59ca
Merge pull request #47727 from snosratiershad/docs/correct-radosgw-admin-doc-bucket-name
doc/man/8: Remove slash behind bucket name in radosgw-admin.rst
2022-08-22 11:26:49 -07:00
Patrick Donnelly
a8a86789c7
Revert "Merge pull request #47092 from dparmar18/wip-dparmar-cephadm-simple-1"
This reverts commit 1c4da3dbd2, reversing
changes made to ee1e163b1e.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2022-08-22 13:10:27 -04:00
Salar Nosrati-Ershad
7840573a92 doc/man/8: Remove slash behind bucket name in radosgw-admin.rst
Signed-off-by: Salar Nosrati-Ershad <snosratiershad@gmail.com>
2022-08-22 20:22:12 +04:30
Pere Diaz Bou
52b2224c3e
Merge pull request #47371 from rhcs-dashboard/mstart-configurable
mstart: make some mstart env variables configurable 

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2022-08-22 17:42:49 +02:00
Kefu Chai
573500783a crimson/os: use key_hobj_t instead of full_key_t<>
less indirection this way. for better readability

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 23:20:28 +08:00
Nizamudeen A
198fc58b38
Merge pull request #47207 from oOHenry/rgw-dashboard-ssl-error
mgr/dashboard: fix rgw connect when using ssl

Reviewed-by: Aashish Sharma <aasharma@redhat.com>
Reviewed-by: Avan Thakkar <athakkar@redhat.com>
Reviewed-by: David Galloway <dgallowa@redhat.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
2022-08-22 20:41:02 +05:30
Kefu Chai
4bb9b6c424
Merge pull request #47720 from tchaikov/wip-mgr-dashboard-test-with-headers
qa/tasks/mgr/dashboard: accept headers as a param

Reviewed-by: Nizamudeen A <nia@redhat.com>
2022-08-22 22:34:57 +08:00
Kefu Chai
ad0ce3a04b crimson/os: use IsFullKey in *::insert_prefix{,_at}()
to fade out KeyT, so we can have more straightforward definitions.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 21:57:13 +08:00
Yuval Lifshitz
b064c2a245 rgw/notification: allow sending bucket notifications secrets in cleartext
rgw_allow_notification_secrets_in_cleartext conf parameter was added for that

Fixes: https://tracker.ceph.com/issues/50611

Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2022-08-22 16:44:34 +03:00
root
4a11712f9c Added Cosmetic change in etag of copyObjectResult
Signed-off-by: shraddhaghatol <shraddha.j.ghatol@seagate.com>
2022-08-22 07:19:13 -06:00
Ilya Dryomov
37fd6a27e8
Merge pull request #47716 from MalteJ/patch-1
doc: virtio discard is supported since kernel 5.0

Reviewed-by: Ilya Dryomov <idryomov@gmail.com>
2022-08-22 12:23:54 +02:00
Kefu Chai
b8dd567c54 include/intarith: drop popcount()
as it is not used anymore.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 18:03:59 +08:00
Kefu Chai
844260f3a2 common, test: use std::popcount() when appropriate
prefer the facilities provided by standard library over the homebrew
ones for better readability and maintainability.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 18:03:59 +08:00
Kefu Chai
f4706f95e6 include/intarith: drop clz()
it is not used anymore

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 18:03:59 +08:00
Kefu Chai
e132be7ee5 os/bluestore: use std::countl_zero() when appropriate
prefer the facilities provided by standard library over the homebrew
ones for better readability and maintainability.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 18:03:59 +08:00
Kefu Chai
dc92dfc9c3 include/intarith: rewrite cbits() in C++20
rewrite cbits() using concept and std::countl_zero(), for better
readability and maintanability.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 18:03:59 +08:00
Kefu Chai
275ec55c95 include/intarith: drop isp2()
as it is not used anymore.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 18:03:59 +08:00
Kefu Chai
05e355b592 *: s/isp2/has_single_bit/
prefer the facilities provided by standard library over the homebrew
ones for better readability and maintainability.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 18:03:59 +08:00
Malte Janduda
ad86ffb35d doc: virtio discard is supported since kernel 5.0
Signed-off-by: Malte Janduda <mail@janduda.net>
2022-08-22 11:35:38 +02:00
Pere Diaz Bou
cbe98b345a
Merge pull request #46702 from rhcs-dashboard/expand-cluster-hide-maintenance
mgr/dashboard: Hide maintenance option on expand cluster

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: sunilangadi2 <NOT@FOUND>
2022-08-22 09:58:37 +02:00
Xiubo Li
bb0d56a93a libcephfs: define AT_NO_ATTR_SYNC back for backward compatibility
This was introduce by commit e2a67f2a65,
for the third part applications they may still use the old macro.

Add it back and marked it as deprecated.

Fixes: https://tracker.ceph.com/issues/56638
Signed-off-by: Xiubo Li <xiubli@redhat.com>
2022-08-22 14:09:31 +08:00
Neeraj Pratap Singh
74489c4f0b qa: add test_non_existing_mds_rank and modify test_query_mds_filter
Fixes: https://tracker.ceph.com/issues/56169
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2022-08-22 11:35:37 +05:30
Neeraj Pratap Singh
6b1468200d mgr/stats: Fixing DeprecationWarning for RegEx.
Declaring the RegEx pattern as a raw string by prepending `r`.

Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2022-08-22 11:32:01 +05:30
Neeraj Pratap Singh
ff33cccf33 qa: Update the qa tests to be compatible with the new structure of 'perf stats' o/p.
test_client_metrics_and_metadataand other tests has been
updated as earlier it was checking according to the old structure
of perf stats o/p, which has been changed in this PR.

Fixes: https://tracker.ceph.com/issues/56162
Signed-off-by: Neeraj Pratap Singh <neesingh@redhat.com>
2022-08-22 11:31:52 +05:30
Kefu Chai
afe8058b6c qa/tasks/mgr/dashboard: accept headers as an option param
* add optional "headers" parameter to _request() and _get()
* correct the test of test_force_no_gzip, as the header in response
  should be "application/vnd.ceph.api.v1.0+json", not "application/json"

with this change, we are able to pass headers to _get() in dashboard api
tests.

without this change, we'd have following error when testing
`test_force_no_gzip` defined by `tasks.mgr.dashboard.test_requests.RequestsTest`:

raceback (most recent call last):
  File "/home/jenkins-build/build/workspace/ceph-api/src/pybind/mgr/dashboard/services/exception.py", line 47, in dashboard_exception_handler
    return handler(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/cherrypy/_cpdispatch.py", line 54, in __call__
    return self.callable(*self.args, **self.kwargs)
  File "/home/jenkins-build/build/workspace/ceph-api/src/pybind/mgr/dashboard/controllers/_base_controller.py", line 263, in inner
    ret = func(*args, **kwargs)
TypeError: Summary.__call__() got an unexpected keyword argument 'headers'

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-22 14:01:16 +08:00
Nizamudeen A
3dc45e450e mgr/dashboard: add out_client dir to api and e2e checks
Signed-off-by: Nizamudeen A <nia@redhat.com>
2022-08-22 11:04:18 +05:30
Nizamudeen A
6ef65a00e1 vstart: isolate the client logs
Signed-off-by: Nizamudeen A <nia@redhat.com>
2022-08-22 11:04:18 +05:30
Nizamudeen A
35c8c89258 mstart: make some mstart env variables configurable
Signed-off-by: Nizamudeen A <nia@redhat.com>
2022-08-22 11:04:18 +05:30
Kefu Chai
5fd0f9cd48
Merge pull request #47711 from tchaikov/wip-crimson-os-cleanups
crimson/os: cleanups

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
2022-08-22 13:29:19 +08:00
Yuval Lifshitz
e1051899e4 rgw/lua: allow read access to object data
Signed-off-by: Yuval Lifshitz <ylifshit@redhat.com>
2022-08-21 20:51:52 +03:00
Anthony D'Atri
1c9e84a447
Merge pull request #47715 from maryfrances01/wip-doc-punctuation-error
doc/radosgw: Fix punctuation and grammar in encryption.rst
2022-08-21 09:59:28 -07:00
Mary Frances
77770920f7 doc: Fixes a punctuation and grammar issue 2022-08-21 06:29:41 -07:00
Matan Breizman
7bc8dc03cc include/buffer: avoid it = it->next() usage
Signed-off-by: Matan Breizman <mbreizma@redhat.com>
2022-08-21 11:15:58 +00:00
Ronen Friedman
9f77cc6763
Merge pull request #47639 from ronen-fr/wip-rf-scrubmap-swap
osd: fix ScrubMap::swap() to include all ScrubMap data members
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2022-08-21 08:57:19 +03:00
Kefu Chai
35bf3c8ad7 include/denc: use concept to define denc_traits
to be more specific, define denc_traits for types with ext types

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-21 10:09:14 +08:00
Kefu Chai
c0a8fd6faa include/denc: rewrite ExtType with is_any_of<>
just for better readability

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-21 10:09:14 +08:00
Kefu Chai
581675fbbb include/denc: rewrite denc_traits for enums
for better readability

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-21 10:09:14 +08:00
Kefu Chai
3eb825fe96 include/denc: rewrite is_any_of using concept
just for better readability

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-21 10:09:14 +08:00
Kefu Chai
3fd12ff38d include/denc: redefine is_const_iterator
to just check for the return type of `it.get_pos_add(n)`, this
is exactly what we expect from a buffer::ptr::const_iterator.
it is more specific and less confusing.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-21 10:09:14 +08:00
Kefu Chai
9b2d1df4d5 include/denc: define is_const_iterator as a concept
just for better readability

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-21 10:09:14 +08:00
Mary Frances
491391f06c doc: Fixes a punctuation and grammar issue
Signed-off-by: Mary Frances Hull mhull@redhat.com
2022-08-20 09:46:24 -07:00
Kefu Chai
0d47e59f02
Merge pull request #44356 from SMIL-Infra/clog
common,mon: use fmt::print(cerr, ...) for stderr logging

Reviewed-by: Kefu Chai <tchaikov@gmail.com>
2022-08-20 21:55:22 +08:00
Kefu Chai
ce184880a4 crimson/os: use IsFullKey in *::estimate_insert()
to fade out KeyT, so we can have more straightforward definitions.

Signed-off-by: Kefu Chai <tchaikov@gmail.com>
2022-08-20 19:55:46 +08:00