74b1de
From 70842c77735a655a053ed4a7cb77fec01028355a Mon Sep 17 00:00:00 2001
74b1de
From: Sunil Kumar Acharya <sheggodu@redhat.com>
74b1de
Date: Mon, 22 Apr 2019 12:48:13 +0530
74b1de
Subject: [PATCH 117/124] spec: Remove thin-arbiter package
74b1de
74b1de
Thin-arbiter is not supported in downstream. Updated the
74b1de
code to avoid RPMdiff warnings. Marked thin-arbiter
74b1de
test cases as bad to avoid nightly runs from reporting
74b1de
expected failures.
74b1de
74b1de
Label: DOWNSTREAM ONLY
74b1de
74b1de
BUG: 1698436
74b1de
Change-Id: Ic36bccdfe1c7039fb7e5ce078a8b64cf71056970
74b1de
Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
74b1de
Reviewed-on: https://code.engineering.redhat.com/gerrit/168406
74b1de
Tested-by: RHGS Build Bot <nigelb@redhat.com>
74b1de
---
74b1de
 configure.ac                            |  2 --
74b1de
 extras/systemd/Makefile.am              |  6 ++---
74b1de
 glusterfs.spec.in                       | 39 +++++----------------------------
74b1de
 tests/basic/afr/ta-check-locks.t        |  2 ++
74b1de
 tests/basic/afr/ta-read.t               |  2 ++
74b1de
 tests/basic/afr/ta-shd.t                |  2 ++
74b1de
 tests/basic/afr/ta-write-on-bad-brick.t |  2 ++
74b1de
 xlators/features/Makefile.am            |  2 +-
74b1de
 8 files changed, 18 insertions(+), 39 deletions(-)
74b1de
74b1de
diff --git a/configure.ac b/configure.ac
74b1de
index 521671b..3065077 100644
74b1de
--- a/configure.ac
74b1de
+++ b/configure.ac
74b1de
@@ -116,8 +116,6 @@ AC_CONFIG_FILES([Makefile
74b1de
                 xlators/features/Makefile
74b1de
                 xlators/features/arbiter/Makefile
74b1de
                 xlators/features/arbiter/src/Makefile
74b1de
-                xlators/features/thin-arbiter/Makefile
74b1de
-                xlators/features/thin-arbiter/src/Makefile
74b1de
                 xlators/features/changelog/Makefile
74b1de
                 xlators/features/changelog/src/Makefile
74b1de
                 xlators/features/changelog/lib/Makefile
74b1de
diff --git a/extras/systemd/Makefile.am b/extras/systemd/Makefile.am
74b1de
index 61446a9..b849775 100644
74b1de
--- a/extras/systemd/Makefile.am
74b1de
+++ b/extras/systemd/Makefile.am
74b1de
@@ -1,8 +1,8 @@
74b1de
-CLEANFILES = glusterd.service glustereventsd.service glusterfssharedstorage.service gluster-ta-volume.service
74b1de
-EXTRA_DIST = glusterd.service.in glustereventsd.service.in glusterfssharedstorage.service.in gluster-ta-volume.service.in
74b1de
+CLEANFILES = glusterd.service glustereventsd.service glusterfssharedstorage.service
74b1de
+EXTRA_DIST = glusterd.service.in glustereventsd.service.in glusterfssharedstorage.service.in
74b1de
 
74b1de
 if USE_SYSTEMD
74b1de
-systemd_DATA = gluster-ta-volume.service
74b1de
+systemd_DATA =
74b1de
 endif
74b1de
 
74b1de
 if WITH_SERVER
74b1de
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
74b1de
index ba095b7..bf72a55 100644
74b1de
--- a/glusterfs.spec.in
74b1de
+++ b/glusterfs.spec.in
74b1de
@@ -682,18 +682,6 @@ is in user space and easily manageable.
74b1de
 This package provides the glusterfs server daemon.
74b1de
 %endif
74b1de
 
74b1de
-%package thin-arbiter
74b1de
-Summary:          GlusterFS thin-arbiter module
74b1de
-Requires:         %{name}%{?_isa} = %{version}-%{release}
74b1de
-Requires:         %{name}-server%{?_isa} = %{version}-%{release}
74b1de
-
74b1de
-%description thin-arbiter
74b1de
-This package provides a tie-breaker functionality to GlusterFS
74b1de
-replicate volume. It includes translators required to provide the
74b1de
-functionality, and also few other scripts required for getting the setup done.
74b1de
-
74b1de
-This package provides the glusterfs thin-arbiter translator.
74b1de
-
74b1de
 %package client-xlators
74b1de
 Summary:          GlusterFS client-side translators
74b1de
 Requires:         %{name}-libs%{?_isa} = %{version}-%{release}
74b1de
@@ -1045,14 +1033,6 @@ fi
74b1de
 exit 0
74b1de
 %endif
74b1de
 
74b1de
-%preun thin-arbiter
74b1de
-if [ $1 -eq 0 ]; then
74b1de
-    if [ -f %glusterta_svcfile ]; then
74b1de
-        %service_stop gluster-ta-volume
74b1de
-        %systemd_preun gluster-ta-volume
74b1de
-    fi
74b1de
-fi
74b1de
-
74b1de
 ##-----------------------------------------------------------------------------
74b1de
 ## All %%postun should be placed here and keep them sorted
74b1de
 ##
74b1de
@@ -1188,6 +1168,12 @@ exit 0
74b1de
 %exclude %{_prefix}/lib/ocf/resource.d/heartbeat/*
74b1de
 %endif
74b1de
 
74b1de
+%exclude %{_datadir}/glusterfs/scripts/setup-thin-arbiter.sh
74b1de
+
74b1de
+%if ( 0%{?_without_server:1} )
74b1de
+%exclude %{_sysconfdir}/glusterfs/thin-arbiter.vol
74b1de
+%endif
74b1de
+
74b1de
 %files api
74b1de
 %exclude %{_libdir}/*.so
74b1de
 # libgfapi files
74b1de
@@ -1263,19 +1249,6 @@ exit 0
74b1de
 %{_bindir}/fusermount-glusterfs
74b1de
 %endif
74b1de
 
74b1de
-%files thin-arbiter
74b1de
-%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator
74b1de
-%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features
74b1de
-     %{_libdir}/glusterfs/%{version}%{?prereltag}/xlator/features/thin-arbiter.so
74b1de
-%dir %{_datadir}/glusterfs/scripts
74b1de
-     %{_datadir}/glusterfs/scripts/setup-thin-arbiter.sh
74b1de
-%config %{_sysconfdir}/glusterfs/thin-arbiter.vol
74b1de
-
74b1de
-%if ( 0%{?_with_systemd:1} )
74b1de
-%{_unitdir}/gluster-ta-volume.service
74b1de
-%endif
74b1de
-
74b1de
-
74b1de
 %if ( 0%{!?_without_georeplication:1} )
74b1de
 %files geo-replication
74b1de
 %config(noreplace) %{_sysconfdir}/logrotate.d/glusterfs-georep
74b1de
diff --git a/tests/basic/afr/ta-check-locks.t b/tests/basic/afr/ta-check-locks.t
74b1de
index c0102c3..c51aa39 100644
74b1de
--- a/tests/basic/afr/ta-check-locks.t
74b1de
+++ b/tests/basic/afr/ta-check-locks.t
74b1de
@@ -66,3 +66,5 @@ TEST ta_start_brick_process brick0
74b1de
 EXPECT_WITHIN $HEAL_TIMEOUT "0" get_lock_count_on_ta
74b1de
 
74b1de
 cleanup;
74b1de
+#G_TESTDEF_TEST_STATUS_CENTOS6=BAD_TEST,BUG=0000000
74b1de
+#G_TESTDEF_TEST_STATUS_NETBSD7=BAD_TEST,BUG=0000000
74b1de
diff --git a/tests/basic/afr/ta-read.t b/tests/basic/afr/ta-read.t
74b1de
index f2b3c38..1b36dba 100644
74b1de
--- a/tests/basic/afr/ta-read.t
74b1de
+++ b/tests/basic/afr/ta-read.t
74b1de
@@ -58,3 +58,5 @@ TEST [ -z $TA_PID ]
74b1de
 # Read must now succeed.
74b1de
 TEST cat $M0/FILE
74b1de
 cleanup;
74b1de
+#G_TESTDEF_TEST_STATUS_CENTOS6=BAD_TEST,BUG=0000000
74b1de
+#G_TESTDEF_TEST_STATUS_NETBSD7=BAD_TEST,BUG=0000000
74b1de
diff --git a/tests/basic/afr/ta-shd.t b/tests/basic/afr/ta-shd.t
74b1de
index bb2e58b..4b1ea85 100644
74b1de
--- a/tests/basic/afr/ta-shd.t
74b1de
+++ b/tests/basic/afr/ta-shd.t
74b1de
@@ -47,3 +47,5 @@ TEST ta_start_mount_process $M0
74b1de
 EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" ta_up_status $V0 $M0 0
74b1de
 EXPECT "Hello" cat $M0/a.txt
74b1de
 cleanup;
74b1de
+#G_TESTDEF_TEST_STATUS_CENTOS6=BAD_TEST,BUG=0000000
74b1de
+#G_TESTDEF_TEST_STATUS_NETBSD7=BAD_TEST,BUG=0000000
74b1de
diff --git a/tests/basic/afr/ta-write-on-bad-brick.t b/tests/basic/afr/ta-write-on-bad-brick.t
74b1de
index 18cb65b..77cbf5f 100644
74b1de
--- a/tests/basic/afr/ta-write-on-bad-brick.t
74b1de
+++ b/tests/basic/afr/ta-write-on-bad-brick.t
74b1de
@@ -49,3 +49,5 @@ EXPECT_WITHIN $PROCESS_UP_TIMEOUT "1" afr_child_up_status_meta $M0 $V0-replicate
74b1de
 TEST dd if=/dev/zero of=$M0/a.txt bs=1M count=5
74b1de
 
74b1de
 cleanup;
74b1de
+#G_TESTDEF_TEST_STATUS_CENTOS6=BAD_TEST,BUG=0000000
74b1de
+#G_TESTDEF_TEST_STATUS_NETBSD7=BAD_TEST,BUG=0000000
74b1de
diff --git a/xlators/features/Makefile.am b/xlators/features/Makefile.am
74b1de
index 545c02b..537c148 100644
74b1de
--- a/xlators/features/Makefile.am
74b1de
+++ b/xlators/features/Makefile.am
74b1de
@@ -4,7 +4,7 @@ endif
74b1de
 
74b1de
 SUBDIRS = locks quota read-only quiesce marker index barrier arbiter upcall \
74b1de
 	compress changelog gfid-access snapview-client snapview-server trash \
74b1de
-	shard bit-rot leases selinux sdfs namespace $(CLOUDSYNC_DIR) thin-arbiter \
74b1de
+	shard bit-rot leases selinux sdfs namespace $(CLOUDSYNC_DIR) \
74b1de
 	utime changetimerecorder
74b1de
 
74b1de
 CLEANFILES =
74b1de
-- 
74b1de
1.8.3.1
74b1de