diff --git a/o2cb.ocf b/o2cb.ocf deleted file mode 100644 index 70f55bb..0000000 --- a/o2cb.ocf +++ /dev/null @@ -1,95 +0,0 @@ -#!/bin/bash -# Copyright (c) 2008 Andrew Beekhof -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany -# All Rights Reserved. -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of version 2 of the GNU General Public License as -# published by the Free Software Foundation. -# -# This program is distributed in the hope that it would be useful, but -# WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. -# -# Further, this software is distributed without any warranty that it is -# free of the rightful claim of any third person regarding infringement -# or the like. Any license provided herein, whether implied or -# otherwise, applies only to this software file. Patent licenses, if -# any, provided herein do not apply to combinations of this program with -# other software, or any other product whatsoever. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write the Free Software Foundation, -# Inc., 59 Temple Place - Suite 330, Boston MA 02111-1307, USA. -# -####################################################################### - -# OCF initialization -. ${OCF_ROOT}/resource.d/heartbeat/.ocf-shellfuncs - -# Parameter defaults -: ${OCF_RESKEY_stack:="pcmk"} -: ${OCF_RESKEY_sysfs:="/sys/fs"} -: ${OCF_RESKEY_daemon_timeout:="10"} -: ${OCF_RESKEY_configfs:="/sys/kernel/config"} -: ${OCF_RESKEY_CRM_meta_gloablly_unique:="false"} - -o2cb_start() { - ocf_log info "o2cb is now obsolete. Please remove the o2cb resource agent in your next maintenance window!" - return $OCF_SUCCESS -} - -o2cb_stop() { - ocf_log info "o2cb is now obsolete. Please remove the o2cb resource agent in your next maintenance window!" - return $OCF_SUCCESS -} - -o2cb_usage() { - echo "usage: $0 {start|stop|meta-data}" - return $OCF_SUCCESS -} - -o2cb_monitor() { - return $OCF_SUCCESS -} - -meta_data() { - cat < - - - 1.0 - OBSOLETE o2cb resource agent OBSOLETE - -This is a o2cb Resource Agent. This is now obsolete! - - - - - - - - - -END -} - -case $__OCF_ACTION in -meta-data) meta_data - exit $OCF_SUCCESS - ;; -start) o2cb_start - ;; -stop) o2cb_stop - ;; -monitor) o2cb_monitor - ;; -usage|help) o2cb_usage - exit $OCF_SUCCESS - ;; -*) o2cb_usage - exit $OCF_ERR_UNIMPLEMENTED - ;; -esac - -exit $? diff --git a/ocfs2-tools.changes b/ocfs2-tools.changes index 8891083..a9c01df 100644 --- a/ocfs2-tools.changes +++ b/ocfs2-tools.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Nov 24 10:30:00 UTC 2017 - ghe@suse.com + +- Remove o2cb resource agent which is obsolete (bsc#1069099) + ------------------------------------------------------------------- Mon Oct 23 14:25:30 UTC 2017 - ghe@suse.com diff --git a/ocfs2-tools.spec b/ocfs2-tools.spec index b712a4a..e327470 100644 --- a/ocfs2-tools.spec +++ b/ocfs2-tools.spec @@ -1,7 +1,7 @@ # # spec file for package ocfs2-tools # -# Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -24,8 +24,7 @@ License: GPL-2.0 Group: System/Filesystems Url: https://ocfs2.wiki.kernel.org/ Source: ocfs2-tools-%{version}.tar.gz -Source1: o2cb.ocf -Source2: reflink.tar.bz2 +Source1: reflink.tar.bz2 Patch001: auto-setup-pcmk-stack-as-default-if-no-stack-is-setup.patch Patch103: debug-ocfs2_hb_ctl.patch Patch105: bug-470741-debug_start_failures.patch @@ -133,7 +132,7 @@ This package contains the tools to manage the native o2cb stack for the OCFS2 filesystem. %prep -%setup -q -a 2 +%setup -q -a 1 %patch001 -p1 %patch103 -p1 %patch105 -p1 @@ -168,10 +167,7 @@ mkdir -p %{buildroot}/sbin mkdir -p %{buildroot}%{_prefix}/bin mkdir -p %{buildroot}%{_localstatedir}/adm/fillup-templates mkdir -p %{buildroot}%{_udevrulesdir} -mkdir -p %{buildroot}%{_prefix}/lib/ocf/resource.d/ocfs2 cp -f vendor/common/51-ocfs2.rules %{buildroot}%{_udevrulesdir} -cp -f $RPM_SOURCE_DIR/o2cb.ocf %{buildroot}%{_prefix}/lib/ocf/resource.d/ocfs2/o2cb -chmod a+x %{buildroot}%{_prefix}/lib/ocf/resource.d/ocfs2/o2cb cp -f vendor/common/o2cb.sysconfig %{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.o2cb %if %{systemd_enabled} @@ -244,10 +240,6 @@ python -c "import compileall; compileall.compile_dir('%{buildroot}/%{py_sitedir} %{_mandir}/man5/ocfs2.cluster.conf.5.gz %{_mandir}/man7/ocfs2.7.gz %{_mandir}/man1/o2info.1.gz -%dir %{_prefix}/lib/ocf -%dir %{_prefix}/lib/ocf/resource.d -%dir %{_prefix}/lib/ocf/resource.d/ocfs2 -%{_prefix}/lib/ocf/resource.d/ocfs2/o2cb %files -n ocfs2console %defattr(-,root,root)