Commit Graph

134171 Commits

Author SHA1 Message Date
Nizamudeen A
fc01eeb7f4
Merge pull request #47249 from nSedrickm/aria-labels-accessibility-update
mgr/dashboard: Improve level A accessibility for missing aria labels in tabs and listitems

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Laura Flores <lflores@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
2022-09-30 10:37:52 +05:30
Neha Ojha
cc3c52b0ad
Merge pull request #48299 from neha-ojha/wip-crimson-nightlies
qa/crontab: run crimson-rados on the main branch

Reviewed-by: Sam Just <sjust@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
2022-09-29 16:44:22 -07:00
Zack Cerza
752140aaa9
Merge pull request #48215 from zmc/osd-containers-tasks
qa/tasks: Updates to enable containerized loop-backed OSDs
2022-09-29 16:57:30 -06:00
Zack Cerza
89419c8072
Merge pull request #48300 from zmc/db-e2e-url-fix
mgr/dashboard: Fix broken Fedora image URL
2022-09-29 16:54:48 -06:00
Zack Cerza
3f32ab0fb3 mgr/dashboard: Fix broken Fedora image URL
This mirror apparently stopped working, breaking jobs that use this
script.

Signed-off-by: Zack Cerza <zack@redhat.com>
2022-09-29 13:44:46 -06:00
Casey Bodley
887d20b8e7
Merge pull request #47679 from cbodley/wip-rgw-sal-bootstrap
rgw: start on a rgw::sal::ConfigStore for boostrapping other stores

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2022-09-29 13:45:00 -04:00
Neha Ojha
db02b786ab qa/crontab: run crimson-rados on the main branch
It isn't useful to run the crimson suite on Quincy because we don't
backport crimson fixes.

Signed-off-by: Neha Ojha <nojha@redhat.com>
2022-09-29 17:44:56 +00:00
Casey Bodley
49cbbd059b
Merge pull request #48287 from andriytk/fix-rpmbuild
compressor: fix rpmbuild on RHEL-8

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-09-29 13:43:14 -04:00
Zack Cerza
df8dbd705b
Merge pull request #48194 from zmc/python36-prettytable 2022-09-29 09:46:18 -06:00
Adam King
87c8518ac5
Merge pull request #48260 from phlogistonjohn/jjm-cephadm-import
cephadm: Clean up how test files import/use cephadm as a module

Reviewed-by: Adam King <adking@redhat.com>
Reviewed-by: Michael Fritch <mfritch@suse.com>
2022-09-29 11:00:50 -04:00
Rishabh Dave
4ba8783ccf
Merge pull request #47814 from vshankar/wip-57072
pybind/mgr: check for empty metadata mgr_module:get_metadata()

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
Reviewed-by: Neeraj Pratap Singh <neesingh@redhat.com>
2022-09-29 19:50:47 +05:30
Venky Shankar
187d73bf4c
Merge pull request #48174 from batrick/i57597
qa: output debugging for cephfs-journal-tool/cephfs-data-scan

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Kotresh HR <khiremat@redhat.com>
2022-09-29 18:14:23 +05:30
Rishabh Dave
fb25b0b17f
Merge pull request #47991 from kotreshhr/qa-fix-57446
qa: Fix test_subvolume_snapshot_info_if_orphan_clone

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
2022-09-29 17:56:35 +05:30
Rishabh Dave
2ff34d1d60
Merge pull request #47985 from kotreshhr/qa-fix-57205
qa: Fix test_subvolume_group_ls_filter_internal_directories

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
2022-09-29 17:54:24 +05:30
Rishabh Dave
c26a148002
Merge pull request #47879 from lxbsz/wip-57344
client: fix incorrectly showing the .snap size for stat

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Venky Shankar <vshankar@redhat.com>
2022-09-29 17:51:31 +05:30
Venky Shankar
09fa1b2604
Merge pull request #48257 from batrick/i57657
qa: ignore expected scrub error

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
2022-09-29 17:25:10 +05:30
Venky Shankar
e1d457b3ce
Merge pull request #48264 from batrick/i57677
qa: ignore MDS_TRIM warnings when osd thrashing

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
2022-09-29 17:22:33 +05:30
Yuri Weinstein
120944f9cf
Merge pull request #48282 from ljflores/wip-telemetry-perf-fix
mgr/telemetry: handle daemons with complex ids

Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2022-09-28 15:37:11 -07:00
Casey Bodley
bb8dc36c0f radosgw-admin: use ConfigStore and related zone APIs
replaces all of rgw_admin.cc's use of the RGWSystemMetaObj subclasses
with calls to the ConfigStore

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 17:48:00 -04:00
Casey Bodley
5bd8cb5d2f rgw: add higher-level functions to rgw_zone.*
duplicates some of the logic from member functions of
RGWRealm/Period/ZoneGroup/ZoneParams, but as free functions in terms
of the sal::ConfigStore APIs

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 17:48:00 -04:00
Casey Bodley
547f07d249 radosgw-admin: fix --tier-config for 'zonegroup add'
ZONEGROUP_ADD applies changes to RGWZoneParams based on the
--tier-config option, but doesn't write those changes to rados

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 17:48:00 -04:00
Casey Bodley
d6246eadc4 radosgw-admin: create a ConfigStore
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 17:48:00 -04:00
Casey Bodley
6530f1f9e5 rgw: add create_config_store() factory
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 17:48:00 -04:00
Casey Bodley
465b6f2eb1 rgw: add rgw::sal::ImmutableConfigStore for json-based config
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 17:48:00 -04:00
Casey Bodley
3fb6def08c rgw: add rgw::sal::SQLiteConfigStore
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 17:48:00 -04:00
Casey Bodley
32496e431d rgw: add rgw::sal::RadosConfigStore
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 16:24:20 -04:00
Casey Bodley
0b8538702d rgw: add rgw::sal::ConfigStore
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 16:24:20 -04:00
Casey Bodley
9a7a7b7866 rgw: RGWRealm/Period/ZoneGroup/ZoneParams are fully public
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 16:24:20 -04:00
Andriy Tkachuk
3b3da64d74 compressor: fix rpmbuild on RHEL-8
When building rpms on latest RHEL-8.6:

    [  0%] Building CXX object src/compressor/CMakeFiles/compressor_objs.dir/Compressor.cc.o
    In file included from /d/ceph-build/ceph-17.2.3-0-dff484dfc9e/src/common/config_values.h:59,
                     from /d/ceph-build/ceph-17.2.3-0-dff484dfc9e/src/common/config.h:27,
                     from /d/ceph-build/ceph-17.2.3-0-dff484dfc9e/src/common/config_proxy.h:6,
                     from /d/ceph-build/ceph-17.2.3-0-dff484dfc9e/src/common/ceph_context.h:41,
                     from /d/ceph-build/ceph-17.2.3-0-dff484dfc9e/src/compressor/Compressor.cc:23:
    /d/ceph-build/ceph-17.2.3-0-dff484dfc9e/src/common/options/legacy_config_opts.h:1:10: fatal error: global_legacy_options.h: No such file or directory
        1 | #include "global_legacy_options.h"
          |          ^~~~~~~~~~~~~~~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [src/compressor/CMakeFiles/compressor_objs.dir/build.make:76: src/compressor/CMakeFiles/compressor_objs.dir/Compressor.cc.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:7964: src/compressor/CMakeFiles/compressor_objs.dir/all] Error 2
    make: *** [Makefile:146: all] Error 2
    error: Bad exit status from /var/tmp/rpm-tmp.1CBUsC (%build)

    RPM build errors:
        Bad exit status from /var/tmp/rpm-tmp.1CBUsC (%build)

Solution: add legacy-option-headers dependency to compressor_objs.

Signed-off-by: Andriy Tkachuk <andriy.tkachuk@seagate.com>
2022-09-28 20:34:22 +01:00
Laura Flores
97833a6a81 mgr/telemetry: handle daemons with complex ids
Treating daemons as `<daemon_type>.x` caused a crash
in the Telemetry module since the current method does not cover a case
where a daemon id is more complex, i.e. `<daemon_type>.x.y`.

When we parse the daemon type and daemon id, we should
split it into a maximum of two pieces rather than splitting
it by every `.` character. Specifying `1` in the Python
.split() function will limit the split to a maximum of two items.

Fixes: https://tracker.ceph.com/issues/57700
Signed-off-by: Laura Flores <lflores@redhat.com>
2022-09-28 17:17:17 +00:00
Casey Bodley
652bf75409
Merge pull request #45379 from tobias-urdin/bump-openstack-versions
qa/suites/rgw: fix and update tempest and barbican tests

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-09-28 10:51:38 -04:00
Pedro Gonzalez Gomez
7e4046bee2
Merge pull request #48267 from rhcs-dashboard/nfs-exports-fs-permission-error
mgr/dashboard: handle the cephfs permission issue in nfs exports



Reviewed-by: Pedro González Gómez <pegonzal@redhat.com>
Reviewed-by: Aashish Sharma <aasharma@redhat.com>
2022-09-28 09:26:17 +02:00
Samuel Just
d400f50dac
Merge pull request #48114 from athanatos/sjust/wip-crimson-multicore-for-review
crimson: multicore support for pgs in crimson-osd

Reviewed-by: Yingxin Cheng <yingxin.cheng@intel.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2022-09-27 16:03:23 -07:00
John Mulligan
ff0260f68c cephadm: rename import from cephadm to _cephadm
To be consistent with the other test_*.py files.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:53:43 -04:00
John Mulligan
6943ad7791 cephadm: rename import from cd to _cephadm
The `cd` name is an abbreviation of an obsolete name for cephadm.
As this is not widely known it could be confusing or conflict with
other common terms like `cd` for "change dir" or "compact disc".
Therefore we rename it to something much clearer.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:53:38 -04:00
John Mulligan
cf8c57882e cephadm: rename import from cd to _cephadm
The `cd` name is an abbreviation of an obsolete name for cephadm.
As this is not widely known it could be confusing or conflict with
other common terms like `cd` for "change dir" or "compact disc".
Therefore we rename it to something much clearer.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:53:34 -04:00
John Mulligan
343edeb151 cephadm: rename import from cd to _cephadm
The `cd` name is an abbreviation of an obsolete name for cephadm.
As this is not widely known it could be confusing or conflict with
other common terms like `cd` for "change dir" or "compact disc".
Therefore we rename it to something much clearer.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:51:36 -04:00
John Mulligan
7c8af995aa cephadm: fix some nonstandard formatting in fixtures.py
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:42:13 -04:00
John Mulligan
695a46e1d1 cephadm: remove trailing whitespace
Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:42:13 -04:00
John Mulligan
fb8120d510 cephadm: lazily import cephadm in fixtures.py
We can avoid creating side-effects in the cephadm module by only importing
the module in the functions that are meant to generate side effects.
Simply importing fixtures and not calling any of the functions now can
not change cephadm by accident.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:42:13 -04:00
John Mulligan
bf963d5ac4 cephadm: remove container_engine argument from test helper function
The with_cephadm_ctx test helper function had an argument that *called*
mock_podman function, thus calling the function at import-time. This can
lead to confusing and unexpected side effects. Because the
container_engine argument is not used by any callers of with_cephadm_ctx
we remove the argument.
All other callers of with_cephadm_ctx that make use of container engine
are already setting `ctx.container_engine = <xyz>` so removing the
argument makes it harder to make the same mistake again in the future.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:42:13 -04:00
John Mulligan
9fbf1546cb cephadm: fix iscsi test_unit_run relying on how cephadm was being imported
The iscsi test_unit_run test case was relying upon a strange side-effect
of how the cephadm module was being imported in fixtures.py. In short,
it expected the podman container_engine not to be a subclass of Podman.

```
(Pdb) p ctx.container_engine
<Mock spec='Podman' id='140676342644256'>
(Pdb) p ctx.container_engine.__class__
<class 'cephadm.Podman'>
(Pdb) p isinstance(ctx.container_engine, Podman)
False
(Pdb) p id(ctx.container_engine.__class__)
94372514199712
(Pdb) p id(Podman)
94372516682112
```

In order to clean up fixtures.py and other imports of cephadm as a
module, we fix the test to expect a mock docker. We choose docker
because it only requires changes the path of the container engine. If we
changed it to a real podman subclass we'd have to change many arguments
in the expected CLI text.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:41:54 -04:00
John Mulligan
d0893e7558 cephadm: use import_cephadm function in test_*.py files
Any current or future chicanery needed to import cephadm is now isolated
in one place, and doesn't need to be repeated in every file.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:41:54 -04:00
John Mulligan
1c6f1eb598 cephadm: use a function to encapsulate loading cephadm as a module
Instead of "open coding" all the cephadm imports let's do it in a
reusable function.

Signed-off-by: John Mulligan <jmulligan@redhat.com>
2022-09-27 14:41:54 -04:00
Nizamudeen A
81da1cbfa9 mgr/dashboard: handle the cephfs permission issue in nfs exports
Fixes: https://tracker.ceph.com/issues/48686
Signed-off-by: Nizamudeen A <nia@redhat.com>
2022-09-27 23:52:04 +05:30
Daniel Gryniewicz
1b72b90d3e
Merge pull request #48256 from dang/wip-dang-zipper-admin-api
RGW - Re-do admin API split

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2022-09-27 12:48:11 -04:00
Igor Fedotov
2d88fdf3da
Merge pull request #48092 from rosinL/fix-57537
os/bluestore: use direct write in BlueStore::_write_bdev_label

Reviewed-by: Igor Fedotov <ifedotov@croit.io>
2022-09-27 19:17:41 +03:00
nsedrickm
8621f6e1be mgr/dashboard: Improve level A accessibility for missing aria labels in tabs and listitems
Replace tab component ul and li elements with navs and ng-containers

Fixes: https://tracker.ceph.com/issues/55872
Signed-off-by: nsedrickm <nsedrick101@gmail.com>
2022-09-27 07:28:48 +01:00
Nizamudeen A
395daf2959
Merge pull request #47876 from torchiaf/fix/43116-2
mgr/dashboard: Add text to empty life expectancy column

Reviewed-by: Pegonzal <NOT@FOUND>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Nizamudeen A <nia@redhat.com>
Reviewed-by: Pere Diaz Bou <pdiazbou@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2022-09-27 10:59:40 +05:30
Samuel Just
e6d85efeaa crimson/osd/main: call OSD::stop()
Signed-off-by: Samuel Just <sjust@redhat.com>
2022-09-26 19:35:41 -07:00