]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
spec, deb: package cephfs-top utility
authorVenky Shankar <vshankar@redhat.com>
Mon, 16 Nov 2020 14:07:03 +0000 (09:07 -0500)
committerVenky Shankar <vshankar@redhat.com>
Mon, 11 Jan 2021 11:15:53 +0000 (06:15 -0500)
Signed-off-by: Venky Shankar <vshankar@redhat.com>
ceph.spec.in
debian/cephfs-top.install [new file with mode: 0644]
debian/control
debian/rules
src/tools/cephfs/CMakeLists.txt

index 8c49f6204501abadd00e10f61ee4bb12fad9dd09..2d0b647c285bf0c8869108cf9a35e7a13d1bfdd9 100644 (file)
@@ -718,6 +718,14 @@ storage system.  This package provides a REST gateway to the
 object store that aims to implement a superset of Amazon's S3
 service as well as the OpenStack Object Storage ("Swift") API.
 
+%package -n cephfs-top
+Summary:    top(1) like utility for Ceph Filesystem
+BuildArch:  noarch
+Requires:   python%{python3_pkgversion}-rados
+%description -n cephfs-top
+This package provides a top(1) like utility to display Ceph Filesystem metrics
+in realtime.
+
 %if %{with ocf}
 %package resource-agents
 Summary:       OCF-compliant resource agents for Ceph daemons
@@ -2175,6 +2183,11 @@ fi
 %{_bindir}/cephfs-shell
 %endif
 
+%files -n cephfs-top
+%{python3_sitelib}/cephfs_top-*.egg-info
+%{_bindir}/cephfs-top
+%{_mandir}/man8/cephfs-top.8*
+
 %if 0%{with ceph_test_package}
 %files -n ceph-test
 %{_bindir}/ceph-client-debug
diff --git a/debian/cephfs-top.install b/debian/cephfs-top.install
new file mode 100644 (file)
index 0000000..930396b
--- /dev/null
@@ -0,0 +1,2 @@
+usr/bin/cephfs-top
+usr/lib/python3*/dist-packages/cephfs_top-*.egg-info
index 8cd37afdfe94a4a83470e0151edc7d8c76cda541..d962b523a9df17be2325125f0cf13fd8b4a8d203 100644 (file)
@@ -1184,6 +1184,15 @@ Description: interactive shell for the Ceph distributed file system
  .
  This package contains a CLI for interacting with the CephFS.
 
+Package: cephfs-top
+Architecture: all
+Depends: ${misc:Depends}
+         ${python3:Depends}
+Description: This package provides a top(1) like utility to display various
+ filesystem metrics in realtime.
+ .
+ This package contains utility for displaying filesystem metrics.
+
 Package: ceph-grafana-dashboards
 Architecture: all
 Description: grafana dashboards for the ceph dashboard
index 8538cdeff5cfa6896e818b1c5a8a1e8aa3eab762..f8e001549668df94c20d0fcee3f991b55cf0babb 100755 (executable)
@@ -126,6 +126,7 @@ override_dh_python3:
        dh_python3 -p python3-ceph-argparse
        dh_python3 -p python3-ceph-common
        dh_python3 -p cephfs-shell
+       dh_python3 -p cephfs-top
        dh_python3 -p cephadm
 
 # do not run tests
index ae7d4d7492e2a4a3f654341b1330b882b25dc24d..7449e3704b002f95504b0818120a59444d35723c 100644 (file)
@@ -56,3 +56,8 @@ if(WITH_CEPHFS_SHELL)
     add_tox_test(cephfs-shell)
   endif()
 endif()
+
+option(WITH_CEPHFS_TOP "install cephfs-top utility" ON)
+if(WITH_CEPHFS_TOP)
+  add_subdirectory(top)
+endif()