]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
12 years agoOSDMonitor: remove max_devices and max_osd interdependency
Josh Durgin [Thu, 8 Nov 2012 02:19:07 +0000 (18:19 -0800)]
OSDMonitor: remove max_devices and max_osd interdependency

Higher max_osd than max_devices doesn't hurt anything (and is the
normal way to add more osds). Higher max_devices than max_osds are
filtered out of crush results since e541c0f8d871172ec61962372efca943308e5fe,
so they don't matter either.

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agomds: re-try_set_loner() after doing evals in eval(CInode*, int mask)
Sage Weil [Fri, 9 Nov 2012 13:28:12 +0000 (05:28 -0800)]
mds: re-try_set_loner() after doing evals in eval(CInode*, int mask)

Consider a case where current loner is A and wanted loner is B.
At the top of the function we try to set the loner, but that may fail
because we haven't processed the gathered caps yet for the previous
loner.  In the body we do that and potentially drop the old loner, but we
do not try_set_loner() again on the desired loner.

Try after our drop.  If it succeeds, loop through the eval's one more time
so that we can issue caps approriately.

This fixes a hang induced by a simple loop like:

 while true ; do echo asdf >> mnt.a/foo ; tail mnt.b/foo ; done &
 while true ; do ls mnt.a mnt.b ; done

(The second loop may not be necessary.)

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'next'
Dan Mick [Sat, 10 Nov 2012 03:35:12 +0000 (19:35 -0800)]
Merge branch 'next'

Pull in types.h fix

12 years agosi_t was not properly converting values < 100KB
Dan Mick [Sat, 10 Nov 2012 03:17:56 +0000 (19:17 -0800)]
si_t was not properly converting values < 100KB

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agocleaned up scripts
tamil [Sat, 10 Nov 2012 01:55:20 +0000 (17:55 -0800)]
cleaned up scripts
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoceph.spec.in: Build debuginfo subpackage.
Gary Lowell [Fri, 9 Nov 2012 21:28:13 +0000 (13:28 -0800)]
ceph.spec.in:  Build debuginfo subpackage.

This is a partial fix for bug 3471.  Enable building of debuginfo package.
Some distributions enable this automatically by installing additional rpm
macros, on others it needs to be explicity added to the spec file.

12 years agotest: add cli test for missing args to rbd
Josh Durgin [Fri, 9 Nov 2012 20:17:24 +0000 (12:17 -0800)]
test: add cli test for missing args to rbd

This includes 'rbd mv foo', which used to crash

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorbd: check for second argument to mv/rename
Josh Durgin [Fri, 9 Nov 2012 20:11:18 +0000 (12:11 -0800)]
rbd: check for second argument to mv/rename

Without this check, 'rbd mv foo' crashed trying to use a NULL char* as
a string.

Reported-by: Andrey Korolyov <andrey@xdel.ru>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorbd: check for second argument to mv/rename
Josh Durgin [Fri, 9 Nov 2012 20:11:18 +0000 (12:11 -0800)]
rbd: check for second argument to mv/rename

Without this check, 'rbd mv foo' crashed trying to use a NULL char* as
a string.

Reported-by: Andrey Korolyov <andrey@xdel.ru>
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoMerge branch 'wip-java-test'
Sam Lang [Fri, 9 Nov 2012 19:52:07 +0000 (13:52 -0600)]
Merge branch 'wip-java-test'

12 years agotest.sh: Adding LD_LIBRARY_PATH so JUnit can find .so files.
Joe Buck [Thu, 8 Nov 2012 18:09:24 +0000 (10:09 -0800)]
test.sh: Adding LD_LIBRARY_PATH so JUnit can find .so files.
Removing useless java.library.path references.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
12 years agodoc/cluster-ops/pools.rst: Added documentation for min_size
Samuel Just [Fri, 9 Nov 2012 19:24:42 +0000 (11:24 -0800)]
doc/cluster-ops/pools.rst: Added documentation for min_size

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agovstart: allow minimum pool size of one
Noah Watkins [Fri, 9 Nov 2012 04:16:53 +0000 (20:16 -0800)]
vstart: allow minimum pool size of one

A minimum pool size of 2 was introduced by 13486857cf. This sets the
minimum to one so that basic vstart environments work.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agodoc: add-or-rm-mons.rst: fix a formatting typo
Joao Eduardo Luis [Fri, 9 Nov 2012 17:18:19 +0000 (17:18 +0000)]
doc: add-or-rm-mons.rst: fix a formatting typo

(also forgot the John's reviewed-by on the last commit)

Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
Reviewed-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: add-or-rm-mons.rst: make paths clearer
Joao Eduardo Luis [Fri, 9 Nov 2012 03:14:36 +0000 (03:14 +0000)]
doc: add-or-rm-mons.rst: make paths clearer

Some users have been incurring into problems adding new monitors while
following these steps. Some of these problems are due to the meaning of
'{path}' being a bit ambiguous. This patch removes said ambiguity by
replacing '{path}' with '{tmp}', supposed to be a temporary directory
containing the files necessary to add the monitor (monmap and keyring).

Fixes: #3438 #3463
Signed-off-by: Joao Eduardo Luis <joao.luis@inktank.com>
12 years agoMerge branch 'next'
Dan Mick [Fri, 9 Nov 2012 03:28:38 +0000 (19:28 -0800)]
Merge branch 'next'

12 years agoOSDMap.cc: Add pool name to OSDMap dump
Samuel Just [Fri, 9 Nov 2012 01:07:21 +0000 (17:07 -0800)]
OSDMap.cc: Add pool name to OSDMap dump

Otherwise, we can't use ceph osd dump --format=json to map pool name
onto pool id.

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorbd: fix snap unprotect, which was succeeding while clones existed
Dan Mick [Fri, 9 Nov 2012 01:13:29 +0000 (17:13 -0800)]
rbd: fix snap unprotect, which was succeeding while clones existed

1) use right snap id when forming parent spec to search for children
2) add test case for "unprotect with extant children"

Signed-off-by: Dan Mick <dan.mick@inktank.com>
12 years agoscript clean up
tamil [Fri, 9 Nov 2012 00:06:04 +0000 (16:06 -0800)]
script clean up

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoAdded a function get_cmd_op
tamil [Thu, 8 Nov 2012 23:53:05 +0000 (15:53 -0800)]
Added a function get_cmd_op
Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agobuild: Add RPM release string generated from git describe.
Gary Lowell [Thu, 8 Nov 2012 20:43:24 +0000 (12:43 -0800)]
build:  Add RPM release string generated from git describe.

Fix for bug 3451.  Use the commit count and sha1 from git describe to
construct a release string for rpm packages.

12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Thu, 8 Nov 2012 19:59:30 +0000 (11:59 -0800)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: Clarified text to reflect requirement for majority, not odd number of monitors.
John Wilkins [Thu, 8 Nov 2012 19:59:15 +0000 (11:59 -0800)]
doc: Clarified text to reflect requirement for majority, not odd number of monitors.

fixes: 3464

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge remote-tracking branch 'gh/wip-fix-symlinks'
Sage Weil [Thu, 8 Nov 2012 19:45:01 +0000 (11:45 -0800)]
Merge remote-tracking branch 'gh/wip-fix-symlinks'

Conflicts:
qa/qa_scripts/load-bucket-1000-obj.pl
src/test/libcephfs/test.cc

12 years agoMerge remote-tracking branch 'gh/wip-mds'
Sage Weil [Thu, 8 Nov 2012 19:40:36 +0000 (11:40 -0800)]
Merge remote-tracking branch 'gh/wip-mds'

12 years agoceph.spec.in: Remove ceph version requirement from ceph-fuse package.
Gary Lowell [Wed, 7 Nov 2012 20:41:10 +0000 (12:41 -0800)]
ceph.spec.in:  Remove ceph version requirement from ceph-fuse package.

The ceph-fuse rpm package now only requires ceph as a pre-req, not a specific
version.

12 years agorgw_admin: do not throw error when start-date and end-date are not
caleb miles [Tue, 23 Oct 2012 17:36:53 +0000 (13:36 -0400)]
rgw_admin: do not throw error when start-date and end-date are not
passed to usage::trim()

Signed-off-by: caleb miles <caleb.miles@inktank.com>
12 years agolibcephfs_jni.cc: mtime and atime are Long data types. Changing the accessor methods to
Joe Buck [Tue, 6 Nov 2012 23:12:06 +0000 (15:12 -0800)]
libcephfs_jni.cc: mtime and atime are Long data types. Changing the accessor methods to
reflect this fact

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoconfigure: fail when missing junit dependency
Noah Watkins [Fri, 2 Nov 2012 19:52:38 +0000 (12:52 -0700)]
configure: fail when missing junit dependency

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoMakefile: include Java test suite artifacts
Noah Watkins [Fri, 2 Nov 2012 16:09:37 +0000 (09:09 -0700)]
Makefile: include Java test suite artifacts

Automake has problems handling the naming convention used by Java for
inner classes (x$y.class).

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoMakefile: include Java unit test runner
Noah Watkins [Fri, 2 Nov 2012 15:27:30 +0000 (08:27 -0700)]
Makefile: include Java unit test runner

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoMakefile: only add source files to EXTRA_DIST
Noah Watkins [Fri, 2 Nov 2012 15:19:52 +0000 (08:19 -0700)]
Makefile: only add source files to EXTRA_DIST

Prevents a make dist on a built tree from including the compiled
bytecode files produced from compiling the Java tests.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoMakefile: use real file for make target
Noah Watkins [Fri, 2 Nov 2012 15:15:12 +0000 (08:15 -0700)]
Makefile: use real file for make target

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoMakefile: remove redundant EXTRA_DIST
Noah Watkins [Fri, 2 Nov 2012 15:13:09 +0000 (08:13 -0700)]
Makefile: remove redundant EXTRA_DIST

Already set at the beginning of the Makefile.am

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoChanging build.xml to produce a jar instead of class files Adding a
Joe Buck [Fri, 2 Nov 2012 05:26:34 +0000 (22:26 -0700)]
Changing build.xml to produce a jar instead of class files Adding a
TestSuite class to run all tests
Remove the libcephfs-test.jar when running ant clean

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoAdding libcephfs-java.jar to .gitignore
Joe Buck [Fri, 2 Nov 2012 00:17:23 +0000 (17:17 -0700)]
Adding libcephfs-java.jar to .gitignore

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoAdding a simple workunit that executes one libcephfs-java test
Joe Buck [Fri, 2 Nov 2012 00:16:45 +0000 (17:16 -0700)]
Adding a simple workunit that executes one libcephfs-java test

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
12 years agoMoving test java files into a proper heirarchy. Moving the compilation
Joe Buck [Fri, 2 Nov 2012 00:14:10 +0000 (17:14 -0700)]
Moving test java files into a proper heirarchy. Moving the compilation
of tests classes from build.xml to Makefile and editing configure.ac to
look for the junit4 jar in the default location of /usr/share/java. It
is still possible to build and run tests from build.xml as well as
Makefile.

Signed-off-by: Joe Buck <jbbuck@gmail.com>
Reviewed-by: Noah Watkins <noahwatkins@gmail.com>
12 years agojava: fix return type on JNI function
Noah Watkins [Thu, 8 Nov 2012 15:50:38 +0000 (07:50 -0800)]
java: fix return type on JNI function

Return value of declaration was is a JNI specific jlong type, while a
the return type of the definition was long. g++ not happy.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agovstart.sh: allow shorter MON, OSD, MDS count env vars
Sage Weil [Thu, 8 Nov 2012 14:56:37 +0000 (06:56 -0800)]
vstart.sh: allow shorter MON, OSD, MDS count env vars

This will save me some typing.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoosdmap: make flag names match
Sage Weil [Thu, 8 Nov 2012 14:56:21 +0000 (06:56 -0800)]
osdmap: make flag names match

It's 'ceph osd set noup', so make the flag name 'noup', to avoid any
confusion.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomon: make osdmap flags incur a health warning
Sage Weil [Thu, 8 Nov 2012 14:55:58 +0000 (06:55 -0800)]
mon: make osdmap flags incur a health warning

This will ensure that users will see a health warning when, for instance,
NOUP or PAUSE[RD|WR|EXEC] flags are set.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agodoc: Rewrote index for install section per new IA.
John Wilkins [Thu, 8 Nov 2012 06:42:41 +0000 (22:42 -0800)]
doc: Rewrote index for install section per new IA.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Removed source/index from top-level toc tree per new IA.
John Wilkins [Thu, 8 Nov 2012 06:42:12 +0000 (22:42 -0800)]
doc: Removed source/index from top-level toc tree per new IA.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Moved doc/source files to doc/install per new IA.
John Wilkins [Thu, 8 Nov 2012 06:41:35 +0000 (22:41 -0800)]
doc: Moved doc/source files to doc/install per new IA.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA. Fix tip. Clean up for generating keys.
John Wilkins [Thu, 8 Nov 2012 06:19:19 +0000 (22:19 -0800)]
doc: Syntax cleanup for new IA. Fix tip. Clean up for generating keys.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA. Added reference to repo.
John Wilkins [Thu, 8 Nov 2012 06:18:06 +0000 (22:18 -0800)]
doc: Syntax cleanup for new IA. Added reference to repo.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA.
John Wilkins [Thu, 8 Nov 2012 06:17:46 +0000 (22:17 -0800)]
doc: Syntax cleanup for new IA.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA. Removed steps for building docs.
John Wilkins [Thu, 8 Nov 2012 06:17:31 +0000 (22:17 -0800)]
doc: Syntax cleanup for new IA. Removed steps for building docs.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA. Removed info for building documentation.
John Wilkins [Thu, 8 Nov 2012 06:16:50 +0000 (22:16 -0800)]
doc: Syntax cleanup for new IA. Removed info for building documentation.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Syntax cleanup for new IA.
John Wilkins [Thu, 8 Nov 2012 06:16:10 +0000 (22:16 -0800)]
doc: Syntax cleanup for new IA.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: update the rest of the table for debian wheezy
Josh Durgin [Thu, 8 Nov 2012 00:57:11 +0000 (16:57 -0800)]
doc: update the rest of the table for debian wheezy

Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
12 years agoMerge remote-tracking branch 'upstream/wip_recovery_reserve'
Samuel Just [Thu, 8 Nov 2012 01:24:01 +0000 (17:24 -0800)]
Merge remote-tracking branch 'upstream/wip_recovery_reserve'

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agodoc/: document recovery reservation process
Mike Ryan [Wed, 7 Nov 2012 23:35:56 +0000 (15:35 -0800)]
doc/: document recovery reservation process

Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
12 years agopg: recovery reservations
Mike Ryan [Fri, 5 Oct 2012 21:37:34 +0000 (14:37 -0700)]
pg: recovery reservations

This extends the backfill reservation system to work with log-based
recovery. The Active and RepActive states of the PG state machine are
greatly expanded to deal with the increased complexity of handling both
recovery and backfill reservations.

Signed-off-by: Mike Ryan <mike.ryan@inktank.com>
12 years agodoc: Wheezy is now using kernel 3.2.0; say so
Dan Mick [Thu, 8 Nov 2012 01:07:39 +0000 (17:07 -0800)]
doc: Wheezy is now using kernel 3.2.0; say so

12 years agodoc: Fix per-daemon public/private settings: "network" -> "addr"
Dan Mick [Thu, 8 Nov 2012 01:06:04 +0000 (17:06 -0800)]
doc: Fix per-daemon public/private settings: "network" -> "addr"

12 years agodoc: Clarify "pool size", copies, and replicas more
Dan Mick [Thu, 8 Nov 2012 01:05:22 +0000 (17:05 -0800)]
doc: Clarify "pool size", copies, and replicas more

12 years agodoc: fix Hadoop config option typo
Noah Watkins [Thu, 8 Nov 2012 01:07:55 +0000 (17:07 -0800)]
doc: fix Hadoop config option typo

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
12 years agodoc: Made changes to the CSS to make admonitions more prominent.
John Wilkins [Wed, 7 Nov 2012 22:11:56 +0000 (14:11 -0800)]
doc: Made changes to the CSS to make admonitions more prominent.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added lines between title and body. Pre IA cleanup.
John Wilkins [Wed, 7 Nov 2012 22:11:29 +0000 (14:11 -0800)]
doc: Added lines between title and body. Pre IA cleanup.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated syntax for consistent usage prior to IA updates.
John Wilkins [Wed, 7 Nov 2012 22:10:40 +0000 (14:10 -0800)]
doc: Updated syntax for consistent usage prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated index for removal of legacy openstack install.
John Wilkins [Wed, 7 Nov 2012 22:09:57 +0000 (14:09 -0800)]
doc: Updated index for removal of legacy openstack install.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Minor edit to admonitions.
John Wilkins [Wed, 7 Nov 2012 22:09:30 +0000 (14:09 -0800)]
doc: Minor edit to admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated syntax prior to IA updates.
John Wilkins [Wed, 7 Nov 2012 22:09:12 +0000 (14:09 -0800)]
doc: Updated syntax prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Updated syntax usage prior to IA updates.
John Wilkins [Wed, 7 Nov 2012 22:08:45 +0000 (14:08 -0800)]
doc: Updated syntax usage prior to IA updates.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added new info per Ross's request.
John Wilkins [Wed, 7 Nov 2012 22:07:55 +0000 (14:07 -0800)]
doc: Added new info per Ross's request.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Fix and minor edit for admonitions.
John Wilkins [Wed, 7 Nov 2012 22:07:28 +0000 (14:07 -0800)]
doc: Fix and minor edit for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Minor edits for admonitions.
John Wilkins [Wed, 7 Nov 2012 22:07:05 +0000 (14:07 -0800)]
doc: Minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Edits from Peter Reiher's feedback, and minor edits for admonitions.
John Wilkins [Wed, 7 Nov 2012 22:06:40 +0000 (14:06 -0800)]
doc: Edits from Peter Reiher's feedback, and minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Minor edits for admonitions.
John Wilkins [Wed, 7 Nov 2012 22:06:00 +0000 (14:06 -0800)]
doc: Minor edits for admonitions.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added topic for adding OSDs and adjusting CRUSH weights.
John Wilkins [Wed, 7 Nov 2012 22:05:15 +0000 (14:05 -0800)]
doc: Added topic for adding OSDs and adjusting CRUSH weights.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Wed, 7 Nov 2012 22:03:34 +0000 (14:03 -0800)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: Removed legacy OpenStack installation.
John Wilkins [Wed, 7 Nov 2012 22:02:51 +0000 (14:02 -0800)]
doc: Removed legacy OpenStack installation.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agodoc: Added topic for adding an OSD and adjusting CRUSH weights.
John Wilkins [Wed, 7 Nov 2012 22:01:00 +0000 (14:01 -0800)]
doc: Added topic for adding an OSD and adjusting CRUSH weights.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agoceph.spec.in: Remove ceph version requirement from ceph-fuse package.
Gary Lowell [Wed, 7 Nov 2012 20:41:10 +0000 (12:41 -0800)]
ceph.spec.in:  Remove ceph version requirement from ceph-fuse package.

The ceph-fuse rpm package now only requires ceph as a pre-req, not a specific
version.

12 years agoUpdate log file when rgw is not running
tamil [Wed, 7 Nov 2012 19:49:15 +0000 (11:49 -0800)]
Update log file when rgw is not running

Signed-off-by: tamil <tamil.muthamizhan@inktank.com>
12 years agoosd/: add pool min_size parameter for min acting set size
Samuel Just [Mon, 29 Oct 2012 22:35:09 +0000 (15:35 -0700)]
osd/: add pool min_size parameter for min acting set size

Otherwise, a pg might go active with a single osd in the
acting set.  If that osd subsequently dies, we potentially
loose client writes.  Note: it's still possible for the
acting set to exceed min_size but fail to obey the spirit
of the user's crush settings (e.g., min_size is 2, but both
osds happen to be no the sam node).

Signed-off-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Sage Weil: <sage@inktank.com>
12 years agoMerge remote-tracking branch 'upstream/wip_lost_unfound_event'
Samuel Just [Wed, 7 Nov 2012 19:34:44 +0000 (11:34 -0800)]
Merge remote-tracking branch 'upstream/wip_lost_unfound_event'

Reviewed-by: Sage Weil <sage@inktank.com>
12 years agoqa: Script to run fio and template file
Sam Lang [Tue, 6 Nov 2012 22:00:12 +0000 (16:00 -0600)]
qa: Script to run fio and template file

Signed-off-by: Sam Lang <sam.lang@inktank.com>
12 years agoMerge remote-tracking branch 'upstream/wip-xattr'
Samuel Just [Wed, 7 Nov 2012 17:52:49 +0000 (09:52 -0800)]
Merge remote-tracking branch 'upstream/wip-xattr'

Reviewed-by: Samuel Just <sam.just@inktank.com>
12 years agoMakefile: add missing rgw_resolve.h to dist tarball
Sage Weil [Wed, 7 Nov 2012 12:46:16 +0000 (04:46 -0800)]
Makefile: add missing rgw_resolve.h to dist tarball

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoclient: kick waiters for an mds session to open on mds recovery
Sage Weil [Wed, 7 Nov 2012 12:40:55 +0000 (04:40 -0800)]
client: kick waiters for an mds session to open on mds recovery

We already kicked waiters for request, but we need to kick waiters on open
too (e.g., a client trying to mount).

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoqa: disable xfstest 45 until mount issue is resolved on precise
Sage Weil [Wed, 7 Nov 2012 12:14:12 +0000 (04:14 -0800)]
qa: disable xfstest 45 until mount issue is resolved on precise

Meh

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoqa: disable xfstest 45 until mount issue is resolved on precise
Sage Weil [Wed, 7 Nov 2012 12:14:12 +0000 (04:14 -0800)]
qa: disable xfstest 45 until mount issue is resolved on precise

Meh

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agoMerge branch 'next'
Dan Mick [Tue, 6 Nov 2012 23:52:38 +0000 (15:52 -0800)]
Merge branch 'next'

12 years agocls_rbd: send proper format of key to "last_read" for dir_list
Dan Mick [Tue, 6 Nov 2012 23:28:10 +0000 (15:28 -0800)]
cls_rbd: send proper format of key to "last_read" for dir_list

rbd ls of format-2 images was looping on the first 64 (when more than 64
were present).  The key name passed to the omap layer needs to always
contain the prefix, and the "inside-the-loop next-chunk" statement
was missing the "add the prefix" call.

Also, add a test for listing 100 images, format 1 and 2.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorgw: document cname configurable
Yehuda Sadeh [Tue, 6 Nov 2012 23:49:18 +0000 (15:49 -0800)]
rgw: document cname configurable

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoMerge remote-tracking branch 'origin/master' into wip-3206
Yehuda Sadeh [Tue, 6 Nov 2012 23:20:07 +0000 (15:20 -0800)]
Merge remote-tracking branch 'origin/master' into wip-3206

12 years agorgw: resolve hostname dns cname record
Yehuda Sadeh [Mon, 29 Oct 2012 23:46:21 +0000 (16:46 -0700)]
rgw: resolve hostname dns cname record

Implements #3206
This allows using vanity domains. A CNAME record can now
be set for the domain that would point at the rgw instance,
with or without a bucket set as a subdomain.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agojava: use accessors for mode flag tests
Noah Watkins [Sun, 4 Nov 2012 18:11:18 +0000 (10:11 -0800)]
java: use accessors for mode flag tests

Add isDir(), isFile(), and isSymlink() for read-only tests corresponding
to the S_ISREG test and friends.

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Joe Buck <jbbuck@gmail.com>
12 years agorgw: fix multipart overwrite
Yehuda Sadeh [Wed, 24 Oct 2012 20:15:46 +0000 (13:15 -0700)]
rgw: fix multipart overwrite

Fixes: #3400
Removed a few lines of code that prematurely created the head
part of the final object (before creating the manifest).

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: don't reset multipart parts when updating their metadata
Yehuda Sadeh [Wed, 24 Oct 2012 19:56:59 +0000 (12:56 -0700)]
rgw: don't reset multipart parts when updating their metadata

Fixes: #3401
The problem was that put_obj_meta() was assuming object is going
to be reset, so it was resetting the object anyway. This is not
true when dealing with the immutable multipart upload parts.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agorgw: break out of read loop if we got zero bytes
Yehuda Sadeh [Wed, 24 Oct 2012 18:26:53 +0000 (11:26 -0700)]
rgw: break out of read loop if we got zero bytes

If the part that we're reading is corrupted and we end up
reading zero bytes, we need to exit, otherwise we'd just
loop forever.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
12 years agoMerge branch 'master' of https://github.com/ceph/ceph
John Wilkins [Tue, 6 Nov 2012 17:14:11 +0000 (09:14 -0800)]
Merge branch 'master' of https://github.com/ceph/ceph

12 years agodoc: fixed some inccorrect syntax.
John Wilkins [Tue, 6 Nov 2012 17:13:54 +0000 (09:13 -0800)]
doc: fixed some inccorrect syntax.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
12 years agomds: move to from loner -> mix if *anyone* wants rd|wr
Sage Weil [Tue, 6 Nov 2012 07:27:13 +0000 (23:27 -0800)]
mds: move to from loner -> mix if *anyone* wants rd|wr

We were either going to MIX or SYNC depending on whether non-loners wanted
to read/write, but it may be that the loner wants to if our logic for
choosing loner vs not longer is based on anything other that just rd|wr
wanted.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agomds: base loner decision on wanted RD|WR|EXCL, not CACHE|BUFFER
Sage Weil [Tue, 6 Nov 2012 07:26:09 +0000 (23:26 -0800)]
mds: base loner decision on wanted RD|WR|EXCL, not CACHE|BUFFER

Observed instance where one client wanted the Fc cap and prevented the
loner from getting RD|WR caps.

Signed-off-by: Sage Weil <sage@inktank.com>
12 years agorbd: allow removal of image even if rbd_children deletion fails
Dan Mick [Tue, 6 Nov 2012 00:13:19 +0000 (16:13 -0800)]
rbd: allow removal of image even if rbd_children deletion fails

Users have been seeing failures where rbd rm is half-done; could be
because of outstanding watches on the rbd_header object.  The state
is that rbd_children no longer contains the child, but other pieces
remain; remove considers this a failure.

Fix: test for ENOENT from remove_child, and treat that as an ignorable
error and drive on.  Simulate this in copy.sh by removing the
rbd_children object altogether, which also results in ENOENT return
from remove_child.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
12 years agorbd: allow removal of image even if rbd_children deletion fails
Dan Mick [Tue, 6 Nov 2012 00:13:19 +0000 (16:13 -0800)]
rbd: allow removal of image even if rbd_children deletion fails

Users have been seeing failures where rbd rm is half-done; could be
because of outstanding watches on the rbd_header object.  The state
is that rbd_children no longer contains the child, but other pieces
remain; remove considers this a failure.

Fix: test for ENOENT from remove_child, and treat that as an ignorable
error and drive on.  Simulate this in copy.sh by removing the
rbd_children object altogether, which also results in ENOENT return
from remove_child.

Signed-off-by: Dan Mick <dan.mick@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>