]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Dan Mick [Thu, 24 Mar 2016 01:13:21 +0000 (18:13 -0700)]
Makefile-env.am: set a default for CEPH_BUILD_VIRTUALENV
We need to shorten the virtualenv path for non-Jenkins builds
too; gitbuilders were also overflowing the interpreter path limit
Signed-off-by: Dan Mick <dan.mick@redhat.com>
Alfredo Deza [Wed, 23 Mar 2016 19:17:20 +0000 (15:17 -0400)]
Merge pull request #8279 from dachary/wip-virtualenv-jessie
build/ops: in jessie virtualenv is in package virtualenv
Reviewed-by: Alfredo Deza <adeza@redhat.com>
Loic Dachary [Wed, 23 Mar 2016 16:56:37 +0000 (17:56 +0100)]
build/ops: in jessie virtualenv is in package virtualenv
The python scripts are not yet compatible with python3, yet it is the
default on jessie. Force the creation of the virtualenv to use python2.7
instead. The wheelhouse is already explicitly populated for both python3
and python2.7 by install-deps.sh, regardless of the default interpreter.
Signed-off-by: Loic Dachary <loic@dachary.org>
Alfredo Deza [Wed, 23 Mar 2016 12:50:25 +0000 (08:50 -0400)]
Merge pull request #8276 from dachary/wip-virtualenv-jewel
python: avoid long paths (part 2)
Reviewed-by: Alfredo Deza <adeza@redhat.com>
Loic Dachary [Wed, 23 Mar 2016 12:14:17 +0000 (13:14 +0100)]
python: avoid long paths (part 2)
make CEPH_BUILD_VIRTUALENV=/tmp TESTS=ceph-detect-init/run-tox.sh check
sets the CEPH_DETECT_INIT_VIRTUALENV environment variable
CEPH_BUILD_VIRTUALENV=/tmp make TESTS=ceph-detect-init/run-tox.sh check
does not because Makefile-env.am overrides it.
Do not set CEPH_BUILD_VIRTUALENV in Makefile-env.am so the variable from
the environment can be used. Require that CEPH_BUILD_VIRTUALENV has a
trailing slash so that the default is just an empty variable.
Signed-off-by: Loic Dachary <loic@dachary.org>
Alfredo Deza [Tue, 22 Mar 2016 21:51:38 +0000 (17:51 -0400)]
Merge pull request #8250 from dachary/wip-virtualenv-jewel
python: avoid long paths
Reviewed-by: Alfredo Deza <adeza@redhat.com>
Loic Dachary [Mon, 21 Mar 2016 21:54:41 +0000 (22:54 +0100)]
python: avoid long paths
As a temporary measure because it overflows when jenkins tries to build
in a deep path. Run make with:
make CEPH_BUILD_VIRTUALENV=/tmp
and it will use these directories instead of the default.
Signed-off-by: Loic Dachary <loic@dachary.org>
Sage Weil [Tue, 22 Mar 2016 14:32:28 +0000 (10:32 -0400)]
Merge pull request #8239 from jcsp/wip-15223
mon: fix mixed-version MDSMonitor
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 21 Mar 2016 23:11:32 +0000 (19:11 -0400)]
Merge pull request #7934 from ceph/wip-default-tcmalloc-cache-size
etc/sysconfig/ceph: set 128MB tcmalloc cache size
Reviewed-by: Mark Nelson <mnelson@redhat.com>
Yehuda Sadeh [Mon, 21 Mar 2016 21:48:12 +0000 (14:48 -0700)]
Merge pull request #8244 from linuxbox2/jewel-ldap-fixes
rgw_ldap fixes
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 21 Mar 2016 20:41:28 +0000 (13:41 -0700)]
Merge pull request #8225 from SUSE/wip-radosgw-description
packaging: align radosgw package description
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Josh Durgin [Mon, 21 Mar 2016 20:35:31 +0000 (13:35 -0700)]
Merge pull request #8217 from ceph/wip-rbd-mirror-init
rbd-mirror: systemd and upstart init scripts
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yehuda Sadeh [Mon, 21 Mar 2016 20:33:36 +0000 (13:33 -0700)]
Merge pull request #8245 from theanalyst/fix/delete-zone-msg
rgw: fix error message for zone delete
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Yehuda Sadeh [Mon, 21 Mar 2016 20:32:38 +0000 (13:32 -0700)]
Merge pull request #8243 from theanalyst/fix/zone-rm-msg
rgw: typo fix for zone delete message
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Abhishek Lekshmanan [Mon, 21 Mar 2016 19:48:11 +0000 (20:48 +0100)]
rgw: fix error message for zone delete
Currently if a zone is not a part of a zonegroup, an error message
is printed that zone doesn't exist, and the zone gets deleted anyway.
Since this is exhibited only if the zone isn't a part of a zonegroup
and we allow creation of such zones, clarify that the zone wasn't a
part of zonegroup instead
Fixes: #14951
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Matt Benjamin [Mon, 21 Mar 2016 18:07:16 +0000 (14:07 -0400)]
rgw_ldap: move update of s->perm_mask
This should happen on successful auth, not only when a new user
record is stored.
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Matt Benjamin [Mon, 21 Mar 2016 17:07:49 +0000 (13:07 -0400)]
rgw_ldap: two bug fixes
1. only attempt auth on tokens which pass valid() check
2. ignore false positive search result (and fix result in that case)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
Josh Durgin [Mon, 21 Mar 2016 16:58:08 +0000 (09:58 -0700)]
Merge pull request #8240 from dillaman/wip-15224
cls_rbd: throw error if set_features mask included non-mutable feature
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Abhishek Lekshmanan [Mon, 21 Mar 2016 16:04:55 +0000 (17:04 +0100)]
rgw: fix zone delete message
Though this error message is hard to reach, it is still wrongly printed
as failed to create instead of failed to delete.
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
Kefu Chai [Mon, 21 Mar 2016 15:04:44 +0000 (23:04 +0800)]
Merge pull request #8130 from tchaikov/wip-15113
mon: do not panic at seeing requests without session
Reviewed-by: Joao Eduardo Luis <joao@suse.de>
Jason Dillaman [Mon, 21 Mar 2016 13:32:08 +0000 (09:32 -0400)]
cls_rbd: throw error if set_features mask included non-mutable feature
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
John Spray [Mon, 21 Mar 2016 12:07:25 +0000 (12:07 +0000)]
mon: fix mixed-version MDSMonitor
Encode old-style until mon quorum features indicate
jewel, forbid creating multiple filesystems, and
when creating a single filesystem use the legacy fscid.
Fixes: #15223
Signed-off-by: John Spray <john.spray@redhat.com>
Sage Weil [Mon, 21 Mar 2016 11:41:55 +0000 (07:41 -0400)]
Merge pull request #8016 from ErwanAliasr1/evelu-15042
rpm,deb: remove conditional BuildRequires for btrfs-progs
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Sage Weil [Mon, 21 Mar 2016 11:35:27 +0000 (07:35 -0400)]
Merge pull request #8214 from athanatos/wip-feature-bits
Deprecate or free up a bunch of feature bits
Reviewed-by: Sage Weil <sage@redhat.com>
Jason Dillaman [Sat, 19 Mar 2016 22:12:28 +0000 (18:12 -0400)]
Merge pull request #8162 from rjfd/wip-15142
rbd-mirror: use the mirroring directory to detect candidate images
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sat, 19 Mar 2016 22:00:03 +0000 (18:00 -0400)]
Merge pull request #8204 from rjfd/wip-15143
librbd: enable/disable image mirroring automatically for pool mode
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Sat, 19 Mar 2016 21:30:26 +0000 (22:30 +0100)]
packaging: align radosgw package description
First, make the Debian package description mention that RGW aims to
implement the Swift API.
Second, replace the RPM package description with the Debian one, both for
consistency and because the Debian one is better.
Signed-off-by: Nathan Cutler <ncutler@suse.com>
Jason Dillaman [Sat, 19 Mar 2016 20:33:36 +0000 (16:33 -0400)]
Merge pull request #8172 from trociny/fix-test-rbd-mirror-position
test: rbd-mirror: compare positions using all fields
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sat, 19 Mar 2016 20:25:08 +0000 (16:25 -0400)]
Merge pull request #8185 from trociny/wip-rbd-mirror-faster-exit
rbd-mirror: fix long termination due to 30sec wait in main loop
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Sat, 19 Mar 2016 20:18:19 +0000 (16:18 -0400)]
Merge pull request #8221 from jdurgin/wip-test-rbd-mirror
qa: add workunit to run ceph_test_rbd_mirror
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Mykola Golub [Sat, 19 Mar 2016 13:43:58 +0000 (15:43 +0200)]
rbd-mirror: fix long termination due to 30sec wait in Mirror::run loop
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Sage Weil [Sat, 19 Mar 2016 13:13:23 +0000 (09:13 -0400)]
Merge pull request #8191 from liewegas/wip-15180
qa/workunits/rest/test.py: don't use newfs
Reviewed-by: John Spray <john.spray@redhat.com>
Sage Weil [Sat, 19 Mar 2016 13:13:02 +0000 (09:13 -0400)]
Merge pull request #8101 from jjhuo/bluestore
os/bluestore: small fixes in bluestore StupidAllocator
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Sat, 19 Mar 2016 13:11:56 +0000 (09:11 -0400)]
Merge pull request #8178 from majianpeng/bluefs-closewriter
os/bluestore/BlueFS: Before reap ioct, it should wait io complete
Reviewed-by: Sage Weil <sage@redhat.com>
Josh Durgin [Sat, 19 Mar 2016 00:46:42 +0000 (17:46 -0700)]
Merge pull request #8220 from dillaman/wip-15202
journal: prevent race injecting new records into overflowed object
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Sat, 19 Mar 2016 00:23:52 +0000 (17:23 -0700)]
qa: add workunit to run ceph_test_rbd_mirror
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Fri, 18 Mar 2016 23:32:17 +0000 (16:32 -0700)]
Merge pull request #8219 from jdurgin/wip-test-pool-create-cleanup
test_pool_create.sh: put test files in the test dir so they are cleaned up
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Jason Dillaman [Fri, 18 Mar 2016 23:18:30 +0000 (19:18 -0400)]
journal: prevent race injecting new records into overflowed object
The recorded added after the overflow will not have been detached
from the object recorder.
Fixes: #15202
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Josh Durgin [Fri, 18 Mar 2016 23:14:36 +0000 (16:14 -0700)]
Merge pull request #8149 from trociny/test-rbd-mirror
test: rbd-mirror: add "switch to the next tag" test
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Fri, 18 Mar 2016 22:03:33 +0000 (15:03 -0700)]
Merge pull request #8182 from trociny/wip-rbd-mirror-args
rbd-mirror: make remote context respect env and argv config params
Conflicts:
qa/workunits/rbd/rbd_mirror.sh (asok command format changed)
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Josh Durgin [Fri, 18 Mar 2016 21:58:58 +0000 (14:58 -0700)]
Merge pull request #8159 from trociny/wip-rbd-mirror-asok
rbd-mirror: use pool/image names in asok commands
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 18 Mar 2016 19:09:21 +0000 (15:09 -0400)]
packaging: added rbd-mirror startup scripts
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 18 Mar 2016 19:06:21 +0000 (15:06 -0400)]
upstart: new rbd-mirror daemon scripts
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Jason Dillaman [Fri, 18 Mar 2016 18:54:35 +0000 (14:54 -0400)]
systemd: new ceph-rbd-mirror scripts
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Josh Durgin [Fri, 18 Mar 2016 21:28:50 +0000 (14:28 -0700)]
test_pool_create.sh: put test files in the test dir so they are cleaned up
If they aren't cleaned up, tarball gitbuilders are unhappy.
Signed-off-by: Josh Durgin <jdurgin@redhat.com>
Josh Durgin [Fri, 18 Mar 2016 21:21:01 +0000 (14:21 -0700)]
Merge pull request #8216 from ceph/wip-rbd-maint-ops
qa/workunits/rbd: new online maintenance op tests
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Yehuda Sadeh [Fri, 18 Mar 2016 20:08:46 +0000 (13:08 -0700)]
Merge pull request #8183 from ceph/wip-rgw-fix-mdlog
Wip rgw fix mdlog
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Jason Dillaman [Fri, 18 Mar 2016 14:15:17 +0000 (10:15 -0400)]
qa/workunits/rbd: new online maintenance op tests
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Sage Weil [Fri, 18 Mar 2016 17:41:28 +0000 (13:41 -0400)]
Merge pull request #8212 from yehudasa/wip-15181
cls/rgw: fix use of timespan
Reviewed-by: Sage Weil <sage@redhat.com>
Yehuda Sadeh [Fri, 18 Mar 2016 16:51:34 +0000 (09:51 -0700)]
cls/rgw: fix use of timespan
Need to use make_timespan() when referring to seconds.
Fixes: #15181
Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
Sage Weil [Fri, 18 Mar 2016 15:52:27 +0000 (11:52 -0400)]
Merge pull request #8209 from liewegas/wip-13992
ceph_test_rados_misc: shorten mount timeout
Reviewed-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Fri, 18 Mar 2016 14:34:26 +0000 (10:34 -0400)]
ceph_test_rados_misc: shorten mount timeout
This might fix #13992.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 18 Mar 2016 14:16:49 +0000 (10:16 -0400)]
os/filestore: fix warning
os/filestore/FileStore.cc: In member function ‘int FileStore::_zero(const coll_t&, const ghobject_t&, uint64_t, size_t)’:
os/filestore/FileStore.cc:3294:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if (offset + len > st.st_size) {
^
Signed-off-by: Sage Weil <sage@redhat.com>
Loic Dachary [Fri, 18 Mar 2016 14:14:02 +0000 (15:14 +0100)]
Merge pull request #7932 from theanalyst/mailmap/10.0.4
mailmap for 10.0.4
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Sage Weil [Fri, 18 Mar 2016 01:40:17 +0000 (21:40 -0400)]
qa/workunits/rest/test.py: don't use newfs
It doesn't work anymore.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 18 Mar 2016 13:44:05 +0000 (09:44 -0400)]
Merge pull request #8121 from liewegas/wip-15136
mon: remove 'mds setmap'
Reviewed-by: Greg Farnum <gfarnum@redhat.com>
Ricardo Dias [Fri, 18 Mar 2016 10:41:09 +0000 (10:41 +0000)]
rbd: rbd-mirroring: Added unit tests to test image mirroring behaviour
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Fri, 18 Mar 2016 10:36:46 +0000 (10:36 +0000)]
rbd: rbd-mirroring: Fixed if clause in mirror_image_get_info
This fix targets the case when journaling is not enabled but
someone calls mirror_image_get_info.
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Thu, 17 Mar 2016 15:54:02 +0000 (15:54 +0000)]
rbd: rbd-mirroring: Disable image mirroring when journaling feature is disabled
Signed-off-by: Ricardo Dias <rdias@suse.com>
Fixes: #15143
Ricardo Dias [Thu, 17 Mar 2016 11:40:48 +0000 (11:40 +0000)]
rbd: rbd-mirroring: Enable image mirroring when journaling feature is enabled
Signed-off-by: Ricardo Dias <rdias@suse.com>
Ricardo Dias [Wed, 16 Mar 2016 23:17:11 +0000 (23:17 +0000)]
rbd: rbd-mirroring: Enable image mirroring upon create with journaling feature
Signed-off-by: Ricardo Dias <rdias@suse.com>
branto1 [Fri, 18 Mar 2016 09:10:35 +0000 (10:10 +0100)]
Merge pull request #8137 from ceph/wip-15146-ceph-dep
rpm: remove sub-package dependencies on "ceph"
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Jun Huang <hjwsm1989@gmail.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Ali Maredia <amaredia@redhat.com>
Sage Weil [Fri, 18 Mar 2016 01:59:33 +0000 (21:59 -0400)]
Merge pull request #7838 from rldleblanc/pg_prime-enable
mon: enable 'mon osd prime pg temp' by default
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 18 Mar 2016 01:56:48 +0000 (21:56 -0400)]
Merge pull request #7939 from yangdongsheng/remove_v1
mon: standardize Ceph removal commands
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 18 Mar 2016 01:55:11 +0000 (21:55 -0400)]
Merge pull request #7721 from xiexingguo/xxg-wip-fixdc
os/filestore: fix result handling logic of destroy_collection
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 18 Mar 2016 01:54:32 +0000 (21:54 -0400)]
Merge pull request #7754 from xiexingguo/xxg-wip-14845
osd: fix inaccurate counter and skip over queueing an empty transaction
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 18 Mar 2016 01:53:38 +0000 (21:53 -0400)]
Merge pull request #7970 from Yan-waller/yj-wip-async
msg/async: _try_send trim already sent for outcoming_bl more efficient
Reviewed-by: Haomai Wang <haomai@xsky.com>
Sage Weil [Fri, 18 Mar 2016 01:52:18 +0000 (21:52 -0400)]
Merge pull request #8127 from ceph/wip-15122
ceph_test_msgr: reduce test size to fix memory size
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 18 Mar 2016 01:46:45 +0000 (21:46 -0400)]
Merge branch 'wip-13990' of git://github.com/tchaikov/ceph
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Fri, 18 Mar 2016 01:47:57 +0000 (21:47 -0400)]
Merge pull request #8160 from yuyuyu101/jewel-spdk
os/bluestore/NVMEDevice: make IO thread using dpdk launch
Sage Weil [Fri, 18 Mar 2016 01:47:28 +0000 (21:47 -0400)]
Merge pull request #8163 from liewegas/wip-15151
osd/ReplicatedPG: clear watches on change after applying repops
Reviewed-by: Samuel Just <sjust@redhat.com>
Sage Weil [Thu, 17 Mar 2016 22:00:10 +0000 (18:00 -0400)]
Merge pull request #7359 from songbaisen/song9
mon: consider pool size when creating pool
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 17 Mar 2016 21:59:47 +0000 (17:59 -0400)]
Merge pull request #7674 from majianpeng/bluestore-sync-transaction
os/bluestore: make bluestore_sync_transaction = true can work.
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 17 Mar 2016 21:59:26 +0000 (17:59 -0400)]
Merge pull request #7860 from majianpeng/bluestores-clone-overlay
os/bluestore: clone overlay data
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 17 Mar 2016 21:58:58 +0000 (17:58 -0400)]
Merge pull request #7930 from ceph/wip-debian-librgw-tests
debian: package librgw_file* tests
Sage Weil [Thu, 17 Mar 2016 21:53:23 +0000 (17:53 -0400)]
Merge remote-tracking branch 'gh/wip-strict-debian-deps'
Sage Weil [Thu, 17 Mar 2016 21:57:01 +0000 (17:57 -0400)]
Merge pull request #7957 from majianpeng/bluestore-read
os/filestore: require offset == length == 0 for full object read; add test
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Igor Fedotov <ifedotov@mirantis.com>
Sage Weil [Thu, 17 Mar 2016 21:56:06 +0000 (17:56 -0400)]
Merge pull request #8039 from gregsfortytwo/wip-14962-greg
osd/ReplicatedPG: be more careful about calling publish_stats_to_osd()
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Sage Weil [Thu, 17 Mar 2016 21:55:31 +0000 (17:55 -0400)]
Merge pull request #8096 from liewegas/wip-15073
osd: ensure new osdmaps commit before publishing them to pgs
Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Orit Wasserman [Tue, 15 Mar 2016 13:33:58 +0000 (14:33 +0100)]
rgw: use current period id when it is empty for mdlog list and shard lock/unlock
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
Yehuda Sadeh [Thu, 17 Mar 2016 18:06:37 +0000 (11:06 -0700)]
Merge pull request #8167 from theanalyst/mstart/rgw_ports
mstart: start rgw on different ports as well
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
Sage Weil [Mon, 14 Mar 2016 18:24:17 +0000 (14:24 -0400)]
osd: assert that we don't try to use an OSDMap > superblock.newest_map
handle_osd_map now adds OSDMaps to the cache as it receives them
but before they are stable. Ensure that we don't try to use them.
Signed-off-by: Sage Weil <sage@redhat.com>
Sage Weil [Mon, 14 Mar 2016 17:47:31 +0000 (13:47 -0400)]
osd: commit osdmaps before exposing them to PGs
handle_osd_map and the PGs use different sequencers when writing
their updates. We therefore need to make sure new osdmaps are
committed to disk before we expose them to PGs, lest they update
their info to reference a new osdmap that hasn't actually
committed yet.
This doesn't happen with FileStore because transactions are
ordered when they are queued, but it does affect BlueStore.
Fix by splitting handle_osd_map into two phases, one that just
persists stuff, and the second half that publishes the new maps to
the rest of the OSD.
Fixes: #15073
Signed-off-by: Sage Weil <sage@redhat.com>
Yehuda Sadeh [Thu, 17 Mar 2016 16:21:15 +0000 (09:21 -0700)]
Merge pull request #8170 from yehudasa/wip-rgw-sync-fixes-3
Wip rgw sync fixes 3
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Jianpeng Ma [Thu, 17 Mar 2016 16:18:48 +0000 (00:18 +0800)]
os/bluestore/BlueFS: Before reap ioct, it should wait io complete.
When change write mode of FileWrite(in _flush_range) from buffer to
direct. osd met segment fault.
This because call _close_writer don't check related ios whether
complete.
Signed-off-by: Jianpeng Ma <jianpeng.ma@intel.com>
Kefu Chai [Tue, 15 Mar 2016 12:07:11 +0000 (20:07 +0800)]
mon: ignore msg without session attached
there is chance that a connection gets reset, and the session attached
to a message that was sent over this connection is reset. i.e.
con->set_priv(NULL) in Monitor::ms_handle_reset(), but we are about to
handle_command() this message after the message is somehow requeued. so,
not all MonOpRequests have an attached Session, especially those are
re-dispatched. we could check conn->is_connected() everywhere, but
that's error-prone and hard to maintain. so, in this change:
* we need to check for the session before looking at it closer.
* hold a reference to it when holding it, because in another thread,
ms_handle_reset() could be freeing it.
Fixes: #15113
Signed-off-by: Kefu Chai <kchai@redhat.com>
Sage Weil [Tue, 15 Mar 2016 13:44:04 +0000 (09:44 -0400)]
mon: remove 'mds setmap' command
This command has no discernable purpose, and is difficult and
dangerous to support anyway.
Fixes: #15136
Signed-off-by: Sage Weil <sage@redhat.com>
Mykola Golub [Thu, 17 Mar 2016 12:46:21 +0000 (14:46 +0200)]
test: rbd-mirror: different log and asok location for local/remote contexts
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Mykola Golub [Thu, 17 Mar 2016 11:24:53 +0000 (13:24 +0200)]
rbd-mirror: make remote context respect env and argv config params
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Kefu Chai [Thu, 17 Mar 2016 10:14:41 +0000 (18:14 +0800)]
Merge pull request #8179 from zhjwpku/zhjwpku
doc/architecture.rst: remove redundant word "across"
Reviewed-by: Kefu Chai <kchai@redhat.com>
Zhao Junwang [Thu, 17 Mar 2016 09:34:51 +0000 (17:34 +0800)]
doc/architecture.rst: remove redundant word "across"
Signed-off-by: Zhao Junwang <zhjwpku@gmail.com>
Mykola Golub [Thu, 17 Mar 2016 09:14:13 +0000 (11:14 +0200)]
rbd-mirror: command line options should override environment
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Jianjian Huo [Thu, 17 Mar 2016 00:17:49 +0000 (17:17 -0700)]
os/bluestore: rename need_size to want_size in StupidAllocator.
Allocate() could return extent with size < need_size, so rename it per
Sage's suggestion.
Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
Jianjian Huo [Mon, 14 Mar 2016 05:12:50 +0000 (22:12 -0700)]
os/bluestore: avoid duplicated searches during allocating free extents
When StupidAllocator searches for free extents, if hint is not 0(most times),
it will search extents starting from hint and up in each applicable bin,
if not found, then search all extents in those bins again.
If the extent to find(>= needs) exists below hint and is not in the choose_bin(),
let's say it's in the bin_X; then during this twice searches, all extents from
hint and up in bins before bin_X will be searched twice. This patch will eliminate
those unnecessary searches.
Signed-off-by: Jianjian Huo <samuel.huo@gmail.com>
Samuel Just [Mon, 14 Mar 2016 23:08:13 +0000 (16:08 -0700)]
features: deprecate CEPH_FEATURE_OSD_PROXY_FEATURES
Can't be removed until CEPH_FeATURE_OSD_MIN_SIZE_RECOVERY is also
ready.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 14 Mar 2016 23:05:26 +0000 (16:05 -0700)]
features: deprecate CEPH_FEATURE_OSD_MIN_SIZE_RECOVERY
Can't be removed until CEPH_FEATUERE_OSD_PROXY_METADATA goes
as well.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 14 Mar 2016 23:00:52 +0000 (16:00 -0700)]
features: deprecate CEPH_FEATURE_OSD_TRANSACTION_MAY_LAYOUT
We can't remove this until the other 1<<46's also go.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 14 Mar 2016 22:55:52 +0000 (15:55 -0700)]
features: deprecate CEPH_FEATURE_OSD_OBJECT_DIGEST
We can't actually reuse this until all of the 1<<46 bits are
ready.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 14 Mar 2016 22:53:12 +0000 (15:53 -0700)]
features,osd/: deprecate CEPH_FEATURE_OSD_REPOP feature bit
This allows us to rip out the code for supporting the old
repop format. We can't actually reuse this bit until all
4 1<<46 bits are deprecated for one release.
Signed-off-by: Samuel Just <sjust@redhat.com>
Samuel Just [Mon, 14 Mar 2016 22:42:25 +0000 (15:42 -0700)]
features: deprecate CEPH_FEATURE_OSD_SET_ALLOC_HINT
Signed-off-by: Samuel Just <sjust@redhat.com>