Commit Graph

69712 Commits

Author SHA1 Message Date
Boris Ranto
6d5d30f6ed ceph-disk: Add fix subcommand
This subcommand will fix the SELinux labels and/or file permissions on
ceph data (/var/lib/ceph).

The command is also optimized to run the commands in parallel (per
sub-dir in /var/lib/ceph) and do restorecon and chown at the same time
to take advantage of the caching mechanisms.

Signed-off-by: Boris Ranto <branto@redhat.com>
2017-03-20 09:57:14 +01:00
Kefu Chai
ad4ffed838 Merge pull request #13936 from ZVampirEM77/cleanup-rgw-doc
doc: fix typos in radosgw-admin usage

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-20 15:49:08 +08:00
Kefu Chai
fa54a27132 Merge pull request #13559 from voidbag/wip-fix-_open_super_meta
os/bluestore: fix bug in _open_super_meta()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-20 15:32:28 +08:00
Kefu Chai
a824249f87 Merge pull request #13718 from aclamk/wip-bs-indexed-bitshift
os/bluestore: cleanup, got rid of table reference of 1<<x

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-20 15:31:10 +08:00
Kefu Chai
684ae029e6 Merge pull request #13769 from wangzhengyong/wip-noid
os/bluestore: "noid" is not always necessary in clone op

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-20 15:30:29 +08:00
Kefu Chai
cbd3f6c431 Merge pull request #13804 from xiaoxichen/fix_adminsocket
pybind/ceph_daemon: use small chunk for recv

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-20 15:28:58 +08:00
Kefu Chai
a838f20d47 Merge pull request #13814 from liupan1111/wip-fix-remove-when-full
rados: allow "rados purge" to delete objects when osd is full

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-03-20 15:28:01 +08:00
Kefu Chai
6554403bea Merge pull request #13822 from Liuchang0812/wip-event-center-bug
msg/async: fix crash that writing char to nonblock-fd gets EAGAIN in EventCenter::wakeup

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-03-20 15:26:54 +08:00
Kefu Chai
cb6ab91f41 Merge pull request #13853 from tchaikov/wip-19134
mon/MonClient: don't return zero global_id

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-03-20 15:25:34 +08:00
Yan, Zheng
6b1473c564 Merge pull request #13899 from jcsp/wip-19245
mds: fix handling very fast delete ops
2017-03-20 14:49:48 +08:00
Kefu Chai
35ae186059 Merge pull request #14007 from badone/wip-api-doc-code-fixes
docs: Fix problems with example code

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-03-20 12:12:28 +08:00
Kefu Chai
a46e6c93da Merge pull request #14028 from tchaikov/wip-kill-gcc-warning
os/bluestore: silence gcc warning

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-03-20 12:05:36 +08:00
Kefu Chai
3e48017298 Merge pull request #13969 from tchaikov/wip-ceph-disk-manpage-formatting
man/8/ceph-disk: fix formatting

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-03-20 12:04:05 +08:00
Matt Benjamin
2beb4ee2dd Merge pull request #13988 from guihecheng/rgw_file-fix-rename
rgw_file: fix double unref on rgw_fh for rename
2017-03-19 20:01:45 -04:00
Brad Hubbard
8262fd5d17 Merge pull request #14033 from wjin/clean
mon/PGMonitor: rm nonused function

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-03-19 10:03:42 +10:00
Wei Jin
b2b4f38198 mon/PGMonitor: rm nonused function
Signed-off-by: Wei Jin <wjin.cn@gmail.com>
2017-03-18 21:51:49 +08:00
Kefu Chai
2eb61b6de7 os/bluestore: silence gcc warning
src/os/bluestore/BitAllocator.h:410:8: warning: ‘virtual bool
BitMapAreaIN::child_check_n_lock(BitMapArea*, int64_t, bool)’ was
hidden    [-Woverloaded-virtual]
 bool child_check_n_lock(BitMapArea *child, int64_t required, bool
lock) {
      ^~~~~~~~~~~~~~~~~~
 /var/ceph/ceph/src/os/bluestore/BitAllocator.h:489:8: warning:   by
 ‘BitMapAreaLeaf::child_check_n_lock’ [-Woverloaded-virtual]
  bool child_check_n_lock(BitMapZone* child, int64_t required, bool
  lock);
       ^~~~~~~~~~~~~~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-03-18 16:41:50 +08:00
Loic Dachary
8fbc61a725 Merge pull request #13917 from nikitych/add-oracle-distros
ceph-detect-init: Adds Oracle Linux Server and Oracle VM Server detect

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-03-18 08:48:58 +01:00
Xie Xingguo
5daa9b2e80 Merge pull request #14006 from ShiqiCooperation/master
test/unittest_bluefs: remove unused variable

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-03-18 15:27:36 +08:00
Mykola Golub
949915c6fa Merge pull request #14005 from liupan1111/wip-fix-resize-issue
rbd-nbd: update size only when NBD_SET_SIZE successful

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-03-18 09:09:53 +02:00
Yuri Weinstein
9e71f29e7f Merge pull request #13922 from gregsfortytwo/wip-pg-unsigned-warning
osd: fix a signed/unsigned warning in PG

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-17 14:39:04 -07:00
Yuri Weinstein
c187200723 Merge pull request #13946 from LiumxNL/wip-170313
osd: don't share osdmap with objecter when preboot

Reviewed-by: Sage Weil <sage@redhat.com>
2017-03-17 14:35:45 -07:00
Sage Weil
6c6b1beb38 Merge pull request #13911 from liewegas/wip-bluestore-fix-flush
os/bluestore: fix bugs in bluefs and bdev flush

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-03-17 13:36:42 -05:00
Mykola Golub
3cea3ace11 Merge pull request #12364 from dillaman/wip-rbd-mirror-notifications
rbd-mirror: replace remote pool polling with add/remove notifications

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-03-17 19:01:00 +02:00
Jason Dillaman
76d46b5406 Merge pull request #12970 from VictorDenisov/snapshot_namespace_index
librbd: add SnapshotNamespace to ImageCtx

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-03-17 12:57:56 -04:00
John Spray
e5ceec98e7 Merge pull request #14019 from singler/wip-cleanup-create_new_fs
mon/MDSMonitor: remove create_new_fs from header

Reviewed-by: John Spray <john.spray@redhat.com>
2017-03-17 16:04:07 +00:00
Casey Bodley
5e29a9f64d Merge pull request #13684 from shashalu/rgw-admin-init-bucket-for-sync
rgw: fix init_bucket_for_sync retcode

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-03-17 09:40:17 -04:00
Henrik Korkuc
9ff0c7db3c mon/MDSMonitor: remove create_new_fs from header
create_new_fs was refactored and moved earlier. This removes a left
over header entry.

Signed-off-by: Henrik Korkuc <henrik@kirneh.eu>
2017-03-17 15:31:48 +02:00
Haomai Wang
d96bf146cd Merge pull request #14012 from optimistyzy/0317_2
bluestore,NVMEDevice: minor error for get slave core

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-03-17 18:18:05 +08:00
Ziye Yang
662ff45e17 bluestore,NVMEDevice: minor error for get slave core
The second parameter should set to 1 to skip master core.

Signed-off-by: Ziye Yang <optimistyzy@gmail.com>
2017-03-17 17:23:51 +08:00
Loic Dachary
0214e06305 Merge pull request #13646 from mslovy/wip-fix-test-pidfile
test: fix test_pidfile

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-03-17 09:26:10 +01:00
Brad Hubbard
ccdb61b349 docs: Fix problems with example code
Current code generates warnings and, in some cases, doesn't compile.

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-03-17 16:12:41 +10:00
shiqi
469d59a761 test: Invalid local variables and it is in an infinite loop
Signed-off-by: shiqi <1454927420@qq.com>
2017-03-17 10:08:39 +08:00
Pan Liu
6097f9daed rbd-nbd: only set size to new_size when NBD_SET_SIZE successfully.
Signed-off-by: Pan Liu <liupan1111@gmail.com>
2017-03-17 09:56:37 +08:00
Gui Hecheng
bff228734c rgw_file: fix double unref on rgw_fh for rename
Skip unref after unlink to fix the problem.

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
2017-03-17 09:47:02 +08:00
lu.shasha
9cf971790c rgw: fix init_bucket_for_sync retcode
init_bucket_for_sync error retcode should be negative

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
2017-03-17 08:56:17 +08:00
Jason Dillaman
b8e70d5f9b rbd-mirror: move replayer admin socket hook to anonymous namespace
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-16 17:04:31 -04:00
Jason Dillaman
fe9e77e7e8 rbd-mirror: refresh local images after acquiring leader role
The local image id set should be up-to-date when attempting to
determine which images need to be deleted.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-16 17:04:31 -04:00
Jason Dillaman
e025b22e46 rbd-mirror: utilize the mirroring watcher to receive update notifications
Fixes: http://tracker.ceph.com/issues/15029
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-16 17:04:30 -04:00
Jason Dillaman
7a26dfab6d rbd-mirror: templatize Threads helper class for mock tests
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-03-16 16:45:12 -04:00
Matt Benjamin
8be51d0c9e Merge pull request #13953 from linuxbox2/wip-rmdir-check
rgw_file: implement reliable has-children check (unlink dir)
2017-03-16 16:15:23 -04:00
Tamilarasi Muthamizhan
9885915e45 Merge pull request #13951 from smithfarm/wip-drop-obsolete-bt
tests: drop obsolete Perl scripts
2017-03-16 10:40:24 -07:00
Mykola Golub
5f144397a9 Merge pull request #13944 from liupan1111/wip-fix-nbd-issues
rbd-nbd: don't ignore --read-only option in BLKROSET ioctl

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-03-16 19:18:34 +02:00
Casey Bodley
f5632268a1 Merge pull request #13893 from hrchu/rgw-admin-api-doc
doc: Update adminops.rst

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-03-16 12:37:43 -04:00
Casey Bodley
e2f6839ac2 Merge pull request #13688 from theanalyst/fix/rgw/http-client-dout-msg
rgw: http_client clarify the debug msg function call

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-03-16 12:20:20 -04:00
John Wilkins
296482426a Merge pull request #13985 from ebozag/master
doc: Fixes a typo.

Reviewed-by: John Wilkins <jowilkin@redhat.com>
2017-03-16 09:19:59 -07:00
Casey Bodley
8d045078c3 Merge pull request #13761 from zhangsw/cleanup-rgw-unlinkobj
rgw: correct the debug info when unlink instance failed.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-03-16 12:19:36 -04:00
Matt Benjamin
1100a1c26e rgw_file: remove unused rgw_key variable
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-03-16 11:44:00 -04:00
Matt Benjamin
61482c2b85 rgw_file: rgw_readdir: return dot-dirs only when *offset is 0
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-03-16 11:43:55 -04:00
Matt Benjamin
b05f1c6d61 rgw_file: implement reliable has-children check (unlink dir)
Bug report and discussion provided by
Gui Hecheng <guihecheng@cmss.chinamobile.com> in nfs-ganesha upstream
github.  Briefly, while a reliable check is potentially costly,
it is necessary.

Fixes: http://tracker.ceph.com/issues/19270

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-03-16 11:43:39 -04:00