Commit Graph

71536 Commits

Author SHA1 Message Date
Loic Dachary
27445ce7c6 Merge pull request #14479 from swamireddy/v12.0.1_credits
mailmap: V12.0.1 credits

Reviewed-by: Loic Dachary <ldachary@redhat.com>
2017-04-24 17:08:32 +02:00
Sage Weil
8a3716a472 Merge pull request #14611 from liewegas/wip-mon-warn-cleanup
mon/PGMonitor: clean up min/max span warning

Reviewed-by: David Zafman <dzafman@redhat.com>
2017-04-24 09:57:55 -05:00
Mykola Golub
e009e1bdd4 test/librbd/test_notify.py: don't disable feature in slave
On jewel it will have stolen the exclusive lock. Instead, ensure that
object map and fast diff are already disabled on the clone before the
start of the test.

Fixes: http://tracker.ceph.com/issues/19716
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-04-24 16:23:21 +02:00
Sage Weil
852f4da3b1 ceph-kvstore-tool: compact{,-prefix,-range}
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-24 10:20:29 -04:00
Sage Weil
d7f74d86e9 ceph-kvstore-tool: (url) escape prefixes and keys
Escape output; unescape input.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-24 10:20:28 -04:00
Sage Weil
ca5bf3cf8f common/url_escape: add simple url_[un]escape() methods
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-24 10:20:28 -04:00
Igor Fedotov
b2cf5bd0e8 os/bluestore: get rid off excessive lock at BitMapAllocator
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2017-04-24 07:15:10 -07:00
Sage Weil
331ee3e859 ceph-kvstore-tool: tabs instead of : as delimiter
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-24 10:04:00 -04:00
Sage Weil
b05b018f6c ceph-kvstore-tool: nicer failure message on open failure
I have been hating this assert for a long time.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-24 10:04:00 -04:00
Sage Weil
4ed5ab97b2 ceph-kvstore-tool: 'bluestore-kv' to open bluestore's embedded kv
This is usually rocksdb on bluefs, but it should work with whatever kv
backend bluestore is configured to use.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-24 10:04:00 -04:00
Sage Weil
a0a9a982fe ceph-bluestore-tool: add error handling to bluefs-export
Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-24 10:04:00 -04:00
Sage Weil
aafa816b25 os/bluestore: BLUEFS_START -> SUPER_RESERVED
We reserve the first 8k for bluestore and bluefs superblocks even if
bluefs isn't enabled at mkfs time.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-04-24 10:04:00 -04:00
Jason Dillaman
7801682a6b Merge pull request #14741 from trociny/wip-19405
test/rbd_mirror: race in TestMockLeaderWatcher.AcquireError

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2017-04-24 09:35:04 -04:00
John Spray
9ca080d522 Merge pull request #12792 from david-z/wip-mds-use-tcmalloc
mds: remove boost::pool usage and use tcmalloc directly

Reviewed-by: John Spray <john.spray@redhat.com>
2017-04-24 13:27:25 +01:00
John Spray
6fad8ccc24 Merge pull request #14575 from jcsp/wip-cephfs-suites
qa: Tidy up fs/ suite

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-04-24 11:20:59 +01:00
John Spray
53477e4b05 qa: switch off btrfs for multimds and kcephfs
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:56 +01:00
John Spray
e8f8b4c83e qa: update links for modified fs subsuite names
Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:56 +01:00
John Spray
837a71c0af qa/tasks/cephfs: clean up mount point setup
Previously were sometimes trying to maintain a mounted
client across a filesystem destroy/create.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:55 +01:00
John Spray
6369120d63 qa/suites: don't use btrfs for cephfs testing
This change happened a while back, but it got rolled back
when the generic objectstore/ dir had its filestore
entry split out into xfs and btrfs in 208675af.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:55 +01:00
John Spray
b56fb50ef2 qa: remove unused fs/ dir
The objectstore/ dir is now selecting the backing fs.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:55 +01:00
John Spray
ea688a6d46 qa/suites/fs: more meaningful names for sub suites
The "recovery" sub suite was originally tests for
client/mds recovery in certain failure cases, it has
since grown to include lots of unit testing of
various features using CephFSTestCase.

The "basic" suite is now specifically just running workloads
now that I've moved out the smaller functional tests.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:55 +01:00
John Spray
0362d08121 qa/suites/fs: put simple functional tests together
Most of what's in basic/ is "workload" type testing
(i.e. a simple cluster cluster configuration and then
running a script inside the client), which gets
permuted in various ways.  Move the simpler
functional tests out with the others like themselves.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:54 +01:00
John Spray
3e3b94783c qa: don't permute object store for functional tests
These are unit tests for specific CephFS functionality,
it is gratuitous to repeat them with different underlying
RADOS object stores.

We retain coverage of XFS vs. bluestore in the workload tests.

Signed-off-by: John Spray <john.spray@redhat.com>
2017-04-24 11:19:54 +01:00
John Spray
16702ff13d Merge pull request #14018 from jcsp/wip-17939
client: getattr before returning quota/layout xattrs

Reviewed-by: Yan, Zheng <zyan@redhat.com>
2017-04-24 11:12:26 +01:00
Swami Reddy
19b9ecc98e mailmap: shiqi name normalization
Signed-off-by: M Ranga Swami Reddy <swamireddy@gmail.com>
2017-04-24 14:17:58 +05:30
Zhi Zhang
83b9c639f8 mds: remove boost::pool usage and use tcmalloc directly
Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
2017-04-24 14:37:37 +08:00
Brad Hubbard
3c257ef131 Merge pull request #14729 from joscollin/wip-cleanup-osdc-comparision
osdc: silence warning from `-Wsign-compare`

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-24 15:01:41 +10:00
Kefu Chai
a952f84bd1 Merge pull request #14711 from jcsp/wip-19738
mon: don't call propose_pending in prepare_update()

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-24 12:20:42 +08:00
Haomai Wang
4bc7acdd06 os/bluestore: align reclaim size to bluefs_alloc_size
otherwise it will crash because of unaligned alloc size

Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-04-24 12:11:21 +08:00
Kefu Chai
1b94f34061 Merge pull request #14740 from petermaloney/master
doc: fix link that pointed to a nonexistent file

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-24 12:02:28 +08:00
Jos Collin
59fb7ae154 osdc: warning: comparison between signed and unsigned integer expressions
The following warning appears during make. Fixed the review comments too.
[ 28%] Building CXX object src/mds/CMakeFiles/mds.dir/__/osdc/Journaler.cc.o
./src/osdc/Journaler.cc: In member function ‘void Journaler::_do_flush(unsigned int)’:
./src/osdc/Journaler.cc:643:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     if (newlen < len) {
         ~~~~~~~^~~~~

Signed-off-by: Jos Collin <jcollin@redhat.com>
2017-04-24 09:05:28 +05:30
Brad Hubbard
c4eb6915d1 Merge pull request #14705 from joscollin/wip-googletest-warning
test: warning: comparison between signed and unsigned integer expressions

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2017-04-24 11:49:10 +10:00
lu.shasha
a34c4b8fb1 rgw: using the same bucket num_shards as master zg when create bucket in secondary zg
create bucket in secondary zonegroup will forward to master. The master may have different num_shards option.
So when create bucket in local, should use master's num_shards instead of local num_shards option.

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

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
2017-04-24 09:05:23 +08:00
lu.shasha
7e3691aa7a rgw: add 'state==SyncState::IncrementalSync' condition when add item to shards_behind.
after running 'radosgw-admin data sync init', the sync_marker's state will change to FullSync, but the marker didn't clean. So 'sync status' command will wrongly inset shards_behind.

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
2017-04-24 08:55:19 +08:00
Sage Weil
b25b53ff03 Merge pull request #13898 from songbaisen/m5
osd: check fsid is normal before osd mkfs

Reviewed-by: Sage Weil <sage@redhat.com>
2017-04-23 15:49:28 -05:00
Sage Weil
d764b56822 Merge pull request #10893 from yonghengdexin735/wip-zzz-1
rados: check for negative return value of rados_create_with_context() as its comment put

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-23 15:47:58 -05:00
Sage Weil
0d368d2c85 Merge pull request #14442 from liewegas/wip-midkraken-upgrade
mon/OSDMonitor: tolerate upgrade from post-kraken dev cluster

Reviewed-by: Kefu Chai <kchai@redhat.com>
2017-04-23 15:47:28 -05:00
Mykola Golub
782bccafe9 test/rbd_mirror: race in TestMockLeaderWatcher.AcquireError
Due to handle_get_locker is executed in async context, shut_down could
start before handle_get_locker.

Fixes: http://tracker.ceph.com/issues/19405
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
2017-04-23 21:42:18 +02:00
Peter Maloney
3c08894fe0 doc: fix link that pointed to a nonexistent file
commit d788bae60d renamed config.rst to config-fcgi.rst

Reported-by: fusl in #ceph on irc.oftc.net
Signed-off-by: Peter Maloney <peter.maloney@brockmann-consult.de>
2017-04-23 20:33:03 +02:00
Mykola Golub
44cd43d579 Merge pull request #14712 from dillaman/wip-rbd-mirror-watch
rbd-mirror: remove tracking of image names from pool watcher

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-04-23 19:32:43 +03:00
Orit Wasserman
5de9a3ef77 Merge pull request #14722 from cbodley/wip-19746
radosgw-admin: warn that 'realm rename' does not update other clusters
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2017-04-23 19:09:57 +03:00
Kefu Chai
ac6f6d2c29 Merge pull request #14338 from aclamk/fix-fio-ceph-objectstore-lifetime
fio_ceph_objectstore: fixes improper write request data lifetime

Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2017-04-23 22:40:40 +08:00
Michal Jarzabek
1a5cb534d9 mds/Server.cc: Don't evict a slow client if...
... it's the only client

Fixes: http://tracker.ceph.com/issues/17855
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2017-04-23 13:31:47 +01:00
Kefu Chai
0f5947d31e cmake: do not compile crush twice
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-23 00:05:19 +08:00
Casey Bodley
2b341bfd62 Merge pull request #14335 from hrchu/radosgw-admin-api-subuser
doc: rgw: Clean up create subuser parameters

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2017-04-22 11:49:05 -04:00
Haomai Wang
0e7d434869 os/bluestore: use correct bound encode size for unused
Signed-off-by: Haomai Wang <haomai@xsky.com>
2017-04-22 17:26:27 +08:00
Kefu Chai
2e7e4ebc2e mon/OSDMonitor: update pg_creatings even the new acting set is empty
there is chance that the acting set of a PG being created becomes empty,
and then OSDs joins the acting set. in that case, we need also update
the "create" epoch of the creating_pgs, so the new primary can be
updated with the MOSDPCreate message.

Fixes: http://tracker.ceph.com/issues/19744
Signed-off-by: Kefu Chai <kchai@redhat.com>
2017-04-22 16:46:42 +08:00
Loic Dachary
5d50805b1c ceph-disk: implement prepare --no-locking
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Signed-off-by: Loic Dachary <loic@dachary.org>
2017-04-22 10:20:18 +02:00
Loic Dachary
a7205fb7b0 ceph-disk: Prepare keeps track of args
Signed-off-by: Dan van der Ster <daniel.vanderster@cern.ch>
Signed-off-by: Loic Dachary <loic@dachary.org>
2017-04-22 10:20:14 +02:00
Haomai Wang
66e68b32db Merge pull request #14707 from wjwithagen/wip-wjw-freebsd-kqueue-logging
msg: Increase loglevels on some messages

Reviewed-by: Haomai Wang <haomai@xsky.com>
2017-04-22 11:46:48 +08:00