Skip to content

Commit

Permalink
deb,rpm: python-cephfs should depend on python-ceph-argparse
Browse files Browse the repository at this point in the history
python-ceph-argparse is required by ceph_volume_client.py. hence we do
need list it as a dependency of python-cephfs.

Fixes: http://tracker.ceph.com/issues/24919
Signed-off-by: Kefu Chai <[email protected]>
  • Loading branch information
tchaikov committed Jul 25, 2018
1 parent 8d8099b commit 03c7bee
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
24 changes: 22 additions & 2 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ Requires: python%{_python_buildid}-rados = %{_epoch_prefix}%{version}-%{release}
Requires: python%{_python_buildid}-rbd = %{_epoch_prefix}%{version}-%{release}
Requires: python%{_python_buildid}-cephfs = %{_epoch_prefix}%{version}-%{release}
Requires: python%{_python_buildid}-rgw = %{_epoch_prefix}%{version}-%{release}
Requires: python%{_python_buildid}-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
%if 0%{?fedora} || 0%{?rhel}
Requires: python%{_python_buildid}-prettytable
Requires: python%{_python_buildid}-requests
Expand Down Expand Up @@ -731,6 +732,7 @@ Group: Development/Libraries/Python
%endif
Requires: libcephfs2 = %{_epoch_prefix}%{version}-%{release}
Requires: python-rados = %{_epoch_prefix}%{version}-%{release}
Requires: python-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
Obsoletes: python-ceph < %{_epoch_prefix}%{version}-%{release}
%description -n python-cephfs
This package contains Python 2 libraries for interacting with Cephs distributed
Expand All @@ -744,10 +746,24 @@ Group: Development/Libraries/Python
%endif
Requires: libcephfs2 = %{_epoch_prefix}%{version}-%{release}
Requires: python%{python3_pkgversion}-rados = %{_epoch_prefix}%{version}-%{release}
Requires: python%{python3_pkgversion}-ceph-argparse = %{_epoch_prefix}%{version}-%{release}
%description -n python%{python3_pkgversion}-cephfs
This package contains Python 3 libraries for interacting with Cephs distributed
file system.

%if 0%{with python2}
%package -n python-ceph-argparse
Summary: Python 2 utility libraries for Ceph CLI
%if 0%{?suse_version}
Group: Development/Libraries/Python
%endif
%description -n python-ceph-argparse
This package contains types and routines for Python 2 used by the Ceph CLI as
well as the RESTful interface. These have to do with querying the daemons for
command-description information, validating user command input against those
descriptions, and submitting the command to the appropriate daemon.
%endif

%package -n python%{python3_pkgversion}-ceph-argparse
Summary: Python 3 utility libraries for Ceph CLI
%if 0%{?suse_version}
Expand Down Expand Up @@ -1200,8 +1216,6 @@ fi
%config %{_sysconfdir}/bash_completion.d/radosgw-admin
%config(noreplace) %{_sysconfdir}/ceph/rbdmap
%{_unitdir}/rbdmap.service
%{python_sitelib}/ceph_argparse.py*
%{python_sitelib}/ceph_daemon.py*
%dir %{_udevrulesdir}
%{_udevrulesdir}/50-rbd.rules
%attr(3770,ceph,ceph) %dir %{_localstatedir}/log/ceph/
Expand Down Expand Up @@ -1726,6 +1740,12 @@ fi
%{python3_sitelib}/ceph_volume_client.py
%{python3_sitelib}/__pycache__/ceph_volume_client.cpython*.py*

%if 0%{with python2}
%files -n python-ceph-argparse
%{python_sitelib}/ceph_argparse.py*
%{python_sitelib}/ceph_daemon.py*
%endif

%files -n python%{python3_pkgversion}-ceph-argparse
%{python3_sitelib}/ceph_argparse.py
%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py*
Expand Down
2 changes: 0 additions & 2 deletions debian/ceph-common.install
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,3 @@ usr/share/ceph/id_rsa_drop.ceph.com
usr/share/ceph/id_rsa_drop.ceph.com.pub
etc/ceph/rbdmap
lib/udev/rules.d/50-rbd.rules
usr/lib/python*/dist-packages/ceph_argparse.py*
usr/lib/python*/dist-packages/ceph_daemon.py*
18 changes: 18 additions & 0 deletions debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,7 @@ Package: ceph-common
Architecture: linux-any
Depends: librbd1 (= ${binary:Version}),
python-cephfs (= ${binary:Version}),
python-ceph-argparse (= ${binary:Version}),
python-prettytable,
python-rados (= ${binary:Version}),
python-rbd (= ${binary:Version}),
Expand Down Expand Up @@ -960,6 +961,7 @@ Architecture: linux-any
Section: python
Depends: libcephfs2 (= ${binary:Version}),
python-rados (= ${binary:Version}),
python-ceph-argparse (= ${binary:Version}),
${misc:Depends},
${python:Depends},
${shlibs:Depends},
Expand Down Expand Up @@ -995,6 +997,7 @@ Architecture: linux-any
Section: python
Depends: libcephfs2 (= ${binary:Version}),
python3-rados (= ${binary:Version}),
python3-ceph-argparse (= ${binary:Version}),
${misc:Depends},
${python3:Depends},
${shlibs:Depends},
Expand Down Expand Up @@ -1023,6 +1026,21 @@ Description: Python 3 libraries for the Ceph libcephfs library
.
This package contains the debugging symbols for python3-cephfs.

Package: python-ceph-argparse
Architecture: linux-any
Section: python
Depends: ${misc:Depends},
${python:Depends},
Replaces: ceph-common (<< 14.0.0)
Breaks: ceph-common (<< 14.0.0)
Description: Python 2 utility libraries for Ceph CLI
Ceph is a massively scalable, open-source, distributed
storage system that runs on commodity hardware and delivers object,
block and file system storage.
.
This package contains types and routines for Python 2 used by the
Ceph CLI as well as the RESTful interface.

Package: python3-ceph-argparse
Architecture: linux-any
Section: python
Expand Down
2 changes: 2 additions & 0 deletions debian/python-ceph-argparse.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
usr/lib/python2*/dist-packages/ceph_argparse.py
usr/lib/python2*/dist-packages/ceph_daemon.py

0 comments on commit 03c7bee

Please sign in to comment.