]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
8 years agoMerge pull request #11476 from dachary/wip-17162-jewel
Nathan Cutler [Wed, 1 Feb 2017 14:17:03 +0000 (15:17 +0100)]
Merge pull request #11476 from dachary/wip-17162-jewel

jewel: rgw: multisite doesn't retry RGWFetchAllMetaCR on failed lease

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #11470 from dachary/wip-17514-jewel
Nathan Cutler [Wed, 1 Feb 2017 14:15:01 +0000 (15:15 +0100)]
Merge pull request #11470 from dachary/wip-17514-jewel

jewel: rgw:bucket check remove _multipart_ prefix

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #10661 from dachary/wip-16871-jewel
Nathan Cutler [Wed, 1 Feb 2017 14:12:51 +0000 (15:12 +0100)]
Merge pull request #10661 from dachary/wip-16871-jewel

jewel: rgw: Have a flavor of bucket deletion in radosgw-admin to bypass garbage collection

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13187 from asheplyakov/jewel-bp-18729
Loic Dachary [Wed, 1 Feb 2017 13:02:56 +0000 (14:02 +0100)]
Merge pull request #13187 from asheplyakov/jewel-bp-18729

jewel: cli: ceph-disk: convert none str to str before printing it

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13153 from smithfarm/wip-no-firefly-on-centos
Nathan Cutler [Wed, 1 Feb 2017 12:29:50 +0000 (13:29 +0100)]
Merge pull request #13153 from smithfarm/wip-no-firefly-on-centos

jewel: tests: upgrade:hammer-x: install firefly only on Ubuntu 14.04

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13118 from smithfarm/wip-18274-jewel
Nathan Cutler [Wed, 1 Feb 2017 12:17:48 +0000 (13:17 +0100)]
Merge pull request #13118 from smithfarm/wip-18274-jewel

jewel: Memory leaks in object_list_begin and object_list_end

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #13025 from SUSE/wip-18605-jewel
Loic Dachary [Wed, 1 Feb 2017 12:15:09 +0000 (13:15 +0100)]
Merge pull request #13025 from SUSE/wip-18605-jewel

jewel: ceph-disk prepare writes osd log 0 with root owner

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #13106 from ceph/wip-cd-dev-option
Nathan Cutler [Wed, 1 Feb 2017 12:12:57 +0000 (13:12 +0100)]
Merge pull request #13106 from ceph/wip-cd-dev-option

qa/tasks: jewel backport -  ceph-deploy use of dev option

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
8 years agoMerge pull request #13062 from asheplyakov/jewel-bp-18379
Nathan Cutler [Wed, 1 Feb 2017 12:02:54 +0000 (13:02 +0100)]
Merge pull request #13062 from asheplyakov/jewel-bp-18379

jewel: msg/simple: clear_pipe when wait() is mopping up pipes

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12978 from asheplyakov/jewel-18581
Nathan Cutler [Wed, 1 Feb 2017 11:53:06 +0000 (12:53 +0100)]
Merge pull request #12978 from asheplyakov/jewel-18581

jewel: ReplicatedBackend: take read locks for clone sources during recovery

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #12755 from Abhishekvrshny/wip-18284-jewel
Nathan Cutler [Wed, 1 Feb 2017 11:33:19 +0000 (12:33 +0100)]
Merge pull request #12755 from Abhishekvrshny/wip-18284-jewel

jewel: Need CLI ability to add, edit and remove omap values with binary keys

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12677 from SUSE/wip-18104-jewel
Nathan Cutler [Wed, 1 Feb 2017 11:31:13 +0000 (12:31 +0100)]
Merge pull request #12677 from SUSE/wip-18104-jewel

jewel: mon: ceph osd down detection behaviour

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12291 from asheplyakov/jewel-18108
Nathan Cutler [Wed, 1 Feb 2017 11:28:50 +0000 (12:28 +0100)]
Merge pull request #12291 from asheplyakov/jewel-18108

jewel: msg/simple/Pipe: error decoding addr

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11998 from Abhishekvrshny/wip-17877-jewel
Nathan Cutler [Wed, 1 Feb 2017 11:27:46 +0000 (12:27 +0100)]
Merge pull request #11998 from Abhishekvrshny/wip-17877-jewel

jewel: FileStore: fiemap cannot be totally retrieved in xfs when the number of extents > 1364

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #11991 from asheplyakov/jewel-17909
Nathan Cutler [Wed, 1 Feb 2017 11:26:28 +0000 (12:26 +0100)]
Merge pull request #11991 from asheplyakov/jewel-17909

jewel: osd: limit omap data in push op

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
8 years agoMerge pull request #12045 from Abhishekvrshny/wip-17875-jewel
Matt Benjamin [Tue, 31 Jan 2017 16:40:41 +0000 (11:40 -0500)]
Merge pull request #12045 from Abhishekvrshny/wip-17875-jewel

jewel: rgw: file: remove spurious mount entries for RGW buckets

8 years agoMerge pull request #13161 from smithfarm/wip-lfn-upgrade-hammer
Loic Dachary [Tue, 31 Jan 2017 15:42:14 +0000 (16:42 +0100)]
Merge pull request #13161 from smithfarm/wip-lfn-upgrade-hammer

jewel: tests: add require_jewel_osds before upgrading last hammer node

Reviewed-by: Loic Dachary <ldachary@redhat.com>
8 years agoMerge pull request #12425 from SUSE/wip-18190-jewel
Nathan Cutler [Tue, 31 Jan 2017 15:36:17 +0000 (16:36 +0100)]
Merge pull request #12425 from SUSE/wip-18190-jewel

jewel: rbd-mirror: gmock warnings in bootstrap request unit tests

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13129 from smithfarm/wip-18558-jewel
Nathan Cutler [Tue, 31 Jan 2017 14:16:45 +0000 (15:16 +0100)]
Merge pull request #13129 from smithfarm/wip-18558-jewel

jewel: rbd: bench-write will crash if --io-size is 4G

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13155 from smithfarm/wip-18494-jewel
Nathan Cutler [Tue, 31 Jan 2017 14:15:30 +0000 (15:15 +0100)]
Merge pull request #13155 from smithfarm/wip-18494-jewel

jewel: rbd: [rbd-mirror] sporadic image replayer shut down failure

8 years agoMerge pull request #13128 from smithfarm/wip-18633-jewel
Nathan Cutler [Tue, 31 Jan 2017 14:14:31 +0000 (15:14 +0100)]
Merge pull request #13128 from smithfarm/wip-18633-jewel

jewel: rbd: [qa] crash in journal-enabled fsx run

http://tracker.ceph.com/issues/13512

8 years agoMerge pull request #13104 from idryomov/wip-fio-unmap-devices-jewel
Nathan Cutler [Tue, 31 Jan 2017 14:11:43 +0000 (15:11 +0100)]
Merge pull request #13104 from idryomov/wip-fio-unmap-devices-jewel

qa/tasks: backport rbd_fio fixes to jewel

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13156 from smithfarm/wip-18455-jewel
Nathan Cutler [Tue, 31 Jan 2017 14:10:03 +0000 (15:10 +0100)]
Merge pull request #13156 from smithfarm/wip-18455-jewel

jewel: rbd: Attempting to remove an image w/ incompatible features results in partial removal

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13157 from smithfarm/wip-18434-jewel
Nathan Cutler [Tue, 31 Jan 2017 13:59:56 +0000 (14:59 +0100)]
Merge pull request #13157 from smithfarm/wip-18434-jewel

jewel: rbd: Improve error reporting from rbd feature enable/disable

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #13168 from trociny/wip-18550-jewel
Nathan Cutler [Tue, 31 Jan 2017 13:59:04 +0000 (14:59 +0100)]
Merge pull request #13168 from trociny/wip-18550-jewel

jewel: librbd: metadata_set API operation should not change global config setting

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12739 from SUSE/wip-18323-jewel
Nathan Cutler [Tue, 31 Jan 2017 13:55:58 +0000 (14:55 +0100)]
Merge pull request #12739 from SUSE/wip-18323-jewel

jewel: JournalMetadata flooding with errors when being blacklisted

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12416 from SUSE/wip-18219-jewel
Nathan Cutler [Tue, 31 Jan 2017 13:54:19 +0000 (14:54 +0100)]
Merge pull request #12416 from SUSE/wip-18219-jewel

jewel: msg: don't truncate message sequence to 32-bits

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13115 from smithfarm/wip-18404-jewel
Nathan Cutler [Tue, 31 Jan 2017 13:52:00 +0000 (14:52 +0100)]
Merge pull request #13115 from smithfarm/wip-18404-jewel

jewel: mon: cache tiering: base pool last_force_resend not respected (racing read got wrong version)

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13045 from SUSE/wip-18553-jewel
Nathan Cutler [Tue, 31 Jan 2017 13:50:52 +0000 (14:50 +0100)]
Merge pull request #13045 from SUSE/wip-18553-jewel

jewel: mon: peon wrongly delete routed pg stats op before receive pg stats ack

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #13117 from smithfarm/wip-18280-jewel
Nathan Cutler [Tue, 31 Jan 2017 13:49:56 +0000 (14:49 +0100)]
Merge pull request #13117 from smithfarm/wip-18280-jewel

jewel: mon: osd flag health message is misleading

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #12320 from dachary/wip-18061-jewel
Matt Benjamin [Tue, 31 Jan 2017 13:34:22 +0000 (08:34 -0500)]
Merge pull request #12320 from dachary/wip-18061-jewel

jewel: rgw:fix for deleting objects name beginning and ending with underscores of one bucket using POST method of js sdk.

8 years agoMerge pull request #11759 from Abhishekvrshny/wip-17783-jewel
Matt Benjamin [Tue, 31 Jan 2017 13:31:34 +0000 (08:31 -0500)]
Merge pull request #11759 from Abhishekvrshny/wip-17783-jewel

jewel: rgw: json encode/decode of RGWBucketInfo missing index_type field

8 years agoMerge pull request #12153 from dachary/wip-18010-jewel
John Spray [Tue, 31 Jan 2017 13:10:46 +0000 (14:10 +0100)]
Merge pull request #12153 from dachary/wip-18010-jewel

jewel: Cleanly reject session evict command when in replay

8 years agoMerge pull request #12324 from dachary/wip-18103-jewel
John Spray [Tue, 31 Jan 2017 13:10:23 +0000 (14:10 +0100)]
Merge pull request #12324 from dachary/wip-18103-jewel

jewel: truncate can cause unflushed snapshot data lose

8 years agoMerge pull request #12783 from SUSE/wip-18413-jewel
John Spray [Tue, 31 Jan 2017 13:09:59 +0000 (14:09 +0100)]
Merge pull request #12783 from SUSE/wip-18413-jewel

jewel: cephfs: lookup of /.. in jewel returns -ENOENT

8 years agoMerge pull request #12921 from xiaoxichen/wip-18520-jewel
John Spray [Tue, 31 Jan 2017 13:08:56 +0000 (14:08 +0100)]
Merge pull request #12921 from xiaoxichen/wip-18520-jewel

Jewel: speed up readdir by skipping unwanted dn

8 years agoMerge pull request #13119 from smithfarm/wip-18565-jewel
John Spray [Tue, 31 Jan 2017 13:08:30 +0000 (14:08 +0100)]
Merge pull request #13119 from smithfarm/wip-18565-jewel

jewel: MDS crashes on missing metadata object

8 years agoMerge pull request #13120 from smithfarm/wip-18551-jewel
John Spray [Tue, 31 Jan 2017 13:08:20 +0000 (14:08 +0100)]
Merge pull request #13120 from smithfarm/wip-18551-jewel

jewel: ceph-fuse crash during snapshot tests

8 years agoMerge pull request #13123 from smithfarm/wip-18282-jewel
John Spray [Tue, 31 Jan 2017 13:08:01 +0000 (14:08 +0100)]
Merge pull request #13123 from smithfarm/wip-18282-jewel

jewel: monitor cannot start because of FAILED assert(info.state == MDSMap::STATE_STANDBY)

8 years agoMerge pull request #13125 from smithfarm/wip-18195-jewel
John Spray [Tue, 31 Jan 2017 13:07:52 +0000 (14:07 +0100)]
Merge pull request #13125 from smithfarm/wip-18195-jewel

jewel: cephfs: fix missing ll_get for ll_walk

8 years agoMerge pull request #13126 from smithfarm/wip-18192-jewel
John Spray [Tue, 31 Jan 2017 13:07:41 +0000 (14:07 +0100)]
Merge pull request #13126 from smithfarm/wip-18192-jewel

jewel: standby-replay daemons can sometimes miss events

8 years agotests: add require_jewel_osds before upgrading last hammer node 13161/head
Nathan Cutler [Fri, 27 Jan 2017 21:27:18 +0000 (22:27 +0100)]
tests: add require_jewel_osds before upgrading last hammer node

Note: this commit was inspired by
http://github.com/ceph/ceph-qa-suite/commit/50758a4810794d265c5d36a71d1e16799251a00d

As of 10.2.4, when upgrading a cluster from hammer to jewel, after the last
node is upgraded the MON will put the cluster into HEALTH_WARN and say: "all
OSDs are running jewel or later but the 'require_jewel_osds' osdmap flag is not
set". The release notes say:

    This is a signal for the admin to do "ceph osd set require_jewel_osds" – by
    doing this, the upgrade path is complete and no more pre-Jewel OSDs may be
    added to the cluster.

Fixes: http://tracker.ceph.com/issues/18719
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13049 from SUSE/wip-18433-jewel
Nathan Cutler [Tue, 31 Jan 2017 10:19:39 +0000 (11:19 +0100)]
Merge pull request #13049 from SUSE/wip-18433-jewel

jewel: rados bench seq must verify the hostname

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #13040 from SUSE/wip-fs-thrash-jewel
Nathan Cutler [Tue, 31 Jan 2017 07:40:52 +0000 (08:40 +0100)]
Merge pull request #13040 from SUSE/wip-fs-thrash-jewel

jewel: tests: run fs/thrash on xfs instead of btrfs

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #13029 from SUSE/wip-18611-jewel
Nathan Cutler [Tue, 31 Jan 2017 07:39:35 +0000 (08:39 +0100)]
Merge pull request #13029 from SUSE/wip-18611-jewel

jewel: cephfs: client segfault on ceph_rmdir path /

Reviewed-by: John Spray <john.spray@redhat.com>
8 years agoMerge pull request #12875 from asheplyakov/jewel-bp-18485
Nathan Cutler [Tue, 31 Jan 2017 07:34:46 +0000 (08:34 +0100)]
Merge pull request #12875 from asheplyakov/jewel-bp-18485

jewel: osd/PG: publish PG stats when backfill-related states change

Reviewed-by: Sage Weil <sage@redhat.com>
8 years agoMerge pull request #12789 from SUSE/wip-18417-jewel
Nathan Cutler [Tue, 31 Jan 2017 07:32:58 +0000 (08:32 +0100)]
Merge pull request #12789 from SUSE/wip-18417-jewel

jewel: osd: leveldb corruption leads to Operation not permitted not handled and assert

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #12761 from SUSE/wip-18402-jewel
Nathan Cutler [Tue, 31 Jan 2017 07:28:22 +0000 (08:28 +0100)]
Merge pull request #12761 from SUSE/wip-18402-jewel

jewel: tests: objecter_requests workunit fails on wip branches

Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoMerge pull request #11947 from SUSE/wip-17884-jewel
Nathan Cutler [Tue, 31 Jan 2017 07:10:20 +0000 (08:10 +0100)]
Merge pull request #11947 from SUSE/wip-17884-jewel

jewel: mon: OSDs marked OUT wrongly after monitor failover

Reviewed-by: Kefu Chai <kchai@redhat.com>
8 years agoMerge pull request #11508 from SUSE/wip-17583-jewel
Nathan Cutler [Tue, 31 Jan 2017 07:07:40 +0000 (08:07 +0100)]
Merge pull request #11508 from SUSE/wip-17583-jewel

jewel: utime.h: fix timezone issue in round_to_* funcs.

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
8 years agoRevert "use the create option during instantiation" 13106/head
Vasu Kulkarni [Thu, 26 Jan 2017 21:21:30 +0000 (13:21 -0800)]
Revert "use the create option during instantiation"

jewel cephfs still uses old Filesystem initializtion method

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agouse dev option instead of dev-commit
Vasu Kulkarni [Thu, 15 Dec 2016 22:11:00 +0000 (14:11 -0800)]
use dev option instead of dev-commit

Fixes: http://tracker.ceph.com/issues/18736
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
8 years agoMerge pull request #13169 from linuxbox2/jewel-mg-errortrans
Matt Benjamin [Mon, 30 Jan 2017 18:25:23 +0000 (13:25 -0500)]
Merge pull request #13169 from linuxbox2/jewel-mg-errortrans

jewel:rgw: fix interface compliance of RGWCivetWeb::write_data()

8 years agoMerge pull request #12323 from dachary/wip-18024-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:26:37 +0000 (13:26 +0100)]
Merge pull request #12323 from dachary/wip-18024-jewel

jewel: rbd: FAILED assert(m_processing == 0) while running test_lock_fence.sh

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12649 from xiaoxichen/wip-18278-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:25:48 +0000 (13:25 +0100)]
Merge pull request #12649 from xiaoxichen/wip-18278-jewel

jewel: rbd: librbd: use proper snapshot when computing diff parent overlap

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12741 from SUSE/wip-18320-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:24:22 +0000 (13:24 +0100)]
Merge pull request #12741 from SUSE/wip-18320-jewel

jewel: rbd status: json format has duplicated/overwritten key

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12753 from Abhishekvrshny/wip-18288-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:23:44 +0000 (13:23 +0100)]
Merge pull request #12753 from Abhishekvrshny/wip-18288-jewel

jewel: rbd-mirror: image sync object map reload logs message

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12756 from Abhishekvrshny/wip-18276-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:23:09 +0000 (13:23 +0100)]
Merge pull request #12756 from Abhishekvrshny/wip-18276-jewel

jewel: rbd-nbd: invalid error code for "failed to read nbd request" messages

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12822 from SUSE/wip-18450-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:22:37 +0000 (13:22 +0100)]
Merge pull request #12822 from SUSE/wip-18450-jewel

jewel: tests: update rbd/singleton/all/formatted-output.yaml to support ceph-ci

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12909 from dillaman/wip-18290-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:21:25 +0000 (13:21 +0100)]
Merge pull request #12909 from dillaman/wip-18290-jewel

jewel: librbd: properly order concurrent updates to the object map

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
8 years agoMerge pull request #12529 from SUSE/wip-18270-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:20:07 +0000 (13:20 +0100)]
Merge pull request #12529 from SUSE/wip-18270-jewel

jewel: rbd: add image id block name prefix APIs

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoMerge pull request #12322 from dachary/wip-18110-jewel
Nathan Cutler [Mon, 30 Jan 2017 12:18:32 +0000 (13:18 +0100)]
Merge pull request #12322 from dachary/wip-18110-jewel

jewel: diff calculate can hide parent extents when examining first snapshot in clone

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
8 years agoceph-disk: convert none str to str before printing it 13187/head
Kefu Chai [Tue, 3 Jan 2017 12:40:00 +0000 (20:40 +0800)]
ceph-disk: convert none str to str before printing it

Error('somethings goes wrong', e) is thrown if exception `e` is caught
in ceph-disk, where e is not a string. so we can not just concat it in
Error's __str__(). so cast it to str before doing so.

introduced by d0e29c7

Fixes: http://tracker.ceph.com/issues/18371
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 5e0dd1e7df43a3be589d17878714756a22052d8e)

8 years agorbd-mirror: fix gmock warnings in bootstrap request unit tests 12425/head
Mykola Golub [Tue, 6 Dec 2016 21:19:54 +0000 (23:19 +0200)]
rbd-mirror: fix gmock warnings in bootstrap request unit tests

Fixes: http://tracker.ceph.com/issues/18156
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 376026d7b24c77a59ef95d0f66686494caf0e9d0)

8 years agoqa/workunits/rbd: test_status_in_pool_dir: explicitly check grep return value
Mykola Golub [Fri, 2 Dec 2016 08:10:52 +0000 (10:10 +0200)]
qa/workunits/rbd: test_status_in_pool_dir: explicitly check grep return value

Otherwise, it does not work as supposed to work in statements like below:

 set -e
 test_status_in_pool_dir ... && ...

(e.g. in wait_for_status_in_pool_dir)

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 7c078eda0fc260f6a885fa43f377b47844867d12)

8 years agorbd-mirror: make 'rbd mirror image resync' work after split-brain
Mykola Golub [Tue, 29 Nov 2016 09:44:05 +0000 (11:44 +0200)]
rbd-mirror: make 'rbd mirror image resync' work after split-brain

Fixes: http://tracker.ceph.com/issues/18051
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 6cb1ed485f89f30fe6dda31e77e16e23f9b5b2ab)

8 years agorbd-mirror: split-brain issues should be clearly visible in mirror status
Mykola Golub [Tue, 29 Nov 2016 09:40:14 +0000 (11:40 +0200)]
rbd-mirror: split-brain issues should be clearly visible in mirror status

Fixed: http://tracker.ceph.com/issues/16991
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit cccca67d5f898c43207a19a6e029a1abb86efbcb)

8 years agoqa/workunits/rbd: use image id when probing for image presence
Mykola Golub [Sun, 27 Nov 2016 14:27:51 +0000 (16:27 +0200)]
qa/workunits/rbd: use image id when probing for image presence

This fixes a race in resync tests leading to false negative results.

Fixes: http://tracker.ceph.com/issues/18048
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit c23f56b9835f4e59d72f20a2218de8236574e65f)

8 years agoqa/workunits/rbd: check status also in pool dir after asok commands
Mykola Golub [Mon, 3 Oct 2016 07:10:33 +0000 (10:10 +0300)]
qa/workunits/rbd: check status also in pool dir after asok commands

wait_for_image_replay_stopped returns not when the state is stopped,
but when the state is not replaying. So a race was possible when an
asok command was running when the previos stop command was still in
progress, leading to unexpected results.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 2882f8c01a42ee3cfe22a838b64f21c93cf84d16)

Conflicts:
qa/workunits/rbd/rbd_mirror.sh (tests for not backported features)

8 years agoqa/workunits/rbd: wait for image deleted before checking health
Mykola Golub [Tue, 2 Aug 2016 17:06:17 +0000 (20:06 +0300)]
qa/workunits/rbd: wait for image deleted before checking health

This is a fixup to the previous commit.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit a5f63f726146c2c230d172f6909d8ca1ad46895a)

8 years agoqa/workunits/rbd: wait for image deleted before checking health
Mykola Golub [Thu, 28 Jul 2016 11:45:56 +0000 (14:45 +0300)]
qa/workunits/rbd: wait for image deleted before checking health

When a primiry image is being deleted, the mirrored image might
temporary be reported in error state, before deletion is propagated.

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 8dbe42d34520d0b44b189ae4d8b96559752a57da)

8 years agoqa/workunits/rbd: small fixup and improvements for rbd-mirror tests
Mykola Golub [Thu, 28 Jul 2016 11:49:37 +0000 (14:49 +0300)]
qa/workunits/rbd: small fixup and improvements for rbd-mirror tests

- log to stderr;
- log status if a `wait_for` function failed;
- don't needlessly sleep in `wait_for` functions after the last
  unsuccessful iteration;
- make `wait_for_pool_images` work for image removal case;
- fix `wait_for_pool_images` reset timeout (last_count set).

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit fdb971a2660111d35f0a3077f17a9ca85ca2ef54)

8 years agoMerge pull request #13043 from SUSE/wip-18570-jewel
Nathan Cutler [Sun, 29 Jan 2017 12:22:49 +0000 (13:22 +0100)]
Merge pull request #13043 from SUSE/wip-18570-jewel

jewel: Python Swift client commands in Quick Developer Guide don't match configuration in vstart.sh

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
8 years agoPrimaryLogPG::try_lock_for_read: give up if missing 12978/head
Samuel Just [Wed, 18 Jan 2017 18:24:13 +0000 (10:24 -0800)]
PrimaryLogPG::try_lock_for_read: give up if missing

The only users calc_*_subsets might try to read_lock an object which is
missing on the primary.  Returning false in those cases is perfectly
reasonable and avoids the problem.

Fixes: http://tracker.ceph.com/issues/18583
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 3833440adea6f8bcb0093603c3a9d16360ed57ec)

8 years agoReplicatedBackend: take read locks for clone sources during recovery
Samuel Just [Wed, 23 Nov 2016 23:41:13 +0000 (15:41 -0800)]
ReplicatedBackend: take read locks for clone sources during recovery

Otherwise, we run the risk of a clone source which hasn't actually
come into existence yet being used if we grab a clone which *just*
got added the the ssc, but has not yet actually had time to be
created (can't rely on message ordering here since recovery messages
don't necessarily order with client IO!).

Fixes: http://tracker.ceph.com/issues/17831
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 68defc2b0561414711d4dd0a76bc5d0f46f8a3f8)

Conflicts:
src/osd/ReplicatedBackend.cc:
  PGBackend::failed_push() takes a single pg_shard_t in jewel
src/osd/ReplicatedPG.h:
  trivial: get_obc() is not declared as override in jewel,
           no pgb_{set,clear}_object_snap_mapping() in jewel

8 years agoMerge pull request #13166 from smithfarm/wip-drop-ext4-test
vasukulkarni [Sun, 29 Jan 2017 01:58:45 +0000 (17:58 -0800)]
Merge pull request #13166 from smithfarm/wip-drop-ext4-test

tests: Remove ext4 option from rados:thrash tests

8 years agorgw: fix interface compliance of RGWCivetWeb::write_data() 13169/head
Radoslaw Zarzynski [Sat, 28 Jan 2017 19:17:10 +0000 (14:17 -0500)]
rgw: fix interface compliance of RGWCivetWeb::write_data()

Backport of (portions of) civet web error handling bugfixes.

Adapted from 3a9f50c55e0be6733893a7ae1a5b4f504a3b0f61.

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agolibrbd: metadata_set API operation should not change global config setting 13168/head
Mykola Golub [Mon, 9 Jan 2017 17:31:21 +0000 (18:31 +0100)]
librbd: metadata_set API operation should not change global config setting

Fixes: http://tracker.ceph.com/issues/18465
Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 27465b5916b55ac3c2846c74b89f4362ad17ff1e)

Conflicts:
    src/librbd/Operations.cc (after jewel set_metadata migrated to Operations)

8 years agotests: Remove ext4 option from rados:thrash tests 13166/head
Nathan Cutler [Sat, 28 Jan 2017 11:11:08 +0000 (12:11 +0100)]
tests: Remove ext4 option from rados:thrash tests

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
(manual cherry-pick from ceph-qa-suite 1fcc4457144278f77dd8462ecf34948a11dcb2a9)

8 years agoMerge pull request #13160 from ceph/revert-13068-jewel-rgw-multipart-upload-copy
Yehuda Sadeh [Fri, 27 Jan 2017 20:57:32 +0000 (12:57 -0800)]
Merge pull request #13160 from ceph/revert-13068-jewel-rgw-multipart-upload-copy

Revert "jewel: rgw: multipart upload copy"

Reverting, will require further testing before merging. Some tests fail.

8 years agoRevert "jewel: rgw: multipart upload copy" 13160/head
Matt Benjamin [Fri, 27 Jan 2017 20:53:47 +0000 (15:53 -0500)]
Revert "jewel: rgw: multipart upload copy"

8 years agoMerge pull request #13068 from linuxbox2/jewel-rgw-multipart-upload-copy
Matt Benjamin [Fri, 27 Jan 2017 18:04:46 +0000 (13:04 -0500)]
Merge pull request #13068 from linuxbox2/jewel-rgw-multipart-upload-copy

DNM: jewel:rgw: multipart upload copy

8 years agorbd: enabling/disabling rbd feature should report missing dependency 13157/head
Nathan Cutler [Fri, 27 Jan 2017 17:41:25 +0000 (18:41 +0100)]
rbd: enabling/disabling rbd feature should report missing dependency

Currently while enabling or disabling rbd feature command does not
give missing dependency for eg: attempting to enable the journaling
feature on an image that doesn't have the exclusive-lock feature
enabled should give missing dependency error message.

Fixes: http://tracker.ceph.com/issues/16985
Reported-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
(manual cherry pick of bd023cfec8e9aaa8fb0095a8d9534c21b3209020)

8 years agolibrbd: don't remove an image w/ incompatible features 13156/head
Dongsheng Yang [Fri, 23 Dec 2016 02:00:41 +0000 (21:00 -0500)]
librbd: don't remove an image w/ incompatible features

Fixes: http://tracker.ceph.com/issues/18315
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
(cherry picked from commit f76127b5e617923d14adb62bfb836a635c14f209)

8 years agorbd-mirror: avoid processing new events after stop requested 13155/head
Jason Dillaman [Fri, 6 Jan 2017 20:59:22 +0000 (15:59 -0500)]
rbd-mirror: avoid processing new events after stop requested

Fixes: http://tracker.ceph.com/issues/18441
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit d30873b269441815b5fc7de14c7d9a1077a17d8d)

8 years agotests: upgrade: install firefly only on Ubuntu 14.04 13153/head
Nathan Cutler [Fri, 27 Jan 2017 14:29:27 +0000 (15:29 +0100)]
tests: upgrade: install firefly only on Ubuntu 14.04

The upgrade:hammer-x/f-h-x-offline test installs firefly, but firefly does not
build on CentOS anymore, just Ubuntu 14.04.

References: http://tracker.ceph.com/issues/18089
Signed-off-by: Nathan Cutler <ncutler@suse.com>
8 years agorgw: minor optimization 13068/head
Yehuda Sadeh [Fri, 30 Sep 2016 00:44:08 +0000 (17:44 -0700)]
rgw: minor optimization

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 4919dc9987c6376d3d4e143702c26417449524c5)

8 years agorgw: rgw_obj_key use adjustment in multipart copy part
Yehuda Sadeh [Fri, 30 Sep 2016 00:43:00 +0000 (17:43 -0700)]
rgw: rgw_obj_key use adjustment in multipart copy part

This fixes a case where objects start with double underscore.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 29fece3545cc1df404a25eec46706b16f893a5df)

8 years agorgw: multipart copy-part handle versionId
Yehuda Sadeh [Fri, 30 Sep 2016 00:43:35 +0000 (17:43 -0700)]
rgw: multipart copy-part handle versionId

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 53521efffb1cb92e5f5ce992d4127bf9498d7c33)

8 years agorgw: multipart copy part minor parsing cleanup
Yehuda Sadeh [Thu, 29 Sep 2016 21:24:13 +0000 (14:24 -0700)]
rgw: multipart copy part minor parsing cleanup

no need for range.size()

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 6e9b824d5d4017239d58b4752ebc43bfad8f698d)

8 years agorgw: multipart copy, check for empty bucket, improve logging
Yehuda Sadeh [Thu, 29 Sep 2016 21:11:43 +0000 (14:11 -0700)]
rgw: multipart copy, check for empty bucket, improve logging

also reduce log level for non critical user errors.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 2bcb3d286b230ef917d5ba96c8276a942f544689)

8 years agorgw: multipart copy part, chunked read
Yehuda Sadeh [Thu, 29 Sep 2016 21:07:14 +0000 (14:07 -0700)]
rgw: multipart copy part, chunked read

Don't read the entire range from source object, read it in parts.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
(cherry picked from commit 4049e47a0cfc1eef6efd502590b68ba7234589d3)

8 years agorgw: doc: add multipart uploads copy part feature as supported
Javier M. Mellid [Tue, 26 Jul 2016 12:56:50 +0000 (14:56 +0200)]
rgw: doc: add multipart uploads copy part feature as supported

Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
(cherry picked from commit 8a7ebeee2ff3f10ceb23b7fa43e43c3c450efe22)

8 years agorgw: multipart uploads copy part support
Javier M. Mellid [Tue, 26 Jul 2016 12:53:44 +0000 (14:53 +0200)]
rgw: multipart uploads copy part support

Add multipart uploads copy part feature.

Fixes: http://tracker.ceph.com/issues/12790
Signed-off-by: Javier M. Mellid <jmunhoz@igalia.com>
(cherry picked from commit 949480c2e9760855ed6a0501d364d5e766c8207d)
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
8 years agorbd: bench-write should return error if io-size >= 4G 13129/head
Gaurav Kumar Garg [Tue, 10 Jan 2017 14:25:13 +0000 (15:25 +0100)]
rbd: bench-write should return error if io-size >= 4G

Currently if user perform bench-write with io-size > 4G
then its crashing because currently during memory allocation
bufferptr taking size of buffer as a unsigned and io-size > 4G
will overflow with unsigned. so during memset operation it will
try to set io_size size of memory area pointed by bufferptr,
(bufferptr area is:  (4G - io_size)), so it will cause
segmentation fault.

Fix is to return error if io-size >= 4G

Fixes: http://tracker.ceph.com/issues/18422
Reported-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Gaurav Kumar Garg <garg.gaurav52@gmail.com>
(cherry picked from commit 6ab73e5f420e89e19b52e39dab28fa4c94e00197)

Conflicts:
src/tools/rbd/action/BenchWrite.cc - jewel has rbd_bencher b(&image)
            while in master this has become rbd_bencher b(&image, io_type,
            io_size)

8 years agojournal: don't hold future lock during assignment 13128/head
Jason Dillaman [Fri, 20 Jan 2017 19:26:43 +0000 (14:26 -0500)]
journal: don't hold future lock during assignment

It's possible that the future raced with its owner and reaches
an empty reference count. This was resulting in the future being
destructed while its lock was still held.

Fixes: http://tracker.ceph.com/issues/18618
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 0f21ceef8336e35ca16148a9d58f511037911418)

8 years agomds: fix dropping events in standby replay 13126/head
John Spray [Fri, 18 Nov 2016 21:11:54 +0000 (21:11 +0000)]
mds: fix dropping events in standby replay

Ensure that we never drop the last segment during
standby replay -- this avoids the case where we
start ignoring events because we think we're
still waiting to see a subtreemap.

Fixes: http://tracker.ceph.com/issues/17954
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit e3f2fa356f419cbac8d72bd068313f64769ef3af)

8 years agocephfs: fix missing ll_get for ll_walk 13125/head
Gui Hecheng [Thu, 17 Nov 2016 10:01:22 +0000 (18:01 +0800)]
cephfs: fix missing ll_get for ll_walk

Fixs: http://tracker.ceph.com/issues/18086

Signed-off-by: Gui Hecheng <guihecheng@cmss.chinamobile.com>
(cherry picked from commit ad846d10d5fbab2ded5fddc47475b95a788c223c)

Conflicts:
src/client/Client.cc - jewel has fill_stat(in, attr) instead of
                               fill_statx(in, mask, stx) in master

8 years agomon/MDSMonitor: fix iterating over mutated map 13123/head
John Spray [Thu, 8 Dec 2016 16:49:04 +0000 (16:49 +0000)]
mon/MDSMonitor: fix iterating over mutated map

If a standby is promoted, this was modifying the
standby_daemons map that we were iterating over
in maybe_promote_standby.

Fixes: http://tracker.ceph.com/issues/18166
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit db3deb80d6e4a8e8ca7a2cf6278d5d5cb24eb616)

8 years agomon: use clearer code structure
Patrick Donnelly [Thu, 7 Jul 2016 23:09:56 +0000 (19:09 -0400)]
mon: use clearer code structure

The failed map is not changed in the first if, so the second if should be an
else.

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit adba77e34c3fbf983d221729dd340afcc942778b)