Commit Graph

72739 Commits

Author SHA1 Message Date
John Spray
3fe5e734be mds: apply OSDMap blacklist to CephFS clients
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:15 -04:00
John Spray
fe56a74cd2 osd/OSDMap: std::set version of get_blacklist
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:15 -04:00
John Spray
d98ace137b osdc: expose new blacklist entries from Objecter
For the MDS which needs to know about new blacklist entries
in order to evict corresponding MDS sessions.

Fixes: http://tracker.ceph.com/issues/17980
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-23 05:22:15 -04:00
Jesse Williamson
c3cd0ba5d6 filestore: migrate atomic_t to std::atomic<>
Signed-off-by: Jesse Williamson <jwilliamson@suse.de>
2017-05-23 02:09:21 -07:00
Henry Chang
0d74334332 mds: use client_t instead of int for client ID
'int' causes value truncation since client ID is int64_t.

Signed-off-by: Henry Chang <henry_chang@bigtera.com>
2017-05-23 15:56:28 +08:00
Jos Collin
309442fac6 Merge pull request #15220 from joscollin/wip-cleanup-rados-typo
include/rados: Fix typo in rados_ioctx_cct() doc
2017-05-23 10:50:27 +05:30
fang.yuxiang
af42ac7a17 rgw: set placement rule properly
we should set placement rule in RGWObjManifest::obj_iterator::update_location()
when ofs < manifest->get_head_size().

Signed-off-by: fang yuxiang fang.yuxiang@eisoo.com
2017-05-23 12:19:13 +08:00
Jos Collin
c969709b20 include/rados: Fix typo in rados_ioctx_cct() doc
This fixes PR#15077.

Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-23 09:33:20 +05:30
Kefu Chai
5f769f4689 ceph.in: adjust usage width according to user's tty
fixed a pep8 warning also

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-23 11:55:01 +08:00
Kefu Chai
84f9c1251b pybind/ceph_daemon.py: move _gettermsize() into Termsize
as the latter is the only consumer of _gettermsize(). and a little bit
refactor to improve the readability and be more pep8 compliant.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-05-23 11:55:01 +08:00
Sage Weil
b1e4295570 crush/CrushWrapper: fix has_incompat_choose_args
If the map has *no* choose_args it does not have incompat choose args.
This makes the OSDMap::get_features() check

  if (crush->has_incompat_choose_args())
    features |= CEPH_FEATURE_CRUSH_CHOOSE_ARGS;

happier.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-22 22:51:18 -04:00
Matt Benjamin
b3db617ddd rgw_file: remove post-unlink lookup check
This could induce asserts in multi-nfs-gateway scenarios.

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

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-05-22 22:08:40 -04:00
Matt Benjamin
2839052174 Merge pull request #15210 from linuxbox2/wip-rgw-rmbuck
rgw_file: remove hidden uxattr objects from buckets on delete
2017-05-22 20:40:09 -04:00
Nathan Cutler
08bc5e6528 build/ops: rpm: move python-prettytable to distro-conditional section
The correct package name in SUSE is python-PrettyTable

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-05-23 02:15:27 +02:00
Matt Benjamin
01e15c3ec6 rgw_file: remove hidden uxattr objects from buckets on delete
If a setattr (e.g., chown) has been performed on a bucket, then like
any directory it has a hidden object storing its attributes. This must
be deleted before attempting bucket delete, otherwise, actually empty
buckets will not be removable via NFS.

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

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
2017-05-22 18:16:54 -04:00
John Spray
24cabcfbea mon: fix accesing pending_fsmap from peon
Fixes: http://tracker.ceph.com/issues/20040
Signed-off-by: John Spray <john.spray@redhat.com>
2017-05-22 17:13:22 -04:00
Sage Weil
7ebe7c1cfb Merge pull request #15195 from theanalyst/doc/12.0.3-typo-fix
doc: fixing an error in 12.0.3 release notes

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Loic Dachary <loic@dachary.org>
2017-05-22 12:46:43 -05:00
Jos Collin
9f81048606 common: Remove redundant includes
Fixes: http://tracker.ceph.com/issues/19883 (Partially)

Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-22 23:16:26 +05:30
Adam C. Emerson
bba7d0b733 Merge pull request #15186 from adamemerson/wip-clangtastic-mr-clocks
rgw: Remove pessimizing move
common: Forward-declare container I/O overloads

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-22 13:14:06 -04:00
Sage Weil
657453d349 qa/suites/rados/singleton-nomsg/health-warnings: behave on ext4
We may land on an ext4 root partition.

Fixes: http://tracker.ceph.com/issues/20043
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-22 12:53:51 -04:00
Yehuda Sadeh
34a17d5ff7 Merge pull request #12861 from theanalyst/wip-absolute-urls
rgw: pass authentication domain to civetweb

Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
2017-05-22 09:30:53 -07:00
Sage Weil
cea91e0cd6 Merge pull request #15150 from ovh/bp-doc-perf-histograms
doc: document perf historgrams

Reviewed-by: Sage Weil <sage@redhat.com>
2017-05-22 10:59:22 -05:00
Piotr Dałek
756b3d59e6 doc: document perf historgrams
Documentation for perf histograms schema and dump.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
2017-05-22 15:53:21 +00:00
Jos Collin
edbd6edb04 common: Remove redundant includes
Fixes: http://tracker.ceph.com/issues/19883 (Partially)

Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-05-22 20:58:12 +05:30
Adam C. Emerson
ad2dbca06a rgw: Remove pessimizing move
Do not std::move values from returned functions.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-22 11:17:13 -04:00
Adam C. Emerson
a7fefb0ebf common: Forward-declare container I/O overloads
This will allow strict ADL to find the right overload in the case of a
container of containers and unbreak compilation with Clang.

Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
2017-05-22 11:17:00 -04:00
Sage Weil
740f17ebf9 qa/suites/rados: temporarily remove scrub_test from basic/ until post-luminous
We don't want to do the at-end.yaml scrubbing business with this test.
Move it into a separate collection until after luminous.

I have a todo item on the post-luminous cleanup list to avoid forgetting
to move this back.

Fixes: http://tracker.ceph.com/issues/19935
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-22 10:15:23 -04:00
Sage Weil
aecaebe087 qa/workunits/rados/test_health_warning: misc fixes
- use 'noup' flag
- wait for healthy between each test
- check counts for each type

Fixes: http://tracker.ceph.com/issues/19990
Signed-off-by: Sage Weil <sage@redhat.com>
2017-05-22 10:09:19 -04:00
Nathan Cutler
ba641b5160 build/ops: rpm: move RDMA build dependency to distro-conditional section
SUSE ships this package under the name "rdma-core-devel". See
https://build.opensuse.org/package/view_file/openSUSE:Factory/rdma-core/rdma-core.spec?expand=1

Signed-off-by: Nathan Cutler <ncutler@suse.com>
2017-05-22 14:52:26 +02:00
Mykola Golub
1367ab2a2d Merge pull request #15162 from dillaman/wip-19970
librbd: reduce potential of erroneous blacklisting on image close

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-05-22 15:50:57 +03:00
huanwen ren
c35629f11e client/inode: fix the dump type of Inode::dump()
Signed-off-by: huanwen ren ren.huanwen@zte.com.cn
2017-05-22 20:02:05 +08:00
Jens Rosenboom
1d06152c1d Update some RGW documentation
- Update RGW quickstart doc to match current status
- Use --rgw_num option with vstart.sh

Signed-off-by: Jens Rosenboom <j.rosenboom@x-ion.de>
2017-05-22 11:13:41 +00:00
Yan, Zheng
9316b0442c client: update the 'approaching max_size' code
The old 'approaching max_size' code expects MDS set max_size to
'2 x reported_size'. This is no longer true. The new code reports
file size when half of previous max_size increment has been used.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-05-22 16:46:02 +08:00
Yan, Zheng
538f35bef9 mds: limit client writable range increment
For very large file, setting the writable range to '2 * file_size'
causes file recovery to run a long time. To recover a 1T file, Filer
needs to probe 2T~1T range.

Fixes: http://tracker.ceph.com/issues/19955
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-05-22 16:45:11 +08:00
Abhishek Lekshmanan
3cfe612e5d doc: fixing an error in 12.0.3 release notes
Thanks @smithfarm for pointing this out

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-05-22 10:42:19 +02:00
Jos Collin
c89bbd66b6 Merge pull request #15191 from Linbing/modify-note-word-error
mon: Fixed typo in @post of _active()
2017-05-22 07:30:43 +05:30
linbing
e10061ee96 Note word error of _active(), take iif with if
Signed-off-by: Linbing <hawkerous@gmail.com>
2017-05-22 08:32:28 +08:00
shiqi
35bf49156a mon: delete useless function definition
Signed-off-by: shiqi <1454927420@qq.com>
2017-05-20 17:40:23 +08:00
shawn
2980b112cd compressor: optimize header file dependency
Signed-off-by: Xiaowei Chen <chen.xiaowei@h3c.com>
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2017-05-20 12:10:02 +10:00
Kefu Chai
e3319da51d Merge pull request #15181 from tchaikov/wip-cxx1z-size
common: add ceph::size()

Reviewed-By: Adam C. Emerson <aemerson@redhat.com>
2017-05-20 09:53:45 +08:00
Sage Weil
de6c0bd618 Merge pull request #14946 from dmick/wip-mgr-dashboard
mgr: dashboard GUI module
2017-05-19 16:59:59 -05:00
Casey Bodley
e01fd6846c Merge pull request #14994 from theanalyst/f/tier-fix
rgw_rados: create sync module instances only if run_sync_thread is set

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 17:58:46 -04:00
Dan Mick
10b1fa211c test: add mgr/ and smoke test for mgr dashboard
Signed-off-by: Dan Mick <dan.mick@redhat.com>
2017-05-19 14:47:48 -07:00
Abhishek Lekshmanan
e46fc5022c rgw_rados: create sync module instances only if run_sync_thread is set
This allows for radosgw-admin to run even if there was a
misconfiguration in setting tier types which would otherwise make it
difficult to revert an invalid tier type setting. Since sync modules are
necessary only for rgw and not for the admin itself, this allows for
invalid tier configurations to be corrected as rgw-admin wouldn't fail

Fixes: http://tracker.ceph.com/issues/19830
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2017-05-19 22:08:13 +02:00
Casey Bodley
e7e7e9403a Merge pull request #15153 from zhangsw/optimize-torrent
rgw: optimize generating torrent file. Object data won't stay in memory  now.

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
2017-05-19 15:03:06 -04:00
Casey Bodley
e546f46918 Merge pull request #15001 from chardan/jfw-wip-halflife_atomic_t-kamakuras
rgw: migrate atomic_t to std::atomic<>

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 15:02:14 -04:00
Casey Bodley
aa16248478 Merge pull request #14827 from liuyuhong66/rgw-swift-auth-improve
rgw/rgw_swift_auth.cc: using string::back() instead as the C++11 recommend

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-05-19 15:01:11 -04:00
Casey Bodley
97486e6eb1 Merge pull request #15025 from mikulely/jiaying-fix-lc-list
rgw: fix lc list failure when shards not be all created

Reviewed-by: Daniel Gryniewicz <dang@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 14:58:25 -04:00
Casey Bodley
9bc4d0fcb0 Merge pull request #12300 from idealguo/rename-s3_code
rgw: rename s3_code to err_code for swift

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 14:57:26 -04:00
Casey Bodley
f0300415af Merge pull request #15045 from shashalu/fix-slo
rgw: fix X-Object-Meta-Static-Large-Object in SLO download

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-05-19 14:56:53 -04:00