]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
ceph.spec.in: add runtime deps for mgr-diskprediction-cloud
authorKefu Chai <kchai@redhat.com>
Fri, 13 Dec 2019 07:41:18 +0000 (15:41 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 17 Dec 2019 13:52:18 +0000 (21:52 +0800)
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 <kchai@redhat.com>
ceph.spec.in

index c2c3fb16168db0a019d792cb8e177cbae185b670..d0b7d1b116889b2b2af7a826c4d51555da591cc9 100644 (file)
@@ -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.