aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun He <jun.he@linaro.org>2018-04-24 14:11:34 +0800
committerOlaf Flebbe <oflebbe@apache.org>2018-04-29 18:44:26 +0200
commitd3c49e07867f2912dec80291ff0a9475683292e9 (patch)
treeec3744581b6b930c565fe0f9a794778978e91f74
parent23582dc063f13b29066cb64e6eaa5d134094b8e4 (diff)
BIGTOP-3023: Bump qfs to 2.0.0
Prior to v2.0.0, qfs doesn't build with openssl-1.1. This makes bigtop failed on debian-9. Bump to v2.0.0 should solve this problem. Change-Id: I4665e6de206ee928d1d8fbf21694bb92ef11752c Signed-off-by: Jun He <jun.he@linaro.org>
-rw-r--r--bigtop-packages/src/common/qfs/install_qfs.sh8
-rw-r--r--bigtop-packages/src/common/qfs/patch1-findsusekrb5config.diff11
-rw-r--r--bigtop-packages/src/common/qfs/qfs-chunkserver.cfg24
-rw-r--r--bigtop-packages/src/common/qfs/qfs-metaserver.cfg24
-rw-r--r--bigtop-packages/src/common/qfs/qfs-webui.cfg24
-rw-r--r--bigtop-packages/src/deb/qfs/qfs-client.install2
-rwxr-xr-xbigtop-packages/src/deb/qfs/rules3
-rw-r--r--bigtop-packages/src/rpm/qfs/SPECS/qfs.spec2
-rw-r--r--bigtop.bom2
9 files changed, 79 insertions, 21 deletions
diff --git a/bigtop-packages/src/common/qfs/install_qfs.sh b/bigtop-packages/src/common/qfs/install_qfs.sh
index b6cca009..1b4249b4 100644
--- a/bigtop-packages/src/common/qfs/install_qfs.sh
+++ b/bigtop-packages/src/common/qfs/install_qfs.sh
@@ -179,8 +179,6 @@ install -m 755 build/release/bin/tools/qfsstats $BIN_DIR
install -m 755 build/release/bin/tools/qfstoggleworm $BIN_DIR
install -m 755 scripts/qfs_backup $BIN_DIR
-install -m 755 scripts/qfs_checkpoint_prune.py $BIN_DIR/qfs_checkpoint_prune
-install -m 755 scripts/qfs_log_prune.py $BIN_DIR/qfs_log_prune
mkdir -p $LIB_DIR
install -m 644 build/release/lib/libgf_complete.so $LIB_DIR
@@ -212,9 +210,9 @@ install -m 644 build/release/lib/static/libqfs_qcrs.a $LIB_DIR
install -m 644 build/release/lib/static/libqfs_tools.a $LIB_DIR
mkdir -p $ETC_DIR/logrotate.d
-install -m 644 contrib/logrotate/qfs-chunkserver $ETC_DIR/logrotate.d
-install -m 644 contrib/logrotate/qfs-metaserver $ETC_DIR/logrotate.d
-install -m 644 contrib/logrotate/qfs-webui $ETC_DIR/logrotate.d
+cp $SOURCE_DIR/qfs-chunkserver.cfg $ETC_DIR/logrotate.d/qfs-chunkserver
+cp $SOURCE_DIR/qfs-metaserver.cfg $ETC_DIR/logrotate.d/qfs-metaserver
+cp $SOURCE_DIR/qfs-webui.cfg $ETC_DIR/logrotate.d/qfs-webui
mkdir -p $INCLUDE_DIR
cp -a build/release/include/* $INCLUDE_DIR
diff --git a/bigtop-packages/src/common/qfs/patch1-findsusekrb5config.diff b/bigtop-packages/src/common/qfs/patch1-findsusekrb5config.diff
deleted file mode 100644
index d1e12dc3..00000000
--- a/bigtop-packages/src/common/qfs/patch1-findsusekrb5config.diff
+++ /dev/null
@@ -1,11 +0,0 @@
---- qfs-1.1.4/cmake/Modules/FindKrb5.cmake.old 2016-03-06 11:17:38.041431320 +0100
-+++ qfs-1.1.4/cmake/Modules/FindKrb5.cmake 2016-03-06 11:18:38.165433125 +0100
-@@ -25,7 +25,7 @@
- NO_DEFAULT_PATH
- )
- ENDIF(KRB5_PREFIX)
--FIND_PROGRAM(KRB5_C_CONFIG NAMES krb5-config)
-+FIND_PROGRAM(KRB5_C_CONFIG NAMES krb5-config PATHS /usr/lib/mit/bin)
-
- MESSAGE(STATUS "found krb5-config here ${KRB5_C_CONFIG}")
-
diff --git a/bigtop-packages/src/common/qfs/qfs-chunkserver.cfg b/bigtop-packages/src/common/qfs/qfs-chunkserver.cfg
new file mode 100644
index 00000000..8ee0761d
--- /dev/null
+++ b/bigtop-packages/src/common/qfs/qfs-chunkserver.cfg
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+/var/log/qfs/chunkserver.log {
+ daily
+ dateext
+ rotate 25
+ missingok
+ notifempty
+ compress
+ copytruncate
+}
+
diff --git a/bigtop-packages/src/common/qfs/qfs-metaserver.cfg b/bigtop-packages/src/common/qfs/qfs-metaserver.cfg
new file mode 100644
index 00000000..fe994c82
--- /dev/null
+++ b/bigtop-packages/src/common/qfs/qfs-metaserver.cfg
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+/var/log/qfs/metaserver.log {
+ daily
+ dateext
+ rotate 25
+ missingok
+ notifempty
+ compress
+ copytruncate
+}
+
diff --git a/bigtop-packages/src/common/qfs/qfs-webui.cfg b/bigtop-packages/src/common/qfs/qfs-webui.cfg
new file mode 100644
index 00000000..63638c7b
--- /dev/null
+++ b/bigtop-packages/src/common/qfs/qfs-webui.cfg
@@ -0,0 +1,24 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements. See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+/var/log/qfs/webui.log {
+ daily
+ dateext
+ rotate 25
+ missingok
+ notifempty
+ compress
+ copytruncate
+}
+
diff --git a/bigtop-packages/src/deb/qfs/qfs-client.install b/bigtop-packages/src/deb/qfs/qfs-client.install
index 225dc0f4..3e6f7770 100644
--- a/bigtop-packages/src/deb/qfs/qfs-client.install
+++ b/bigtop-packages/src/deb/qfs/qfs-client.install
@@ -12,8 +12,6 @@
/usr/bin/qfstoggleworm
/usr/bin/qfssample
/usr/bin/qfs_backup
-/usr/bin/qfs_checkpoint_prune
-/usr/bin/qfs_log_prune
/usr/bin/cpfromqfs
/usr/bin/cptoqfs
diff --git a/bigtop-packages/src/deb/qfs/rules b/bigtop-packages/src/deb/qfs/rules
index 59d78eae..c57c110f 100755
--- a/bigtop-packages/src/deb/qfs/rules
+++ b/bigtop-packages/src/deb/qfs/rules
@@ -47,6 +47,9 @@ override_dh_auto_build:
--qfs-version=$(QFS_BASE_VERSION) \
--python=$(PYTHON_PATH)
+override_dh_auto_test:
+ @echo Tests are disabled
+
override_dh_auto_install:
bash -x debian/install_qfs.sh \
--source-dir=debian \
diff --git a/bigtop-packages/src/rpm/qfs/SPECS/qfs.spec b/bigtop-packages/src/rpm/qfs/SPECS/qfs.spec
index efce8cc8..6723e4e0 100644
--- a/bigtop-packages/src/rpm/qfs/SPECS/qfs.spec
+++ b/bigtop-packages/src/rpm/qfs/SPECS/qfs.spec
@@ -260,8 +260,6 @@ rm -rf $RPM_BUILD_ROOT
%{bin_dir}/qfstoggleworm
%{bin_dir}/qfssample
%{bin_dir}/qfs_backup
-%{bin_dir}/qfs_checkpoint_prune
-%{bin_dir}/qfs_log_prune
%{bin_dir}/cpfromqfs
%{bin_dir}/cptoqfs
diff --git a/bigtop.bom b/bigtop.bom
index f8bc6609..a6e2a796 100644
--- a/bigtop.bom
+++ b/bigtop.bom
@@ -463,7 +463,7 @@ bigtop {
'qfs' {
name = 'qfs'
relNotes = 'Quantcast Filesystem'
- version { base = '1.1.4'; pkg = base; release = 1 }
+ version { base = '2.0.0'; pkg = base; release = 1 }
tarball { destination = "$name-${version.base}.tar.gz"
source = "${version.base}.tar.gz" }
url { site = "https://github.com/quantcast/qfs/archive"