Commit Graph

47926 Commits

Author SHA1 Message Date
Sage Weil
c3954e69bb qa/workunits/objectstore/test_fuse.sh: simple workunit test
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:14 -05:00
Sage Weil
3e3606558c 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>
2016-01-27 14:06:14 -05:00
Sage Weil
0638b11843 os/ObjectStore: add get_type()
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:14 -05:00
Sage Weil
e1a371db6e ceph-objectstore-tool: drop filestore-specific sanity check
Just let mount() fail

Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:14 -05:00
Sage Weil
c4f5a08627 ceph-objectstore-tool: add --op mkfs
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:14 -05:00
Sage Weil
0ed0ec52b4 ceph-objectstore-tool: simplify error message
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:14 -05:00
Sage Weil
614f1653ee 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>
2016-01-27 14:06:14 -05:00
Sage Weil
b2a1c8614f os/FuseStore: do not call exists() on an out-of-bounds oid
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:14 -05:00
Sage Weil
ca4f077edd os/FuseStore: no-op chmod
This makes mkdir(1) happy.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:14 -05:00
Sage Weil
53a333621a os/FuseStore: allow object and collection creates
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:13 -05:00
Sage Weil
57289de42b os/FuseStore: more ENOENT on getattr for non-existent items
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:13 -05:00
Sage Weil
2aa65322cd os/FuseStore: hide bitwise_hash_end if bits unknown; add bitwise_hash_bits
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:13 -05:00
Sage Weil
27bae894a6 os/FuseStore: present bitwise_hash_end
Note this is the *last* hash value, inclusive.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:13 -05:00
Sage Weil
27dc220abd os/bluestore: implement collection_bits
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:13 -05:00
Sage Weil
17d3c9f43f os/ObjectStore: add collection_bits
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:13 -05:00
Sage Weil
f8de01773d os/FuseStore: respect fuse_debug
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:13 -05:00
Sage Weil
aa8f2c9f8b ceph-objectstore-tool: no need to check for fsck here
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:13 -05:00
Sage Weil
0e371d2b4b ceph-objectstore-tool: use myexit(1) for fsck
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:12 -05:00
Sage Weil
d01967d372 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>
2016-01-27 14:06:12 -05:00
Sage Weil
96643e9cc3 ceph-objectstore-tool: mount an ObjectStore via fuse
Currently only read-only.

Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-27 14:06:12 -05:00
Sage Weil
f5d106ff1e 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>
2016-01-27 14:06:12 -05:00
Sage Weil
efa88a4560 [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>
2016-01-27 14:06:12 -05:00
Sage Weil
f9dbf1066c Merge pull request #7195 from liewegas/wip-rados-bench
rados: rados bench improvements

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-01-27 13:22:01 -05:00
Sage Weil
9c30be93e3 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>
2016-01-27 13:21:26 -05:00
Sage Weil
d6c35c07d8 Merge pull request #6 from ifed01/wip-bluestore-btree-test
UT for interval_set implementations
2016-01-27 13:18:13 -05:00
Sage Weil
4ba1847336 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>
2016-01-27 13:14:23 -05:00
Sage Weil
a1c5385e4a Merge pull request #7201 from ErwanAliasr1/evelu-cleanup-deadstuff
cleanup: remove misc dead code

Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-01-27 13:13:47 -05:00
Sage Weil
391199d7bb 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>
2016-01-27 13:13:00 -05:00
Sage Weil
409070573a 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>
2016-01-27 13:12:02 -05:00
Sage Weil
e19dd6a1ac 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>
2016-01-27 13:10:49 -05:00
Sage Weil
0a65d908bc 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>
2016-01-27 13:09:36 -05:00
Sage Weil
b4b01149be 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>
2016-01-27 13:08:43 -05:00
Sage Weil
3bc05b3a27 Merge pull request #7319 from chenji-kael/wip-cls-clear-pool
test/cls: clean useless pools

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-27 13:07:53 -05:00
Sage Weil
27784ff34f Merge pull request #7320 from yuyuyu101/kill-keyvaluestore
os/keyvaluestore: kill KeyValueStore

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-27 13:07:13 -05:00
Orit Wasserman
29990b382e Merge pull request #7375 from rzarzynski/wip-14526
rgw: fix dangeours usage of strtok in RGWAccessControlPolicy_SWIFT
2016-01-27 17:50:10 +01:00
Igor Fedotov
130e8c6d7d Add UT for interval_set implementations
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-01-27 19:25:23 +03:00
Sage Weil
c0132d1658 Merge pull request #7379 from branch-predictor/bp-async-fixes-0127
msg/async: bunch of fixes

Reviewed-by: Haomai Wang <haomai@xsky.com>
2016-01-27 10:49:22 -05:00
Piotr Dałek
5e2fc70e4c 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>
2016-01-27 15:17:20 +01:00
Jason Dillaman
92f4b517e3 Merge pull request #7329 from fullerdj/wip-14476
librbd: remove canceled tasks from timer thread

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2016-01-27 09:11:55 -05:00
Radoslaw Zarzynski
84175ba6ff rgw: fix dangeours usage of strtok in RGWAccessControlPolicy_SWIFT.
Fixes: #14526
Signed-off-by: Radoslaw Zarzynski <rzarzynski@mirantis.com>
2016-01-27 14:47:19 +01:00
Yehuda Sadeh
ab3e1c6beb 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>
2016-01-26 14:48:51 -08:00
Ali Maredia
0d238b90dc Merge pull request #7366 from tchaikov/wip-cmake-snappy
cmake: check for libsnappy in default path also
2016-01-26 13:26:34 -05:00
Kefu Chai
5efc5dce73 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>
2016-01-26 23:53:31 +08:00
Sage Weil
1acfec1388 Merge pull request #7304 from liewegas/wip-tcmalloc
osd: pass tcmalloc env through to daemon

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
2016-01-26 09:59:03 -05:00
Gregory Farnum
b87375849f 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>
2016-01-26 06:41:45 -08:00
Sage Weil
a95a3d34cc upstart/ceph-osd.conf: pass TCMALLOC_MAX_TOTAL_THREAD_CACHE_BYTES through
Signed-off-by: Sage Weil <sage@redhat.com>
2016-01-26 08:43:15 -05:00
Kongming Wu
845f3f7fe8 mds:judgment added to avoid the risk of visting the NULL pointer
Signed-off-by: chenyehua11692 chen.yehua@h3c.com
2016-01-26 11:01:15 +08:00
Sage Weil
831cc7a7a0 Merge pull request #7251 from tchaikov/wip-rados-manpage
doc: amend the rados.8

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-25 21:28:09 -05:00
Sage Weil
0a72cf102e Merge pull request #7353 from renhwsky/renhw-wip-14473-2
mon: fix locking in preinit error paths

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-25 21:21:21 -05:00
Sage Weil
e39e8f4c6c Merge pull request #7321 from renhwsky/renhw-wip-14473
mon: drop useless rank init assignment

Reviewed-by: Sage Weil <sage@redhat.com>
2016-01-25 21:20:27 -05:00