]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/log
ceph.git
9 years agoOSD: Deleting transaction object right after applying transaction 7271/head
Somnath Roy [Mon, 18 Jan 2016 19:48:24 +0000 (14:48 -0500)]
OSD: Deleting transaction object right after applying transaction

Presently, the transaction object is been deleted by the Finisher
thread asynchronously. In heavy load scenario specially if we
unleash journal throttle more, we are seeing high memory usage by
the OSDs because of this. In this new scheme, with the help of
move semantics transaction objects will be deleted synchronously
from the filestore worker threads. We are seeing very much
controllable memory growth now as well as ~3 to 4% cpu usage
benefit because of some reduction of 'new' , 'delete' calls.

Signed-off-by: Somnath Roy <somnath.roy@sandisk.com>
9 years agoMerge pull request #7381 from ceph/wip-rgw-static-website-yehuda
Yehuda Sadeh [Wed, 27 Jan 2016 20:36:35 +0000 (12:36 -0800)]
Merge pull request #7381 from ceph/wip-rgw-static-website-yehuda

RGW static website feature
 - currently disabled by default
 - partial error page handling
 - a few known failures

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Reviewed-by: Robin H. Johnson <robin.johnson@dreamhost.com>
9 years agoMerge pull request #7223 from liewegas/wip-collection-handles
Sage Weil [Wed, 27 Jan 2016 19:45:11 +0000 (14:45 -0500)]
Merge pull request #7223 from liewegas/wip-collection-handles

osd: collection handles

Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #7134 from liewegas/wip-fusestore
Sage Weil [Wed, 27 Jan 2016 19:39:21 +0000 (14:39 -0500)]
Merge pull request #7134 from liewegas/wip-fusestore

osd: implement fuse interface for ObjectStore

Reviewed-by: Samuel Just <sjust@redhat.com>
9 years agoosd: use collection handle where possible 7223/head
Sage Weil [Mon, 18 Jan 2016 16:10:05 +0000 (11:10 -0500)]
osd: use collection handle where possible

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: associate a CollectionHandle& with PGBackend
Sage Weil [Mon, 18 Jan 2016 17:43:11 +0000 (12:43 -0500)]
osd: associate a CollectionHandle& with PGBackend

Make this a ref to the PG's handle because the backend is
constructed before the handle is opened.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: associate a CollectionHandle with each PG
Sage Weil [Mon, 18 Jan 2016 16:07:28 +0000 (11:07 -0500)]
osd: associate a CollectionHandle with each PG

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/memstore: implement handle-based read methods
Sage Weil [Mon, 18 Jan 2016 16:05:51 +0000 (11:05 -0500)]
os/memstore: implement handle-based read methods

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/memstore: implement open_collection
Sage Weil [Mon, 18 Jan 2016 16:05:32 +0000 (11:05 -0500)]
os/memstore: implement open_collection

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: implement CollectionHandle based read methods
Sage Weil [Mon, 18 Jan 2016 16:05:00 +0000 (11:05 -0500)]
os/bluestore: implement CollectionHandle based read methods

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: implement open_collection
Sage Weil [Mon, 18 Jan 2016 16:04:41 +0000 (11:04 -0500)]
os/bluestore: implement open_collection

Fix up create and remove so that they poison a Collection that
gets removed.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: add CollectionHandle wrappers for all read ops
Sage Weil [Mon, 18 Jan 2016 14:36:36 +0000 (09:36 -0500)]
os/ObjectStore: add CollectionHandle wrappers for all read ops

The backend can optionally implement the handle-based variant. If
it does not, the wrappers will call the legacy coll_t version.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: add CollectionHandle
Sage Weil [Mon, 18 Jan 2016 14:36:02 +0000 (09:36 -0500)]
os/ObjectStore: add CollectionHandle

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge branch 'wip-rgw-static-website-yehuda' 7381/head
Yehuda Sadeh [Wed, 27 Jan 2016 19:07:43 +0000 (11:07 -0800)]
Merge branch 'wip-rgw-static-website-yehuda'

Conflicts:
src/rgw/rgw_common.h
src/rgw/rgw_op.h
src/rgw/rgw_rest_s3.cc
src/rgw/rgw_rest_s3.h

9 years agoos/FuseStore: improve readdir for omap and attr 7134/head
Sage Weil [Fri, 15 Jan 2016 00:24:59 +0000 (19:24 -0500)]
os/FuseStore: improve readdir for omap and attr

Use new-style fuse readdir interface for omap and attr.  We aren't
particularly efficient, but we won't completely break if there are a
lot of attrs or omap entries.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: wait for commit and flush in all updates
Sage Weil [Fri, 15 Jan 2016 00:17:53 +0000 (19:17 -0500)]
os/FuseStore: wait for commit and flush in all updates

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: use offset for readdir
Sage Weil [Thu, 14 Jan 2016 16:32:15 +0000 (11:32 -0500)]
os/FuseStore: use offset for readdir

This allows us to list large directories.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoqa/workunits/objectstore/test_fuse.sh: simple workunit test
Sage Weil [Thu, 14 Jan 2016 13:45:38 +0000 (08:45 -0500)]
qa/workunits/objectstore/test_fuse.sh: simple workunit test

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: add 'type' file in root dir
Sage Weil [Thu, 7 Jan 2016 18:12:58 +0000 (13:12 -0500)]
os/FuseStore: add 'type' file in root dir

This also acts as a sentinel to indicate whether we have mounted.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: add get_type()
Sage Weil [Thu, 7 Jan 2016 18:12:14 +0000 (13:12 -0500)]
os/ObjectStore: add get_type()

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: drop filestore-specific sanity check
Sage Weil [Thu, 7 Jan 2016 18:04:52 +0000 (13:04 -0500)]
ceph-objectstore-tool: drop filestore-specific sanity check

Just let mount() fail

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: add --op mkfs
Sage Weil [Thu, 7 Jan 2016 18:04:27 +0000 (13:04 -0500)]
ceph-objectstore-tool: add --op mkfs

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: simplify error message
Sage Weil [Thu, 7 Jan 2016 18:04:09 +0000 (13:04 -0500)]
ceph-objectstore-tool: simplify error message

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: 'whoami' is not required for an ObjectStore
Sage Weil [Thu, 7 Jan 2016 18:03:59 +0000 (13:03 -0500)]
ceph-objectstore-tool: 'whoami' is not required for an ObjectStore

OSD creates it, but it won't be there if we did --op mkfs

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: do not call exists() on an out-of-bounds oid
Sage Weil [Thu, 7 Jan 2016 17:51:03 +0000 (12:51 -0500)]
os/FuseStore: do not call exists() on an out-of-bounds oid

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: no-op chmod
Sage Weil [Thu, 7 Jan 2016 17:48:55 +0000 (12:48 -0500)]
os/FuseStore: no-op chmod

This makes mkdir(1) happy.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: allow object and collection creates
Sage Weil [Thu, 7 Jan 2016 17:39:54 +0000 (12:39 -0500)]
os/FuseStore: allow object and collection creates

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: more ENOENT on getattr for non-existent items
Sage Weil [Thu, 7 Jan 2016 15:47:28 +0000 (10:47 -0500)]
os/FuseStore: more ENOENT on getattr for non-existent items

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: hide bitwise_hash_end if bits unknown; add bitwise_hash_bits
Sage Weil [Thu, 7 Jan 2016 13:56:42 +0000 (08:56 -0500)]
os/FuseStore: hide bitwise_hash_end if bits unknown; add bitwise_hash_bits

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: present bitwise_hash_end
Sage Weil [Thu, 7 Jan 2016 02:34:42 +0000 (21:34 -0500)]
os/FuseStore: present bitwise_hash_end

Note this is the *last* hash value, inclusive.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/bluestore: implement collection_bits
Sage Weil [Thu, 7 Jan 2016 02:34:18 +0000 (21:34 -0500)]
os/bluestore: implement collection_bits

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/ObjectStore: add collection_bits
Sage Weil [Thu, 7 Jan 2016 02:34:09 +0000 (21:34 -0500)]
os/ObjectStore: add collection_bits

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoos/FuseStore: respect fuse_debug
Sage Weil [Thu, 7 Jan 2016 02:16:13 +0000 (21:16 -0500)]
os/FuseStore: respect fuse_debug

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: no need to check for fsck here
Sage Weil [Thu, 7 Jan 2016 01:57:01 +0000 (20:57 -0500)]
ceph-objectstore-tool: no need to check for fsck here

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: use myexit(1) for fsck
Sage Weil [Thu, 7 Jan 2016 01:55:55 +0000 (20:55 -0500)]
ceph-objectstore-tool: use myexit(1) for fsck

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoosd: osd_objectstore_fuse
Sage Weil [Wed, 6 Jan 2016 22:56:12 +0000 (17:56 -0500)]
osd: osd_objectstore_fuse

Expose underlying ObjectStore via fuse at $osd_data/fuse/.  Can be enabled/
disabled at runtime.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoceph-objectstore-tool: mount an ObjectStore via fuse
Sage Weil [Wed, 6 Jan 2016 22:53:43 +0000 (17:53 -0500)]
ceph-objectstore-tool: mount an ObjectStore via fuse

Currently only read-only.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agovstart.sh: put the OSD journal in the normal location
Sage Weil [Wed, 6 Jan 2016 21:19:14 +0000 (16:19 -0500)]
vstart.sh: put the OSD journal in the normal location

Also, drop the ability to run without a journal.

Signed-off-by: Sage Weil <sage@redhat.com>
9 years ago[g]hobject_t: normalize operator<< result, and implement parse
Sage Weil [Tue, 5 Jan 2016 20:00:12 +0000 (15:00 -0500)]
[g]hobject_t: normalize operator<< result, and implement parse

- print hash in *bitwise reverse* order
- include all fields, every time
- use : delimitor for hobject_t
- use @ delimitor for ghobject_t
- escape unprintable characters <32, >=127, :, %.
  - also /, for fuse layer's benefit

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7195 from liewegas/wip-rados-bench
Sage Weil [Wed, 27 Jan 2016 18:22:01 +0000 (13:22 -0500)]
Merge pull request #7195 from liewegas/wip-rados-bench

rados: rados bench improvements

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7269 from liewegas/wip-bluestore-btree
Sage Weil [Wed, 27 Jan 2016 18:21:26 +0000 (13:21 -0500)]
Merge pull request #7269 from liewegas/wip-bluestore-btree

bluestore: use btree_map for allocator

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
9 years agoMerge pull request #6 from ifed01/wip-bluestore-btree-test 7269/head
Sage Weil [Wed, 27 Jan 2016 18:18:13 +0000 (13:18 -0500)]
Merge pull request #6 from ifed01/wip-bluestore-btree-test

UT for interval_set implementations

9 years agoMerge pull request #6869 from chuanhong-wang/chuanhong-wang-wip-14026
Sage Weil [Wed, 27 Jan 2016 18:14:23 +0000 (13:14 -0500)]
Merge pull request #6869 from chuanhong-wang/chuanhong-wang-wip-14026

osd: fix OSD utilization is abnormal after data disk lost

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7201 from ErwanAliasr1/evelu-cleanup-deadstuff
Sage Weil [Wed, 27 Jan 2016 18:13:47 +0000 (13:13 -0500)]
Merge pull request #7201 from ErwanAliasr1/evelu-cleanup-deadstuff

cleanup: remove misc dead code

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7217 from vumrao/wip-14356-vumrao
Sage Weil [Wed, 27 Jan 2016 18:13:00 +0000 (13:13 -0500)]
Merge pull request #7217 from vumrao/wip-14356-vumrao

osd: FileStore: cleanup: remove obsolete option "filestore_xattr_use_omap"

Reviewed-by: Loic Dachary <ldachary@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7245 from Sandy4999/wip-mon-election
Sage Weil [Wed, 27 Jan 2016 18:12:02 +0000 (13:12 -0500)]
Merge pull request #7245 from Sandy4999/wip-mon-election

mon: add an independent option for max election time

Reviewed-by: Joao Eduardo Luis <joao@suse.de>
9 years agoMerge pull request #7253 from wido/mon-err-stuck-pg
Sage Weil [Wed, 27 Jan 2016 18:10:49 +0000 (13:10 -0500)]
Merge pull request #7253 from wido/mon-err-stuck-pg

mon: go into ERR state if multiple PGs are stuck inactive

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
9 years agoMerge pull request #7281 from xuechendi/omap_sync_assert
Sage Weil [Wed, 27 Jan 2016 18:09:36 +0000 (13:09 -0500)]
Merge pull request #7281 from xuechendi/omap_sync_assert

osd: FileStore: add error check for object_map->sync()

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7309 from asheplyakov/bug-14428
Sage Weil [Wed, 27 Jan 2016 18:08:43 +0000 (13:08 -0500)]
Merge pull request #7309 from asheplyakov/bug-14428

osd: PG::activate(): handle unexpected cached_removed_snaps more gracefully

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7319 from chenji-kael/wip-cls-clear-pool
Sage Weil [Wed, 27 Jan 2016 18:07:53 +0000 (13:07 -0500)]
Merge pull request #7319 from chenji-kael/wip-cls-clear-pool

test/cls: clean useless pools

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7320 from yuyuyu101/kill-keyvaluestore
Sage Weil [Wed, 27 Jan 2016 18:07:13 +0000 (13:07 -0500)]
Merge pull request #7320 from yuyuyu101/kill-keyvaluestore

os/keyvaluestore: kill KeyValueStore

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7375 from rzarzynski/wip-14526
Orit Wasserman [Wed, 27 Jan 2016 16:50:10 +0000 (17:50 +0100)]
Merge pull request #7375 from rzarzynski/wip-14526

rgw: fix dangeours usage of strtok in RGWAccessControlPolicy_SWIFT

9 years agoAdd UT for interval_set implementations
Igor Fedotov [Wed, 27 Jan 2016 16:25:23 +0000 (19:25 +0300)]
Add UT for interval_set implementations

Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
9 years agoMerge pull request #7379 from branch-predictor/bp-async-fixes-0127
Sage Weil [Wed, 27 Jan 2016 15:49:22 +0000 (10:49 -0500)]
Merge pull request #7379 from branch-predictor/bp-async-fixes-0127

msg/async: bunch of fixes

Reviewed-by: Haomai Wang <haomai@xsky.com>
9 years agomsg/async: bunch of fixes 7379/head
Piotr Dałek [Mon, 25 Jan 2016 08:38:06 +0000 (09:38 +0100)]
msg/async: bunch of fixes

1. Use MSG_MORE in sendmsg to reduce number of actual sends and pass hint
   to do_sendmsg in callers.
2. Move restore_sigpipe() outside of loop in do_sendmsg().
3. restore_sigpipe when hit the error condition in do_sendmsg().
3. When sent_bytes >= outcoming_bl.length, don't swap outgoing_bl with
   bl and wait for bl to get out of scope, just clear out outgoing_bl.
4. Don't swap empty outcoming_bl with bl, always claim_append(bl).

Signed-off-by: Piotr Dałek <piotr.dalek@ts.fujitsu.com>
9 years agoMerge pull request #7329 from fullerdj/wip-14476
Jason Dillaman [Wed, 27 Jan 2016 14:11:55 +0000 (09:11 -0500)]
Merge pull request #7329 from fullerdj/wip-14476

librbd: remove canceled tasks from timer thread

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
9 years agorgw: fix dangeours usage of strtok in RGWAccessControlPolicy_SWIFT. 7375/head
Radoslaw Zarzynski [Wed, 27 Jan 2016 13:47:19 +0000 (14:47 +0100)]
rgw: fix dangeours usage of strtok in RGWAccessControlPolicy_SWIFT.

Fixes: #14526
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
9 years agoMerge pull request #7120 from zaitcev/wip-5073-update1 7318/head
Yehuda Sadeh [Tue, 26 Jan 2016 22:48:51 +0000 (14:48 -0800)]
Merge pull request #7120 from zaitcev/wip-5073-update1

rgw: fix up the use of tenant before it's available

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7366 from tchaikov/wip-cmake-snappy
Ali Maredia [Tue, 26 Jan 2016 18:26:34 +0000 (13:26 -0500)]
Merge pull request #7366 from tchaikov/wip-cmake-snappy

cmake: check for libsnappy in default path also

9 years agocmake: check for libsnappy in default path also 7366/head
Kefu Chai [Tue, 26 Jan 2016 13:07:04 +0000 (21:07 +0800)]
cmake: check for libsnappy in default path also

* some distros install libsnappy into /usr/lib/x86_64-linux-gnu
  which is completely resonable. but this directory is not listed
  in the Findsnappy.cmake.
* also add SNAPPY_ROOT_DIR, in case user install snappy in some
  other directory.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7304 from liewegas/wip-tcmalloc
Sage Weil [Tue, 26 Jan 2016 14:59:03 +0000 (09:59 -0500)]
Merge pull request #7304 from liewegas/wip-tcmalloc

osd: pass tcmalloc env through to daemon

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
9 years agoMerge pull request #7358 from chenyehua11692/master
Gregory Farnum [Tue, 26 Jan 2016 14:41:45 +0000 (06:41 -0800)]
Merge pull request #7358 from chenyehua11692/master

mds:judgment added to avoid the risk of visiting the NULL pointer

Reviewed-by: Yan, Zheng <zyan@redhat.com>
9 years agoupstart/ceph-osd.conf: pass TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES through 7304/head
Sage Weil [Tue, 26 Jan 2016 13:43:15 +0000 (08:43 -0500)]
upstart/ceph-osd.conf: pass TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES through

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agomds:judgment added to avoid the risk of visting the NULL pointer 7358/head
Kongming Wu [Tue, 26 Jan 2016 02:45:52 +0000 (10:45 +0800)]
mds:judgment added to avoid the risk of visting the NULL pointer

Signed-off-by: chenyehua11692 chen.yehua@h3c.com
9 years agoMerge pull request #7251 from tchaikov/wip-rados-manpage
Sage Weil [Tue, 26 Jan 2016 02:28:09 +0000 (21:28 -0500)]
Merge pull request #7251 from tchaikov/wip-rados-manpage

doc: amend the rados.8

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7353 from renhwsky/renhw-wip-14473-2
Sage Weil [Tue, 26 Jan 2016 02:21:21 +0000 (21:21 -0500)]
Merge pull request #7353 from renhwsky/renhw-wip-14473-2

mon: fix locking in preinit error paths

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7321 from renhwsky/renhw-wip-14473
Sage Weil [Tue, 26 Jan 2016 02:20:27 +0000 (21:20 -0500)]
Merge pull request #7321 from renhwsky/renhw-wip-14473

mon: drop useless rank init assignment

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agomon: drop useless rank init assignment 7321/head
huanwen ren [Tue, 26 Jan 2016 02:12:02 +0000 (10:12 +0800)]
mon: drop useless rank init assignment

drop useless rank init assignment

Fixes:14508
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agoMerge pull request #7294 from branch-predictor/bp-buffer-spinlock
Sage Weil [Tue, 26 Jan 2016 02:05:32 +0000 (21:05 -0500)]
Merge pull request #7294 from branch-predictor/bp-buffer-spinlock

common/buffer: replace RWLock with spinlocks

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: song baisen <song.baisen@zte.com.cn>
9 years agoMerge pull request #7303 from cbodley/wip-tx-move
Sage Weil [Tue, 26 Jan 2016 02:04:21 +0000 (21:04 -0500)]
Merge pull request #7303 from cbodley/wip-tx-move

os/ObjectStore: add custom move operations for ObjectStore::Transaction

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7283 from xiexingguo/xxg-wip-14407
Sage Weil [Tue, 26 Jan 2016 01:59:35 +0000 (20:59 -0500)]
Merge pull request #7283 from xiexingguo/xxg-wip-14407

os/bluestore/kstore: fix nid overwritten logic

http://pulpito.ceph.com/sage-2016-01-25_07:39:08-rados-wip-sage-testing2---basic-smithi/

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7267 from liewegas/wip-fiemap
Sage Weil [Tue, 26 Jan 2016 01:58:37 +0000 (20:58 -0500)]
Merge pull request #7267 from liewegas/wip-fiemap

osd: drop fiemap len=0 magic

http://pulpito.ceph.com/sage-2016-01-25_07:39:08-rados-wip-sage-testing2---basic-smithi/

Reviewed-by: Sage Weil <sage@redhat.com>
9 years agomon: fix locking in preinit error paths 7353/head
renhwztetecs [Tue, 26 Jan 2016 01:51:16 +0000 (09:51 +0800)]
mon: fix locking in preinit error paths

fix locking in preinit error paths

Fixes: #14473
Signed-off-by: huanwen ren <ren.huanwen@zte.com.cn>
9 years agorados: bench: add --max-objects 7195/head
Sage Weil [Wed, 13 Jan 2016 18:05:49 +0000 (13:05 -0500)]
rados: bench: add --max-objects

Signed-off-by: Sage Weil <sage@redhat.com>
9 years agoMerge pull request #7314 from tchaikov/wip-fix-cmake
Casey Bodley [Mon, 25 Jan 2016 14:55:26 +0000 (09:55 -0500)]
Merge pull request #7314 from tchaikov/wip-fix-cmake

cmake: let ceph-client-debug link with tcmalloc

9 years agoMerge pull request #7331 from XinzeChi/wip-RepModify-bytes-written
Kefu Chai [Mon, 25 Jan 2016 13:33:58 +0000 (21:33 +0800)]
Merge pull request #7331 from XinzeChi/wip-RepModify-bytes-written

osd: delete useless bytes_written defined in RepModify

Reviewed-by: Kefu Chai <kchai@redhat.com>
9 years agoPG::activate(): handle unexpected cached_removed_snaps more gracefully 7309/head
Alexey Sheplyakov [Thu, 21 Jan 2016 06:42:09 +0000 (09:42 +0300)]
PG::activate(): handle unexpected cached_removed_snaps more gracefully

PGPool::update(): ditto

Fixes: #14428
Backport: infernalis, hammer, firefly

Signed-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>
9 years agoMerge pull request #7342 from tchaikov/wip-fix-ceph-dencoder
Loic Dachary [Mon, 25 Jan 2016 08:59:14 +0000 (15:59 +0700)]
Merge pull request #7342 from tchaikov/wip-fix-ceph-dencoder

os/bluestore: fix bluestore_wal_transaction_t encoding test

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoos/bluestore: fix bluestore_wal_transaction_t encoding test 7342/head
Kefu Chai [Mon, 25 Jan 2016 07:08:02 +0000 (15:08 +0800)]
os/bluestore: fix bluestore_wal_transaction_t encoding test

bluestore_wal_op_t::op is encoded/dumped but it is not
initialized in its ctor. so set it to 0 in its ctor. 0 is not an
valid op though, but it helps with debugging and testing.

Signed-off-by: Kefu Chai <kchai@redhat.com>
9 years agoMerge pull request #7315 from tchaikov/wip-kill-warnings
Loic Dachary [Mon, 25 Jan 2016 06:20:08 +0000 (13:20 +0700)]
Merge pull request #7315 from tchaikov/wip-kill-warnings

Wip kill warnings

Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoMerge pull request #7284 from ceph/wip-make-remove-libedit
Loic Dachary [Mon, 25 Jan 2016 06:15:48 +0000 (13:15 +0700)]
Merge pull request #7284 from ceph/wip-make-remove-libedit

makefile: remove libedit from libclient.la

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Loic Dachary <ldachary@redhat.com>
9 years agoosd: delete useless bytes_written defined in RepModify 7331/head
Xinze Chi [Sat, 23 Jan 2016 02:20:06 +0000 (10:20 +0800)]
osd: delete useless bytes_written defined in RepModify

this would avoid calling encode function.

Signed-off-by: Xinze Chi <xinze@xsky.com>
9 years agoMerge pull request #7301 from oritwas/wip-14375
Yehuda Sadeh [Fri, 22 Jan 2016 21:33:26 +0000 (13:33 -0800)]
Merge pull request #7301 from oritwas/wip-14375

rgw: fix subuser rm command failure

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorbd: remove canceled tasks from timer thread 7329/head
Douglas Fuller [Fri, 22 Jan 2016 19:18:40 +0000 (11:18 -0800)]
rbd: remove canceled tasks from timer thread

When canceling scheduled tasks using the timer thread, TaskFinisher::cancel
does not call SafeTimer::cancel_event, so events fire anyway. Add this call.

Fixes: #14476
Signed-off-by: Douglas Fuller <dfuller@redhat.com>
9 years agoMerge pull request #7327 from igrcic/master
John Wilkins [Fri, 22 Jan 2016 19:09:38 +0000 (11:09 -0800)]
Merge pull request #7327 from igrcic/master

doc: Fixes a CRUSH map step take argument

Reviewed-by: John Wilkins <jowilkin@redhat.com>
9 years agodoc: Fixes a CRUSH map step take argument 7327/head
Ivan Grcic [Fri, 22 Jan 2016 17:58:03 +0000 (18:58 +0100)]
doc: Fixes a CRUSH map step take argument

Signed-off-by: Ivan Grcic <igrcic@gmail.com>
9 years agoos: add custom move ctor/assignment for Transaction 7303/head
Casey Bodley [Thu, 21 Jan 2016 15:02:39 +0000 (10:02 -0500)]
os: add custom move ctor/assignment for Transaction

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoos: add custom move ctor/assignment for TransactionData
Casey Bodley [Wed, 20 Jan 2016 22:18:08 +0000 (17:18 -0500)]
os: add custom move ctor/assignment for TransactionData

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoos: Transaction sets default values to avoid duplication in ctors
Casey Bodley [Thu, 21 Jan 2016 14:45:05 +0000 (09:45 -0500)]
os: Transaction sets default values to avoid duplication in ctors

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agoos: move Transaction ctors closer to member variables
Casey Bodley [Thu, 21 Jan 2016 14:42:06 +0000 (09:42 -0500)]
os: move Transaction ctors closer to member variables

this makes it easier to update constructors when adding/removing fields

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agotest: add unit test for Transaction move/copy
Casey Bodley [Wed, 20 Jan 2016 22:17:39 +0000 (17:17 -0500)]
test: add unit test for Transaction move/copy

Signed-off-by: Casey Bodley <cbodley@redhat.com>
9 years agocleanup: remove obsolete option "filestore_xattr_use_omap" 7217/head
Vikhyat Umrao [Wed, 13 Jan 2016 12:56:23 +0000 (18:26 +0530)]
cleanup: remove obsolete option "filestore_xattr_use_omap"

This patch does cleanup for option "filestore_xattr_use_omap",
as this option was removed in #7408.

Fixes: #14356
Signed-off-by: Vikhyat Umrao <vumrao@redhat.com>
9 years agoKeyValueStore: Kill this 7320/head
Haomai Wang [Fri, 22 Jan 2016 02:28:42 +0000 (10:28 +0800)]
KeyValueStore: Kill this

Signed-off-by: Haomai Wang <haomai@xsky.com>
9 years agotest/cls :clean useless pools 7319/head
Ji Chen [Thu, 21 Jan 2016 09:52:47 +0000 (17:52 +0800)]
test/cls :clean useless pools

After do ./ceph_test_cls_log ,pools remains
need be destroyed.

Signed-off-by: Ji Chen <insomnia@139.com>
9 years agorgw: fix up the use of tenant before it's available 7120/head
Pete Zaitcev [Wed, 6 Jan 2016 07:02:11 +0000 (00:02 -0700)]
rgw: fix up the use of tenant before it's available

A big problem that cropped up with the multi-tenancy as it
went in was that it used tenant to initialize bucket names
before tenant was actually available by parsing a token.
Thus, although multi-tenancy worked, accessing anything across
tenants was actually impossible. This patch fixes that oversight.
Unfortunately, a new method postauth_init() was needed for it.

We also fix small bugs:

 - validate_tenant_name() used a proper-looking C++ but was
   incorrect. We simply use C for now, which may be not as
   pretty but is correct.

 - We now make a distinction between empty tenant syntax that
   means "the logged-in tenant" ("bucket") and the syntax
   that means "the legacy compatibility tenant with no name
   (":bucket").

 - We make rgw_make_bucket_entry_name() more robust against
   empty inputs. It's not used for work, but produces odd-looking
   debugging logs.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
9 years agorgw: add a configurable to enable/disable static website
Yehuda Sadeh [Fri, 22 Jan 2016 00:35:29 +0000 (16:35 -0800)]
rgw: add a configurable to enable/disable static website

rgw_enable_static_website

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: fix null dereference
Yehuda Sadeh [Fri, 22 Jan 2016 00:09:23 +0000 (16:09 -0800)]
rgw: fix null dereference

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agorgw: don't abort on op_ret < 0
Yehuda Sadeh [Fri, 22 Jan 2016 00:08:51 +0000 (16:08 -0800)]
rgw: don't abort on op_ret < 0

We'll later have op->execute() return a status

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoMerge pull request #7317 from dmick/master
Yehuda Sadeh [Thu, 21 Jan 2016 23:38:05 +0000 (15:38 -0800)]
Merge pull request #7317 from dmick/master

configure.ac: make "--with-librocksdb-static" default to 'check'

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
9 years agoconfigure.ac: make "--with-librocksdb-static" default to 'check' 7317/head
Dan Mick [Thu, 21 Jan 2016 18:56:50 +0000 (10:56 -0800)]
configure.ac: make "--with-librocksdb-static" default to 'check'

Fixes: #14463
Signed-off-by: Dan Mick <dan.mick@redhat.com>