revert the last revision
OBS-URL: https://build.opensuse.org/package/show/filesystems:ceph/ceph?expand=0&rev=259
This commit is contained in:
parent
1e90d59d2b
commit
a97141d229
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:b3e826021e72c62c45c2c700205eaec50a0de39d207ece14b5a66f9bf24b7f85
|
|
||||||
size 139573917
|
|
3
ceph-15.0.0-8441-g88a99a841e.tar.bz2
Normal file
3
ceph-15.0.0-8441-g88a99a841e.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:54fbd26c90cb35e6b97308cf6e986f22a5cd939380e6888d9fe48e1065baf321
|
||||||
|
size 142438252
|
@ -1,4 +1,3 @@
|
|||||||
# vim: set noexpandtab ts=8 sw=8 :
|
|
||||||
#
|
#
|
||||||
# spec file for package ceph
|
# spec file for package ceph
|
||||||
#
|
#
|
||||||
@ -37,6 +36,7 @@
|
|||||||
%bcond_without cephfs_java
|
%bcond_without cephfs_java
|
||||||
%endif
|
%endif
|
||||||
%bcond_without amqp_endpoint
|
%bcond_without amqp_endpoint
|
||||||
|
%bcond_without kafka_endpoint
|
||||||
%bcond_without lttng
|
%bcond_without lttng
|
||||||
%bcond_without libradosstriper
|
%bcond_without libradosstriper
|
||||||
%bcond_without ocf
|
%bcond_without ocf
|
||||||
@ -46,6 +46,7 @@
|
|||||||
%bcond_with selinux
|
%bcond_with selinux
|
||||||
%bcond_with cephfs_java
|
%bcond_with cephfs_java
|
||||||
%bcond_with amqp_endpoint
|
%bcond_with amqp_endpoint
|
||||||
|
%bcond_with kafka_endpoint
|
||||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%global _fillupdir /var/adm/fillup-templates
|
%global _fillupdir /var/adm/fillup-templates
|
||||||
@ -108,7 +109,7 @@
|
|||||||
# main package definition
|
# main package definition
|
||||||
#################################################################################
|
#################################################################################
|
||||||
Name: ceph-test
|
Name: ceph-test
|
||||||
Version: 15.0.0.7452+gf6057ccfe3
|
Version: 15.0.0.8441+g88a99a841e
|
||||||
Release: 0%{?dist}
|
Release: 0%{?dist}
|
||||||
%if 0%{?fedora} || 0%{?rhel}
|
%if 0%{?fedora} || 0%{?rhel}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
@ -124,7 +125,7 @@ License: LGPL-2.1 and LGPL-3.0 and CC-BY-SA-3.0 and GPL-2.0 and BSL-1.0 and BSD-
|
|||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
%endif
|
%endif
|
||||||
URL: http://ceph.com/
|
URL: http://ceph.com/
|
||||||
Source0: %{?_remote_tarball_prefix}ceph-15.0.0-7452-gf6057ccfe3.tar.bz2
|
Source0: %{?_remote_tarball_prefix}ceph-15.0.0-8441-g88a99a841e.tar.bz2
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Source96: checkin.sh
|
Source96: checkin.sh
|
||||||
Source97: README-checkin.txt
|
Source97: README-checkin.txt
|
||||||
@ -182,7 +183,7 @@ BuildRequires: libaio-devel
|
|||||||
BuildRequires: libblkid-devel >= 2.17
|
BuildRequires: libblkid-devel >= 2.17
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libcap-ng-devel
|
BuildRequires: libcap-ng-devel
|
||||||
BuildRequires: pkgconfig(libudev)
|
BuildRequires: libudev-devel
|
||||||
BuildRequires: libnl3-devel
|
BuildRequires: libnl3-devel
|
||||||
BuildRequires: liboath-devel
|
BuildRequires: liboath-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
@ -198,7 +199,7 @@ BuildRequires: python%{_python_buildid}
|
|||||||
BuildRequires: python%{_python_buildid}-devel
|
BuildRequires: python%{_python_buildid}-devel
|
||||||
BuildRequires: snappy-devel
|
BuildRequires: snappy-devel
|
||||||
BuildRequires: sudo
|
BuildRequires: sudo
|
||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: udev
|
||||||
BuildRequires: util-linux
|
BuildRequires: util-linux
|
||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
BuildRequires: which
|
BuildRequires: which
|
||||||
@ -209,6 +210,9 @@ BuildRequires: yasm
|
|||||||
%if 0%{with amqp_endpoint}
|
%if 0%{with amqp_endpoint}
|
||||||
BuildRequires: librabbitmq-devel
|
BuildRequires: librabbitmq-devel
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{with kafka_endpoint}
|
||||||
|
BuildRequires: librdkafka-devel
|
||||||
|
%endif
|
||||||
%if 0%{with make_check}
|
%if 0%{with make_check}
|
||||||
BuildRequires: jq
|
BuildRequires: jq
|
||||||
BuildRequires: libuuid-devel
|
BuildRequires: libuuid-devel
|
||||||
@ -217,16 +221,6 @@ BuildRequires: python%{_python_buildid}-nose
|
|||||||
BuildRequires: python%{_python_buildid}-requests
|
BuildRequires: python%{_python_buildid}-requests
|
||||||
BuildRequires: python%{_python_buildid}-six
|
BuildRequires: python%{_python_buildid}-six
|
||||||
BuildRequires: python%{_python_buildid}-virtualenv
|
BuildRequires: python%{_python_buildid}-virtualenv
|
||||||
%if 0%{?rhel} < 8
|
|
||||||
BuildRequires: python%{_python_buildid}-coverage
|
|
||||||
BuildRequires: python%{_python_buildid}-pecan
|
|
||||||
BuildRequires: python%{_python_buildid}-tox
|
|
||||||
%endif
|
|
||||||
%if 0%{?rhel} == 7
|
|
||||||
BuildRequires: pyOpenSSL%{_python_buildid}
|
|
||||||
%else
|
|
||||||
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
|
||||||
%endif
|
|
||||||
BuildRequires: socat
|
BuildRequires: socat
|
||||||
%endif
|
%endif
|
||||||
%if 0%{with seastar}
|
%if 0%{with seastar}
|
||||||
@ -296,17 +290,27 @@ BuildRequires: lz4-devel >= 1.7
|
|||||||
%endif
|
%endif
|
||||||
# distro-conditional make check dependencies
|
# distro-conditional make check dependencies
|
||||||
%if 0%{with make_check}
|
%if 0%{with make_check}
|
||||||
|
%if 0%{?fedora} || 0%{?rhel}
|
||||||
%if 0%{?fedora} || 0%{?rhel} == 7
|
%if 0%{?fedora} || 0%{?rhel} == 7
|
||||||
BuildRequires: libtool-ltdl-devel
|
BuildRequires: libtool-ltdl-devel
|
||||||
BuildRequires: python%{_python_buildid}-cherrypy
|
BuildRequires: python%{_python_buildid}-cherrypy
|
||||||
|
BuildRequires: python%{_python_buildid}-coverage
|
||||||
BuildRequires: python%{_python_buildid}-jwt
|
BuildRequires: python%{_python_buildid}-jwt
|
||||||
BuildRequires: python%{_python_buildid}-routes
|
BuildRequires: python%{_python_buildid}-routes
|
||||||
|
BuildRequires: python%{_python_buildid}-pecan
|
||||||
|
BuildRequires: python%{_python_buildid}-tox
|
||||||
BuildRequires: python%{_python_buildid}-werkzeug
|
BuildRequires: python%{_python_buildid}-werkzeug
|
||||||
BuildRequires: xmlsec1
|
BuildRequires: xmlsec1
|
||||||
BuildRequires: xmlsec1-devel
|
BuildRequires: xmlsec1-devel
|
||||||
BuildRequires: xmlsec1-nss
|
BuildRequires: xmlsec1-nss
|
||||||
BuildRequires: xmlsec1-openssl
|
BuildRequires: xmlsec1-openssl
|
||||||
BuildRequires: xmlsec1-openssl-devel
|
BuildRequires: xmlsec1-openssl-devel
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
BuildRequires: pyOpenSSL%{_python_buildid}
|
||||||
|
%else
|
||||||
|
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRequires: libxmlsec1-1
|
BuildRequires: libxmlsec1-1
|
||||||
@ -316,7 +320,12 @@ BuildRequires: python%{_python_buildid}-CherryPy
|
|||||||
BuildRequires: python%{_python_buildid}-PyJWT
|
BuildRequires: python%{_python_buildid}-PyJWT
|
||||||
BuildRequires: python%{_python_buildid}-Routes
|
BuildRequires: python%{_python_buildid}-Routes
|
||||||
BuildRequires: python%{_python_buildid}-Werkzeug
|
BuildRequires: python%{_python_buildid}-Werkzeug
|
||||||
|
BuildRequires: python%{_python_buildid}-coverage
|
||||||
BuildRequires: python%{_python_buildid}-numpy-devel
|
BuildRequires: python%{_python_buildid}-numpy-devel
|
||||||
|
BuildRequires: python%{_python_buildid}-pecan
|
||||||
|
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
||||||
|
BuildRequires: python%{_python_buildid}-tox
|
||||||
|
BuildRequires: rpm-build
|
||||||
BuildRequires: xmlsec1-devel
|
BuildRequires: xmlsec1-devel
|
||||||
BuildRequires: xmlsec1-openssl-devel
|
BuildRequires: xmlsec1-openssl-devel
|
||||||
%endif
|
%endif
|
||||||
@ -427,6 +436,10 @@ This package contains Ceph benchmarks and test tools.
|
|||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{?rhel} || 0%{?fedora}
|
||||||
|
%endif
|
||||||
|
%if 0%{?suse_version}
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@ -556,7 +569,7 @@ This package contains Ceph benchmarks and test tools.
|
|||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%endif
|
%endif
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n ceph-15.0.0-7452-gf6057ccfe3
|
%autosetup -p1 -n ceph-15.0.0-8441-g88a99a841e
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# LTO can be enabled as soon as the following GCC bug is fixed:
|
# LTO can be enabled as soon as the following GCC bug is fixed:
|
||||||
@ -631,6 +644,7 @@ ${CMAKE} .. \
|
|||||||
-DWITH_MANPAGE=ON \
|
-DWITH_MANPAGE=ON \
|
||||||
-DWITH_PYTHON3=%{python3_version} \
|
-DWITH_PYTHON3=%{python3_version} \
|
||||||
-DWITH_MGR_DASHBOARD_FRONTEND=OFF \
|
-DWITH_MGR_DASHBOARD_FRONTEND=OFF \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
-DWITH_PYTHON2=ON \
|
-DWITH_PYTHON2=ON \
|
||||||
%else
|
%else
|
||||||
@ -674,6 +688,11 @@ ${CMAKE} .. \
|
|||||||
-DWITH_RADOSGW_AMQP_ENDPOINT=ON \
|
-DWITH_RADOSGW_AMQP_ENDPOINT=ON \
|
||||||
%else
|
%else
|
||||||
-DWITH_RADOSGW_AMQP_ENDPOINT=OFF \
|
-DWITH_RADOSGW_AMQP_ENDPOINT=OFF \
|
||||||
|
%endif
|
||||||
|
%if 0%{with kafka_endpoint}
|
||||||
|
-DWITH_RADOSGW_KAFKA_ENDPOINT=ON \
|
||||||
|
%else
|
||||||
|
-DWITH_RADOSGW_KAFKA_ENDPOINT=OFF \
|
||||||
%endif
|
%endif
|
||||||
-DBOOST_J=$CEPH_SMP_NCPUS \
|
-DBOOST_J=$CEPH_SMP_NCPUS \
|
||||||
-DWITH_GRAFANA=ON
|
-DWITH_GRAFANA=ON
|
||||||
@ -710,7 +729,13 @@ chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf
|
|||||||
install -m 0644 -D COPYING %{buildroot}%{_docdir}/ceph/COPYING
|
install -m 0644 -D COPYING %{buildroot}%{_docdir}/ceph/COPYING
|
||||||
install -m 0644 -D etc/sysctl/90-ceph-osd.conf %{buildroot}%{_sysctldir}/90-ceph-osd.conf
|
install -m 0644 -D etc/sysctl/90-ceph-osd.conf %{buildroot}%{_sysctldir}/90-ceph-osd.conf
|
||||||
|
|
||||||
install -m 0755 src/ceph-daemon/ceph-daemon %{buildroot}%{_sbindir}/ceph-daemon
|
install -m 0755 src/cephadm/cephadm %{buildroot}%{_sbindir}/cephadm
|
||||||
|
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm
|
||||||
|
chmod 0700 %{buildroot}%{_sharedstatedir}/cephadm
|
||||||
|
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm/.ssh
|
||||||
|
chmod 0700 %{buildroot}%{_sharedstatedir}/cephadm/.ssh
|
||||||
|
touch %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
|
||||||
|
chmod 0600 %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
|
||||||
|
|
||||||
# firewall templates and /sbin/mount.ceph symlink
|
# firewall templates and /sbin/mount.ceph symlink
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@ -723,6 +748,7 @@ install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
|
|||||||
|
|
||||||
# sudoers.d
|
# sudoers.d
|
||||||
install -m 0600 -D sudoers.d/ceph-osd-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-osd-smartctl
|
install -m 0600 -D sudoers.d/ceph-osd-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-osd-smartctl
|
||||||
|
install -m 0600 -D sudoers.d/cephadm %{buildroot}%{_sysconfdir}/sudoers.d/cephadm
|
||||||
|
|
||||||
%if 0%{?rhel} >= 8
|
%if 0%{?rhel} >= 8
|
||||||
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
|
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
|
||||||
@ -796,7 +822,9 @@ rm -rf %{buildroot}%{_mandir}/man8/crushtool.8*
|
|||||||
rm -rf %{buildroot}%{_mandir}/man8/osdmaptool.8*
|
rm -rf %{buildroot}%{_mandir}/man8/osdmaptool.8*
|
||||||
rm -rf %{buildroot}%{_mandir}/man8/monmaptool.8*
|
rm -rf %{buildroot}%{_mandir}/man8/monmaptool.8*
|
||||||
rm -rf %{buildroot}%{_mandir}/man8/ceph-kvstore-tool.8*
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-kvstore-tool.8*
|
||||||
rm -rf %{buildroot}%{_sbindir}/ceph-daemon
|
rm -rf %{buildroot}%{_sbindir}/cephadm
|
||||||
|
rm -rf %{buildroot}%{_sysconfdir}/sudoers.d/cephadm
|
||||||
|
rm -rf %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
|
||||||
rm -rf %{buildroot}%doc
|
rm -rf %{buildroot}%doc
|
||||||
rm -rf %{buildroot}%{_docdir}/ceph/sample.ceph.conf
|
rm -rf %{buildroot}%{_docdir}/ceph/sample.ceph.conf
|
||||||
rm -rf %{buildroot}%license
|
rm -rf %{buildroot}%license
|
||||||
@ -881,7 +909,7 @@ rm -rf %{buildroot}%{_datadir}/ceph/mgr/diskprediction_local
|
|||||||
rm -rf %{buildroot}%{_datadir}/ceph/mgr/diskprediction_cloud
|
rm -rf %{buildroot}%{_datadir}/ceph/mgr/diskprediction_cloud
|
||||||
rm -rf %{buildroot}%{_datadir}/ceph/mgr/rook
|
rm -rf %{buildroot}%{_datadir}/ceph/mgr/rook
|
||||||
rm -rf %{buildroot}%{_datadir}/ceph/mgr/k8sevents
|
rm -rf %{buildroot}%{_datadir}/ceph/mgr/k8sevents
|
||||||
rm -rf %{buildroot}%{_datadir}/ceph/mgr/ssh
|
rm -rf %{buildroot}%{_datadir}/ceph/mgr/cephadm
|
||||||
rm -rf %{buildroot}%{_bindir}/ceph-mon
|
rm -rf %{buildroot}%{_bindir}/ceph-mon
|
||||||
rm -rf %{buildroot}%{_bindir}/ceph-monstore-tool
|
rm -rf %{buildroot}%{_bindir}/ceph-monstore-tool
|
||||||
rm -rf %{buildroot}%{_mandir}/man8/ceph-mon.8*
|
rm -rf %{buildroot}%{_mandir}/man8/ceph-mon.8*
|
||||||
@ -1056,6 +1084,8 @@ rm -rf %{buildroot}
|
|||||||
%endif
|
%endif
|
||||||
%if 0%{?fedora} || 0%{?rhel}
|
%if 0%{?fedora} || 0%{?rhel}
|
||||||
%endif
|
%endif
|
||||||
|
%if ! 0%{?suse_version}
|
||||||
|
%endif
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
%endif
|
%endif
|
||||||
%if %{with lttng}
|
%if %{with lttng}
|
||||||
|
27
ceph.changes
27
ceph.changes
@ -1,14 +1,35 @@
|
|||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Feb 3 12:40:02 UTC 2020 - Nathan Cutler <ncutler@suse.com>
|
Fri Dec 13 12:33:34 UTC 2019 - Nathan Cutler <ncutler@suse.com>
|
||||||
|
|
||||||
- Update to
|
- Update to 15.0.0-8441-g88a99a841e
|
||||||
+ spec: Use pkgconfig() style BuildRequires for udev/libudev-devel
|
+ spec: fix cephadm user/group creation
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Dec 12 12:07:37 UTC 2019 - Nathan Cutler <ncutler@suse.com>
|
||||||
|
|
||||||
|
- Update to 15.0.0-8370-gec9b27b5e0
|
||||||
|
+ ceph-daemon is renamed to cephadm
|
||||||
|
+ mgr/ssh is renamed to mgr/cephadm
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Dec 10 15:39:59 UTC 2019 - Adrian Schröter <adrian@suse.de>
|
Tue Dec 10 15:39:59 UTC 2019 - Adrian Schröter <adrian@suse.de>
|
||||||
|
|
||||||
- increase disk space needs in _constraints for some architectures
|
- increase disk space needs in _constraints for some architectures
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Dec 2 11:51:18 UTC 2019 - Nathan Cutler <ncutler@suse.com>
|
||||||
|
|
||||||
|
- Update to 15.0.0-7866-g639502405f:
|
||||||
|
+ rebase on tip of upstream master, SHA1 95dd54889a9c113f77dd6c2c7e77166335a59794
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Nov 24 20:12:13 UTC 2019 - Nathan Cutler <ncutler@suse.com>
|
||||||
|
|
||||||
|
- Update to 15.0.0-7686-g54042e1a06:
|
||||||
|
+ rebase on tip of upstream master, SHA1 2c06beb5ec38c8b9f7bd84152da3f5708de8d0c0
|
||||||
|
* Revert "Merge pull request #16715 from adamemerson/wip-I-Object!" (bsc#1157443)
|
||||||
|
* spec: add explicit openssh dependency to ceph-mgr-ssh (bsc#1157527)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Nov 21 10:10:02 UTC 2019 - Nathan Cutler <ncutler@suse.com>
|
Thu Nov 21 10:10:02 UTC 2019 - Nathan Cutler <ncutler@suse.com>
|
||||||
|
|
||||||
|
117
ceph.spec
117
ceph.spec
@ -1,4 +1,3 @@
|
|||||||
# vim: set noexpandtab ts=8 sw=8 :
|
|
||||||
#
|
#
|
||||||
# spec file for package ceph
|
# spec file for package ceph
|
||||||
#
|
#
|
||||||
@ -37,6 +36,7 @@
|
|||||||
%bcond_without cephfs_java
|
%bcond_without cephfs_java
|
||||||
%endif
|
%endif
|
||||||
%bcond_without amqp_endpoint
|
%bcond_without amqp_endpoint
|
||||||
|
%bcond_without kafka_endpoint
|
||||||
%bcond_without lttng
|
%bcond_without lttng
|
||||||
%bcond_without libradosstriper
|
%bcond_without libradosstriper
|
||||||
%bcond_without ocf
|
%bcond_without ocf
|
||||||
@ -46,6 +46,7 @@
|
|||||||
%bcond_with selinux
|
%bcond_with selinux
|
||||||
%bcond_with cephfs_java
|
%bcond_with cephfs_java
|
||||||
%bcond_with amqp_endpoint
|
%bcond_with amqp_endpoint
|
||||||
|
%bcond_with kafka_endpoint
|
||||||
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
#Compat macro for new _fillupdir macro introduced in Nov 2017
|
||||||
%if ! %{defined _fillupdir}
|
%if ! %{defined _fillupdir}
|
||||||
%global _fillupdir /var/adm/fillup-templates
|
%global _fillupdir /var/adm/fillup-templates
|
||||||
@ -108,7 +109,7 @@
|
|||||||
# main package definition
|
# main package definition
|
||||||
#################################################################################
|
#################################################################################
|
||||||
Name: ceph
|
Name: ceph
|
||||||
Version: 15.0.0.7452+gf6057ccfe3
|
Version: 15.0.0.8441+g88a99a841e
|
||||||
Release: 0%{?dist}
|
Release: 0%{?dist}
|
||||||
%if 0%{?fedora} || 0%{?rhel}
|
%if 0%{?fedora} || 0%{?rhel}
|
||||||
Epoch: 2
|
Epoch: 2
|
||||||
@ -124,7 +125,7 @@ License: LGPL-2.1 and LGPL-3.0 and CC-BY-SA-3.0 and GPL-2.0 and BSL-1.0 and BSD-
|
|||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
%endif
|
%endif
|
||||||
URL: http://ceph.com/
|
URL: http://ceph.com/
|
||||||
Source0: %{?_remote_tarball_prefix}ceph-15.0.0-7452-gf6057ccfe3.tar.bz2
|
Source0: %{?_remote_tarball_prefix}ceph-15.0.0-8441-g88a99a841e.tar.bz2
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
# _insert_obs_source_lines_here
|
# _insert_obs_source_lines_here
|
||||||
ExclusiveArch: x86_64 aarch64 ppc64le s390x
|
ExclusiveArch: x86_64 aarch64 ppc64le s390x
|
||||||
@ -174,7 +175,7 @@ BuildRequires: libaio-devel
|
|||||||
BuildRequires: libblkid-devel >= 2.17
|
BuildRequires: libblkid-devel >= 2.17
|
||||||
BuildRequires: libcurl-devel
|
BuildRequires: libcurl-devel
|
||||||
BuildRequires: libcap-ng-devel
|
BuildRequires: libcap-ng-devel
|
||||||
BuildRequires: pkgconfig(libudev)
|
BuildRequires: libudev-devel
|
||||||
BuildRequires: libnl3-devel
|
BuildRequires: libnl3-devel
|
||||||
BuildRequires: liboath-devel
|
BuildRequires: liboath-devel
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
@ -190,7 +191,7 @@ BuildRequires: python%{_python_buildid}
|
|||||||
BuildRequires: python%{_python_buildid}-devel
|
BuildRequires: python%{_python_buildid}-devel
|
||||||
BuildRequires: snappy-devel
|
BuildRequires: snappy-devel
|
||||||
BuildRequires: sudo
|
BuildRequires: sudo
|
||||||
BuildRequires: pkgconfig(udev)
|
BuildRequires: udev
|
||||||
BuildRequires: util-linux
|
BuildRequires: util-linux
|
||||||
BuildRequires: valgrind-devel
|
BuildRequires: valgrind-devel
|
||||||
BuildRequires: which
|
BuildRequires: which
|
||||||
@ -201,6 +202,9 @@ BuildRequires: yasm
|
|||||||
%if 0%{with amqp_endpoint}
|
%if 0%{with amqp_endpoint}
|
||||||
BuildRequires: librabbitmq-devel
|
BuildRequires: librabbitmq-devel
|
||||||
%endif
|
%endif
|
||||||
|
%if 0%{with kafka_endpoint}
|
||||||
|
BuildRequires: librdkafka-devel
|
||||||
|
%endif
|
||||||
%if 0%{with make_check}
|
%if 0%{with make_check}
|
||||||
BuildRequires: jq
|
BuildRequires: jq
|
||||||
BuildRequires: libuuid-devel
|
BuildRequires: libuuid-devel
|
||||||
@ -209,16 +213,6 @@ BuildRequires: python%{_python_buildid}-nose
|
|||||||
BuildRequires: python%{_python_buildid}-requests
|
BuildRequires: python%{_python_buildid}-requests
|
||||||
BuildRequires: python%{_python_buildid}-six
|
BuildRequires: python%{_python_buildid}-six
|
||||||
BuildRequires: python%{_python_buildid}-virtualenv
|
BuildRequires: python%{_python_buildid}-virtualenv
|
||||||
%if 0%{?rhel} < 8
|
|
||||||
BuildRequires: python%{_python_buildid}-coverage
|
|
||||||
BuildRequires: python%{_python_buildid}-pecan
|
|
||||||
BuildRequires: python%{_python_buildid}-tox
|
|
||||||
%endif
|
|
||||||
%if 0%{?rhel} == 7
|
|
||||||
BuildRequires: pyOpenSSL%{_python_buildid}
|
|
||||||
%else
|
|
||||||
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
|
||||||
%endif
|
|
||||||
BuildRequires: socat
|
BuildRequires: socat
|
||||||
%endif
|
%endif
|
||||||
%if 0%{with seastar}
|
%if 0%{with seastar}
|
||||||
@ -288,17 +282,27 @@ BuildRequires: lz4-devel >= 1.7
|
|||||||
%endif
|
%endif
|
||||||
# distro-conditional make check dependencies
|
# distro-conditional make check dependencies
|
||||||
%if 0%{with make_check}
|
%if 0%{with make_check}
|
||||||
|
%if 0%{?fedora} || 0%{?rhel}
|
||||||
%if 0%{?fedora} || 0%{?rhel} == 7
|
%if 0%{?fedora} || 0%{?rhel} == 7
|
||||||
BuildRequires: libtool-ltdl-devel
|
BuildRequires: libtool-ltdl-devel
|
||||||
BuildRequires: python%{_python_buildid}-cherrypy
|
BuildRequires: python%{_python_buildid}-cherrypy
|
||||||
|
BuildRequires: python%{_python_buildid}-coverage
|
||||||
BuildRequires: python%{_python_buildid}-jwt
|
BuildRequires: python%{_python_buildid}-jwt
|
||||||
BuildRequires: python%{_python_buildid}-routes
|
BuildRequires: python%{_python_buildid}-routes
|
||||||
|
BuildRequires: python%{_python_buildid}-pecan
|
||||||
|
BuildRequires: python%{_python_buildid}-tox
|
||||||
BuildRequires: python%{_python_buildid}-werkzeug
|
BuildRequires: python%{_python_buildid}-werkzeug
|
||||||
BuildRequires: xmlsec1
|
BuildRequires: xmlsec1
|
||||||
BuildRequires: xmlsec1-devel
|
BuildRequires: xmlsec1-devel
|
||||||
BuildRequires: xmlsec1-nss
|
BuildRequires: xmlsec1-nss
|
||||||
BuildRequires: xmlsec1-openssl
|
BuildRequires: xmlsec1-openssl
|
||||||
BuildRequires: xmlsec1-openssl-devel
|
BuildRequires: xmlsec1-openssl-devel
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
BuildRequires: pyOpenSSL%{_python_buildid}
|
||||||
|
%else
|
||||||
|
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
||||||
|
%endif
|
||||||
|
%endif
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
BuildRequires: libxmlsec1-1
|
BuildRequires: libxmlsec1-1
|
||||||
@ -308,7 +312,12 @@ BuildRequires: python%{_python_buildid}-CherryPy
|
|||||||
BuildRequires: python%{_python_buildid}-PyJWT
|
BuildRequires: python%{_python_buildid}-PyJWT
|
||||||
BuildRequires: python%{_python_buildid}-Routes
|
BuildRequires: python%{_python_buildid}-Routes
|
||||||
BuildRequires: python%{_python_buildid}-Werkzeug
|
BuildRequires: python%{_python_buildid}-Werkzeug
|
||||||
|
BuildRequires: python%{_python_buildid}-coverage
|
||||||
BuildRequires: python%{_python_buildid}-numpy-devel
|
BuildRequires: python%{_python_buildid}-numpy-devel
|
||||||
|
BuildRequires: python%{_python_buildid}-pecan
|
||||||
|
BuildRequires: python%{_python_buildid}-pyOpenSSL
|
||||||
|
BuildRequires: python%{_python_buildid}-tox
|
||||||
|
BuildRequires: rpm-build
|
||||||
BuildRequires: xmlsec1-devel
|
BuildRequires: xmlsec1-devel
|
||||||
BuildRequires: xmlsec1-openssl-devel
|
BuildRequires: xmlsec1-openssl-devel
|
||||||
%endif
|
%endif
|
||||||
@ -391,15 +400,16 @@ Requires: gperftools-libs >= 2.6.1
|
|||||||
%endif
|
%endif
|
||||||
%if 0%{?weak_deps}
|
%if 0%{?weak_deps}
|
||||||
Recommends: chrony
|
Recommends: chrony
|
||||||
|
Requires: gptfdisk
|
||||||
%endif
|
%endif
|
||||||
%description base
|
%description base
|
||||||
Base is the package that includes all the files shared amongst ceph servers
|
Base is the package that includes all the files shared amongst ceph servers
|
||||||
|
|
||||||
%package -n ceph-daemon
|
%package -n cephadm
|
||||||
Summary: Ceph-daemon utility to bootstrap Ceph clusters
|
Summary: cephadm utility to bootstrap Ceph clusters
|
||||||
Requires: podman
|
Requires: podman
|
||||||
%description -n ceph-daemon
|
%description -n cephadm
|
||||||
Ceph-daemon utility to bootstrap a Ceph cluster and manage ceph daemons
|
cephadm utility to bootstrap a Ceph cluster and manage ceph daemons
|
||||||
deployed with systemd and podman.
|
deployed with systemd and podman.
|
||||||
|
|
||||||
%package -n ceph-common
|
%package -n ceph-common
|
||||||
@ -421,6 +431,7 @@ Requires: python%{_python_buildid}-prettytable
|
|||||||
%endif
|
%endif
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Requires: python%{_python_buildid}-PrettyTable
|
Requires: python%{_python_buildid}-PrettyTable
|
||||||
|
Obsoletes: libxio <= 1.7
|
||||||
%endif
|
%endif
|
||||||
%if 0%{with libradosstriper}
|
%if 0%{with libradosstriper}
|
||||||
Requires: libradosstriper1 = %{_epoch_prefix}%{version}-%{release}
|
Requires: libradosstriper1 = %{_epoch_prefix}%{version}-%{release}
|
||||||
@ -484,7 +495,7 @@ Recommends: ceph-mgr-diskprediction-local = %{_epoch_prefix}%{version}-%{release
|
|||||||
Recommends: ceph-mgr-diskprediction-cloud = %{_epoch_prefix}%{version}-%{release}
|
Recommends: ceph-mgr-diskprediction-cloud = %{_epoch_prefix}%{version}-%{release}
|
||||||
Recommends: ceph-mgr-rook = %{_epoch_prefix}%{version}-%{release}
|
Recommends: ceph-mgr-rook = %{_epoch_prefix}%{version}-%{release}
|
||||||
Recommends: ceph-mgr-k8sevents = %{_epoch_prefix}%{version}-%{release}
|
Recommends: ceph-mgr-k8sevents = %{_epoch_prefix}%{version}-%{release}
|
||||||
Recommends: ceph-mgr-ssh = %{_epoch_prefix}%{version}-%{release}
|
Recommends: ceph-mgr-cephadm = %{_epoch_prefix}%{version}-%{release}
|
||||||
Recommends: python%{_python_buildid}-influxdb
|
Recommends: python%{_python_buildid}-influxdb
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?rhel} == 7
|
%if 0%{?rhel} == 7
|
||||||
@ -594,18 +605,24 @@ Requires: python%{_python_buildid}-PyYAML
|
|||||||
ceph-mgr-k8sevents is a ceph-mgr plugin that sends every ceph-events
|
ceph-mgr-k8sevents is a ceph-mgr plugin that sends every ceph-events
|
||||||
to kubernetes' events API
|
to kubernetes' events API
|
||||||
|
|
||||||
%package mgr-ssh
|
%package mgr-cephadm
|
||||||
Summary: Ceph Manager plugin for SSH-based orchestration
|
Summary: Ceph Manager plugin for cephadm-based orchestration
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
%endif
|
%endif
|
||||||
Requires: ceph-mgr = %{_epoch_prefix}%{version}-%{release}
|
Requires: ceph-mgr = %{_epoch_prefix}%{version}-%{release}
|
||||||
Requires: python%{_python_buildid}-remoto
|
Requires: python%{_python_buildid}-remoto
|
||||||
Requires: ceph-daemon = %{_epoch_prefix}%{version}-%{release}
|
Requires: cephadm = %{_epoch_prefix}%{version}-%{release}
|
||||||
%description mgr-ssh
|
%if 0%{?suse_version}
|
||||||
ceph-mgr-ssh is a ceph-mgr module for orchestration functions using
|
Requires: openssh
|
||||||
direct SSH connections for management operations.
|
%endif
|
||||||
|
%if 0%{?rhel} || 0%{?fedora}
|
||||||
|
Requires: openssh-clients
|
||||||
|
%endif
|
||||||
|
%description mgr-cephadm
|
||||||
|
ceph-mgr-cephadm is a ceph-mgr module for orchestration functions using
|
||||||
|
the integrated cephadm deployment tool management operations.
|
||||||
|
|
||||||
%package fuse
|
%package fuse
|
||||||
Summary: Ceph fuse-based client
|
Summary: Ceph fuse-based client
|
||||||
@ -1032,7 +1049,7 @@ Group: Development/Libraries/Python
|
|||||||
%{?python_provide:%python_provide python-ceph-common}
|
%{?python_provide:%python_provide python-ceph-common}
|
||||||
%description -n python-ceph-common
|
%description -n python-ceph-common
|
||||||
This package contains data structures, classes and functions used by Ceph.
|
This package contains data structures, classes and functions used by Ceph.
|
||||||
It also contains utilities used for the SSH orchestrator.
|
It also contains utilities used for the cephadm orchestrator.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%package -n python%{python3_pkgversion}-ceph-common
|
%package -n python%{python3_pkgversion}-ceph-common
|
||||||
@ -1043,7 +1060,7 @@ Group: Development/Libraries/Python
|
|||||||
%{?python_provide:%python_provide python%{python3_pkgversion}-ceph-common}
|
%{?python_provide:%python_provide python%{python3_pkgversion}-ceph-common}
|
||||||
%description -n python%{python3_pkgversion}-ceph-common
|
%description -n python%{python3_pkgversion}-ceph-common
|
||||||
This package contains data structures, classes and functions used by Ceph.
|
This package contains data structures, classes and functions used by Ceph.
|
||||||
It also contains utilities used for the SSH orchestrator.
|
It also contains utilities used for the cephadm orchestrator.
|
||||||
|
|
||||||
%if 0%{with cephfs_shell}
|
%if 0%{with cephfs_shell}
|
||||||
%package -n cephfs-shell
|
%package -n cephfs-shell
|
||||||
@ -1186,7 +1203,7 @@ This package provides Ceph’s default alerts for Prometheus.
|
|||||||
# common
|
# common
|
||||||
#################################################################################
|
#################################################################################
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1 -n ceph-15.0.0-7452-gf6057ccfe3
|
%autosetup -p1 -n ceph-15.0.0-8441-g88a99a841e
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# LTO can be enabled as soon as the following GCC bug is fixed:
|
# LTO can be enabled as soon as the following GCC bug is fixed:
|
||||||
@ -1261,6 +1278,7 @@ ${CMAKE} .. \
|
|||||||
-DWITH_MANPAGE=ON \
|
-DWITH_MANPAGE=ON \
|
||||||
-DWITH_PYTHON3=%{python3_version} \
|
-DWITH_PYTHON3=%{python3_version} \
|
||||||
-DWITH_MGR_DASHBOARD_FRONTEND=OFF \
|
-DWITH_MGR_DASHBOARD_FRONTEND=OFF \
|
||||||
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
%if %{with python2}
|
%if %{with python2}
|
||||||
-DWITH_PYTHON2=ON \
|
-DWITH_PYTHON2=ON \
|
||||||
%else
|
%else
|
||||||
@ -1304,6 +1322,11 @@ ${CMAKE} .. \
|
|||||||
-DWITH_RADOSGW_AMQP_ENDPOINT=ON \
|
-DWITH_RADOSGW_AMQP_ENDPOINT=ON \
|
||||||
%else
|
%else
|
||||||
-DWITH_RADOSGW_AMQP_ENDPOINT=OFF \
|
-DWITH_RADOSGW_AMQP_ENDPOINT=OFF \
|
||||||
|
%endif
|
||||||
|
%if 0%{with kafka_endpoint}
|
||||||
|
-DWITH_RADOSGW_KAFKA_ENDPOINT=ON \
|
||||||
|
%else
|
||||||
|
-DWITH_RADOSGW_KAFKA_ENDPOINT=OFF \
|
||||||
%endif
|
%endif
|
||||||
-DBOOST_J=$CEPH_SMP_NCPUS \
|
-DBOOST_J=$CEPH_SMP_NCPUS \
|
||||||
-DWITH_GRAFANA=ON
|
-DWITH_GRAFANA=ON
|
||||||
@ -1340,7 +1363,13 @@ chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf
|
|||||||
install -m 0644 -D COPYING %{buildroot}%{_docdir}/ceph/COPYING
|
install -m 0644 -D COPYING %{buildroot}%{_docdir}/ceph/COPYING
|
||||||
install -m 0644 -D etc/sysctl/90-ceph-osd.conf %{buildroot}%{_sysctldir}/90-ceph-osd.conf
|
install -m 0644 -D etc/sysctl/90-ceph-osd.conf %{buildroot}%{_sysctldir}/90-ceph-osd.conf
|
||||||
|
|
||||||
install -m 0755 src/ceph-daemon/ceph-daemon %{buildroot}%{_sbindir}/ceph-daemon
|
install -m 0755 src/cephadm/cephadm %{buildroot}%{_sbindir}/cephadm
|
||||||
|
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm
|
||||||
|
chmod 0700 %{buildroot}%{_sharedstatedir}/cephadm
|
||||||
|
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm/.ssh
|
||||||
|
chmod 0700 %{buildroot}%{_sharedstatedir}/cephadm/.ssh
|
||||||
|
touch %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
|
||||||
|
chmod 0600 %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
|
||||||
|
|
||||||
# firewall templates and /sbin/mount.ceph symlink
|
# firewall templates and /sbin/mount.ceph symlink
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@ -1353,6 +1382,7 @@ install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules
|
|||||||
|
|
||||||
# sudoers.d
|
# sudoers.d
|
||||||
install -m 0600 -D sudoers.d/ceph-osd-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-osd-smartctl
|
install -m 0600 -D sudoers.d/ceph-osd-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-osd-smartctl
|
||||||
|
install -m 0600 -D sudoers.d/cephadm %{buildroot}%{_sysconfdir}/sudoers.d/cephadm
|
||||||
|
|
||||||
%if 0%{?rhel} >= 8
|
%if 0%{?rhel} >= 8
|
||||||
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
|
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*
|
||||||
@ -1504,8 +1534,23 @@ if [ $1 -ge 1 ] ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files daemon
|
%pre -n cephadm
|
||||||
%{_sbindir}/ceph-daemon
|
getent group cephadm >/dev/null || groupadd cephadm
|
||||||
|
getent passwd cephadm >/dev/null || useradd -g cephadm -s /bin/bash -c "cephadm user for mgr/cephadm" -d %{_sharedstatedir}/cephadm cephadm
|
||||||
|
exit 0
|
||||||
|
|
||||||
|
%if ! 0%{?suse_version}
|
||||||
|
%postun -n cephadm
|
||||||
|
userdel -r cephadm || true
|
||||||
|
exit 0
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files -n cephadm
|
||||||
|
%{_sbindir}/cephadm
|
||||||
|
%{_sysconfdir}/sudoers.d/cephadm
|
||||||
|
%attr(0700,cephadm,cephadm) %dir %{_sharedstatedir}/cephadm
|
||||||
|
%attr(0700,cephadm,cephadm) %dir %{_sharedstatedir}/cephadm/.ssh
|
||||||
|
%attr(0600,cephadm,cephadm) %{_sharedstatedir}/cephadm/.ssh/authorized_keys
|
||||||
|
|
||||||
%files common
|
%files common
|
||||||
%dir %{_docdir}/ceph
|
%dir %{_docdir}/ceph
|
||||||
@ -1786,15 +1831,15 @@ if [ $1 -eq 1 ] ; then
|
|||||||
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
|
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%files mgr-ssh
|
%files mgr-cephadm
|
||||||
%{_datadir}/ceph/mgr/ssh
|
%{_datadir}/ceph/mgr/cephadm
|
||||||
|
|
||||||
%post mgr-ssh
|
%post mgr-cephadm
|
||||||
if [ $1 -eq 1 ] ; then
|
if [ $1 -eq 1 ] ; then
|
||||||
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
|
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%postun mgr-ssh
|
%postun mgr-cephadm
|
||||||
if [ $1 -eq 1 ] ; then
|
if [ $1 -eq 1 ] ; then
|
||||||
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
|
/usr/bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user