From: Kefu Chai Date: Fri, 13 Dec 2019 07:41:18 +0000 (+0800) Subject: ceph.spec.in: add runtime deps for mgr-diskprediction-cloud X-Git-Tag: v15.1.0~371^2~2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=702880dcf4e8141048ce4abd1990c3c58de02d2b;p=ceph.git ceph.spec.in: add runtime deps for mgr-diskprediction-cloud please note, these dependencies are not available in el7/el8, and python2-{grpcio,protobuf} do not exist in fedora core. also, the `google.api` module is still missing even with these dependencies installed. so consider it as a partial fix. See-also: https://tracker.ceph.com/issues/42655 Signed-off-by: Kefu Chai --- diff --git a/ceph.spec.in b/ceph.spec.in index c2c3fb16168d..d0b7d1b11688 100644 --- a/ceph.spec.in +++ b/ceph.spec.in @@ -566,6 +566,13 @@ BuildArch: noarch Group: System/Filesystems %endif Requires: ceph-mgr = %{_epoch_prefix}%{version}-%{release} +%if 0%{without python2} +Requires: python3-grpcio +Requires: python3-protobuf +%else +Requires: python2-grpcio +Requires: python2-protobuf +%endif %description mgr-diskprediction-cloud ceph-mgr-diskprediction-cloud is a ceph-mgr plugin that tries to predict disk failures using services in the Google cloud.