]>
git.apps.os.sepia.ceph.com Git - ceph.git/log
Yan, Zheng [Wed, 15 Feb 2017 03:45:26 +0000 (11:45 +0800)]
test/libcephfs: avoid buffer overflow when testing ceph_getdents()
The buffer size should be at least "2 * sizeof(struct dirent)".
Otherwise, the code that checks dentry '..' overflow.
Fixes: http://tracker.ceph.com/issues/18941
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit
fa6671345b8f3a82dcd232f99e55a982b0a641f1 )
Nathan Cutler [Thu, 13 Apr 2017 16:20:05 +0000 (18:20 +0200)]
Merge pull request #13609 from smithfarm/wip-19064-kraken
kraken: AttributeError: Thrasher instance has no attribute 'ceph_objectstore_tool'
Reviewed-by: Kefu Chai <kchai@redhat.com>
Nathan Cutler [Thu, 13 Apr 2017 14:43:50 +0000 (16:43 +0200)]
Merge pull request #13790 from shinobu-x/wip-18298-kraken
kraken: mon: force_create_pg could leave pg stuck in creating state
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Nathan Cutler [Thu, 13 Apr 2017 14:41:16 +0000 (16:41 +0200)]
Merge pull request #13500 from shinobu-x/wip-18587-kraken
kraken: mon: 'osd crush move ...' doesnt work on osds
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Thu, 13 Apr 2017 14:39:51 +0000 (16:39 +0200)]
Merge pull request #13490 from shinobu-x/wip-18820-kraken
kraken: osd: --flush-journal: sporadic segfaults on exit
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Thu, 13 Apr 2017 14:35:45 +0000 (16:35 +0200)]
Merge pull request #13295 from asheplyakov/kraken-bp-18497
kraken: osd: publish PG stats when backfill-related states change
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Nathan Cutler [Thu, 13 Apr 2017 14:30:00 +0000 (16:30 +0200)]
Merge pull request #13253 from liewegas/wip-enxio-kraken
kraken: osd: do not send ENXIO on misdirected op by default
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Nathan Cutler [Thu, 13 Apr 2017 14:28:08 +0000 (16:28 +0200)]
Merge pull request #14322 from shinobu-x/wip-18619-kraken
kraken: osd: ceph degraded and misplaced status output inaccurate
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Nathan Cutler [Thu, 13 Apr 2017 09:11:44 +0000 (11:11 +0200)]
Merge pull request #13216 from ovh/bp-osd-updateable-throttles-kraken
kraken: osd: allow client throttler to be adjusted on-fly, without restart
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Nathan Cutler [Thu, 13 Apr 2017 08:45:10 +0000 (10:45 +0200)]
Merge pull request #14321 from shinobu-x/wip-kraken-15025
kraken: osd: New added OSD always down when full flag is set
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Nathan Cutler [Thu, 13 Apr 2017 08:42:31 +0000 (10:42 +0200)]
Merge pull request #13091 from dzafman/wip-18624-kraken
kraken: osd: Revert "PrimaryLogPG::failed_push: update missing as well"
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 21:52:06 +0000 (23:52 +0200)]
Merge pull request #12790 from SUSE/wip-18418-kraken
kraken: osd: leveldb corruption leads to Operation not permitted not handled and assert
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 21:03:40 +0000 (23:03 +0200)]
Merge pull request #13172 from smithfarm/wip-18713-kraken
kraken: rgw: radosgw-admin period update reverts deleted zonegroup
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 21:02:35 +0000 (23:02 +0200)]
Merge pull request #13176 from smithfarm/wip-18709-kraken
kraken: rgw: multisite: sync status reports master is on a different period
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 21:01:42 +0000 (23:01 +0200)]
Merge pull request #13864 from smithfarm/wip-19156-kraken
kraken: rgw: typo in rgw_admin.cc
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 21:00:37 +0000 (23:00 +0200)]
Merge pull request #14137 from smithfarm/wip-19331-kraken
kraken: rgw: upgrade to multisite v2 fails if there is a zone without zone info
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 20:59:18 +0000 (22:59 +0200)]
Merge pull request #14141 from smithfarm/wip-19342-kraken
kraken: rgw: "period update" does not remove short_zone_ids of deleted zones
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 20:57:16 +0000 (22:57 +0200)]
Merge pull request #14142 from smithfarm/wip-19354-kraken
kraken: rgw: multisite: some 'radosgw-admin data sync' commands hang
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 20:56:22 +0000 (22:56 +0200)]
Merge pull request #14144 from smithfarm/wip-19356-kraken
kraken: rgw: when converting region_map we need to use rgw_zone_root_pool
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Yuri Weinstein [Wed, 12 Apr 2017 17:08:40 +0000 (10:08 -0700)]
Merge pull request #14485 from zmc/wip-upgrade-openstack
suites/upgrade/hammer-jewel-x: Add volumes
Reviewed-by: Yuri Weinstein <yweins@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 14:42:37 +0000 (16:42 +0200)]
Merge pull request #14098 from shinobu-x/wip-19192-kraken
kraken: tools: ceph-brag fails to count "in" mds
Reviewed-by: Kefu Chai <kchai@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 14:11:30 +0000 (16:11 +0200)]
Merge pull request #14155 from smithfarm/wip-18947-kraken
kraken: rbd-mirror: additional test stability improvements
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 14:10:47 +0000 (16:10 +0200)]
Merge pull request #14153 from smithfarm/wip-18892-kraken
kraken: librbd: Incomplete declaration for ContextWQ in librbd/Journal.h
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 14:09:55 +0000 (16:09 +0200)]
Merge pull request #14151 from smithfarm/wip-18822-kraken
kraken: tests: run-rbd-unit-tests.sh assert in lockdep_will_lock, TestLibRBD.ObjectMapConsistentSnap
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 14:06:58 +0000 (16:06 +0200)]
Merge pull request #14149 from smithfarm/wip-18777-kraken
kraken: rbd: rbd --pool=x rename y z does not work
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 13:50:51 +0000 (15:50 +0200)]
Merge pull request #14315 from smithfarm/wip-19460-kraken
kraken: build/ops: spec file mentions non-existent ceph-create-keys systemd unit file, causing ceph-mon units to not be enabled via preset
Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 13:42:27 +0000 (15:42 +0200)]
Merge pull request #13875 from smithfarm/wip-19172-kraken
kraken: rgw: S3 create bucket should not do response in json
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
Nathan Cutler [Wed, 12 Apr 2017 13:34:55 +0000 (15:34 +0200)]
Merge pull request #13873 from smithfarm/wip-19164-kraken
kraken: rgw: radosgw-admin: add the 'object stat' command to usage
Reviewed-by: Casey Bodley <cbodley@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 13:32:54 +0000 (15:32 +0200)]
Merge pull request #13245 from smithfarm/wip-18776-kraken
kraken: rbd: qemu crash triggered by network issues
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 13:32:17 +0000 (15:32 +0200)]
Merge pull request #13247 from smithfarm/wip-18456-kraken
kraken: rbd: attempting to remove an image with incompatible features results in partial removal
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 13:31:24 +0000 (15:31 +0200)]
Merge pull request #13132 from rjfd/wip-18609-kraken
kraken: librbd: allow to open an image without opening parent image
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 13:17:09 +0000 (15:17 +0200)]
Merge pull request #13185 from smithfarm/wip-18721-kraken
kraken: build/ops: systemd restarts Ceph Mon to quickly after failing to start
Reviewed-by: Boris Ranto <branto@redhat.com>
Reviewed-by: Wido den Hollander <wido@42on.com>
Nathan Cutler [Wed, 12 Apr 2017 11:55:16 +0000 (13:55 +0200)]
Merge pull request #13845 from smithfarm/wip-19147-kraken
kraken: rgw: DUMPABLE flag is cleared by setuid preventing coredumps
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 11:43:09 +0000 (13:43 +0200)]
Merge pull request #13555 from smithfarm/wip-18707-kraken
kraken: mds: failed filelock.can_read(-1) assertion in Server::_dir_is_nonempty
Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 11:37:49 +0000 (13:37 +0200)]
Merge pull request #13488 from shinobu-x/wip-18955-kraken
kraken: ceph-disk: Fix getting wrong group name when --setgroup in bluestore
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 10:46:00 +0000 (12:46 +0200)]
Merge pull request #13112 from jcsp/wip-18678
kraken: mds: finish clientreplay requests before requesting active state
Reviewed-by: Yan, Zheng <zyan@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 08:52:42 +0000 (10:52 +0200)]
Merge pull request #14048 from asheplyakov/reindex-on-pg-split-kraken
kraken: osd: pg log split does not rebuild index for parent or child
Reviewed-by: Kefu Chai <kchai@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 08:47:12 +0000 (10:47 +0200)]
Merge pull request #13116 from smithfarm/wip-18403-kraken
kraken: mon: cache tiering: base pool last_force_resend not respected (racing read got wrong version)
Reviewed-by: Kefu Chai <kchai@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 08:41:21 +0000 (10:41 +0200)]
Merge pull request #13487 from shinobu-x/wip-18819-kraken
kraken: common: possible lockdep false alarm for ThreadPool lock
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Nathan Cutler [Wed, 12 Apr 2017 08:36:12 +0000 (10:36 +0200)]
Merge pull request #14147 from smithfarm/wip-18769-kraken
kraken: rbd: [ FAILED ] TestJournalTrimmer.RemoveObjectsWithOtherClient
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
Nathan Cutler [Wed, 12 Apr 2017 00:53:06 +0000 (02:53 +0200)]
Merge pull request #13026 from SUSE/wip-18606-kraken
kraken: tools: ceph-disk prepare writes osd log 0 with root owner
Reviewed-by: Loic Dachary <ldachary@redhat.com>
Zack Cerza [Tue, 11 Apr 2017 15:25:50 +0000 (09:25 -0600)]
suites/upgrade-hammer-jewel-x: Add volumes
Signed-off-by: Zack Cerza <zack@redhat.com>
Loic Dachary [Sun, 9 Apr 2017 20:40:21 +0000 (22:40 +0200)]
Merge pull request #13497 from shinobu-x/wip-17821-kraken
kraken: ceph-disk: does not support cluster names different than 'ceph'
Reviewed-by: Loic Dachary <ldachary@redhat.com>
David Zafman [Wed, 18 Jan 2017 16:33:40 +0000 (08:33 -0800)]
osd: Calculate degraded and misplaced more accurately
Calculate num_object_copies based on the larger of pool size,
up set size and acting set size.
Calculate num_objects_degraded as the difference between num_object_copies
and all copies found on acting set and backfilling up set OSDs.
Calculate num_objects_misplaced as all copies on acting set OSDs not in up set
less copies that have been backfilled to up set OSDs.
Fixes: http://tracker.ceph.com/issues/18619
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
8423bc40759cca137f61e7b755411719a84369d4 )
Mingxin Liu [Mon, 13 Mar 2017 15:41:58 +0000 (23:41 +0800)]
osd: don't share osdmap with objecter when preboot
Signed-off-by: Mingxin Liu <mingxin@xsky.com>
(cherry picked from commit
a5a3644eecc49b4eea890c6999fe87536495dcbe )
Sébastien Han [Thu, 30 Mar 2017 07:32:31 +0000 (09:32 +0200)]
systemd: remove all occurence of ceph-create-keys
ceph-create-keys unit file does not exist anymore so there is no need to
call it.
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit
205cff12b3fe577a02db119ed3084d5c46ba76ce )
Sébastien Han [Wed, 29 Mar 2017 13:47:56 +0000 (15:47 +0200)]
systemd: remove ceph-create-keys from presets
ceph-create-keys unit file was removed here:
* https://github.com/ceph/ceph/commit/
8bcb4646b6b9846bb965cdec3ca2a21eb3b26bab
* https://github.com/ceph/ceph/commit/
dc5fe8d415858358bd0baf5d8dce0a753f5e0cea
As a consequence the systemctl preset command now fails to run since the
unit does not exist anymore. Due to the redirection in /dev/null we
don't know what's happening.
Ultimately the mon unit doesn't get enabled and the mon service won't
start after reboot.
Removing the old/non-existent unit makes the command succeed now.
Signed-off-by: Sébastien Han <seb@redhat.com>
(cherry picked from commit
151c0ce213186b2196531ce74478ed7671eb9819 )
Jason Dillaman [Wed, 29 Mar 2017 01:00:31 +0000 (21:00 -0400)]
Merge pull request #14163 from trociny/wip-19368
kraken: librbd: possible race in ExclusiveLock handle_peer_notification
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
David Zafman [Tue, 28 Mar 2017 22:25:39 +0000 (15:25 -0700)]
Merge pull request #14200 from dzafman/wip-18533-again
Fixes: http://tracker.ceph.com/issues/19391
Reviewed-by: Josh Durgin <jdurgin@redhat.com>
David Zafman [Tue, 21 Mar 2017 00:28:45 +0000 (17:28 -0700)]
filestore, tools: Fix logging of DBObjectMap check() repairs
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
1704f62c0831e6b07138f7dd14a89fef3c9ed2c1 )
David Zafman [Fri, 3 Mar 2017 23:04:02 +0000 (15:04 -0800)]
osd: Simplify DBObjectMap by no longer creating complete tables
Bump the version for new maps to 3
Make clone less efficient but simpler
Add rename operation (use instead of clone/unlink)
For now keep code that understands version 2 maps
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
738156a99ed1caf61e5a8230eb8048360056c08e )
No ghobject_t::operator>() so use Kraken cmp_bitwise() instead
Need to use MIN_GHOBJ/MAX_GHOBJ instead of std::min/std::max
David Zafman [Thu, 16 Feb 2017 00:17:32 +0000 (16:17 -0800)]
ceph-osdomap-tool: Fix seg fault with large amount of check error output
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
1dda0411f4fbb14ce1e0062da9f14ec3af505d39 )
David Zafman [Wed, 15 Feb 2017 23:02:33 +0000 (15:02 -0800)]
osd: Add automatic repair for DBObjectMap bug
Add repair command to ceph-osdomap-tool too
Under some situations the previous rm_keys() code would
generated a corrupt complete table. There is no way to
figure out what the table should look like now. By removing
the entries we fix the corruption and aren't much worse off
because the corruption caused some deleted keys to re-appear.
This doesn't breaking the parent/child relationship during
repair because some of the keys may still be contained
in the parent.
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
4cd3c74c928a32e065ed9543d6c91d8718a6ae3d )
Conflicts:
src/os/filestore/DBObjectMap.h (trivial)
David Zafman [Wed, 15 Feb 2017 22:59:40 +0000 (14:59 -0800)]
ceph-osdomap-tool: Fix tool exit status
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
666f14ed90655a2d1bedde8561949625db7a9e6c )
Samuel Just [Fri, 10 Feb 2017 23:51:42 +0000 (15:51 -0800)]
DBObjectMap: rewrite rm_keys and merge_new_complete
Leverage the updated in_complete_region and needs_parent to simplify
these methods.
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit
c4dffb68eaafe724f7fdae93a4285a7f8003ea29 )
Samuel Just [Fri, 10 Feb 2017 23:50:57 +0000 (15:50 -0800)]
DBObjectMap: strengthen in_complete_region post condition
Previously, in_complete_region didn't guarantee anything about
where it left complete_iter pointing. It will be handy for
complete_iter to be pointing at the lowest interval which ends
after to_test. Make it so.
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit
97b35f4d7d4862da4b6f50ecaef0d292a671fd04 )
Samuel Just [Fri, 10 Feb 2017 23:48:57 +0000 (15:48 -0800)]
DBObjectMap: fix next_parent()
The previous implementation assumed that
lower_bound(parent_iter->key()) always leaves the iterator
on_parent(). There isn't any guarantee, however, that that
key isn't present on the child as well.
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit
74a7631d0938d7b44894f022224eab10a90d5cec )
Samuel Just [Thu, 9 Feb 2017 18:47:59 +0000 (10:47 -0800)]
test_object_map: add tests to trigger some bugs related to 18533
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit
f131dbcf5bb17107c029f942a57e9bf4432a26ee )
David Zafman [Tue, 14 Feb 2017 20:40:33 +0000 (12:40 -0800)]
test: Add ceph_test_object_map to make check tests
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
0e97a01bd7291458881ee53cece2d887f6333669 )
David Zafman [Thu, 9 Feb 2017 02:56:27 +0000 (18:56 -0800)]
ceph-osdomap-tool: Add --debug and only show internal logging if enabled
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
5fb2b2d13953979e5da9f571ab8c4b0b510b8368 )
David Zafman [Thu, 9 Feb 2017 02:55:48 +0000 (18:55 -0800)]
osd: DBOjectMap::check: Dump complete mapping when inconsistency found
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
fcf1e17c645e8fad5216c3e59627c817e5c858c7 )
David Zafman [Wed, 8 Feb 2017 23:38:51 +0000 (15:38 -0800)]
test_object_map: Use ASSERT_EQ() for check() so failure doesn't stop testing
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
053a273cbc02d6902a4bb1f11db1ea946498df3a )
David Zafman [Wed, 8 Feb 2017 18:02:40 +0000 (10:02 -0800)]
tools: Check for overlaps in internal "complete" table for DBObjectMap
Changed check to return an error count and fix tool error message
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
e5e8eb962db6187ea19b96ba29ac83469c90b4ea )
Conflicts:
src/os/filestore/DBObjectMap.h (trivial)
David Zafman [Wed, 8 Feb 2017 17:40:49 +0000 (09:40 -0800)]
tools: Add dump-headers command to ceph-osdomap-tool
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
f4101591ad701a62fe027c4744ca8ea505f44bdc )
Conflicts:
src/os/filestore/DBObjectMap.h (trivial)
David Zafman [Tue, 7 Feb 2017 05:09:42 +0000 (21:09 -0800)]
tools: Add --oid option to ceph-osdomap-tool
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
2d94889e9ee3359017b1efd560f3557ce03ccee6 )
David Zafman [Tue, 7 Feb 2017 05:31:18 +0000 (21:31 -0800)]
osd: Remove unnecessary assert and assignment in DBObjectMap
Fix and add comment(s)
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit
937e6a03ea4692cc44d53faa0615f8e808c9eb03 )
Mykola Golub [Tue, 28 Mar 2017 13:55:11 +0000 (15:55 +0200)]
kraken: librbd: possible race in ExclusiveLock handle_peer_notification
This is a direct commit to kraken -- the master diverged after
ManagedLock refactoring and is not affected.
Fix: http://tracker.ceph.com/issues/19368
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
Jason Dillaman [Mon, 21 Nov 2016 20:31:43 +0000 (15:31 -0500)]
qa/workunits/rbd: resolve potential rbd-mirror race conditions
Fixes: http://tracker.ceph.com/issues/18935
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
63eae97afc1a92412525468263fb8696a243ebac )
Boris Ranto [Wed, 8 Feb 2017 22:47:57 +0000 (23:47 +0100)]
librbd: Include WorkQueue.h since we use it
We use m_work_queue of type ContextWQ in handle_update function but we
do not include common/WorkQueue.h that defines ContextWQ. This results
in dereference of an incomplete type and causes build error in latest
Fedora rawhide (future 26).
Fixes: http://tracker.ceph.com/issues/18862
Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit
480f82847ad1fc7959f1fe5a90761a5a24550993 )
Jason Dillaman [Thu, 19 Jan 2017 01:54:22 +0000 (20:54 -0500)]
librbd: avoid possible recursive lock when racing acquire lock
Fixes: http://tracker.ceph.com/issues/17447
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
5e46e8eb664f573bd70ae7c96a6d9a98b0deb09e )
Gaurav Kumar Garg [Mon, 30 Jan 2017 12:03:20 +0000 (13:03 +0100)]
rbd: destination pool should be source pool if it is not specified
Currently if user perform image rename operation and user give pool
name as a optional parameter (--pool=<pool_name>) then currently
its taking this optional pool name for source pool and making
destination pool name default pool name.
With this fix if user provide pool name as a optional pool name
parameter then it will consider both soruce and destination pool
name as optional parameter pool name.
Fixes: http://tracker.ceph.com/issues/18326
Reported-by: МАРК КОРЕНБЕРГ <socketpair@gmail.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
(cherry picked from commit
01f23aa99fb694da326ab408e75b33c640ce660b )
Jason Dillaman [Mon, 30 Jan 2017 22:41:51 +0000 (17:41 -0500)]
journal: stop processing removal after error
Fixed: http://tracker.ceph.com/issues/18738
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit
040004f53f7d334fc9452e3f5fd80169cad5f65e )
Orit Wasserman [Sun, 12 Mar 2017 10:11:28 +0000 (12:11 +0200)]
rgw: use rgw_zone_root_pool for region_map like is done in hammer
Fixes: http://tracker.ceph.com/issues/19195
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
(cherry picked from commit
c91dd6d9efd148e0fe0f027dde537e977de9aa26 )
lu.shasha [Mon, 27 Feb 2017 07:52:43 +0000 (15:52 +0800)]
rgw: use separate http_manager for read_sync_status
concurrent users of read_sync_status() use different cr managers, when get_resource must
use http_manager related to the cr manager.
Fixes: http://tracker.ceph.com/issues/19236
Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
(cherry picked from commit
c412024889f8995d98096ac863bafee71624bd70 )
Casey Bodley [Thu, 9 Mar 2017 20:24:08 +0000 (15:24 -0500)]
rgw: clear old zone short ids on period update
the short ids of old, removed zones were being kept in the period to
guard against hash collisions with new zones
but for a hash collision to cause a wrong object to sync, that object
would have to be uploaded simultaneously to two different zones that had
the same short id
to avoid this, we just have to prevent the period from containing two
colliding zones at the same time - we don't have to remember old zone
short ids forever
Fixes: http://tracker.ceph.com/issues/15618
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit
9c45633c836c966ab1f75ea2b1ad3fa0a4886600 )
Orit Wasserman [Thu, 9 Mar 2017 11:03:24 +0000 (13:03 +0200)]
rgw: skip conversion of zones without any zoneparams
Fixes: http://tracker.ceph.com/issues/19231
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
(cherry picked from commit
36cf5a5c8179c6313346b2e29286c537c6fefce8 )
Orit Wasserman [Thu, 9 Mar 2017 09:16:26 +0000 (11:16 +0200)]
rgw: better debug information for upgrade
Signed-off-by: Orit Wasserman <owasserm@redhat.com>
(cherry picked from commit
e9f3bf8eab1dd46a92f54b0f7afe1f4c0e4204db )
Danny Al-Gaaf [Tue, 31 Jan 2017 17:01:32 +0000 (18:01 +0100)]
rgw/rgw_rados.cc: prefer ++operator for non-primitive iterators
Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
(cherry picked from commit
7086cf9a73f2ec1eb96c0e752beb1b74fca18570 )
Kefu Chai [Mon, 6 Mar 2017 03:33:27 +0000 (11:33 +0800)]
brag: count the number of mds in fsmap not in mdsmap
this change was introduced in
4e9b953
Fixes: http://tracker.ceph.com/issues/19192
Signed-off-by: Peng Zhang <zphj1987@gmail.com>
(cherry picked from commit
2d25a9c0c760664d3de33ecca0e0272c1031cd46 )
Sage Weil [Fri, 17 Feb 2017 17:46:38 +0000 (12:46 -0500)]
osd/PGLog: avoid return by value on ginormous log
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
a6ead998771753d95382abd082f451e6f67744e4 )
Sage Weil [Fri, 17 Feb 2017 19:50:38 +0000 (14:50 -0500)]
osd/PGLog: reindex properly on pg log split
When pg_log_t::split_out_child() runs it builds the list, which means the
old indexes are wrong (the point to bad memory), but index() will not
rebuild them because ever since
b858e869e78927dccebaa350d246bd74af7f1de9
we won't rebuild them if they are already built.
Fix that by calling unindex() before the split.
Further, the new child log also needs to be indexed. Fix that too.
Fixes: http://tracker.ceph.com/issues/18975
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
643ae42cf27f16dd6ed4e1402acc0483bb9fca74 )
Abhishek Lekshmanan [Thu, 16 Feb 2017 16:40:50 +0000 (17:40 +0100)]
doc: rgw: make a note abt system users vs normal users
Mention that system users don't behave like normal users in context of
normal rest operations
Fixes: http://tracker.ceph.com/issues/18889
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit
a47bcf70c9f51a6601b809cba219f5615b204d34 )
root [Tue, 7 Feb 2017 09:07:36 +0000 (14:37 +0530)]
rgw: Let the object stat command be shown in the usage
Fixes: http://tracker.ceph.com/issues/19013
Signed-off-by: Pavan Rallabhandi <PRallabhandi@walmartlabs.com>
(cherry picked from commit
0fe76f83d19be098ef54fb0492a376fef3aa9e23 )
Ronak Jain [Wed, 22 Feb 2017 06:33:46 +0000 (12:03 +0530)]
rgw: Fixes typo in rgw_admin.cc
Issue: http://tracker.ceph.com/issues/19026
Signed-off-by: Ronak Jain <ronakjain@outlook.in>
(cherry picked from commit
58837ef6ce8cbcfc2cac29d5f833b2cf62d8737a )
Brad Hubbard [Mon, 27 Feb 2017 03:06:59 +0000 (13:06 +1000)]
rgw: set dumpable flag after setuid post
ff0e521
ff0e521 resolved the issue for the other daemons but not for rgw since
it calls setuid (via civetweb) after the new code sets PR_SET_DUMPABLE.
Add another prctl call before wait_shutdown.
Fixes: http://tracker.ceph.com/issues/19089
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
(cherry picked from commit
bc458d39630b599e0e1ca9fe25ad7455fcffdd10 )
Sage Weil [Sat, 4 Mar 2017 17:22:44 +0000 (11:22 -0600)]
Merge pull request #13501 from shinobu-x/wip-18371-kraken
kraken: ceph-disk: error on _bytes2str
Adam C. Emerson [Tue, 15 Nov 2016 00:33:56 +0000 (19:33 -0500)]
common: Unskew clock
In preparation to deglobalizing CephContext, remove the CephContext*
parameter to ceph_clock_now() and ceph::real_clock::now() that carries
a configurable offset.
Signed-off-by: Adam C. Emerson <aemerson@redhat.com>
(cherry picked from commit
750ad8340c827d2f8896e1251e45f921dddb9f30 )
Conflicts:
src/mon/PGMonitor.cc
Sage Weil [Tue, 31 Jan 2017 17:31:42 +0000 (12:31 -0500)]
mon/PGMonitor: fix force_create_pg
We weren't carefully registering the creating PG. In
particular, the current osd mappings (acting, up, etc.)
weren't getting filled in, which meant the PG wasn't
(necessarily) mapped to an OSD until the OSDMap updated
and we recalculated mappings.
Fix by sending us through the common code path so that
all fields get updated properly.
Fixes: http://tracker.ceph.com/issues/18298
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
9a41a0b7289fa59f4b747a63e152e88af6e8abd5 )
Conflicts:
src/mon/PGMonitor.cc
Sage Weil [Tue, 31 Jan 2017 17:31:12 +0000 (12:31 -0500)]
mon/PGMonitor: clean up some send_pg_creates cruft
ff1fd4b4b69b52ef5ae734115b1d733aad03b03e already removed most of
this; remove the now useless stub and clean up the unneede con
check.
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
b79a85e80a1a660c5a5746270edb86d3f09cd983 )
Conflicts:
src/mon/PGMonitor.cc
Sage Weil [Fri, 16 Dec 2016 22:42:26 +0000 (17:42 -0500)]
mon/MonCommands: remove send_pg_creates from cmd table
Forgot this in
6cbdd6750cf330047d52817b9ee9af31a7d318ae
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit
15f17bcca0bde2ed15bb45d67659f4ebbd4cb516 )
Kefu Chai [Fri, 3 Mar 2017 03:14:48 +0000 (11:14 +0800)]
Merge pull request #13757 from liewegas/wip-pgp-kraken
qa/tasks: set pgp = pg num on thrashing finish
Reviewed-by: Kefu Chai <kchai@redhat.com>
Kefu Chai [Sun, 19 Feb 2017 05:10:44 +0000 (13:10 +0800)]
test: Thrasher: do not update pools_to_fix_pgp_num if nothing happens
we should not update pools_to_fix_pgp_num if the pool is not expanded or
the pg_num is not increased due to pgs being created. this prevent us
from fixing the pgp_num after done with thrashing if we actually did
nothing when fixing the pgp_num when thrashing, but we removed the pool
from pools_to_fix_pgp_num after set_pool_pgpnum() returns.
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
c0f0cde399a80cea617c115417e5390a63ec674e )
Kefu Chai [Sun, 12 Feb 2017 05:16:57 +0000 (13:16 +0800)]
test: Thrasher: update pgp_num of all expanded pools if not yet
otherwise wait_until_healthy will fail after timeout as seeing warning
like:
HEALTH_WARN pool cephfs_data pg_num 182 > pgp_num 172
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit
136483a8f940710cbe40804afa7af2eac6728d50 )
Zack Cerza [Wed, 1 Mar 2017 22:16:17 +0000 (15:16 -0700)]
Merge pull request #13707 from zmc/wip-openstack-volumes-kraken
qa/suites/ceph-deploy: Drop OpenStack volume count
Zack Cerza [Tue, 28 Feb 2017 20:07:15 +0000 (13:07 -0700)]
qa/suites/ceph-deploy: Drop OpenStack volume count
Looks like we only need two per node, since there is only one OSD per
node, and ceph-deploy wants two disks per OSD to account for the
journal.
Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit
87072e277c9ef259c9ee2ae1f761e252aa216713 )
Zack Cerza [Mon, 27 Feb 2017 19:23:10 +0000 (12:23 -0700)]
Merge pull request #13673 from zmc/wip-openstack-volumes-kraken
qa/suites/{ceph-ansible,rest}: OpenStack volumes
Zack Cerza [Mon, 27 Feb 2017 16:14:41 +0000 (09:14 -0700)]
qa/suites/rest: Openstack volumes
Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit
99d942145f4206c00aca30c0bb74f0edc4bac798 )
Zack Cerza [Mon, 27 Feb 2017 16:06:26 +0000 (09:06 -0700)]
qa/suites/ceph-ansible: Openstack volumes
Signed-off-by: Zack Cerza <zack@redhat.com>
(cherry picked from commit
964b983bdbd412311bce56184d12d1b6d43c7f28 )
Brad Hubbard [Sat, 25 Feb 2017 23:23:43 +0000 (09:23 +1000)]
Merge pull request #13485 from shinobu-x/wip-18644-kraken
kraken: osd: condition object_info_t encoding on required (not up) features
Reviewed-by: Nathan Cutler <ncutler@suse.com>
Zack Cerza [Sat, 25 Feb 2017 00:22:11 +0000 (17:22 -0700)]
Merge pull request #13641 from zmc/wip-fs-openstack-kraken
qa/suites/fs: Add openstack volume configuration