]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
10 years agoosd/ReplicatedPG: drop old hobject_t encoding compatibility
Sage Weil [Thu, 23 Jul 2015 16:25:59 +0000 (12:25 -0400)]
osd/ReplicatedPG: drop old hobject_t encoding compatibility

This was introduced in 0.47 ... we don't need it any more!

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agohobject_t: conditional Comparator object
Sage Weil [Thu, 23 Jul 2015 20:23:14 +0000 (16:23 -0400)]
hobject_t: conditional Comparator object

This one can go either bitwise or nibblewise, depending on what you give
pass to the STL container constructor.  E.g.,

 map<hobject_t, int, hobject_t::Comparator> mymap(hobject_t::Comparator(bitwise));

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agouse explicit ghobject_t comparators
Sage Weil [Thu, 23 Jul 2015 14:20:47 +0000 (10:20 -0400)]
use explicit ghobject_t comparators

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agouse explicit hobject_t comparators
Sage Weil [Thu, 23 Jul 2015 14:20:36 +0000 (10:20 -0400)]
use explicit hobject_t comparators

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoexplicitly specify comparator for all ghobject_t maps and sets
Sage Weil [Thu, 23 Jul 2015 14:20:00 +0000 (10:20 -0400)]
explicitly specify comparator for all ghobject_t maps and sets

We no longer have operator<

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoexplicitly specify comparator for all hobject_t maps and sets
Sage Weil [Thu, 23 Jul 2015 14:17:27 +0000 (10:17 -0400)]
explicitly specify comparator for all hobject_t maps and sets

This is necessary now that operator< is not defined.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agohobject_t: typed MIN_* helpers
Sage Weil [Thu, 23 Jul 2015 13:24:09 +0000 (09:24 -0400)]
hobject_t: typed MIN_* helpers

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agocommon/simple_cache: parameterize map<> comparator
Sage Weil [Thu, 23 Jul 2015 13:16:09 +0000 (09:16 -0400)]
common/simple_cache: parameterize map<> comparator

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agocommon/sharedptr_registry: parameterize map<> comparator
Sage Weil [Thu, 23 Jul 2015 12:51:39 +0000 (08:51 -0400)]
common/sharedptr_registry: parameterize map<> comparator

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agocommon/shared_cache: parameterize the map<> comparator
Sage Weil [Thu, 23 Jul 2015 12:46:05 +0000 (08:46 -0400)]
common/shared_cache: parameterize the map<> comparator

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoinclude/encoding: handle set<> with comparator
Sage Weil [Wed, 22 Jul 2015 15:33:19 +0000 (11:33 -0400)]
include/encoding: handle set<> with comparator

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoinclude/types: operator<< for set with comparator
Sage Weil [Wed, 22 Jul 2015 15:31:11 +0000 (11:31 -0400)]
include/types: operator<< for set with comparator

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoinclude/types: map operator<< with comparator
Sage Weil [Wed, 22 Jul 2015 14:48:12 +0000 (10:48 -0400)]
include/types: map operator<< with comparator

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoinclude/encoding: map<> encoders when comparator is specified
Sage Weil [Wed, 22 Jul 2015 14:35:41 +0000 (10:35 -0400)]
include/encoding: map<> encoders when comparator is specified

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agocommon/hobject_t: remove comparison operators for [g]hobject_t
Sage Weil [Wed, 22 Jul 2015 13:48:31 +0000 (09:48 -0400)]
common/hobject_t: remove comparison operators for [g]hobject_t

*All* comparisions, including everything in the OSD, needs to
conditionally use either bitwise or nibblewise sort order.  Force the
issue by using the explicit cmp methods.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: ignore CRUSH_ITEM_NONE when calculating interval features
Sage Weil [Tue, 21 Jul 2015 15:54:08 +0000 (11:54 -0400)]
osd: ignore CRUSH_ITEM_NONE when calculating interval features

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: allow sort order to randomly revert to nibblewise via debug config
Sage Weil [Fri, 17 Jul 2015 18:51:12 +0000 (14:51 -0400)]
osd: allow sort order to randomly revert to nibblewise via debug config

Note that this option is misused and applied to some but not all OSDs they
will disagree on the sort order and get confused, potentially losing data.
It must be global to the cluster in order to be useful.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd/PG: do not trust last_backfill for purposes of missing objects if sort order...
Sage Weil [Fri, 17 Jul 2015 18:43:53 +0000 (14:43 -0400)]
osd/PG: do not trust last_backfill for purposes of missing objects if sort order is wrong

If the peer has the wrong sort order, we cannot trust lsst_backfill and we
do not know if the object is there.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: restart backfill on peers if last_backfill sort is off
Sage Weil [Fri, 17 Jul 2015 18:12:29 +0000 (14:12 -0400)]
osd: restart backfill on peers if last_backfill sort is off

If a peer has a last_backfill value but the wrong sort order, we need to
restart backfill at the beginning.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: use accessor to set last_backfill
Sage Weil [Fri, 17 Jul 2015 18:15:55 +0000 (14:15 -0400)]
osd: use accessor to set last_backfill

Always will in last_backfill and last_backfill_bitwise together.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: set acting, upacting features from osdmap, not peers
Sage Weil [Fri, 17 Jul 2015 18:33:31 +0000 (14:33 -0400)]
osd: set acting, upacting features from osdmap, not peers

Set in start_peering_interval based on the osdmap, so that it is defined
deterministically on primary, replica, and stray.

Note that peer features are still a primary-only construct.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd/osd_types: clean up pg_info_t comments a bit
Sage Weil [Thu, 16 Jul 2015 17:14:54 +0000 (13:14 -0400)]
osd/osd_types: clean up pg_info_t comments a bit

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd/osd_types: add last_backfill_bitwise flag to pg_info_t
Sage Weil [Thu, 16 Jul 2015 17:14:45 +0000 (13:14 -0400)]
osd/osd_types: add last_backfill_bitwise flag to pg_info_t

We need to know what sort order last_backfill is based on.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agohobject_t: pad hash to 8 digits
Sage Weil [Tue, 14 Jul 2015 19:06:41 +0000 (15:06 -0400)]
hobject_t: pad hash to 8 digits

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoceph_test_objectstore: call+test new collection_list variants
Sage Weil [Mon, 13 Jul 2015 20:47:30 +0000 (16:47 -0400)]
ceph_test_objectstore: call+test new collection_list variants

In particular, make SimpleListTest check both sorting methods and asssert
that the result is sorted.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/HashIndex: handle new bitwise sorting
Sage Weil [Mon, 13 Jul 2015 16:58:18 +0000 (12:58 -0400)]
os/HashIndex: handle new bitwise sorting

Handle listing by hash with bitwise sorting.  This involves futzing with
the hex digit sort order by reversing the digit nibbles and so on.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/HashIndex: handle legacy nibblewise sort
Sage Weil [Mon, 13 Jul 2015 16:36:46 +0000 (12:36 -0400)]
os/HashIndex: handle legacy nibblewise sort

We need to separate the bitwise and nibblewise implementations because
they diverge too much.  Start by converting the old code to a working
nibblewise sort (compensating for the new ghobject_t sort and new args).

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/LFNIndex: pass through sort_bitwise
Sage Weil [Mon, 13 Jul 2015 14:56:28 +0000 (10:56 -0400)]
os/LFNIndex: pass through sort_bitwise

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/FileStore: pass sort_bitwise down to CollectionIndex
Sage Weil [Mon, 13 Jul 2015 14:55:34 +0000 (10:55 -0400)]
os/FileStore: pass sort_bitwise down to CollectionIndex

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/FileStore: use bitwise sort when we don't care (e.g., split)
Sage Weil [Mon, 13 Jul 2015 14:54:40 +0000 (10:54 -0400)]
os/FileStore: use bitwise sort when we don't care (e.g., split)

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/KeyValueStore: only support bitwise sort
Sage Weil [Mon, 13 Jul 2015 14:52:42 +0000 (10:52 -0400)]
os/KeyValueStore: only support bitwise sort

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/MemStore: only support bitwise sort order
Sage Weil [Mon, 13 Jul 2015 14:51:53 +0000 (10:51 -0400)]
os/MemStore: only support bitwise sort order

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd/PGBackend: ask PG which sort order to use
Sage Weil [Mon, 13 Jul 2015 14:51:34 +0000 (10:51 -0400)]
osd/PGBackend: ask PG which sort order to use

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: use bitwise collection_list sort when we don't care
Sage Weil [Mon, 13 Jul 2015 14:51:04 +0000 (10:51 -0400)]
osd: use bitwise collection_list sort when we don't care

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoqa: fix misc collection_list callers
Sage Weil [Mon, 13 Jul 2015 20:37:19 +0000 (16:37 -0400)]
qa: fix misc collection_list callers

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoceph-objecstore-tool: use new api
Sage Weil [Mon, 13 Jul 2015 20:37:08 +0000 (16:37 -0400)]
ceph-objecstore-tool: use new api

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos: add sort type to ObjectStore interface (incomplete)
Sage Weil [Mon, 13 Jul 2015 14:50:39 +0000 (10:50 -0400)]
os: add sort type to ObjectStore interface (incomplete)

Note that this doesn't build, but it will be easier to review this way.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoosd: add OSD_BITWISE_HOBJ_SORT feature
Sage Weil [Mon, 8 Jun 2015 16:53:10 +0000 (09:53 -0700)]
osd: add OSD_BITWISE_HOBJ_SORT feature

We will sort [g]hobject_t's bitwise (instead of nibblewise) if all
OSDs who have participated in peering support the feature.

Note that this means a latecomer PG who does a notify may not have
the feature while the acting set operates with the new sort order.
We will need to be careful about last_backfill in this case.. that patch
it coming.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agohobject_t: restore default comparators ... bitwise!
Sage Weil [Thu, 23 Apr 2015 20:27:43 +0000 (13:27 -0700)]
hobject_t: restore default comparators ... bitwise!

Note that this breaks compatibility for the moment.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agohobject_t: nibblewise and bitwise comparators
Sage Weil [Thu, 23 Apr 2015 20:25:45 +0000 (13:25 -0700)]
hobject_t: nibblewise and bitwise comparators

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/LFNIndex: return vector from list_subdirs
Sage Weil [Mon, 13 Jul 2015 16:11:38 +0000 (12:11 -0400)]
os/LFNIndex: return vector from list_subdirs

We'll need this later when we sort the subdirs bitwise instead of
nibblewise.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/HashIndex: drop unused lower_bound arg
Sage Weil [Mon, 13 Jul 2015 15:57:32 +0000 (11:57 -0400)]
os/HashIndex: drop unused lower_bound arg

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos/memstore: fix omap_rmkey_range
Sage Weil [Wed, 1 Apr 2015 22:09:23 +0000 (15:09 -0700)]
os/memstore: fix omap_rmkey_range

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5331 from liewegas/wip-collection-list
Sage Weil [Fri, 7 Aug 2015 14:15:10 +0000 (10:15 -0400)]
Merge pull request #5331 from liewegas/wip-collection-list

os: clean up collection_list

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoMerge pull request #5271 from wonzhq/cache-rate
Sage Weil [Fri, 7 Aug 2015 13:35:27 +0000 (09:35 -0400)]
Merge pull request #5271 from wonzhq/cache-rate

mon: add cache tier IO rate in the 'osd pool stats' command

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5507 from athanatos/wip-12436
Sage Weil [Fri, 7 Aug 2015 12:55:57 +0000 (08:55 -0400)]
Merge pull request #5507 from athanatos/wip-12436

blkdev.cc::get_device_by_uuid: do not leak cache

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5506 from athanatos/wip-12338
Sage Weil [Fri, 7 Aug 2015 12:55:25 +0000 (08:55 -0400)]
Merge pull request #5506 from athanatos/wip-12338

OSD: break connection->session->waiting message->connection cycle

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoos/ObjectStore: drop get_ideal_list_min() 5331/head
Sage Weil [Sun, 14 Jun 2015 00:56:37 +0000 (17:56 -0700)]
os/ObjectStore: drop get_ideal_list_min()

Unused.  Fix comment on get_ideal_list_max while we are here.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoos: drop snapid_t arg to collection_list
Sage Weil [Wed, 29 Apr 2015 23:44:59 +0000 (16:44 -0700)]
os: drop snapid_t arg to collection_list

All this does is filter out objects with old snapids, but this can be
just as easily done in the one caller that specifies a non-zero value
(PGLS and PGNLS), which in fact already do that filtering.

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agos/collection_list_impl/collection_list/
Sage Weil [Wed, 29 Apr 2015 23:33:42 +0000 (16:33 -0700)]
s/collection_list_impl/collection_list/

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoKill collection_list in CollectionIndex
Xiaoxi Chen [Wed, 29 Apr 2015 08:27:16 +0000 (16:27 +0800)]
Kill collection_list in CollectionIndex

Now we use CollectionIndex.collection_list_partial.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoKill Flat_index.
Xiaoxi Chen [Wed, 29 Apr 2015 08:24:37 +0000 (16:24 +0800)]
Kill Flat_index.

Too old, remove it entirely.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoKill collection_list
Xiaoxi Chen [Sat, 25 Apr 2015 03:56:09 +0000 (11:56 +0800)]
Kill collection_list

use collection_list_impl as well.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoKill collection_list_partial
Xiaoxi Chen [Sat, 25 Apr 2015 01:48:38 +0000 (09:48 +0800)]
Kill collection_list_partial

Use collection_list_impl directly.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoKill collection_list_range
Xiaoxi Chen [Fri, 24 Apr 2015 15:16:44 +0000 (23:16 +0800)]
Kill collection_list_range

We can directly use collection_list_impl.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoos/KeyValuestore:Refactor collection_list_range and collection_list_partial
Xiaoxi Chen [Fri, 24 Apr 2015 14:37:32 +0000 (22:37 +0800)]
os/KeyValuestore:Refactor collection_list_range and collection_list_partial

Add collection_list_impl which abstract the common process
of collection list behavior.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoos/CollectionIndex: use const ref for end
Sage Weil [Fri, 10 Jul 2015 17:29:54 +0000 (13:29 -0400)]
os/CollectionIndex: use const ref for end

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5509 from ceph/wip-12536
Samuel Just [Fri, 7 Aug 2015 12:44:49 +0000 (05:44 -0700)]
Merge pull request #5509 from ceph/wip-12536

common/hobject_t: correctly decode pre-infernalis hobject_t min

Reviewed-by: Samuel Just <sjust@redhat.com>
10 years agoos/Filestore:Refactor collection_list_range and collection_list_partial
Xiaoxi Chen [Fri, 24 Apr 2015 07:32:36 +0000 (15:32 +0800)]
os/Filestore:Refactor collection_list_range and collection_list_partial

Add collection_list_impl which abstract the common process
of coleection list behavior.

Todo: Refactor Index::collection_list_partial as
well.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoos/Memstore:Refactor collection_list_range and collection_list_partial
Xiaoxi Chen [Fri, 24 Apr 2015 08:04:21 +0000 (16:04 +0800)]
os/Memstore:Refactor collection_list_range and collection_list_partial

Add collection_list_impl which abstract the common process
of collection list behavior.

Signed-off-by: Xiaoxi Chen <xiaoxi.chen@intel.com>
10 years agoMerge pull request #5508 from athanatos/wip-12410
Kefu Chai [Fri, 7 Aug 2015 12:17:30 +0000 (20:17 +0800)]
Merge pull request #5508 from athanatos/wip-12410

OSDMonitor::preprocess_get_osdmap: send the last map as well

Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5413 from guangyy/wip-12523
Samuel Just [Fri, 7 Aug 2015 11:50:20 +0000 (04:50 -0700)]
Merge pull request #5413 from guangyy/wip-12523

osd: copy the RecoveryCtx::handle for when creating RecoveryCtx instance from another one

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
10 years agoMerge pull request #5488 from oritwas/wip-cmake-fix-rbd
John Spray [Thu, 6 Aug 2015 16:17:25 +0000 (17:17 +0100)]
Merge pull request #5488 from oritwas/wip-cmake-fix-rbd

cmake: add global lib to rbd

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #5475 from cxwshawn/com-fix
Sage Weil [Thu, 6 Aug 2015 13:29:02 +0000 (09:29 -0400)]
Merge pull request #5475 from cxwshawn/com-fix

rgw_user.h: modify interface comments.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5483 from oddomatik/patch-1
Sage Weil [Thu, 6 Aug 2015 13:25:55 +0000 (09:25 -0400)]
Merge pull request #5483 from oddomatik/patch-1

Fix location of --access=full in SWIFT user creation

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5484 from cxwshawn/de-fix
Sage Weil [Thu, 6 Aug 2015 13:25:17 +0000 (09:25 -0400)]
Merge pull request #5484 from cxwshawn/de-fix

ceph-dencoder: add RGWRegion, RGWZoneParams, RGWOLHInfo support.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #5421 from ceph/wip-selinux-policy-no-user
Sage Weil [Thu, 6 Aug 2015 13:12:24 +0000 (09:12 -0400)]
Merge pull request #5421 from ceph/wip-selinux-policy-no-user

SELinux support for ceph

Reviewed-by: Kefu Chai <kchai@redhat.com>
Tested-by: Yuri Weinstein <yweinstei@redhat.com>
10 years agoMerge pull request #5487 from ceph/wip-12619
John Spray [Thu, 6 Aug 2015 09:10:03 +0000 (10:10 +0100)]
Merge pull request #5487 from ceph/wip-12619

mds: initialize InodeStoreBase::damage_flags

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agocmake: add global lib to rbd 5488/head
Orit Wasserman [Thu, 6 Aug 2015 08:20:04 +0000 (10:20 +0200)]
cmake: add global lib to rbd

Signed-off-by: Orit Wasserman <owasserm@redhat.com>
10 years agomds: initialize InodeStoreBase::damage_flags 5487/head
Yan, Zheng [Thu, 6 Aug 2015 08:12:27 +0000 (16:12 +0800)]
mds: initialize InodeStoreBase::damage_flags

Fixes: #12619
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoceph-dencoder: add RGWRegion, RGWZoneParams, RGWOLHInfo support. 5484/head
shawn [Thu, 6 Aug 2015 02:48:23 +0000 (10:48 +0800)]
ceph-dencoder: add RGWRegion, RGWZoneParams, RGWOLHInfo support.

    since ceph-dencoder does not support the up-list structures, so
    I add these three supports to analyze data more quickly.

Signed-off-by: shawn chen <cxwshawn@gmail.com>
10 years agoFix location of --access=full in SWIFT user creation 5483/head
Brian Andrus [Wed, 5 Aug 2015 23:25:48 +0000 (16:25 -0700)]
Fix location of --access=full in SWIFT user creation

--access=full was incorrectly placed in the output of the command, while it was supposed to have been a flag run with the command.

10 years agoceph.spec.in: Make SELinux opt-out, not opt-in 5421/head
Boris Ranto [Wed, 5 Aug 2015 15:54:13 +0000 (17:54 +0200)]
ceph.spec.in: Make SELinux opt-out, not opt-in

We should enable SELinux support by default on rpm-based systems that
build with SELinux support to get better QE coverage in future runs.

Signed-off-by: Boris Ranto <branto@redhat.com>
10 years agoMerge pull request #5478 from dachary/wip-test-rados-striper
Loic Dachary [Wed, 5 Aug 2015 15:06:02 +0000 (17:06 +0200)]
Merge pull request #5478 from dachary/wip-test-rados-striper

tests: rados striper tests use 7116 instead of 7113

Reviewed-by: Sebastien Ponce <sebastien.ponce@cern.ch>
10 years agoMerge pull request #5459 from cxwshawn/master
Sage Weil [Wed, 5 Aug 2015 14:34:21 +0000 (10:34 -0400)]
Merge pull request #5459 from cxwshawn/master

radosgw-admin: use cout instead of cerr to print help message.

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agoselinux: Add .gitignore file
Boris Ranto [Tue, 28 Jul 2015 18:13:18 +0000 (20:13 +0200)]
selinux: Add .gitignore file

The gitbuilders release script needs this. Otherwise, the ceph-release
build will fail because there were some untracked files.

Signed-off-by: Boris Ranto <branto@redhat.com>
10 years agoceph.spec.in: stop/start service on policy upgrade/removal
Boris Ranto [Tue, 28 Jul 2015 09:28:40 +0000 (11:28 +0200)]
ceph.spec.in: stop/start service on policy upgrade/removal

Signed-off-by: Boris Ranto <branto@redhat.com>
10 years agoselinux: Update the SELinux policy rules
Boris Ranto [Tue, 28 Jul 2015 09:11:42 +0000 (11:11 +0200)]
selinux: Update the SELinux policy rules

Few new denials were found while testing the policy. Updating the policy
rules to refelct that.

Signed-off-by: Boris Ranto <branto@redhat.com>
10 years agoSELinux Makefile can't work in parallel
Boris Ranto [Sat, 25 Jul 2015 12:05:43 +0000 (14:05 +0200)]
SELinux Makefile can't work in parallel

We need to force single-core compilation of SELinux policy files in the
sub-make target as SELinux Makefile does not work properly when run in
parallel mode.

Signed-off-by: Boris Ranto <branto@redhat.com>
10 years agoceph-disk: set selinux context
Milan Broz [Fri, 24 Jul 2015 11:30:11 +0000 (13:30 +0200)]
ceph-disk: set selinux context

Ensure that SELinux context is properly set according to policy.We
need this as SELinux context is not preserved across mount points.

Signed-off-by: Milan Broz <mbroz@redhat.com>
10 years agoselinux: Allow setuid and setgid to ceph-mon and ceph-osd
Boris Ranto [Wed, 15 Jul 2015 16:20:52 +0000 (18:20 +0200)]
selinux: Allow setuid and setgid to ceph-mon and ceph-osd

Signed-off-by: Boris Ranto <branto@redhat.com>
10 years agoUpdate selinux policy (after local test).
Milan Broz [Wed, 17 Jun 2015 11:08:17 +0000 (13:08 +0200)]
Update selinux policy (after local test).

Changes enerated with ceph-test package.

Signed-off-by: Milan Broz <mbroz@redhat.com>
10 years agoFix selinux context after intitial OSD mount.
Milan Broz [Fri, 12 Jun 2015 11:07:05 +0000 (13:07 +0200)]
Fix selinux context after intitial OSD mount.

The SELinux context is not preserved across file-systems, we need to
manually set the context of the root of the file-system in order to
preserve SELinux context inheritence rules.

Signed-off-by: Milan Broz <mbroz@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
10 years agoAdd initial SELinux support
Boris Ranto [Fri, 15 May 2015 13:18:05 +0000 (15:18 +0200)]
Add initial SELinux support

This patch modifies the build system and spec file to provide a support
for SELinux enforcing in an opt-in matter via ceph-selinux package.

Signed-off-by: Boris Ranto <branto@redhat.com>
10 years agoMerge pull request #4860 from ceph/wip-nobjectiterator-crash
John Spray [Wed, 5 Aug 2015 13:06:37 +0000 (14:06 +0100)]
Merge pull request #4860 from ceph/wip-nobjectiterator-crash

librados: fix empty NObjectIterator crash on comparisons

Reviewed-by: Sage Weil <sage@redhat.com>
10 years agolibrados: fix empty NObjectIterator crash on comparisons 4860/head
John Spray [Tue, 28 Apr 2015 17:40:57 +0000 (18:40 +0100)]
librados: fix empty NObjectIterator crash on comparisons

This would segfault if you did a
NObjectIterator i;
i == ...

Fix comparisons by allowing pointer-wise comparisons
for iterators with impl==NULL, and asserting in
other methods that require a non-null ::impl

Signed-off-by: John Spray <john.spray@redhat.com>
10 years agotests: rados striper tests use 7116 instead of 7113 5478/head
Loic Dachary [Wed, 5 Aug 2015 12:46:57 +0000 (14:46 +0200)]
tests: rados striper tests use 7116 instead of 7113

Change src/test/libradosstriper/rados-striper.sh monitor address to 7116
because src/test/mon/osd-crush.sh uses 7113 already.

Signed-off-by: Loic Dachary <ldachary@redaht.com>
10 years agoMerge pull request #5474 from kylinstorage/wip-sparse_read_bugfix
Kefu Chai [Wed, 5 Aug 2015 08:35:43 +0000 (16:35 +0800)]
Merge pull request #5474 from kylinstorage/wip-sparse_read_bugfix

osd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist)

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Haomai Wang <haomaiwang@gmail.com>
10 years agoosd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist) 5474/head
Yunchuan Wen [Wed, 5 Aug 2015 05:04:38 +0000 (13:04 +0800)]
osd/ReplicatedPG: sparse read should return (extent_map, data_bufferlist)

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
10 years agorgw_user.h: modify interface comments. 5475/head
shawn [Wed, 5 Aug 2015 03:40:22 +0000 (11:40 +0800)]
rgw_user.h: modify interface comments.

Signed-off-by: shawn chen <cxwshawn@gmail.com>
10 years agoMerge remote-tracking branch 'origin/next'
Josh Durgin [Wed, 5 Aug 2015 01:13:52 +0000 (18:13 -0700)]
Merge remote-tracking branch 'origin/next'

Conflicts:
src/Makefile-client.am (link rbd to libglobal again)

10 years agoRevert "rbd: remove dependency on non-ABI controlled CephContext"
Jason Dillaman [Fri, 31 Jul 2015 17:06:33 +0000 (13:06 -0400)]
Revert "rbd: remove dependency on non-ABI controlled CephContext"

This reverts commit fa78739933d7b9501116a12a4fbfd58b5ca99cdb.
Original approach broke krbd map/unmap functions and did not fully
address ABI issues.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
10 years agoMerge pull request #5446 from ceph/wip-systemd
Sage Weil [Tue, 4 Aug 2015 18:05:41 +0000 (14:05 -0400)]
Merge pull request #5446 from ceph/wip-systemd

systemd support

Reviewed-by: Owen Synge <osynge@suse.com>
10 years agoMerge pull request #5469 from theanalyst/doc/v0.94.3-release
Loic Dachary [Tue, 4 Aug 2015 17:13:02 +0000 (19:13 +0200)]
Merge pull request #5469 from theanalyst/doc/v0.94.3-release

doc: release notes for v0.94.3

Reviewed-by: Loic Dachary <ldachary@redhat.com>
10 years agodoc: release notes for v0.94.3 5469/head
Abhishek Lekshmanan [Tue, 4 Aug 2015 15:53:27 +0000 (21:23 +0530)]
doc: release notes for v0.94.3

Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
10 years agoclient/Makefile: ship InodeRef
Sage Weil [Tue, 4 Aug 2015 13:57:41 +0000 (09:57 -0400)]
client/Makefile: ship InodeRef

Signed-off-by: Sage Weil <sage@redhat.com>
10 years agoMerge pull request #4753 from ceph/wip-client-inode-refs
John Spray [Tue, 4 Aug 2015 13:13:40 +0000 (14:13 +0100)]
Merge pull request #4753 from ceph/wip-client-inode-refs

client: hold reference for returned inode

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agoMerge pull request #5466 from ceph/wip-12578
John Spray [Tue, 4 Aug 2015 13:12:38 +0000 (14:12 +0100)]
Merge pull request #5466 from ceph/wip-12578

mds: open base inode's snaprealm after decoding snapblob

Reviewed-by: John Spray <john.spray@redhat.com>
10 years agomds: open base inode's snaprealm after decoding snapblob 5466/head
Yan, Zheng [Tue, 4 Aug 2015 11:18:10 +0000 (19:18 +0800)]
mds: open base inode's snaprealm after decoding snapblob

base inode has no parent, so can we mark its snaprealm open
immediately. This change makes sure replica mdsdir's snaplream
is opened.

Fixes: #12578
Signed-off-by: Yan, Zheng <zyan@redhat.com>
10 years agoMerge pull request #5140 from tchaikov/wip-pg-ls-update-pending-rel-notes
Kefu Chai [Tue, 4 Aug 2015 11:08:24 +0000 (19:08 +0800)]
Merge pull request #5140 from tchaikov/wip-pg-ls-update-pending-rel-notes

doc: add changes to "pg ls*" commands to pending release notes

Reviewed-by: Loic Dachary <ldachary@redhat.com>