Skip to content

Commit a3cf842

Browse files
authored
Merge pull request ceph#57299 from rhcs-dashboard/fix-47066-main
mgr/{restful,zabbix}: remove deprecated module Reviewed-by: @tchaikov Reviewed-by: @ktdreyer Reviewed-by: @jmolmo
2 parents c636ba8 + b0085bf commit a3cf842

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+31
-5726
lines changed

PendingReleaseNotes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,13 @@
3535
users that modifying "max_mds" may not help with troubleshooting or recovery
3636
effort. Instead, it might further destabilize the cluster.
3737

38+
* mgr/restful, mgr/zabbix: both modules, already deprecated since 2020, have been
39+
finally removed. They have not been actively maintenance in the last years,
40+
and started suffering from vulnerabilities in their dependency chain (e.g.:
41+
CVE-2023-46136). As alternatives, for the `restful` module, the `dashboard` module
42+
provides a richer and better maintained RESTful API. Regarding the `zabbix` module,
43+
there are alternative monitoring solutions, like `prometheus`, which is the most
44+
widely adopted among the Ceph user community.
3845

3946

4047
>=19.0.0

ceph.spec.in

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ BuildRequires: hostname
336336
BuildRequires: jq
337337
BuildRequires: libuuid-devel
338338
BuildRequires: python%{python3_pkgversion}-bcrypt
339-
BuildRequires: python%{python3_pkgversion}-pecan
340339
BuildRequires: python%{python3_pkgversion}-requests
341340
BuildRequires: python%{python3_pkgversion}-dateutil
342341
BuildRequires: python%{python3_pkgversion}-coverage
@@ -469,7 +468,6 @@ BuildRequires: xmlsec1-openssl-devel
469468
BuildRequires: python%{python3_pkgversion}-cherrypy
470469
BuildRequires: python%{python3_pkgversion}-routes
471470
BuildRequires: python%{python3_pkgversion}-scipy
472-
BuildRequires: python%{python3_pkgversion}-werkzeug
473471
BuildRequires: python%{python3_pkgversion}-pyOpenSSL
474472
%endif
475473
BuildRequires: jsonnet
@@ -480,7 +478,6 @@ BuildRequires: libxmlsec1-nss1
480478
BuildRequires: libxmlsec1-openssl1
481479
BuildRequires: python%{python3_pkgversion}-CherryPy
482480
BuildRequires: python%{python3_pkgversion}-Routes
483-
BuildRequires: python%{python3_pkgversion}-Werkzeug
484481
BuildRequires: python%{python3_pkgversion}-numpy-devel
485482
BuildRequires: xmlsec1-devel
486483
BuildRequires: xmlsec1-openssl-devel
@@ -705,7 +702,6 @@ Recommends: python%{python3_pkgversion}-grpcio-tools
705702
%if 0%{?suse_version}
706703
Requires: python%{python3_pkgversion}-CherryPy
707704
Requires: python%{python3_pkgversion}-Routes
708-
Requires: python%{python3_pkgversion}-Werkzeug
709705
Recommends: python%{python3_pkgversion}-python3-saml
710706
%endif
711707
%description mgr-dashboard
@@ -738,20 +734,17 @@ Group: System/Filesystems
738734
%endif
739735
Requires: python%{python3_pkgversion}-bcrypt
740736
Requires: python%{python3_pkgversion}-packaging
741-
Requires: python%{python3_pkgversion}-pecan
742737
Requires: python%{python3_pkgversion}-pyOpenSSL
743738
Requires: python%{python3_pkgversion}-requests
744739
Requires: python%{python3_pkgversion}-dateutil
745740
Requires: python%{python3_pkgversion}-setuptools
746741
%if 0%{?fedora} || 0%{?rhel} >= 8 || 0%{?openEuler}
747742
Requires: python%{python3_pkgversion}-cherrypy
748743
Requires: python%{python3_pkgversion}-pyyaml
749-
Requires: python%{python3_pkgversion}-werkzeug
750744
%endif
751745
%if 0%{?suse_version}
752746
Requires: python%{python3_pkgversion}-CherryPy
753747
Requires: python%{python3_pkgversion}-PyYAML
754-
Requires: python%{python3_pkgversion}-Werkzeug
755748
%endif
756749
# RHEL8 has python 3.6 and that lacks dataclasses in the stdlib, so pull in the
757750
# backport dataclasses module instead.
@@ -1996,7 +1989,6 @@ fi
19961989
%{_datadir}/ceph/mgr/progress
19971990
%{_datadir}/ceph/mgr/prometheus
19981991
%{_datadir}/ceph/mgr/rbd_support
1999-
%{_datadir}/ceph/mgr/restful
20001992
%{_datadir}/ceph/mgr/rgw
20011993
%{_datadir}/ceph/mgr/selftest
20021994
%{_datadir}/ceph/mgr/smb
@@ -2007,7 +1999,6 @@ fi
20071999
%{_datadir}/ceph/mgr/telemetry
20082000
%{_datadir}/ceph/mgr/test_orchestrator
20092001
%{_datadir}/ceph/mgr/volumes
2010-
%{_datadir}/ceph/mgr/zabbix
20112002

20122003
%files mgr-rook
20132004
%{_datadir}/ceph/mgr/rook

debian/ceph-mgr-modules-core.install

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ usr/share/ceph/mgr/progress
1616
usr/share/ceph/mgr/prometheus
1717
usr/share/ceph/mgr/rbd_support
1818
usr/share/ceph/mgr/rgw
19-
usr/share/ceph/mgr/restful
2019
usr/share/ceph/mgr/selftest
2120
usr/share/ceph/mgr/snap_schedule
2221
usr/share/ceph/mgr/stats
@@ -25,4 +24,3 @@ usr/share/ceph/mgr/telegraf
2524
usr/share/ceph/mgr/telemetry
2625
usr/share/ceph/mgr/test_orchestrator
2726
usr/share/ceph/mgr/volumes
28-
usr/share/ceph/mgr/zabbix
Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
natsort
22
CherryPy
33
packaging
4-
pecan
5-
werkzeug
64
requests
75
python-dateutil

debian/control

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,6 @@ Build-Depends: automake,
9494
python3-all-dev,
9595
python3-cherrypy3,
9696
python3-natsort,
97-
python3-pecan <pkg.ceph.check>,
9897
python3-bcrypt <pkg.ceph.check>,
9998
tox <pkg.ceph.check>,
10099
python3-coverage <pkg.ceph.check>,
@@ -107,7 +106,6 @@ Build-Depends: automake,
107106
python3-setuptools,
108107
python3-sphinx,
109108
python3-venv,
110-
python3-werkzeug <pkg.ceph.check>,
111109
python3-yaml,
112110
ragel <pkg.ceph.crimson>,
113111
socat <pkg.ceph.check>,

doc/_ext/ceph_commands.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,6 @@ def mocked_modules(self):
285285
# make diskprediction_local happy
286286
mock_imports += ['numpy',
287287
'scipy']
288-
# make restful happy
289-
mock_imports += ['pecan',
290-
'pecan.rest',
291-
'pecan.hooks',
292-
'werkzeug',
293-
'werkzeug.serving']
294288

295289
for m in mock_imports:
296290
args = {}

doc/_ext/ceph_confval.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,12 +289,6 @@ def mocked_modules(self):
289289
# make diskprediction_local happy
290290
mock_imports += ['numpy',
291291
'scipy']
292-
# make restful happy
293-
mock_imports += ['pecan',
294-
'pecan.rest',
295-
'pecan.hooks',
296-
'werkzeug',
297-
'werkzeug.serving']
298292

299293
for m in mock_imports:
300294
args = {}

doc/dev/developer_guide/dash-devel.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ dashboard and its URLs::
161161

162162
dashboard urls: https://192.168.178.84:41259, https://192.168.178.84:43259, https://192.168.178.84:45259
163163
w/ user/pass: admin / admin
164-
restful urls: https://192.168.178.84:42259, https://192.168.178.84:44259, https://192.168.178.84:46259
165-
w/ user/pass: admin / 598da51f-8cd1-4161-a970-b2944d5ad200
166164

167165
During development (especially in backend development), you also want to
168166
check on occasions if the dashboard manager module is still running. To do so
@@ -175,8 +173,7 @@ should look similar to the following output:
175173
176174
$ ./bin/ceph mgr services
177175
{
178-
"dashboard": "https://home:41931/",
179-
"restful": "https://home:42931/"
176+
"dashboard": "https://home:41931/"
180177
}
181178
182179
By default, this environment uses a randomly chosen port for Ceph Dashboard

doc/mgr/administrator.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ Here is an example of enabling the :term:`Dashboard` module:
100100
$ ceph mgr module ls
101101
{
102102
"enabled_modules": [
103-
"restful",
104103
"status"
105104
],
106105
"disabled_modules": [
@@ -112,7 +111,6 @@ Here is an example of enabling the :term:`Dashboard` module:
112111
$ ceph mgr module ls
113112
{
114113
"enabled_modules": [
115-
"restful",
116114
"status",
117115
"dashboard"
118116
],
@@ -122,8 +120,7 @@ Here is an example of enabling the :term:`Dashboard` module:
122120
123121
$ ceph mgr services
124122
{
125-
"dashboard": "http://myserver.com:7789/",
126-
"restful": "https://myserver.com:8789/"
123+
"dashboard": "http://myserver.com:7789/"
127124
}
128125
129126

doc/mgr/index.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,6 @@ sensible.
3333
Alerts module <alerts>
3434
DiskPrediction module <diskprediction>
3535
Local pool module <localpool>
36-
RESTful module <restful>
37-
Zabbix module <zabbix>
3836
Prometheus module <prometheus>
3937
Influx module <influx>
4038
Hello module <hello>

0 commit comments

Comments
 (0)