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