]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
11 years agomsg: remove comparison operators for sockaddr_storage 1895/head
Sage Weil [Fri, 30 May 2014 23:26:25 +0000 (16:26 -0700)]
msg: remove comparison operators for sockaddr_storage

We don't need these at all, it turns out.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge remote-tracking branch 'gh/next'
Sage Weil [Fri, 30 May 2014 17:13:59 +0000 (10:13 -0700)]
Merge remote-tracking branch 'gh/next'

11 years agorgw: calc md5 and compare if user provided appropriate header
Yehuda Sadeh [Fri, 23 May 2014 21:58:54 +0000 (14:58 -0700)]
rgw: calc md5 and compare if user provided appropriate header

Fixes: #8436
Backport: firefly

This was broken in ddc2e1a8e39a5c6b9b224c3eebd1c0e762ca5782. The fix
resurrects and old check that was dropped.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1888 from ceph/wip-8472
Loic Dachary [Fri, 30 May 2014 08:03:04 +0000 (10:03 +0200)]
Merge pull request #1888 from ceph/wip-8472

msg_types.h: Don't use strncmp for comparing sockaddr_in.

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agomsg_types.h: Don't use strncmp for comparing sockaddr_in. 1888/head
Dan Mick [Thu, 29 May 2014 23:20:01 +0000 (16:20 -0700)]
msg_types.h: Don't use strncmp for comparing sockaddr_in.

Fixes: #8472
Signed-off-by: Dan Mick <dan.mick@inktank.com>
11 years agoMerge pull request #1886 from nereocystis/pools-doc
Loic Dachary [Thu, 29 May 2014 22:08:16 +0000 (00:08 +0200)]
Merge pull request #1886 from nereocystis/pools-doc

doc: update pools documentation

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agodoc: update pools documentation 1886/head
Kevin Dalley [Thu, 29 May 2014 21:56:06 +0000 (14:56 -0700)]
doc: update pools documentation

set=>get in "Get Pool Values"
grep for 'replicated size', not 'rep size'

Signed-off-by: Kevin Dalley <kevin@kelphead.org>
11 years agoMerge pull request #1884 from nereocystis/glossary-rados
John Wilkins [Thu, 29 May 2014 21:12:40 +0000 (14:12 -0700)]
Merge pull request #1884 from nereocystis/glossary-rados

doc: Define RADOS in glossary

11 years agodoc: Define RADOS in glossary 1884/head
Kevin Dalley [Thu, 29 May 2014 21:03:30 +0000 (14:03 -0700)]
doc: Define RADOS in glossary

Signed-off-by: Kevin Dalley <kevin@kelphead.org>
11 years agodoc: Added osd pool default size setting example.
John Wilkins [Thu, 29 May 2014 20:22:52 +0000 (13:22 -0700)]
doc: Added osd pool default size setting example.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agodoc: Moved redundant text out of quick-common.
John Wilkins [Thu, 29 May 2014 20:22:18 +0000 (13:22 -0700)]
doc: Moved redundant text out of quick-common.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1882 from ceph/wip-8465
Samuel Just [Thu, 29 May 2014 19:27:48 +0000 (12:27 -0700)]
Merge pull request #1882 from ceph/wip-8465

osd: fix bad is_active() assert in share_map()

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1840 from yuyuyu101/wip-8381
Samuel Just [Thu, 29 May 2014 19:25:50 +0000 (12:25 -0700)]
Merge pull request #1840 from yuyuyu101/wip-8381

Fix set_alloc_hint op cause KeyValueStore crash problem

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1874 from ceph/wip-8292
Sage Weil [Thu, 29 May 2014 18:24:47 +0000 (11:24 -0700)]
Merge pull request #1874 from ceph/wip-8292

better error reporting on incompatible device requirements

Reviewed-by: Dan Mick <dan.mick@inktank.com>
11 years agoosd: fix bad is_active() assert in share_map() 1882/head
Sage Weil [Thu, 29 May 2014 18:10:18 +0000 (11:10 -0700)]
osd: fix bad is_active() assert in share_map()

We may be is_stopping() here if we are racing with shutdown().

Fixes: #8465
Backport: firefly, dumpling
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1880 from ailzhang/patch-1
Sage Weil [Thu, 29 May 2014 17:42:10 +0000 (10:42 -0700)]
Merge pull request #1880 from ailzhang/patch-1

rest-api: key missing for per "rx" and "rwx"

Backport: firefly
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1847 from ceph/wip-8259
Sage Weil [Thu, 29 May 2014 17:40:39 +0000 (10:40 -0700)]
Merge pull request #1847 from ceph/wip-8259

README, Makefile: make install-deps easier

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1860 from ceph/wip-filestore
Sage Weil [Thu, 29 May 2014 17:37:23 +0000 (10:37 -0700)]
Merge pull request #1860 from ceph/wip-filestore

osd: filestore backend improvements

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1864 from dachary/wip-filestore 1860/head
Sage Weil [Thu, 29 May 2014 17:26:17 +0000 (10:26 -0700)]
Merge pull request #1864 from dachary/wip-filestore

unit tests for #1860

11 years agoMerge pull request #1879 from ceph/wip-8321
Loic Dachary [Thu, 29 May 2014 11:42:29 +0000 (13:42 +0200)]
Merge pull request #1879 from ceph/wip-8321

fix incompatible `Counter` usage on Python 2.6

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agodoc: Made additional changes s/CRUSH/Ceph for pull request #1855
John Wilkins [Thu, 29 May 2014 00:49:21 +0000 (17:49 -0700)]
doc: Made additional changes s/CRUSH/Ceph for pull request #1855

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agoMerge pull request #1855 from kazhang/patch-1
John Wilkins [Thu, 29 May 2014 00:46:05 +0000 (17:46 -0700)]
Merge pull request #1855 from kazhang/patch-1

doc: Update architecture.rst:Calculating PG IDs

11 years agoMerge pull request #1866 from cmattson/radosgwdoc
John Wilkins [Thu, 29 May 2014 00:33:32 +0000 (17:33 -0700)]
Merge pull request #1866 from cmattson/radosgwdoc

doc: Improvements to radosgw docs

11 years agoMerge pull request #1881 from hsdhillon/master
John Wilkins [Thu, 29 May 2014 00:31:15 +0000 (17:31 -0700)]
Merge pull request #1881 from hsdhillon/master

doc: Fixes broken hyperlinks

11 years agodoc: Fixes broken hyperlinks 1881/head
Harpreet Dhillon [Wed, 28 May 2014 22:12:46 +0000 (15:12 -0700)]
doc: Fixes broken hyperlinks

11 years agoMakefile: make install-deps rule 1847/head
Sage Weil [Wed, 21 May 2014 16:50:56 +0000 (09:50 -0700)]
Makefile: make install-deps rule

This only works if autoconf is happy, but it's better than nothing.

Fixes: #8259
Signed-off-by: Sage Weil <sage@inktank.com>
11 years agodebian: improve package dep list
Sage Weil [Wed, 28 May 2014 21:55:47 +0000 (14:55 -0700)]
debian: improve package dep list

This is based on the Build-Depends in debian/control.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1812 from ceph/wip-smart-df
Sage Weil [Wed, 28 May 2014 21:51:55 +0000 (14:51 -0700)]
Merge pull request #1812 from ceph/wip-smart-df

mon: show writeable space in 'ceph df'

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agomon: set min_size to data chunk count for erasure pools 1812/head
Sage Weil [Wed, 28 May 2014 20:59:47 +0000 (13:59 -0700)]
mon: set min_size to data chunk count for erasure pools

Make the min_size value meaningful for erasure pools.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agomon: include 'max avail' in df output
Sage Weil [Sun, 11 May 2014 20:36:03 +0000 (13:36 -0700)]
mon: include 'max avail' in df output

Include an estimate of the maximum writeable space for each pool.  Note
that this value is a conservative estimate for that pool based on the
most-full OSD.  It is also potentially misleading as it is the available
space if *all* new data were written to this pool; one cannot (generally)
add up the available space for all pools.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agomon: right justify df values
Sage Weil [Sun, 11 May 2014 20:31:14 +0000 (13:31 -0700)]
mon: right justify df values

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agovstart.sh: -e to create an ec pool called 'ec'
Sage Weil [Sat, 22 Mar 2014 22:37:33 +0000 (15:37 -0700)]
vstart.sh: -e to create an ec pool called 'ec'

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agocrush: add get_rule_weight_map
Sage Weil [Wed, 28 May 2014 20:49:52 +0000 (13:49 -0700)]
crush: add get_rule_weight_map

Calculate a weight map of OSDs for a given rule.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agorest-api: key missing for per "rx" and "rwx" 1880/head
Ailing [Wed, 28 May 2014 19:37:48 +0000 (12:37 -0700)]
rest-api: key missing for per "rx" and "rwx"

commit 85a1cf31e6 and db266a3fb2 introduce new per "rx" and "rwx", but key missing for per "rx" and "rwx" in permmap

Signed-off-by: Ailing Zhang <ailzhang@cisco.com>
11 years agoMerge pull request #1878 from ceph/wip-map-advance
Samuel Just [Wed, 28 May 2014 17:26:57 +0000 (10:26 -0700)]
Merge pull request #1878 from ceph/wip-map-advance

osd: fix map advance limit to handle map gaps

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoremove unused variables, gets all tox envs passing 1879/head
Alfredo Deza [Wed, 28 May 2014 15:54:32 +0000 (11:54 -0400)]
remove unused variables, gets all tox envs passing

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agoadd backport of collections.Counter for python2.6
Alfredo Deza [Wed, 28 May 2014 15:48:12 +0000 (11:48 -0400)]
add backport of collections.Counter for python2.6

Using Raymond Hettinger's MIT backport

Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
11 years agointial take on ceph-brag-client and tox. Python 2.7 passes
Alfredo Deza [Wed, 28 May 2014 14:55:22 +0000 (10:55 -0400)]
intial take on ceph-brag-client and tox. Python 2.7 passes

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agoMerge pull request #1853 from dachary/wip-mailmap
Loic Dachary [Wed, 28 May 2014 12:01:07 +0000 (14:01 +0200)]
Merge pull request #1853 from dachary/wip-mailmap

mailmap updates

each commit has been submitted to the author for review

11 years agomailmap: Aristoteles Neto affiliation 1853/head
Loic Dachary [Mon, 26 May 2014 21:25:41 +0000 (23:25 +0200)]
mailmap: Aristoteles Neto affiliation

and name normalization

Reviewed-by: Aristoteles Neto <aristoteles.neto@webdrive.co.nz>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Chris Glass affiliation
Loic Dachary [Sat, 24 May 2014 20:46:13 +0000 (22:46 +0200)]
mailmap: Chris Glass affiliation

Reviewed-by: Chris Glass <tribaal@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Christian Theune affiliation
Loic Dachary [Sat, 24 May 2014 20:42:00 +0000 (22:42 +0200)]
mailmap: Christian Theune affiliation

Reviewed-by: Christian Theune <ct@gocept.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Shawn Edwards affiliation
Loic Dachary [Mon, 26 May 2014 21:35:29 +0000 (23:35 +0200)]
mailmap: Shawn Edwards affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Ilya Dryomov name normalization
Loic Dachary [Sat, 24 May 2014 15:58:38 +0000 (17:58 +0200)]
mailmap: Ilya Dryomov name normalization

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Stuart Longland affiliation
Loic Dachary [Sat, 24 May 2014 15:54:27 +0000 (17:54 +0200)]
mailmap: Stuart Longland affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Walter Huf affiliation
Loic Dachary [Sat, 24 May 2014 15:51:52 +0000 (17:51 +0200)]
mailmap: Walter Huf affiliation

Reviewed-by: Walter J. Huf <hufman@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Michael Riederer affiliation
Loic Dachary [Wed, 28 May 2014 11:56:19 +0000 (13:56 +0200)]
mailmap: Michael Riederer affiliation

and name normalization

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Stefan Eilemann affiliation
Loic Dachary [Sat, 24 May 2014 15:37:47 +0000 (17:37 +0200)]
mailmap: Stefan Eilemann affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Stephen F Taylor affiliation
Loic Dachary [Mon, 26 May 2014 21:34:27 +0000 (23:34 +0200)]
mailmap: Stephen F Taylor affiliation

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Daniel J. Hofmann affiliation
Loic Dachary [Sun, 25 May 2014 08:24:28 +0000 (10:24 +0200)]
mailmap: Daniel J. Hofmann affiliation

Reviewed-by: Daniel J. Hofmann <daniel@trvx.org>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Kevin Dalley affiliation
Loic Dachary [Sat, 24 May 2014 15:21:20 +0000 (17:21 +0200)]
mailmap: Kevin Dalley affiliation

Reviewed-by: Kevin Dalley <kevin@kelphead.org>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agomailmap: Florent Flament affiliation
Loic Dachary [Thu, 22 May 2014 14:23:51 +0000 (16:23 +0200)]
mailmap: Florent Flament affiliation

and name normalization

Reviewed-by: Florent Flament <florent.flament@cloudwatt.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1877 from ceph/wip-tier-doc
Loic Dachary [Wed, 28 May 2014 11:45:50 +0000 (13:45 +0200)]
Merge pull request #1877 from ceph/wip-tier-doc

doc: Fix cache tier docs

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agodoc: Fix cache tier docs 1877/head
John Spray [Wed, 28 May 2014 11:21:37 +0000 (12:21 +0100)]
doc: Fix cache tier docs

The instructions for 'osd tier add' were plain
wrong, claiming that the cache mode could
be passed as a third argument.

Signed-off-by: John Spray <john.spray@inktank.com>
11 years agoMerge pull request #1856 from dachary/wip-pg-documentation
Loic Dachary [Wed, 28 May 2014 10:19:29 +0000 (12:19 +0200)]
Merge pull request #1856 from dachary/wip-pg-documentation

documentation: adapt PG formula for erasure coded pools

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
11 years agoMerge pull request #1867 from dachary/wip-8324
Loic Dachary [Wed, 28 May 2014 10:15:57 +0000 (12:15 +0200)]
Merge pull request #1867 from dachary/wip-8324

documentation: update pid file description

Reviewed-by: Florent Flament <florent.flament@cloudwatt.com>
11 years agoos: FileStore::create_backend unit tests 1864/head
Loic Dachary [Sat, 24 May 2014 12:49:19 +0000 (14:49 +0200)]
os: FileStore::create_backend unit tests

Assert that the fs_type is mapped to a backend that claims to have the
matching name.

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoos: ObjectStore::collect_metadata unit tests
Loic Dachary [Sat, 24 May 2014 10:52:30 +0000 (12:52 +0200)]
os: ObjectStore::collect_metadata unit tests

And an emacs-executable reminder about how to run a specific test.

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1813 from ceph/wip-old-out
Samuel Just [Tue, 27 May 2014 22:06:34 +0000 (15:06 -0700)]
Merge pull request #1813 from ceph/wip-old-out

mon: restore osd weight after auto-mark out and then osd restart

Reviewed-by: Samuel Just <sam.just@inktank.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1811 from ceph/wip-perf-atomic
Samuel Just [Tue, 27 May 2014 22:04:31 +0000 (15:04 -0700)]
Merge pull request #1811 from ceph/wip-perf-atomic

perf_counter: use atomics instead of mutex

Reviewed-by: Greg Farnum <greg@inktank.com>
Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1873 from dachary/wip-8440
Samuel Just [Tue, 27 May 2014 22:00:39 +0000 (15:00 -0700)]
Merge pull request #1873 from dachary/wip-8440

mon: fix set cache_target_full_ratio

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1876 from atwardowski/patch-4
Loic Dachary [Tue, 27 May 2014 20:04:00 +0000 (22:04 +0200)]
Merge pull request #1876 from atwardowski/patch-4

Fix Documentation Typo

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoFix Documentation Typo 1876/head
Adam Twardowski [Tue, 27 May 2014 19:41:50 +0000 (15:41 -0400)]
Fix Documentation Typo

Signed-off-by: Adam Twardowski <adam.twardowski@gmail.com>
11 years agodoc: Added primary affinity. Some minor rewrap edits.
John Wilkins [Tue, 27 May 2014 18:17:37 +0000 (11:17 -0700)]
doc: Added primary affinity. Some minor rewrap edits.

Signed-off-by: John Wilkins <john.wilkins@inktank.com>
11 years agobetter error reporting on incompatible device requirements 1874/head
Alfredo Deza [Thu, 22 May 2014 21:04:28 +0000 (17:04 -0400)]
better error reporting on incompatible device requirements

Signed-off-by: Alfredo Deza <alfredo@deza.pe>
11 years agoMerge pull request #1739 from ceph/wip-journal-tool
John Spray [Tue, 27 May 2014 13:51:18 +0000 (14:51 +0100)]
Merge pull request #1739 from ceph/wip-journal-tool

cephfs-journal-tool

11 years agoMerge pull request #1824 from dachary/wip-documentation
Loic Dachary [Tue, 27 May 2014 09:41:18 +0000 (11:41 +0200)]
Merge pull request #1824 from dachary/wip-documentation

erasure-code: fix URL in developer notes

Reviewed-by: koleosfuscus <koleosfuscus@yahoo.com>
11 years agomon: fix set cache_target_full_ratio 1873/head
Loic Dachary [Tue, 27 May 2014 08:06:46 +0000 (10:06 +0200)]
mon: fix set cache_target_full_ratio

It was a noop because it was incorrectly using the variable n. Add a
test to protect against regression.

http://tracker.ceph.com/issues/8440 Fixes: #8440

Reported-by: Geoffrey Hartz <hartz.geoffrey@gmail.com>
Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoosd: fix map advance limit to handle map gaps 1878/head
Sage Weil [Sun, 25 May 2014 15:38:38 +0000 (08:38 -0700)]
osd: fix map advance limit to handle map gaps

The recent change in cf25bdf6b0090379903981fe8cee5ea75efd7ba0 would stop
advancing after some number of epochs, but did not take into consideration
the possibilty that there are missing maps.  In that case, it is impossible
to advance past the gap.

Fix this by increasing the max epoch as we go so that we can always get
beyond the gap.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agodocumentation: update pid file description 1867/head
Loic Dachary [Sun, 25 May 2014 09:05:10 +0000 (11:05 +0200)]
documentation: update pid file description

The pid file behavior changed over time and the description is misleading.

http://tracker.ceph.com/issues/8324 Fixes: #8324

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoImprovements to radosgw docs 1866/head
Colin Mattson [Sun, 25 May 2014 03:15:35 +0000 (20:15 -0700)]
Improvements to radosgw docs
- Correct a typo (`rados-admin`) in admin docs
- Reorder sections in config so "above example" is in expected position

11 years agoos/FileStore: include filestore backend, f_type in osd metadata
Sage Weil [Sat, 24 May 2014 22:58:54 +0000 (15:58 -0700)]
os/FileStore: include filestore backend, f_type in osd metadata

Report the FileStore backend and underlying fs type as part of the osd
metadata shared with the monitor.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1861 from atwardowski/patch-3
Loic Dachary [Sat, 24 May 2014 08:57:10 +0000 (10:57 +0200)]
Merge pull request #1861 from atwardowski/patch-3

Fix Doc Typo

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1846 from ceph/wip-8342
Loic Dachary [Sat, 24 May 2014 07:03:36 +0000 (09:03 +0200)]
Merge pull request #1846 from ceph/wip-8342

init-ceph: keep trying other OSDs if we fail to set CRUSH position on one OSD

Reviewed-by: Loic Dachary <loic@dachary.org>
Reviewed-by: Dmitry Smirnov <onlyjob@debian.org>
11 years agoMerge pull request #1858 from ceph/wip-8428
Josh Durgin [Fri, 23 May 2014 20:37:22 +0000 (13:37 -0700)]
Merge pull request #1858 from ceph/wip-8428

rgw: check appropriate entity permission on put_metadata

Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
11 years agoFix Doc Typo 1861/head
Adam Twardowski [Fri, 23 May 2014 19:35:18 +0000 (15:35 -0400)]
Fix Doc Typo

Signed-off-by: Adam Twardowski <adam.twardowski@gmail.com>
11 years agoos/FileStore: refactor backend instantiation
Sage Weil [Sat, 19 Apr 2014 15:47:11 +0000 (08:47 -0700)]
os/FileStore: refactor backend instantiation

Use a factory method for creating the backend so that the logic is not
duplicated in mkfs() and _detect_fs().  Make the other fs-dependent logic
(xattr limits) key off of the fs_type magic.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoos/FileStore: fix journal-less operation
Sage Weil [Sat, 19 Apr 2014 15:26:54 +0000 (08:26 -0700)]
os/FileStore: fix journal-less operation

A few different fixes here:

- make the op_seq correct on start when there is no replay
- make an explicit 'no journal' case in queue_transaction (one that
  actually works).  Note that the 'trailing journal' mode is probably
  still broken.
- add a -J flag to vstart.sh for journalless operation

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agorgw: check appropriate entity permission on put_metadata 1858/head
Yehuda Sadeh [Fri, 23 May 2014 01:27:58 +0000 (18:27 -0700)]
rgw: check appropriate entity permission on put_metadata

Fixes: #8428
Backport: firefly

Cannot use verify_object_permission() to test acls, as the operation
here might either be on object or on bucket.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
11 years agodocumentation: adapt PG formula for erasure coded pools 1856/head
Loic Dachary [Fri, 23 May 2014 05:25:37 +0000 (07:25 +0200)]
documentation: adapt PG formula for erasure coded pools

Signed-off-by: Loic Dachary <loic@dachary.org>
11 years agoUpdate architecture.rst:Calculating PG IDs 1855/head
Kai Zhang [Fri, 23 May 2014 00:37:16 +0000 (17:37 -0700)]
Update architecture.rst:Calculating PG IDs

To Calculate PG ID, if I didn't get it wrong, CRUSH calculates the hash modulo
the number of PGs instead of OSDs, according to osd/osd_types.cc:963
ceph_stable_mod(pg.ps(), pg_num, pg_num_mask).

Signed-off-by: Kai Zhang <zakir.exe@gmail.com>
11 years agoMerge pull request #1854 from ceph/wip-java-build
Samuel Just [Thu, 22 May 2014 21:34:53 +0000 (14:34 -0700)]
Merge pull request #1854 from ceph/wip-java-build

cephfs-java: build against older jni headers

Reviewed-by: Samuel Just <sam.just@inktank.com>
11 years agoMerge pull request #1851 from FlorentFlament/master
Loic Dachary [Thu, 22 May 2014 14:19:15 +0000 (16:19 +0200)]
Merge pull request #1851 from FlorentFlament/master

documentation: update osd pool default size from 2 to 3.

Reviewed-By: Christophe Courtaut <christophe.courtaut@gmail.com>
11 years agodocumentation: update osd pool default size from 2 to 3. 1851/head
Florent Flament [Thu, 22 May 2014 12:08:54 +0000 (14:08 +0200)]
documentation: update osd pool default size from 2 to 3.

Fixes: #7725
Signed-off-by: Florent Flament <florent.flament@cloudwatt.com>
11 years agoMerge pull request #1815 from ceph/osd-metadata
Loic Dachary [Thu, 22 May 2014 08:58:07 +0000 (10:58 +0200)]
Merge pull request #1815 from ceph/osd-metadata

osd: include osd_objectstore in metadata reported to mon

Reviewed-by: Loic Dachary <loic@dachary.org>
11 years agoMerge pull request #1793 from ceph/wip-multimds
Gregory Farnum [Thu, 22 May 2014 05:53:14 +0000 (22:53 -0700)]
Merge pull request #1793 from ceph/wip-multimds

Speed up several cross-MDS operations by reducing the number of two-phase commit disk accesses we have to go through.

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agocephfs-java: build against older jni headers 1854/head
Greg Farnum [Thu, 22 May 2014 04:41:23 +0000 (21:41 -0700)]
cephfs-java: build against older jni headers

Older versions of the JNI interface expected non-const parameters
to their memory move functions. It's unpleasant, but won't actually
change the memory in question, to do a cast_const in order to satisfy
those older headers. (And even if it *did* modify the memory, that
would be okay given our single user.)

Signed-off-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1838 from ceph/wip-client-time
Sage Weil [Thu, 22 May 2014 00:29:52 +0000 (17:29 -0700)]
Merge pull request #1838 from ceph/wip-client-time

fs: include client timestamp in all mds requests

Reviewed-by: Greg Farnum <greg@inktank.com>
11 years agoMerge pull request #1835 from ceph/wip-8332
Sage Weil [Wed, 21 May 2014 20:20:45 +0000 (13:20 -0700)]
Merge pull request #1835 from ceph/wip-8332

HashIndex: in cleanup, interpret missing dir as completed merge

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1834 from ceph/wip-8334
Sage Weil [Wed, 21 May 2014 20:19:54 +0000 (13:19 -0700)]
Merge pull request #1834 from ceph/wip-8334

Wip 8334

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agodoc/release-notes: v0.67.9
Sage Weil [Wed, 21 May 2014 20:00:35 +0000 (13:00 -0700)]
doc/release-notes: v0.67.9

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1848 from yuyuyu101/librbd-flush
Sage Weil [Wed, 21 May 2014 17:22:35 +0000 (10:22 -0700)]
Merge pull request #1848 from yuyuyu101/librbd-flush

Avoid extra check for clean object

Backport: firefly, dumpling
Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoMerge pull request #1849 from ceph/wip-mon-get-version
Sage Weil [Wed, 21 May 2014 15:40:16 +0000 (08:40 -0700)]
Merge pull request #1849 from ceph/wip-mon-get-version

mon: set MMonGetVersionReply tid

Reviewed-by: Sage Weil <sage@inktank.com>
11 years agoAvoid extra check for clean object 1848/head
Haomai Wang [Wed, 21 May 2014 10:12:22 +0000 (18:12 +0800)]
Avoid extra check for clean object

We needn't to check clean object via buffer state, skip the clean object.

Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agomon: set MMonGetVersionReply tid 1849/head
Ilya Dryomov [Mon, 12 May 2014 08:30:45 +0000 (12:30 +0400)]
mon: set MMonGetVersionReply tid

Currently we don't set MMonGetVersionReply tid even if the original
MMonGetVersion message had a non-zero tid.  This is bad for the kernel
client, which has the infrastructure in place that relies on tids to
lookup message buffers and contexts.  To kick off transitioning away
from the workaround, set MMonGetVersionReply tid to the tid of the
original MMonGetVersion message.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
11 years agoREADME: move package dependencies into separate files
Sage Weil [Wed, 21 May 2014 04:56:05 +0000 (21:56 -0700)]
README: move package dependencies into separate files

Sorted, with a short, simple command to paste.  Avoid the duplication of
the lists.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoREADME: clean up some whitespace
Sage Weil [Wed, 21 May 2014 04:55:18 +0000 (21:55 -0700)]
README: clean up some whitespace

Remove $ prefix, use tab consistently.

Signed-off-by: Sage Weil <sage@inktank.com>
11 years agoFix set_alloc_hint op cause KeyValueStore crash problem 1840/head
Haomai Wang [Tue, 20 May 2014 06:32:18 +0000 (14:32 +0800)]
Fix set_alloc_hint op cause KeyValueStore crash problem

Now KeyValueStore doesn't support set_alloc_hit op, the implementation of
_do_transaction need to consider decoding the arguments. Otherwise, the
arguments will be regarded as the next op.

Fix the same problem for MemStore.

Fix #8381

Reported-by: Xinxin Shu <xinxin.shu5040@gmail.com>
Signed-off-by: Haomai Wang <haomaiwang@gmail.com>
11 years agoMerge pull request #1723 from ctheune/patch-1
Sage Weil [Wed, 21 May 2014 03:22:55 +0000 (20:22 -0700)]
Merge pull request #1723 from ctheune/patch-1

Fix formatting of header

11 years agoMerge pull request #1845 from wdneto/master
John Wilkins [Wed, 21 May 2014 00:40:29 +0000 (17:40 -0700)]
Merge pull request #1845 from wdneto/master

doc: Update manual-deployment.rst