]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agotests: verify ceph-disk lockbox activation scenarii
Loic Dachary [Mon, 29 Feb 2016 11:20:14 +0000 (18:20 +0700)]
tests: verify ceph-disk lockbox activation scenarii

Simulate the cases where the activation (via udev running trigger)
sequences are:

* journal then lockbox
* data then lockbox
* lockbox

All of them must end with the OSD verfied to be up.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: improve trigger verbosity
Loic Dachary [Mon, 29 Feb 2016 11:18:41 +0000 (18:18 +0700)]
ceph-disk: improve trigger verbosity

The ceph-disk activate errors were ignored and not displayed. Capture
stdout/stderr and display it if the exit code is non zero. Also fail
when an activate fails.

Pass the --verbose flag to activate, if given to trigger.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: make ceph-disk workunit resilient to non ascii
Loic Dachary [Mon, 29 Feb 2016 11:14:44 +0000 (18:14 +0700)]
tests: make ceph-disk workunit resilient to non ascii

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: implement deactivate --once
Loic Dachary [Mon, 29 Feb 2016 11:13:55 +0000 (18:13 +0700)]
ceph-disk: implement deactivate --once

It is mostly useful for test purposes.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agotests: verify ceph-disk activate-lockbox
Loic Dachary [Fri, 26 Feb 2016 12:00:17 +0000 (19:00 +0700)]
tests: verify ceph-disk activate-lockbox

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: protect list with activate lock
Loic Dachary [Fri, 26 Feb 2016 11:57:37 +0000 (18:57 +0700)]
ceph-disk: protect list with activate lock

list may try to mount partitions to figure out the OSD id and other
details. If it does so while the OSD is activated, it will race and lead
to errors, either for activation or for list.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: implement list for lockbox
Loic Dachary [Fri, 26 Feb 2016 10:43:34 +0000 (17:43 +0700)]
ceph-disk: implement list for lockbox

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agodoc: update ceph-disk to refer to ceph-disk --help
Loic Dachary [Thu, 25 Feb 2016 10:20:54 +0000 (17:20 +0700)]
doc: update ceph-disk to refer to ceph-disk --help

The ceph-disk page is often obsolete, mostly because maintaining
it requires a significant amount of copy/paste and re-formatting.
Now that the --help of ceph-disk has been updated to include a more
verbose explanation of each subcommand, simplify the man page to
give an overview of the subcommands and suggest the --help is used
to get more information.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: add a description for each subcommand
Loic Dachary [Thu, 25 Feb 2016 09:48:38 +0000 (16:48 +0700)]
ceph-disk: add a description for each subcommand

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: implement lockbox key management
Loic Dachary [Thu, 25 Feb 2016 05:56:02 +0000 (12:56 +0700)]
ceph-disk: implement lockbox key management

Instead of storing the dmcrypt keys in the /etc/ceph/dmcrypt-keys
directory, they are stored in the monitor. If a machine with
OSDs created with ceph-disk prepare --dmcrypt is lost, it does
not contain the key that would allow to decrypt their content.

The dmcrypt key is retrieved from the monitor using a different keyring
for each OSD. It is stored in a small partition called the lockbox. At
boot time the lockbox is mounted

    /var/lib/ceph/osd-lockbox/$uuid

and used when the $uuid partition is detected by udev to map it with
cryptsetup.

The OSDs that were prepared prior to the lockbox implementation are
supported by looking up the key found in /etc/ceph/dmcrypt-keys before
looking in /var/lib/ceph/osd-lockbox/$uuid.

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

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: simplify trigger
Loic Dachary [Thu, 25 Feb 2016 05:53:10 +0000 (12:53 +0700)]
ceph-disk: simplify trigger

The ceph-disk trigger deals with dmcrypt mapping which is redundant with
what ceph-disk activate-* does when the --dmcrypt flag is set. Remove
the dmcrypt mapping code and add the --dmcrypt flag to ceph-disk
activate-* where relevant.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: re-using an OSD partition bugous test
Loic Dachary [Thu, 25 Feb 2016 05:49:59 +0000 (12:49 +0700)]
ceph-disk: re-using an OSD partition bugous test

When re-using an OSD partition, the test of the partition type is done
against a non-existent variable.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: make dmcrypt_unmap idempotent
Loic Dachary [Thu, 25 Feb 2016 05:44:58 +0000 (12:44 +0700)]
ceph-disk: make dmcrypt_unmap idempotent

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: destroy does not unmap block/journal
Loic Dachary [Tue, 23 Feb 2016 11:03:26 +0000 (18:03 +0700)]
ceph-disk: destroy does not unmap block/journal

The dmcrypt boolean needs to be set for destroy to ensure the
journal/block partitions are 'cryptsetup remove'.

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoceph-disk: display the function name with the log messages
Loic Dachary [Tue, 23 Feb 2016 10:09:14 +0000 (17:09 +0700)]
ceph-disk: display the function name with the log messages

Signed-off-by: Loic Dachary <loic@dachary.org>
9 years agoMerge pull request #7786 from ceph/wip-rgw-indexless
Yehuda Sadeh [Thu, 3 Mar 2016 22:18:25 +0000 (14:18 -0800)]
Merge pull request #7786 from ceph/wip-rgw-indexless

rgw: indexless buckets (Yehuda Sadeh)

 - can define a policy, for which buckets are indexless
 - users can then create buckets under the specified placement target
 - indexless buckets will not be synced across zones
 - does not work with (s3) versioned buckets

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: indexless buckets 7786/head
Yehuda Sadeh [Sat, 20 Feb 2016 02:34:46 +0000 (18:34 -0800)]
rgw: indexless buckets

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: configurable index type
Yehuda Sadeh [Sat, 20 Feb 2016 01:18:44 +0000 (17:18 -0800)]
rgw: configurable index type

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7764 from rzarzynski/wip-rgw-etag-dlo
Yehuda Sadeh [Thu, 3 Mar 2016 21:43:27 +0000 (13:43 -0800)]
Merge pull request #7764 from rzarzynski/wip-rgw-etag-dlo

rgw: multiple improvements regarding etag calculation for SLO/DLO of Swift API.

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge remote-tracking branch 'gh/jewel'
Sage Weil [Thu, 3 Mar 2016 18:35:13 +0000 (13:35 -0500)]
Merge remote-tracking branch 'gh/jewel'

9 years agov10.0.4 v10.0.4
Sage Weil [Thu, 3 Mar 2016 18:34:46 +0000 (13:34 -0500)]
v10.0.4

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7897 from branch-predictor/bp-bench-errors-fatal
Loic Dachary [Thu, 3 Mar 2016 16:15:45 +0000 (23:15 +0700)]
Merge pull request #7897 from branch-predictor/bp-bench-errors-fatal

common/obj_bencher.cc: make verify error fatal

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agocommon/obj_bencher.cc: make verify error fatal 7897/head
Piotr Dałek [Thu, 3 Mar 2016 10:30:53 +0000 (11:30 +0100)]
common/obj_bencher.cc: make verify error fatal

When run without "--no-verify", all verification errors are noted,
but they are not forwarded/reported anywhere else but to cerr, which
will cause automated testing to ignore them. Make seq_read_bench and
rand_read_bench return -EIO on any verification error which will,
in turn, return it back to caller.

Fixes: #14971
Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoMerge pull request #7757 from ukernel/jewel-14684
Sage Weil [Thu, 3 Mar 2016 14:37:50 +0000 (09:37 -0500)]
Merge pull request #7757 from ukernel/jewel-14684

mon/MDSMonitor.cc: properly note beacon when health metrics changes

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #7882 from branch-predictor/bp-unconfuse-health-1
Sage Weil [Thu, 3 Mar 2016 14:15:29 +0000 (09:15 -0500)]
Merge pull request #7882 from branch-predictor/bp-unconfuse-health-1

mon: unconfuse object count skew message

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoPGMonitor: unconfuse object count skew message 7882/head
Piotr Dałek [Wed, 2 Mar 2016 12:22:38 +0000 (13:22 +0100)]
PGMonitor: unconfuse object count skew message

"Pool <pool> has too few pgs" is okay assuming it does not take other
pools into account. And since it does, it is confusing in the following
scenario:

1. Create two pools, one with small pg count and one with large
   pg count
2. Put a whole lot of objects in smaller pool, resulting in "too few
   pgs" warning on that pool, which is expected behavior.
3. Put a whole lot of objects in larger pool, warning goes away.
   Suddenly smaller pool has plenty of PGs?

Current message suggests adding more nodes (or PGs) to pool, when
actually it's warning about significantly more objects in that
particular pool than in the other pools.

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoMerge pull request #7898 from oritwas/wip-cmake-add-fs_types
John Spray [Thu, 3 Mar 2016 13:54:25 +0000 (13:54 +0000)]
Merge pull request #7898 from oritwas/wip-cmake-add-fs_types

cmake: add common/fs_types.cc to libcommon

Reviewed-by: John Spray <john.spray@redhat.com>
9 years agoMerge pull request #7881 from aclamk/ceph-df-used-fix
Sage Weil [Thu, 3 Mar 2016 13:51:50 +0000 (08:51 -0500)]
Merge pull request #7881 from aclamk/ceph-df-used-fix

mon: fix calculation of %USED

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7892 from majianpeng/bluestore-leak-unwritten-extent
Sage Weil [Thu, 3 Mar 2016 13:49:17 +0000 (08:49 -0500)]
Merge pull request #7892 from majianpeng/bluestore-leak-unwritten-extent

osd: bluestore: fix check for write falling within the same extent

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7886 from stiopaa1/blueStoreOverrides
Sage Weil [Thu, 3 Mar 2016 13:41:21 +0000 (08:41 -0500)]
Merge pull request #7886 from stiopaa1/blueStoreOverrides

osd: bluestore: add 'override' to virtual functions

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7895 from majianpeng/bluestore-trim-overlay
Sage Weil [Thu, 3 Mar 2016 13:40:21 +0000 (08:40 -0500)]
Merge pull request #7895 from majianpeng/bluestore-trim-overlay

os/bluestore/BlueStore: Don't leak trim overlay data before write.

9 years agoos/bluestore/BlueStore: Don't leak trim overlay data before write. 7895/head
Jianpeng Ma [Thu, 3 Mar 2016 13:46:55 +0000 (21:46 +0800)]
os/bluestore/BlueStore: Don't leak trim overlay data before write.

Suppose: bluestore_overlay_max_length=bluestore_min_alloc_size;
bluestore_overlay_max = 2;
For the following ops:
write(off=0, len=4096) --->write into overlay
write(off=4096, len=4096)-->write into overlay
write(off=0, len=bluestore_min_alloc_size)-->because overlay_map.size()
>=2, it allocate a extent.

It should trim overlay data(0,4096) &(4096, 4096),and then write(0,
bluestore_min_alloc_size).
But the original code don't trim overlay data.
This make the later read data is orignal data rather that new data.

Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agocmake: add common/fs_types.cc to libcommon 7898/head
Orit Wasserman [Thu, 3 Mar 2016 13:17:21 +0000 (14:17 +0100)]
cmake: add common/fs_types.cc to libcommon

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
9 years agoos/bluestore/BlueStore: Fix bug when calc offset & end whether locate in the a extent. 7892/head
Jianpeng Ma [Thu, 3 Mar 2016 10:49:28 +0000 (18:49 +0800)]
os/bluestore/BlueStore: Fix bug when calc offset & end whether locate in the a extent.

Suppose: bluestore_overlay_max_length == bluestore_min_alloc_size
The orignal code which calc content of written whether locate in a
extent:
(offset / min_alloc_size) == (offset + length) /min_alloc_size
This will make the case which offset=0 & length =min_alloc_size locate
in the different extent.
In fact, this content is in the same extent.

Change end = offset + length - 1 make work.

Fixes: #14954
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
9 years agocommon/obj_bencher.cc: use more readable constant instead of magic number
Piotr Dałek [Thu, 3 Mar 2016 10:22:57 +0000 (11:22 +0100)]
common/obj_bencher.cc: use more readable constant instead of magic number

When clean_up_slow() fails, it returns "-5" which is equal to -EIO.
Change it in source, so it's not confusing for someone who does not
remember all error codes (functionality remains the same).

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoMerge pull request #7098 from liewegas/wip-file-layout
Gregory Farnum [Thu, 3 Mar 2016 03:15:18 +0000 (19:15 -0800)]
Merge pull request #7098 from liewegas/wip-file-layout

mds, client: add namespace to file_layout_t (previously ceph_file_layout)

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
9 years agoBluestore.h:Added 'override' to virtual functions 7886/head
Michal Jarzabek [Wed, 2 Mar 2016 20:18:49 +0000 (20:18 +0000)]
Bluestore.h:Added 'override' to virtual functions

Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
9 years agoMerge pull request #7849 from ceph/wip-cmake
Casey Bodley [Wed, 2 Mar 2016 19:08:53 +0000 (14:08 -0500)]
Merge pull request #7849 from ceph/wip-cmake

Wip cmake

9 years agocmake: simplified heap_profiler_objs dependencies 7849/head
Ali Maredia [Mon, 29 Feb 2016 21:37:57 +0000 (16:37 -0500)]
cmake: simplified heap_profiler_objs dependencies

The heap_profiler object library only needs to be
added to mon,mds, and osd instead of the numerous
targets it is part of

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agoclient/Inode: fix has_dir_layout 7098/head
Sage Weil [Tue, 1 Mar 2016 15:40:41 +0000 (10:40 -0500)]
client/Inode: fix has_dir_layout

Compare to default file_layout_t() -- not zeroed memory.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7867 from SUSE/wip-14940
branto1 [Wed, 2 Mar 2016 17:26:13 +0000 (18:26 +0100)]
Merge pull request #7867 from SUSE/wip-14940

RPM: move %post(un) ldconfig calls to ceph-base

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agoMerge pull request #7869 from rzarzynski/wip-rgw-aws4-puthash
Orit Wasserman [Wed, 2 Mar 2016 17:08:48 +0000 (18:08 +0100)]
Merge pull request #7869 from rzarzynski/wip-rgw-aws4-puthash

rgw: calculate payload hash in RGWPutObj_ObjStore only when necessary.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
9 years agoMerge remote-tracking branch 'gh/jewel'
Sage Weil [Wed, 2 Mar 2016 14:22:28 +0000 (09:22 -0500)]
Merge remote-tracking branch 'gh/jewel'

9 years agoMerge pull request #7612 from liewegas/wip-buffer-combined
Sage Weil [Wed, 2 Mar 2016 13:31:08 +0000 (08:31 -0500)]
Merge pull request #7612 from liewegas/wip-buffer-combined

buffer: raw_combined allocations buffer and ref count together

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #7690 from xiexingguo/xxg-wip-14804
Sage Weil [Wed, 2 Mar 2016 13:30:26 +0000 (08:30 -0500)]
Merge pull request #7690 from xiexingguo/xxg-wip-14804

common/TrackedOp: fix inaccurate counting for slow requests

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7704 from xiexingguo/xxg-wip-14814
Sage Weil [Wed, 2 Mar 2016 13:29:54 +0000 (08:29 -0500)]
Merge pull request #7704 from xiexingguo/xxg-wip-14814

osd: filestore: fix wrong scope of result code for error cases during mkfs

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7812 from xiexingguo/xxg-wip-14872
Sage Weil [Wed, 2 Mar 2016 13:29:09 +0000 (08:29 -0500)]
Merge pull request #7812 from xiexingguo/xxg-wip-14872

osd: fix wrong return type of find_osd_on_ip()

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7815 from branch-predictor/bp-conditional-crc
Haomai Wang [Wed, 2 Mar 2016 13:28:40 +0000 (21:28 +0800)]
Merge pull request #7815 from branch-predictor/bp-conditional-crc

msg/async: don't calculate msg header crc when not needed

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agoMerge pull request #7711 from xiexingguo/xxg-wip-14817
Sage Weil [Wed, 2 Mar 2016 13:28:03 +0000 (08:28 -0500)]
Merge pull request #7711 from xiexingguo/xxg-wip-14817

osd: filestore: fix result code overwritten for clone

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7790 from tchaikov/wip-log-segv
Sage Weil [Wed, 2 Mar 2016 13:27:36 +0000 (08:27 -0500)]
Merge pull request #7790 from tchaikov/wip-log-segv

log: segv in a portable way

Reviewed-by: Nathan Cutler <ncutler@suse.com>
9 years agoMerge pull request #7842 from xiexingguo/xxg-wip-14921
Sage Weil [Wed, 2 Mar 2016 13:26:30 +0000 (08:26 -0500)]
Merge pull request #7842 from xiexingguo/xxg-wip-14921

osd: fix overload of '==' operator for pg_stat_t

Reviewed-by: Sage Weil <sage@redhat.com>
9 years ago[MON] Fixed calculation of %USED. Now it is shows (space used by all replicas)/(raw... 7881/head
Adam Kupczyk [Wed, 2 Mar 2016 11:31:01 +0000 (12:31 +0100)]
[MON] Fixed calculation of %USED. Now it is shows (space used by all replicas)/(raw space available on OSDs). Before it was (size of pool)/(raw space available on OSDs).

Signed-off-by: Adam Kupczyk akupczyk@mirantis.com
9 years agoMerge pull request #7390 from badone/wip-13829
Kefu Chai [Wed, 2 Mar 2016 03:22:24 +0000 (11:22 +0800)]
Merge pull request #7390 from badone/wip-13829

common: Allow OPT_INT settings with negative values

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agoMerge pull request #7854 from yehudasa/wip-authors-update
Kefu Chai [Wed, 2 Mar 2016 02:18:25 +0000 (10:18 +0800)]
Merge pull request #7854 from yehudasa/wip-authors-update

AUTHORS: update email

Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7846 from dillaman/wip-14551
Josh Durgin [Wed, 2 Mar 2016 01:18:04 +0000 (17:18 -0800)]
Merge pull request #7846 from dillaman/wip-14551

rbd: update default image features

Conflicts:
PendingReleaseNotes (trivial)

9 years agoMerge pull request #7841 from dillaman/wip-14550
Josh Durgin [Wed, 2 Mar 2016 01:18:18 +0000 (17:18 -0800)]
Merge pull request #7841 from dillaman/wip-14550

rbd: deprecate image format 1

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7839 from dillaman/wip-14809
Josh Durgin [Wed, 2 Mar 2016 01:18:05 +0000 (17:18 -0800)]
Merge pull request #7839 from dillaman/wip-14809

librbd: remove last synchronous librados calls from open/close state machine

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7785 from dillaman/wip-14822
Josh Durgin [Wed, 2 Mar 2016 01:17:50 +0000 (17:17 -0800)]
Merge pull request #7785 from dillaman/wip-14822

librbd: journal replay needs to support re-executing maintenance ops

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agoMerge pull request #7776 from dillaman/wip-librbd-journal-tweaks
Josh Durgin [Wed, 2 Mar 2016 01:17:31 +0000 (17:17 -0800)]
Merge pull request #7776 from dillaman/wip-librbd-journal-tweaks

journal: improve commit position tracking

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
9 years agocmake: Turned LTTng OFF
Ali Maredia [Mon, 29 Feb 2016 21:11:04 +0000 (16:11 -0500)]
cmake: Turned LTTng OFF

This is temporary, until a way to stop repetitive
unecessary generation of headerfiles is figured out.

Signed-off-by: Ali Maredia <amaredia@redhat.com>
9 years agoRPM: move scriptlets from ceph to ceph-base 7867/head
Nathan Cutler [Tue, 1 Mar 2016 20:25:11 +0000 (21:25 +0100)]
RPM: move scriptlets from ceph to ceph-base

This addresses the following RPMLINT error:

ceph-base.x86_64: E: library-without-ldconfig-postun (Badness:
300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postun (Badness:
300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %postun scriptlet
containing a call to ldconfig.

ceph-base.x86_64: E: library-without-ldconfig-postin (Badness:
300) /usr/lib64/libosd_tp.so.1.0.0
ceph-base.x86_64: E: library-without-ldconfig-postin (Badness:
300) /usr/lib64/libos_tp.so.1.0.0
This package contains a library and provides no %post scriptlet
containing a call to ldconfig.

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

Signed-off-by: Nathan Cutler <ncutler@suse.com>
9 years agoAUTHORS: update email 7854/head
Yehuda Sadeh [Tue, 1 Mar 2016 04:13:11 +0000 (20:13 -0800)]
AUTHORS: update email

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: calculate payload hash in RGWPutObj_ObjStore only when necessary. 7869/head
Radoslaw Zarzynski [Tue, 1 Mar 2016 20:52:44 +0000 (21:52 +0100)]
rgw: calculate payload hash in RGWPutObj_ObjStore only when necessary.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #7767 from athanatos/wip-sam-journal-throttle-4
Samuel Just [Tue, 1 Mar 2016 20:51:15 +0000 (12:51 -0800)]
Merge pull request #7767 from athanatos/wip-sam-journal-throttle-4

osd: filestore: restructure journal and op queue throttling

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agomds: deny access to file with pool_ns layout if feature is missing
Yan, Zheng [Sun, 14 Feb 2016 09:27:26 +0000 (17:27 +0800)]
mds: deny access to file with pool_ns layout if feature is missing

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomds: fix inodestat size calculation
Yan, Zheng [Sun, 14 Feb 2016 08:59:31 +0000 (16:59 +0800)]
mds: fix inodestat size calculation

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomds: properly purge backtrace object
Yan, Zheng [Sun, 14 Feb 2016 08:42:56 +0000 (16:42 +0800)]
mds: properly purge backtrace object

backtrace objects are always in default namespace

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomessages/MClientCaps: fix decoding
Yan, Zheng [Mon, 15 Feb 2016 15:28:32 +0000 (23:28 +0800)]
messages/MClientCaps: fix decoding

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agomds/Server: fix whitespace
Sage Weil [Fri, 26 Feb 2016 15:32:20 +0000 (10:32 -0500)]
mds/Server: fix whitespace

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/Locker: fix Session leak on access denial
Sage Weil [Fri, 26 Feb 2016 15:32:15 +0000 (10:32 -0500)]
mds/Locker: fix Session leak on access denial

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agofix init of new fields in MCLientCaps
Sage Weil [Tue, 23 Feb 2016 15:26:15 +0000 (10:26 -0500)]
fix init of new fields in MCLientCaps

9 years agomds/MDSMap: add file layout v2 incompat feature
Sage Weil [Wed, 10 Feb 2016 14:43:32 +0000 (09:43 -0500)]
mds/MDSMap: add file layout v2 incompat feature

The existing MDSMonitor machinations already add this to the MDSMap to
boot out old MDS's.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: deny access to directories with pool_ns layouts if feature is missing
Sage Weil [Wed, 10 Feb 2016 14:38:33 +0000 (09:38 -0500)]
mds: deny access to directories with pool_ns layouts if feature is missing

If the client feature is missing, given them EIO.  Change check_access to
return an error code to distinguish this from EACCES.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomon/MDSMonitor: prevent pool 0 from being used as a data pool
Sage Weil [Mon, 1 Feb 2016 18:01:32 +0000 (13:01 -0500)]
mon/MDSMonitor: prevent pool 0 from being used as a data pool

Pool 0 means no change or default in the legacy ceph_file_layout in the
layout ioctl and file create arguments. Prevent it from being used to avoid
putting users in an awkward situation later.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: don't break compatibility of MClientCaps/MClientReply
Yan, Zheng [Mon, 1 Feb 2016 14:17:04 +0000 (22:17 +0800)]
mds: don't break compatibility of MClientCaps/MClientReply

Signed-off-by: Yan, Zheng <zyan@redhat.com>
9 years agofs_types: file_layout_t: convert pool -1 (undefined) to 0 in legacy encoding
Sage Weil [Tue, 12 Jan 2016 14:57:06 +0000 (09:57 -0500)]
fs_types: file_layout_t: convert pool -1 (undefined) to 0 in legacy encoding

Old code assumes that fl_pg_pool == 0 means the pool is not defined, while
file_layout_t uses -1.  Translate between the two.

Note that this means a valid file_layout_t with pool_id == 0 cannot be
accurately translated to a legacy file_layout_t.  That is somewhat
unavoidable, and should not be a problem since real clusters create 'rbd'
as pool 0 and it does not use any file layouts.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/fs/misc/layout_vxattrs: test layout.pool_namespace
Sage Weil [Mon, 4 Jan 2016 15:51:36 +0000 (10:51 -0500)]
qa/workunits/fs/misc/layout_vxattrs: test layout.pool_namespace

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoclient: expose layout.pool_namespace vxattr
Sage Weil [Mon, 4 Jan 2016 14:15:34 +0000 (09:15 -0500)]
client: expose layout.pool_namespace vxattr

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: allow adjustment of layout.pool_namespace vxattr
Sage Weil [Mon, 4 Jan 2016 14:37:35 +0000 (09:37 -0500)]
mds: allow adjustment of layout.pool_namespace vxattr

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agostruct ceph_file_layout -> file_layout_t
Sage Weil [Mon, 4 Jan 2016 15:44:53 +0000 (10:44 -0500)]
struct ceph_file_layout -> file_layout_t

- drop the global
- do not memset!
- encode with features
- field names are different
- use get_period() method where appropriate
- fix is layout empty checks

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: make inode_t, old_inode_t featureful
Sage Weil [Thu, 31 Dec 2015 22:24:44 +0000 (17:24 -0500)]
mds: make inode_t, old_inode_t featureful

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomessages/MClientCaps: avoid fixed struct for encoding
Sage Weil [Thu, 31 Dec 2015 19:05:03 +0000 (14:05 -0500)]
messages/MClientCaps: avoid fixed struct for encoding

At least for new clients.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: encode inode reply information directly
Sage Weil [Thu, 31 Dec 2015 18:21:09 +0000 (13:21 -0500)]
mds: encode inode reply information directly

Drop the ceph_mds_reply_inode struct and encode directly.  Note
that we already decode directly to InodeStat in MClientReply.h.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomessages/MClientReply: stop using ceph_mds_reply_inode struct to unpack
Sage Weil [Thu, 31 Dec 2015 18:49:05 +0000 (13:49 -0500)]
messages/MClientReply: stop using ceph_mds_reply_inode struct to unpack

Decode directly.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: pass features to various CInode encoders and helpers
Sage Weil [Wed, 30 Dec 2015 20:13:36 +0000 (15:13 -0500)]
mds: pass features to various CInode encoders and helpers

We'll need this shortly.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSMap: cache up_features; fix logic
Sage Weil [Wed, 30 Dec 2015 20:07:39 +0000 (15:07 -0500)]
mds/MDSMap: cache up_features; fix logic

& these, not | them.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agolibradosstriper: move default stripe parameters inline
Sage Weil [Wed, 30 Dec 2015 20:05:53 +0000 (15:05 -0500)]
libradosstriper: move default stripe parameters inline

The extern is going away.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoinclude/encoding: featureful encoder for list of shared_ptrs
Sage Weil [Wed, 30 Dec 2015 20:04:28 +0000 (15:04 -0500)]
include/encoding: featureful encoder for list of shared_ptrs

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoinclude/compact_map: featureful encoders, too
Sage Weil [Wed, 30 Dec 2015 20:04:08 +0000 (15:04 -0500)]
include/compact_map: featureful encoders, too

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-dencoder: TYPE_FEATUREFUL_NOCOPY
Sage Weil [Wed, 30 Dec 2015 20:03:42 +0000 (15:03 -0500)]
ceph-dencoder: TYPE_FEATUREFUL_NOCOPY

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds: pass features to LogEvents, EMetaBlob
Sage Weil [Tue, 10 Nov 2015 22:06:44 +0000 (17:06 -0500)]
mds: pass features to LogEvents, EMetaBlob

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds,mon: include features in beacon messages, MDSMap
Sage Weil [Tue, 10 Nov 2015 21:47:11 +0000 (16:47 -0500)]
mds,mon: include features in beacon messages, MDSMap

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds/MDSMap: add features to MDSMap's mds_info_t
Sage Weil [Tue, 10 Nov 2015 21:45:32 +0000 (16:45 -0500)]
mds/MDSMap: add features to MDSMap's mds_info_t

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoadd fs_types.h, with file_layout_t
Sage Weil [Tue, 10 Nov 2015 11:40:09 +0000 (06:40 -0500)]
add fs_types.h, with file_layout_t

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agodeclare Formatter for everyone
Sage Weil [Wed, 30 Dec 2015 20:35:01 +0000 (15:35 -0500)]
declare Formatter for everyone

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/fs/misc/layout_vxattr.sh: detect data pool name
Sage Weil [Mon, 4 Jan 2016 14:46:47 +0000 (09:46 -0500)]
qa/workunits/fs/misc/layout_vxattr.sh: detect data pool name

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7823 from SUSE/wip-14906
branto1 [Tue, 1 Mar 2016 15:35:21 +0000 (16:35 +0100)]
Merge pull request #7823 from SUSE/wip-14906

packaging: add lsb-release dependency for SUSE and Debian

Reviewed-by: David Disseldorp <ddiss@suse.de>
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
9 years agorgw: send proper ETag value during GET on DLO/SLO through S3 API. 7764/head
Radoslaw Zarzynski [Mon, 29 Feb 2016 22:25:57 +0000 (23:25 +0100)]
rgw: send proper ETag value during GET on DLO/SLO through S3 API.

Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #7837 from rldleblanc/wpq-documentation
Sage Weil [Tue, 1 Mar 2016 14:27:21 +0000 (09:27 -0500)]
Merge pull request #7837 from rldleblanc/wpq-documentation

doc: osd-config Add Configuration Options for op queue.

9 years agoMerge pull request #7851 from jupiturliu/obj-bencher-bug
Sage Weil [Tue, 1 Mar 2016 14:25:51 +0000 (09:25 -0500)]
Merge pull request #7851 from jupiturliu/obj-bencher-bug

rados: fix bug for write bench

Reviewed-by: Sage Weil <sage@redhat.com>