Requires: ceph-grafana-dashboards = %{_epoch_prefix}%{version}-%{release}
Requires: ceph-prometheus-alerts = %{_epoch_prefix}%{version}-%{release}
Requires: python%{python3_pkgversion}-setuptools
+%if 0%{?fedora} || 0%{?rhel} >= 9
Requires: python%{python3_pkgversion}-grpcio
Requires: python%{python3_pkgversion}-grpcio-tools
+%endif
%if 0%{?fedora} || 0%{?rhel} || 0%{?openEuler}
Requires: python%{python3_pkgversion}-cherrypy
Requires: python%{python3_pkgversion}-routes
Requires: python%{python3_pkgversion}-werkzeug
%if 0%{?weak_deps}
Recommends: python%{python3_pkgversion}-saml
+%if 0%{?fedora} || 0%{?rhel} <= 8
+Recommends: python%{python3_pkgversion}-grpcio
+Recommends: python%{python3_pkgversion}-grpcio-tools
+%endif
%endif
%endif
%if 0%{?suse_version}
msgr="21"
read -r -d '' usage <<EOF || true
-usage: $0 [option]... \nex: MON=3 OSD=1 MDS=1 MGR=1 RGW=1 NFS=1 $0 -n -d
+usage: $0 [option]... \nex: MON=3 OSD=1 MDS=1 MGR=1 RGW=1 NFS=1 NVMEOF_GW=ceph:5500 $0 -n -d
options:
-d, --debug
-t, --trace
debug echo dashboard module not working correctly!
fi
fi
+
+ ceph_adm osd pool create rbd
+ ceph_adm osd pool application enable rbd rbd
+
+ if [ -n "${NVMEOF_GW}" ]; then
+ echo "Adding nvmeof-gateway ${NVMEOF_GW} to dashboard"
+ ceph_adm dashboard nvmeof-gateway-add -i <(echo "${NVMEOF_GW}") "${NVMEOF_GW/:/_}"
+ fi
fi
if $with_mgr_restful; then
create_mgr_restful_secret