Skip to content

Commit

Permalink
Merge branch 'next'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sage Weil committed Dec 20, 2012
2 parents 5497d22 + 17c627b commit 9f67c45
Show file tree
Hide file tree
Showing 20 changed files with 344 additions and 110 deletions.
50 changes: 47 additions & 3 deletions ceph.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ performance, reliability, and scalability.
Summary: Ceph fuse-based client
Group: System Environment/Base
Requires: %{name}
Requires: fuse-libs
Requires: libstdc++
Requires: libuuid
BuildRequires: fuse-devel
%description fuse
FUSE based client for Ceph distributed network file system
Expand Down Expand Up @@ -186,8 +189,26 @@ Requires: libcephfs1 = %{version}-%{release}
%description -n ceph-test
This package contains Ceph benchmarks and test tools.

# Enable building of debug package on distributions that don't automatically
# build it.
%package -n libcephfs-jni
Summary: Java Native Interface library for CephFS Java bindings.
Group: System Environment/Libraries
License: LGPL-2.0
Requires: java
Requires: libcephfs1 = %{version}-%{release}
BuildRequires: java-devel
%description -n libcephfs-jni
This package contains the Java Native Interface library for CephFS Java
bindings.

%package -n libcephfs-java
Summary: Java libraries for the Ceph File System.
Group: System Environment/Libraries
License: LGPL-2.0
Requires: java
Requires: libcephfs-jni = %{version}-%{release}-
BuildRequires: java-devel
%description -n libcephfs-java
This package contains the Java libraries for the Ceph File System.

%if (0%{?centos} || 0%{?opensuse} || 0%{?suse_version})
%debug_package
Expand All @@ -200,6 +221,11 @@ This package contains Ceph benchmarks and test tools.
%setup -q

%build
# Find jni.h
for i in /usr/{lib64,lib}/jvm/java/include{,/linux}; do
[ -d $i ] && java_inc="$java_inc -I$i"
done

./autogen.sh
MY_CONF_OPT=""

Expand All @@ -209,7 +235,8 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`

# be explicit about --with/without-tcmalloc because the
# autoconf default differs from what's needed for rpm
%{configure} --prefix=/usr \
%{configure} CPPFLAGS="$java_inc" \
--prefix=/usr \
--sbindir=/sbin \
--localstatedir=/var \
--sysconfdir=/etc \
Expand All @@ -219,6 +246,7 @@ export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed -e 's/i386/i486/'`
--without-cryptopp \
--with-rest-bench \
--with-debug \
--enable-cephfs-java \
$MY_CONF_OPT \
%{?_with_ocf} \
%{?with_tcmalloc:--with-tcmalloc} %{!?with_tcmalloc:--without-tcmalloc} \
Expand Down Expand Up @@ -250,6 +278,13 @@ mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/ceph/
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/run/ceph/
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ceph/

# Relocate java packages to expected locations in buildroot.
mkdir -p $RPM_BUILD_ROOT/usr/lib/jni
mv $RPM_BUILD_ROOT/usr/lib64/libcephfs_jni.so* $RPM_BUILD_ROOT/usr/lib/jni/.
mkdir -p $RPM_BUILD_ROOT/usr/share/java
mv $RPM_BUILD_ROOT/usr/lib64/libcephfs.jar $RPM_BUILD_ROOT/usr/share/java/.
mv $RPM_BUILD_ROOT/usr/lib64/libcephfs-test.jar $RPM_BUILD_ROOT/usr/share/java/.

%clean
rm -rf $RPM_BUILD_ROOT

Expand Down Expand Up @@ -520,4 +555,13 @@ fi
%{_bindir}/tpbench
%{_bindir}/xattr_bench

%files -n libcephfs-jni
%defattr(-,root,root,-)
/usr/lib/jni/libcephfs_jni.so*

%files -n libcephfs-java
%defattr(-,root,root,-)
/usr/share/java/libcephfs.jar
/usr/share/java/libcephfs-test.jar

%changelog
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ AC_PREREQ(2.59)
# VERSION define is not used by the code. It gets a version string
# from 'git describe'; see src/ceph_ver.[ch]

AC_INIT([ceph], [0.55], [[email protected]])
AC_INIT([ceph], [0.55.1], [[email protected]])

# Create release string. Used with VERSION for RPMs.
AC_SUBST(RPM_RELEASE)
Expand Down
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
ceph (0.55.1-1) precise; urgency=low

* New upstream release

-- Gary Lowell <[email protected]> Wed, 12 Dec 2012 16:24:13 -0800

ceph (0.55-1) precise; urgency=low

* New upstream release
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Vcs-Git: git://github.com/ceph/ceph.git
Vcs-Browser: https://github.com/ceph/ceph
Maintainer: Laszlo Boszormenyi (GCS) <[email protected]>
Uploaders: Sage Weil <[email protected]>
Build-Depends: debhelper (>= 6.0.7~), autotools-dev, autoconf, automake, libfuse-dev, libboost-dev (>= 1.34), libboost-thread-dev, libedit-dev, libnss3-dev, libtool, libexpat1-dev, libfcgi-dev, libatomic-ops-dev, libgoogle-perftools-dev [i386 amd64], pkg-config, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev, python (>= 2.6.6-3~), libxml2-dev, javahelper, default-jdk
Build-Depends: debhelper (>= 6.0.7~), autotools-dev, autoconf, automake, libfuse-dev, libboost-dev (>= 1.34), libboost-thread-dev, libedit-dev, libnss3-dev, libtool, libexpat1-dev, libfcgi-dev, libatomic-ops-dev, libgoogle-perftools-dev [i386 amd64], pkg-config, libcurl4-gnutls-dev, libkeyutils-dev, uuid-dev, libaio-dev, python (>= 2.6.6-3~), libxml2-dev, javahelper, default-jdk, junit4, libboost-program-options-dev
Standards-Version: 3.9.3

Package: ceph
Expand Down
52 changes: 34 additions & 18 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -94,28 +94,44 @@ install: build
# Add here commands to install the package into debian/testpack.
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
jh_installlibs -v -i
dh_installchangelogs -i
dh_installdocs -i --all ChangeLog
dh_installexamples -i
dh_install -i --sourcedir=$(DESTDIR) --list-missing
dh_installman -i
dh_lintian -i
dh_link -i
dh_compress -i
dh_fixperms -i
dh_python2 -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i

# We have nothing to do by default.
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
dh_installchangelogs
dh_installdocs --all ChangeLog
dh_installexamples
dh_install --sourcedir=$(DESTDIR) --list-missing
dh_installlogrotate
dh_installinit --no-start
dh_installchangelogs -a
dh_installdocs -a --all ChangeLog
dh_installexamples -a
dh_install -a --sourcedir=$(DESTDIR) --list-missing
dh_installlogrotate -a
dh_installinit -a --no-start
# dh_installinit is only set up to handle one upstart script
# per package, so do this ourselves
install -d -m0755 debian/ceph/etc/init
install -m0644 src/upstart/ceph*.conf debian/ceph/etc/init
install -d -m0755 debian/radosgw/etc/init
install -m0644 src/upstart/radosgw*.conf debian/radosgw/etc/init
dh_installman
dh_lintian
dh_link
dh_installman -a
dh_lintian -a
dh_link -a

dh_strip -pceph --dbg-package=ceph-dbg -k --exclude=libcls_
dh_strip -pceph-mds --dbg-package=ceph-mds-dbg
Expand All @@ -129,15 +145,15 @@ binary-arch: build install
dh_strip -prest-bench --dbg-package=rest-bench-dbg
dh_strip -pceph-test --dbg-package=ceph-test-dbg

dh_compress
dh_fixperms
dh_makeshlibs -X/usr/lib/rados-classes # exclude .so files in ceph package
dh_python2
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
dh_compress -a
dh_fixperms -a
dh_makeshlibs -a -X/usr/lib/rados-classes # exclude .so files in ceph package
dh_python2 -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install configure
24 changes: 24 additions & 0 deletions qa/workunits/cephtool/test.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/sh -x

set -e

ceph status
ceph -s
ceph quorum_status

ceph osd dump
ceph osd tree
ceph pg dump
ceph mon dump
ceph mds dump

ceph tell osd.0 version
ceph tell osd.9999 version && exit 1
ceph tell osd.foo version && exit 1

for id in `ceph osd ls` ; do
ceph tell osd.$id version
done

echo OK

2 changes: 1 addition & 1 deletion src/common/config_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ OPTION(auth_service_ticket_ttl, OPT_DOUBLE, 60*60)
OPTION(mon_client_hunt_interval, OPT_DOUBLE, 3.0) // try new mon every N seconds until we connect
OPTION(mon_client_ping_interval, OPT_DOUBLE, 10.0) // ping every N seconds
OPTION(mon_client_max_log_entries_per_message, OPT_INT, 1000)
OPTION(mon_max_pool_pg_num, OPT_INT, 65536)
OPTION(client_cache_size, OPT_INT, 16384)
OPTION(client_cache_mid, OPT_FLOAT, .75)
OPTION(client_use_random_mds, OPT_BOOL, false)
Expand Down Expand Up @@ -447,7 +448,6 @@ OPTION(rgw_swift_url, OPT_STR, "") // the swift url, being published
OPTION(rgw_swift_url_prefix, OPT_STR, "swift") // entry point for which a url is considered a swift url
OPTION(rgw_swift_auth_url, OPT_STR, "") // default URL to go and verify tokens for v1 auth (if not using internal swift auth)
OPTION(rgw_swift_auth_entry, OPT_STR, "auth") // entry point for which a url is considered a swift auth url
OPTION(rgw_swift_use_keystone, OPT_BOOL, false) // should swift use keystone?
OPTION(rgw_keystone_url, OPT_STR, "") // url for keystone server
OPTION(rgw_keystone_admin_token, OPT_STR, "") // keystone admin token (shared secret)
OPTION(rgw_keystone_accepted_roles, OPT_STR, "Member, admin") // roles required to serve requests
Expand Down
Loading

0 comments on commit 9f67c45

Please sign in to comment.