From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 151D259CA3 for ; Tue, 16 Feb 2016 10:04:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 72E7FE07FE; Tue, 16 Feb 2016 10:04:58 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E9859E07FE for ; Tue, 16 Feb 2016 10:04:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 81A1D340AEC for ; Tue, 16 Feb 2016 10:04:56 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 951EB10AF for ; Tue, 16 Feb 2016 10:04:52 +0000 (UTC) From: "Yixun Lan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Yixun Lan" Message-ID: <1455617056.b0f5aa7239b0d047772f4462e7d4f18ac52e2f6f.dlan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-cluster/ceph/files/, sys-cluster/ceph/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-cluster/ceph/ceph-10.0.0.ebuild sys-cluster/ceph/ceph-9.2.0.ebuild sys-cluster/ceph/files/README.gentoo X-VCS-Directories: sys-cluster/ceph/ sys-cluster/ceph/files/ X-VCS-Committer: dlan X-VCS-Committer-Name: Yixun Lan X-VCS-Revision: b0f5aa7239b0d047772f4462e7d4f18ac52e2f6f X-VCS-Branch: master Date: Tue, 16 Feb 2016 10:04:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: b156b0c2-e0f2-40e8-ba3f-c850b1c407e6 X-Archives-Hash: a52c2a8aca82d2848bff52c2f09f35f9 commit: b0f5aa7239b0d047772f4462e7d4f18ac52e2f6f Author: Yixun Lan gentoo org> AuthorDate: Tue Feb 16 09:57:05 2016 +0000 Commit: Yixun Lan gentoo org> CommitDate: Tue Feb 16 10:04:16 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0f5aa72 sys-cluster/ceph: warn user about permission changes Gentoo-bug: 574792 Package-Manager: portage-2.2.27 sys-cluster/ceph/ceph-10.0.0.ebuild | 12 +++++++++++- sys-cluster/ceph/ceph-9.2.0.ebuild | 12 +++++++++++- sys-cluster/ceph/files/README.gentoo | 11 ++++++++--- 3 files changed, 30 insertions(+), 5 deletions(-) diff --git a/sys-cluster/ceph/ceph-10.0.0.ebuild b/sys-cluster/ceph/ceph-10.0.0.ebuild index acb485b..5eb497c 100644 --- a/sys-cluster/ceph/ceph-10.0.0.ebuild +++ b/sys-cluster/ceph/ceph-10.0.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -90,6 +90,8 @@ check-reqs_export_vars() { export CHECKREQS_DISK_BUILD="1400M" export CHECKREQS_DISK_USR="450M" fi + + export CHECKREQS_MEMORY="7G" } user_setup() { @@ -184,3 +186,11 @@ src_install() { readme.gentoo_create_doc } + +pkg_postinst() { + if [[ -n ${REPLACING_VERSIONS} ]] && ! version_is_at_least 9.0 ${REPLACING_VERSIONS}; then + ewarn "You've upgraded ceph from old version, please fix the permission issue" + ewarn "Please refer section 4) in README.gentoo doc for detail info" + ewarn " bzless /usr/share/doc/${P}/README.gentoo.bz2" + fi +} diff --git a/sys-cluster/ceph/ceph-9.2.0.ebuild b/sys-cluster/ceph/ceph-9.2.0.ebuild index 434fd90..0f82103 100644 --- a/sys-cluster/ceph/ceph-9.2.0.ebuild +++ b/sys-cluster/ceph/ceph-9.2.0.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -90,6 +90,8 @@ check-reqs_export_vars() { export CHECKREQS_DISK_BUILD="9G" export CHECKREQS_DISK_USR="450M" fi + + export CHECKREQS_MEMORY="7G" } user_setup() { @@ -184,3 +186,11 @@ src_install() { readme.gentoo_create_doc } + +pkg_postinst() { + if [[ -n ${REPLACING_VERSIONS} ]] && ! version_is_at_least 9.0 ${REPLACING_VERSIONS}; then + ewarn "You've upgraded ceph from old version, please fix the permission issue" + ewarn "Please refer section 4) in README.gentoo doc for detail info" + ewarn " bzless /usr/share/doc/${P}/README.gentoo.bz2" + fi +} diff --git a/sys-cluster/ceph/files/README.gentoo b/sys-cluster/ceph/files/README.gentoo index c596120..6e5f836 100644 --- a/sys-cluster/ceph/files/README.gentoo +++ b/sys-cluster/ceph/files/README.gentoo @@ -17,9 +17,14 @@ net-misc/openntpd net-misc/chrony -4) Starting from version 9.0.x, Ceph daemons run as ‘ceph’ user instead root. - In order to fix this, we suggest to stop ceph daemons, and fix ownership +4) Starting from version 9.0.x, Ceph daemons run as user 'ceph' instead of 'root'. + In order to solve this, we recommand to stop ceph daemons, and fix the ownership - chown -R ceph:ceph /var/lib/ceph + # chown -R ceph:ceph /var/lib/ceph + + or + + Add the following line to ceph.conf on all hosts: + " setuser match path = /var/lib/ceph/$type/$cluster-$id " https://ceph.com/releases/v9-2-0-infernalis-released/