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