Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 510396 - sys-cluster/ceph-0.80.1 version bump
Summary: sys-cluster/ceph-0.80.1 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Yixun Lan
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-15 13:24 UTC by babykart
Modified: 2014-05-21 07:45 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
ceph-0.80.1.ebuild (ceph-0.80.1.ebuild,3.18 KB, text/plain)
2014-05-15 13:26 UTC, babykart
Details
ceph.confd (ceph.confd,131 bytes, text/plain)
2014-05-15 13:26 UTC, babykart
Details
ceph.initd (ceph.initd,633 bytes, text/plain)
2014-05-15 13:27 UTC, babykart
Details
ceph.logrotate (ceph.logrotate,485 bytes, text/plain)
2014-05-15 13:27 UTC, babykart
Details
ceph-fix-gnustack.patch (ceph-fix-gnustack.patch,867 bytes, patch)
2014-05-15 13:28 UTC, babykart
Details | Diff
ceph-libzfs.patch (ceph-libzfs.patch,446 bytes, patch)
2014-05-15 13:28 UTC, babykart
Details | Diff
directory patch from ceph-0.79 to ceph-0.80.1 (dir-ceph-0.79-to-ceph-0.80.1.patch,11.37 KB, patch)
2014-05-15 17:35 UTC, babykart
Details | Diff
ceph-0.79-to-0.80.1.diff (ceph-0.79-to-ceph-0.80.1.diff,977 bytes, patch)
2014-05-15 17:40 UTC, babykart
Details | Diff
directory patch from ceph-0.79 to ceph-0.80.1 (dir-ceph-0.79-to-ceph-0.80.1.patch,11.38 KB, patch)
2014-05-16 16:25 UTC, babykart
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description babykart 2014-05-15 13:24:13 UTC
http://ceph.com/docs/master/release-notes/#v0-80-1-firefly

Reproducible: Always




Portage 2.2.8-r1 (default/linux/amd64/13.0, gcc-4.7.3, glibc-2.17, 3.14.4-gentoo x86_64)
=================================================================
System uname: Linux-3.14.4-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E7500_@_2.93GHz-with-gentoo-2.2
KiB Mem:     3937412 total,   1302512 free
KiB Swap:    1048572 total,   1048572 free
Timestamp of tree: Thu, 15 May 2014 09:15:01 +0000
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-lang/python:          2.7.5-r3, 3.3.3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo fallabs entropie
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=core2 -mtune=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=core2 -mtune=core2"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs candy config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mir1.gentoo-fr.org/ ftp://gentoo.imj.fr/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/fallabs /var/lib/layman/entropie"
USE="aio amd64 bash-completion berkdb bzip2 clang cli cracklib crypt cxx device-mapper gdbm iconv iproute2 ipv6 llvm lz4 lzma lzo mmx mmxext modules multilib ncurses nls nptl openmp pam pcre readline session sse sse2 ssl ssse3 tcpd threads udev unicode urandom vim-syntax zlib" ABI_X86="64" ELIBC="glibc" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en" NGINX_MODULES_HTTP="access auth_basic autoindex fastcgi browser charset gzip headers_more proxy referer rewrite spdy stub_status upstream_ip_hash" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="x86_64" QEMU_USER_TARGETS="x86_64" RUBY_TARGETS="ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev vga" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition
tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 babykart 2014-05-15 13:26:07 UTC
Created attachment 376988 [details]
ceph-0.80.1.ebuild
Comment 2 babykart 2014-05-15 13:26:46 UTC
Created attachment 376990 [details]
ceph.confd
Comment 3 babykart 2014-05-15 13:27:07 UTC
Created attachment 376992 [details]
ceph.initd
Comment 4 babykart 2014-05-15 13:27:38 UTC
Created attachment 376994 [details]
ceph.logrotate
Comment 5 babykart 2014-05-15 13:28:12 UTC
Created attachment 376996 [details, diff]
ceph-fix-gnustack.patch
Comment 6 babykart 2014-05-15 13:28:51 UTC
Created attachment 376998 [details, diff]
ceph-libzfs.patch
Comment 7 Yixun Lan archtester gentoo-dev 2014-05-15 14:03:14 UTC
thanks for reporting

I'd request diff/patches instead of plain files, better to know what changes..
(combine into one diff file would be enough)
Comment 8 Yixun Lan archtester gentoo-dev 2014-05-15 14:22:56 UTC
from file ceph.confd 

# mon, mds or osd
type="mon"
# Unique id of the daemon
id="0"

so in ceph.initd, you didn't handle well for case like type="mon mds osd", all instances can be run in the same server. and could be more than one in id (id="0 1 2 3")

another idea I can think of, to setup independent initd, confd file for mon, mds, osd. like /etc/init.d/ceph.{mon,mds,osd}
Comment 9 babykart 2014-05-15 17:35:11 UTC
Created attachment 377018 [details, diff]
directory patch from ceph-0.79 to ceph-0.80.1
Comment 10 babykart 2014-05-15 17:36:10 UTC
(In reply to Yixun Lan from comment #7)
> thanks for reporting
> 
> I'd request diff/patches instead of plain files, better to know what
> changes..
> (combine into one diff file would be enough)

Sorry for the dirty report... :/
Comment 11 babykart 2014-05-15 17:40:07 UTC
Created attachment 377022 [details, diff]
ceph-0.79-to-0.80.1.diff
Comment 12 babykart 2014-05-15 18:04:06 UTC
(In reply to Yixun Lan from comment #8)
> from file ceph.confd 
> 
> # mon, mds or osd
> type="mon"
> # Unique id of the daemon
> id="0"
> 
> so in ceph.initd, you didn't handle well for case like type="mon mds osd",
> all instances can be run in the same server. and could be more than one in
> id (id="0 1 2 3")
> 
> another idea I can think of, to setup independent initd, confd file for mon,
> mds, osd. like /etc/init.d/ceph.{mon,mds,osd}

Initialy, it was my idea. ;)
I think it's more safe using one init script by daemon type and id because you can manage it independently.
For example, if I have all dameon types (with one id by type) on one machine :

cd /etc/init.d
for dmn in mds mon osd ;
do
  ln -s ceph ceph-${dmn}
done

cp /etc/conf.d/ceph /etc/conf.d/ceph-mds
cp /etc/conf.d/ceph /etc/conf.d/ceph-mon
...

Example of /etc/conf.d/ceph-osd :

type="osd"
id="0"
...

If you have many daemon of one type with, of course, multiple ids :

cd /etc/init.d
for dmn in osd.0 osd.1 ;
do
  ln -s ceph ceph-${dmn}
done

cp /etc/conf.d/ceph /etc/conf.d/ceph-osd.0
cp /etc/conf.d/ceph /etc/conf.d/ceph-osd.1
...

Well, in this way, it's possible to manage multiple daemon types and clusters on the same machine with one very light init script ... :)
Comment 13 babykart 2014-05-16 16:25:42 UTC
Created attachment 377070 [details, diff]
directory patch from ceph-0.79 to ceph-0.80.1

Fixed ceph.logrotate
Comment 14 Changyuan Yu 2014-05-20 16:32:24 UTC
I think we should use 'xfs' for the new USE flag, and use '$(use_with xfs libxfs)' for econf. This will automatically make use of the fact that 'xfs' USE flag is masked on arm platform.

I have just successfully upgrade my tiny cluster to ceph-0.80.1(include 2 monitor running on armhf arch), though the default init script provided by ceph does not work(for the use of lsb init script), so I have to manual start ceph-* daemons.
Comment 15 Yixun Lan archtester gentoo-dev 2014-05-21 07:45:44 UTC
+*ceph-0.80.1 (21 May 2014)
+
+  21 May 2014; Yixun Lan <dlan@gentoo.org> -ceph-0.79.ebuild,
+  +ceph-0.80.1.ebuild, ceph-9999.ebuild, +files/ceph.confd-r1,
+  +files/ceph.initd-r1, +files/ceph.logrotate, metadata.xml:
+  version bump 0.80.1, fix bug #510396, #507956, thanks @babykart, @Changyuan
+  Yu, @LeeL

I slightly modified initd script to auto detect ${type} and ${id}
and also update xfs, zfs USE flag, thanks all!