Sage Weil
392fa14c06
auth/cephx: tolerate missing rotating keys
...
During an upgrade, we may have a client requesting an
MGR service key but not have one in the database yet,
either because we *just* upgraded and haven't generated
one yet, or because the leader mon hasn't been upgraded
yet.
Fix this by silently tolerating a missing key as long as
one or more other service keys were present and we have
something to give to the client.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-14 14:41:44 -04:00
Sage Weil
d620aad662
Merge pull request #11398 from ifed01/wip-bluestore-rmcoll-fix
...
os/bluestore: fix remove_collection to properly detect collection e…
Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-14 13:41:26 -05:00
Ali Maredia
c5c6b59f29
cmake: find GIT_VER variables if there is no .git dir
...
find CEPH_GIT_VER & CEPH_GIT_NICE_VER if there is no
ceph/.git dir by parsing ceph/src/.git_version.
scenario is for building from source tarballs generated
by make-dist, since make-dist generates .git_version
by running make_version, and then packs .git_version
into the tarball.
Signed-off-by: Ali Maredia <amaredia@redhat.com>
2016-10-14 14:06:27 -04:00
Sage Weil
09a2383673
CMakeLists.txt: enable LTTNG by default
...
This makes dev builds more closely match package builds.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-14 13:54:38 -04:00
Sage Weil
cfcfe9633d
Merge pull request #11493 from atheism/rgw-rgw_rados-fix-specifier
...
rgw: rgw_rados.cc fix shard_num format for snprintf
Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-14 11:14:27 -05:00
Sage Weil
e04155b4f0
Merge pull request #11496 from stiopaa1/mds_infotableAddOverride
...
mds/InfoTable.h: add override to virtual functs
2016-10-14 11:13:55 -05:00
Michal Jarzabek
14f3054370
mds/InfoTable.h: add override to virtual functs
...
Signed-off-by: Michal Jarzabek <stiopa@gmail.com>
2016-10-14 16:32:09 +01:00
Igor Fedotov
620b0dc79d
os/bluestore: fix remove_collection to properly detect collection's empty
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-14 15:01:29 +00:00
Jeff Layton
e3958efcbb
client: no need to check mask before calling _getattr in statx
...
If the mask is zero, then the cap check will succeed, "yes" will be
true and we'll end up returning quickly from _getattr anyway.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2016-10-14 11:00:33 -04:00
Sage Weil
07d1943597
Merge pull request #11483 from liewegas/wip-bluestore-cleanups
...
os/bluestore: a few cleanups
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-14 09:37:15 -05:00
Sage Weil
38d63c1231
Merge pull request #11445 from ifed01/wip-fix-isal
...
compressor/ZLibCompressor: fix broken isal-l
Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-14 09:33:36 -05:00
Sage Weil
c9ab0cb407
Merge pull request #11495 from yuyuyu101/wip-fix-list
...
bluestore: set next object as ghobject_t::get_max() when start.hobj.i…
Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-14 09:27:31 -05:00
Haomai Wang
ddb378de22
bluestore: set next object as ghobject_t::get_max() when start.hobj.is_max()
...
Signed-off-by: Haomai Wang <haomai@xsky.com>
Signed-off-by: Xinze Chi <xinze@xsky.com>
2016-10-14 22:17:22 +08:00
Sage Weil
f32bb09322
Merge pull request #11491 from xiexingguo/xxg-wip-fs-1014
...
os/filestore: fix potential result code overwriting
Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-14 09:14:59 -05:00
Sage Weil
166d15430c
Merge pull request #11482 from ifed01/wip-bluestore-gc-fixes2
...
os/bluestore: GC infra refactor, more UTs and GC range calculation fixes
Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-14 09:13:28 -05:00
Sage Weil
e6d024eb8a
os/bluestore: fix warning
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-14 10:12:14 -04:00
Igor Fedotov
d04eee8795
Merge pull request #11490 from xiexingguo/xxg-wip-bluestore-1014
...
os/bluestore: use iterator for erase() method directly
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-14 17:01:58 +03:00
xie xingguo
7a16de7402
os/bluestore: use iterator for erase() method directly
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-14 21:51:13 +08:00
Igor Fedotov
f331597fba
common/compressor/ZLibCompressor: add a config option to specify compression level
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-14 13:44:47 +00:00
Igor Fedotov
47c44a2cb7
os/blustore: fix compile warning
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-14 12:39:37 +00:00
Igor Fedotov
21b3958f95
os/bluestore: fix GC gc_end_offset miscalculation
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-14 12:39:35 +00:00
Igor Fedotov
389d3eb33d
os/bluestore: isolate GC stuff to be able to cover it with UT
...
Signed-off-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-14 12:29:25 +00:00
Yan, Zheng
51c926a74e
mds: fix false "failing to respond to cache pressure" warning
...
the false warning happens in following sequence of events
- MDS has cache pressure, sends recall state messages to clients
- Client does not trim as many caps as MDS expected. So MDS
does not reset session->recalled_at
- MDS no longer has cache pressure, it stop sending recall state
messages to clients.
- Client does not release its caps. So session->recalled_at in
MDS keeps unchanged
Signed-off-by: Yan, Zheng <zyan@redhat.com>
2016-10-14 19:51:19 +08:00
John Spray
e7137254c4
Merge pull request #11487 from batrick/cephfs-gid
...
cephfs: add gid to asok status
Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-14 12:06:58 +02:00
John Spray
9aacef47b7
Merge pull request #11357 from batrick/i17518
...
mds: use parse_filesystem in parse_role to handle exceptions and reuse parsing code
Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-14 12:04:28 +02:00
John Spray
6e820c347b
Merge pull request #11380 from stiopaa1/mds_snapserver_addOverrideToVirt
...
mds/SnapServer.h: add override to virtual functs
Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-14 10:49:15 +02:00
John Spray
91d9cfe1cc
Merge pull request #11402 from stiopaa1/mds_fsmapRemoveUnneededUseCount
...
mds/FSMap.cc: remove unneeded use of count
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2016-10-14 10:48:26 +02:00
John Spray
a15daf131b
Merge pull request #11435 from stiopaa1/mds_damageTableMoveSharePtr
...
mds/DamageTable.cc: move shared ptrs
Reviewed-by: John Spray <john.spray@redhat.com>
2016-10-14 10:47:18 +02:00
Weibing Zhang
bf21c5a7b8
rgw: rgw_rados.cc fix shard_num format for snprintf
...
Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
2016-10-14 16:17:42 +08:00
John Spray
1f3d96c501
test: temporarily disable fork()'ing tests
...
Fixes: http://tracker.ceph.com/issues/16556
Signed-off-by: John Spray <john.spray@redhat.com>
2016-10-14 08:57:47 +01:00
xie xingguo
0ccde6eca3
os/filestore: fix potential result code overwriting
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-14 15:13:02 +08:00
Patrick Donnelly
000979fe7e
client: get gid from MonClient
...
This is consistent with other parts of the code that set whoami.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-10-13 21:14:52 -04:00
Sage Weil
c701628da2
Merge pull request #11484 from ceph/wip-move-ranges-tp
...
tracing/objectstore.tp: add missing move_ranges_... tp
2016-10-13 19:22:20 -05:00
Sage Weil
9983cd36fa
tracing/objectstore.tp: add missing move_ranges_... tp
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-13 16:57:58 -04:00
Hans van den Bogert
76939ce389
doc: Update install-ceph-gateway.rst
...
Make the s3test.py script PIP-8 complaint, and more importantly it no
longer fails because of the wrong indentation on the line of the
for-loop.
Signed-off-by: Hans van den Bogert <hansbogert@gmail.com>
2016-10-13 22:33:52 +02:00
Patrick Donnelly
20d63508b5
cephfs: add gid to asok status
...
This is useful e.g. for building a database with a unique ID for each
entity.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2016-10-13 15:59:40 -04:00
Sage Weil
678be45532
os/bluestore: simplify blob print if !compressed
...
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-13 15:46:17 -04:00
Sage Weil
3ad8ccc53a
Merge pull request #11468 from xiexingguo/xxg-wip-bluestore-1013
...
os/bluestore: traverse buffer_map in reverse order when spliting BufferSpace
Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-13 14:21:10 -05:00
Sage Weil
62c12b70e2
Merge pull request #11296 from liewegas/wip-fixes
...
osd: drop stray debug message
2016-10-13 14:00:45 -05:00
Sage Weil
907fde0c26
Merge pull request #11237 from liewegas/wip-ec-move
...
os: move_ranges_destroy_src
Reviewed-by: Sage Weil <sage@redhat.com>
2016-10-13 13:23:48 -05:00
David Disseldorp
d5b41b7647
cmake: check WITH_RADOSGW for fcgi and expat dependencies
...
The fcgi and expat libraries are only used by rgw, so only make them
hard requirements if WITH_RADOSGW is set.
Signed-off-by: David Disseldorp <ddiss@suse.de>
2016-10-13 18:48:21 +02:00
Sage Weil
6244755a70
mon/OSDMonitor: set REQUIRE_JEWEL when setting REQUIRE_KRAKEN
...
Lots of checks look for the jewel flag; setting the
kraken flag should also set this one.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-13 12:28:18 -04:00
Sage Weil
12e508313d
mon/OSDMonitor: health warn if require_{jewel,kraken} flags aren't set
...
We want to prompt users to set these flags as soon as their
upgrades complete.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-13 12:16:40 -04:00
Casey Bodley
32673ba97b
Merge pull request #11426 from ceph/wip-rgw-17371
...
rgw: loses realm/period/zonegroup/zone data: period overwritten if somewhere in the cluster is still running Hammer
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2016-10-13 12:05:41 -04:00
Kefu Chai
0f85b344b3
Merge pull request #11391 from agraf/fix-aarch64-crc-v3
...
AArch64: Detect crc32 extension support from assembler
Reviewed-by: Yazen Ghannam <yazen.ghannam@linaro.org>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2016-10-13 22:44:04 +08:00
Sage Weil
37c27f044d
Merge pull request #11451 from liewegas/wip-bluestore-reshard-fixes
...
os/bluestore: fix writes that span existing shard boundaries
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-13 09:05:25 -05:00
Sage Weil
c908cae176
os/bluestore: force reshard if new extent spans shard boundary
...
A new write may create a new lextent that spans an
existing shard boundary. If that happens, set a flag
so that we force a reshard when the onode is written.
Signed-off-by: Sage Weil <sage@redhat.com>
2016-10-13 09:42:17 -04:00
Igor Fedotov
3d3c61d4e8
Merge pull request #11452 from liewegas/wip-bluestore-keys
...
os/bluestore: fix onode vs extent key suffix
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
2016-10-13 15:07:46 +03:00
xie xingguo
4262859b50
os/bluestore: add checking to catch unspecified compression algorithm
...
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-13 20:00:51 +08:00
xie xingguo
98677bdfe8
os/bluestore: traverse buffer_map in reverse order
...
Which is more efficient.
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
2016-10-13 20:00:51 +08:00