]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agotest_multi: add a test for zone redirect 9571/head
Yehuda Sadeh [Sun, 17 Sep 2017 12:10:41 +0000 (05:10 -0700)]
test_multi: add a test for zone redirect

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw-admin: add option to configure redirect_zone
Yehuda Sadeh [Sun, 17 Sep 2017 09:30:25 +0000 (02:30 -0700)]
rgw-admin: add option to configure redirect_zone

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agorgw: add a default redirect field for zones
Yehuda Sadeh [Wed, 8 Jun 2016 00:15:11 +0000 (17:15 -0700)]
rgw: add a default redirect field for zones

We'll send a redirect response instead of a 404 in a zone that has
this configured. This is useful when setting a new zone that needs to
catch up with older zone. If an object/bucket is not found then we
redirect client to the other zone.

Signed-off-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #17639 from tchaikov/wip-doc-ceph-disk
Kefu Chai [Tue, 12 Sep 2017 04:42:14 +0000 (12:42 +0800)]
Merge pull request #17639 from tchaikov/wip-doc-ceph-disk

doc: update ceph-disk with a state-transition diagram

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #17538 from dzafman/wip-21272
David Zafman [Tue, 12 Sep 2017 03:12:27 +0000 (20:12 -0700)]
Merge pull request #17538 from dzafman/wip-21272

Add export and remove ceph-objectstore-tool command option

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17537 from mychoxin/yuanxin_remove_submit
Sage Weil [Tue, 12 Sep 2017 02:05:25 +0000 (21:05 -0500)]
Merge pull request #17537 from mychoxin/yuanxin_remove_submit

os/bluestore: remove useless function submit

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17606 from ceph/wip-bz1478598
Alfredo Deza [Mon, 11 Sep 2017 19:44:42 +0000 (15:44 -0400)]
Merge pull request #17606 from ceph/wip-bz1478598

ceph-volume allow filtering by `uuid`, do not require osd id

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume lvm.trigger just split the osd_id once 17606/head
Alfredo Deza [Mon, 11 Sep 2017 16:32:08 +0000 (12:32 -0400)]
ceph-volume lvm.trigger just split the osd_id once

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests catch improper parsing of osd uuid
Alfredo Deza [Mon, 11 Sep 2017 16:30:34 +0000 (12:30 -0400)]
ceph-volume tests catch improper parsing of osd uuid

When the osd ID existed in the UUID in the same format (e.g. '1-') the
parsing would break returning a bogus UUID that is impossible to find

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agotests: remove 'ceph-' prefix from test node hostnames
Andrew Schoen [Fri, 8 Sep 2017 20:32:15 +0000 (15:32 -0500)]
tests: remove 'ceph-' prefix from test node hostnames

This updates our Vagrantfile to match the changes in ceph-ansible
introduced by https://github.com/ceph/ceph-ansible/commit/298a63c43

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume lvm.api PVolumes should filter by all matching tags, not just one
Alfredo Deza [Fri, 8 Sep 2017 16:25:57 +0000 (12:25 -0400)]
ceph-volume lvm.api PVolumes should filter by all matching tags, not just one

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests pv API should also match all pv_tags
Alfredo Deza [Fri, 8 Sep 2017 16:25:31 +0000 (12:25 -0400)]
ceph-volume tests pv API should also match all pv_tags

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests prove all volume tags have to match in vgs
Alfredo Deza [Fri, 8 Sep 2017 15:47:09 +0000 (11:47 -0400)]
ceph-volume tests prove all volume tags have to match in vgs

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #17377 from cbodley/wip-rgw-test-multi-encryption
Casey Bodley [Mon, 11 Sep 2017 17:42:00 +0000 (13:42 -0400)]
Merge pull request #17377 from cbodley/wip-rgw-test-multi-encryption

test/rgw: fix test_encrypted_object_sync for 3+ zones

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek@suse.com>
7 years agoMerge pull request #17102 from mychoxin/yuanxin_print_log_if_add_event_fail
Sage Weil [Mon, 11 Sep 2017 16:42:44 +0000 (11:42 -0500)]
Merge pull request #17102 from mychoxin/yuanxin_print_log_if_add_event_fail

msg/async: print error log if add_event fail

Reviewed-by: Pan Liu <liupan1111@gmail.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #16492 from yehudasa/wip-rgw-multi-log
Yuri Weinstein [Mon, 11 Sep 2017 15:31:04 +0000 (08:31 -0700)]
Merge pull request #16492 from yehudasa/wip-rgw-multi-log

rgw: multisite log tracing

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoMerge pull request #17400 from theanalyst/fix/rgw-set-attrs-mtime
Yuri Weinstein [Mon, 11 Sep 2017 15:28:46 +0000 (08:28 -0700)]
Merge pull request #17400 from theanalyst/fix/rgw-set-attrs-mtime

rgw: rgw_rados: set_attrs now sets the same time for BI & object

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Yehuda Sadeh <yehuda@redhat.com>
7 years agoMerge pull request #17638 from idryomov/wip-rbd-already-mapped-fixes
Jason Dillaman [Mon, 11 Sep 2017 14:58:06 +0000 (10:58 -0400)]
Merge pull request #17638 from idryomov/wip-rbd-already-mapped-fixes

krbd: rewrite "already mapped" code

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoceph-volume lvm.api all vg tags should match, not just one
Alfredo Deza [Fri, 8 Sep 2017 15:46:34 +0000 (11:46 -0400)]
ceph-volume lvm.api all vg tags should match, not just one

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests prove all tags have to match in lvs
Alfredo Deza [Thu, 7 Sep 2017 21:00:22 +0000 (17:00 -0400)]
ceph-volume tests prove all tags have to match in lvs

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.api all lv tags should match, not just one
Alfredo Deza [Thu, 7 Sep 2017 20:59:53 +0000 (16:59 -0400)]
ceph-volume lvm.api all lv tags should match, not just one

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.activate allow not using osd_id
Alfredo Deza [Thu, 7 Sep 2017 20:56:55 +0000 (16:56 -0400)]
ceph-volume lvm.activate allow not using osd_id

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests prove missing args.osd_id is fine
Alfredo Deza [Thu, 7 Sep 2017 20:54:19 +0000 (16:54 -0400)]
ceph-volume tests prove missing args.osd_id is fine

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume tests add is_root and lv fixtures to conftest
Alfredo Deza [Thu, 7 Sep 2017 20:51:43 +0000 (16:51 -0400)]
ceph-volume tests add is_root and lv fixtures to conftest

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc: update ceph-disk with a state transition diagram 17639/head
Kefu Chai [Mon, 11 Sep 2017 12:44:28 +0000 (20:44 +0800)]
doc: update ceph-disk with a state transition diagram

also, quote the variabls in source code with double quote.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotests: update unmap.t for "already mapped" warning 17638/head
Ilya Dryomov [Thu, 7 Sep 2017 14:05:20 +0000 (16:05 +0200)]
tests: update unmap.t for "already mapped" warning

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoMerge pull request #17621 from idryomov/wip-krbd-xfstests-blockdev
Mykola Golub [Mon, 11 Sep 2017 11:09:32 +0000 (14:09 +0300)]
Merge pull request #17621 from idryomov/wip-krbd-xfstests-blockdev

qa/suites/krbd: enable xfstests blockdev tests

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agokrbd: rewrite "already mapped" code
Ilya Dryomov [Thu, 7 Sep 2017 14:05:20 +0000 (16:05 +0200)]
krbd: rewrite "already mapped" code

The "already mapped" code, introduced in commit d6a66fc8f49b ("rbd:
before rbd map, warn if the image is already mapped") is broken:
because of a use-after-free on attribute strings, the warning isn't
even printed half the time.

Rewrite making use of udev enumeration filters and fix the interface
while at it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoMerge pull request #17453 from kungf/eversion_t_opt_max
Sage Weil [Sun, 10 Sep 2017 19:21:39 +0000 (14:21 -0500)]
Merge pull request #17453 from kungf/eversion_t_opt_max

osd_types: define max in eversion_t::max() to static

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17571 from jcsp/wip-21260
Sage Weil [Sun, 10 Sep 2017 19:20:30 +0000 (14:20 -0500)]
Merge pull request #17571 from jcsp/wip-21260

mon: fix dropping mgr metadata for active mgr (#21260)

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17572 from xiexingguo/wip-os-tool
Sage Weil [Sun, 10 Sep 2017 19:18:37 +0000 (14:18 -0500)]
Merge pull request #17572 from xiexingguo/wip-os-tool

tools/ceph_objectstore_tool: fix 'dup' unable to duplicate meta PG

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17585 from jdurgin/wip-recovery-delete-encoding-master
Sage Weil [Sun, 10 Sep 2017 19:18:13 +0000 (14:18 -0500)]
Merge pull request #17585 from jdurgin/wip-recovery-delete-encoding-master

MOSDPGRecoveryDelete[Reply]: bump header version

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17588 from kungf/aio_submit_size_change
Sage Weil [Sun, 10 Sep 2017 19:17:48 +0000 (14:17 -0500)]
Merge pull request #17588 from kungf/aio_submit_size_change

os/bluestore: shrink aio submit size to pending value

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17599 from tchaikov/wip-encoding-optional
Sage Weil [Sun, 10 Sep 2017 19:17:32 +0000 (14:17 -0500)]
Merge pull request #17599 from tchaikov/wip-encoding-optional

encoding: reset optional<> if it is uninitialized

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17600 from jecluis/wip-21309
Sage Weil [Sun, 10 Sep 2017 19:17:00 +0000 (14:17 -0500)]
Merge pull request #17600 from jecluis/wip-21309

mon/OSDMonitor: don't create pgs if pool was deleted

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agokrbd: factor out enumerate_devices()
Ilya Dryomov [Thu, 7 Sep 2017 14:05:20 +0000 (16:05 +0200)]
krbd: factor out enumerate_devices()

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agoMerge pull request #17298 from xiexingguo/wip-pg-null-obc-access
Sage Weil [Sat, 9 Sep 2017 20:02:08 +0000 (15:02 -0500)]
Merge pull request #17298 from xiexingguo/wip-pg-null-obc-access

osd/PrimaryLogPG: maybe_handle_manifest_detail - sanity check obc existence

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Amit Kumar <amitkuma@redhat.com>
7 years agoMerge pull request #17559 from dillaman/wip-21181
Mykola Golub [Sat, 9 Sep 2017 08:23:57 +0000 (11:23 +0300)]
Merge pull request #17559 from dillaman/wip-21181

qa/workunits/rbd: relax greps to support upgrade formatting change

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
7 years agoMerge pull request #17324 from smithfarm/wip-rbd-symlink
Kefu Chai [Sat, 9 Sep 2017 04:12:08 +0000 (12:12 +0800)]
Merge pull request #17324 from smithfarm/wip-rbd-symlink

build/ops: rpm: drop legacy librbd.so.1 symlink in /usr/lib64/qemu

Reviewed-by: Ken Dreyer <kdreyer@redhat.com>
Reviewed-by: Ademar de Souza Reis Jr <areis@redhat.com>
Reviewed-by: Boris Ranto <branto@redhat.com>
7 years agoMerge pull request #17512 from tchaikov/wip-chmod-x
Kefu Chai [Sat, 9 Sep 2017 04:09:59 +0000 (12:09 +0800)]
Merge pull request #17512 from tchaikov/wip-chmod-x

common,mon,osd,pybind: silence warning and remove executable mode bit

Reviewed-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #17539 from tchaikov/wip-21204
Kefu Chai [Sat, 9 Sep 2017 04:08:18 +0000 (12:08 +0800)]
Merge pull request #17539 from tchaikov/wip-21204

mon,option: set default value for mon_dns_srv_name

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17549 from iliul/fix-texttable-align
Kefu Chai [Sat, 9 Sep 2017 04:07:38 +0000 (12:07 +0800)]
Merge pull request #17549 from iliul/fix-texttable-align

tools: Modify "rados df" header's alignment

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoceph-objectstore-tool: Make pg removal require --force 17538/head
David Zafman [Sat, 9 Sep 2017 00:53:07 +0000 (17:53 -0700)]
ceph-objectstore-tool: Make pg removal require --force

Add new export-remove to combine the 2 operations

Fixes: http://tracker.ceph.com/issues/21272
Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoceph-objectstore-tool: Better messages for bad --journal-path
David Zafman [Sat, 9 Sep 2017 00:09:48 +0000 (17:09 -0700)]
ceph-objectstore-tool: Better messages for bad --journal-path

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Fix ceph-objectstore-tool test for standalone and latest code
David Zafman [Thu, 7 Sep 2017 03:41:50 +0000 (20:41 -0700)]
test: Fix ceph-objectstore-tool test for standalone and latest code

vstart.sh now defaults to bluestore, so specify filestore
Set environment for run-standalone.sh and cmake build
Create td/cot_dir as test directory
Crush output format change
Change dir into test directory
Give a little time after pool creation
Check for core files as ceph-helpers.sh does

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agotest: Move ceph-objectstore-tool test to standalone
David Zafman [Thu, 7 Sep 2017 03:40:37 +0000 (20:40 -0700)]
test: Move ceph-objectstore-tool test to standalone

Signed-off-by: David Zafman <dzafman@redhat.com>
7 years agoMerge pull request #17096 from ceph/wip-ansbile-fixes
Tamilarasi Muthamizhan [Fri, 8 Sep 2017 21:47:12 +0000 (14:47 -0700)]
Merge pull request #17096 from ceph/wip-ansbile-fixes

[qa/tests]: misc ceph-ansible fixes and udpate

7 years agoMerge pull request #17513 from Liuchang0812/wip-max-avail-in-df
Yuri Weinstein [Fri, 8 Sep 2017 20:41:07 +0000 (13:41 -0700)]
Merge pull request #17513 from Liuchang0812/wip-max-avail-in-df

mon: incorrect MAX AVAIL in "ceph df"

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #17533 into master
Patrick Donnelly [Fri, 8 Sep 2017 18:23:23 +0000 (11:23 -0700)]
Merge PR #17533 into master

* refs/remotes/upstream/pull/17533/head:
qa: log ceph-fuse kill/cleanup

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17506 into master
Patrick Donnelly [Fri, 8 Sep 2017 18:23:21 +0000 (11:23 -0700)]
Merge PR #17506 into master

* refs/remotes/upstream/pull/17506/head:
mds: reset Formatter on error

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17466 into master
Patrick Donnelly [Fri, 8 Sep 2017 18:23:19 +0000 (11:23 -0700)]
Merge PR #17466 into master

* refs/remotes/upstream/pull/17466/head:
qa: whitelist expected MDS_READ_ONLY for kcephfs test

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #17456 into master
Patrick Donnelly [Fri, 8 Sep 2017 18:23:17 +0000 (11:23 -0700)]
Merge PR #17456 into master

* refs/remotes/upstream/pull/17456/head:
mds: print subtrees only after merge

Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #17452 into master
Patrick Donnelly [Fri, 8 Sep 2017 18:23:15 +0000 (11:23 -0700)]
Merge PR #17452 into master

* refs/remotes/upstream/pull/17452/head:
Make standby-replay mds not migrate empty subtree when trimming cache
Make standby-replay mds avoid initiating subtree export

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agoMerge PR #17384 into master
Patrick Donnelly [Fri, 8 Sep 2017 18:23:12 +0000 (11:23 -0700)]
Merge PR #17384 into master

* refs/remotes/upstream/pull/17384/head:
ceph.in: validate service glob

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #16752 into master
Patrick Donnelly [Fri, 8 Sep 2017 18:23:10 +0000 (11:23 -0700)]
Merge PR #16752 into master

* refs/remotes/upstream/pull/16752/head:
client: NULL check before append value to bufferlist

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
7 years agoStop the mgr on node which is not client, this will ensure 17096/head
Vasu Kulkarni [Fri, 8 Sep 2017 17:00:49 +0000 (10:00 -0700)]
Stop the mgr on node which is not client, this will ensure
the client.0's mgr is active mgr for workunit to work.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoMerge pull request #16272 from liewegas/wip-balancer
Sage Weil [Fri, 8 Sep 2017 16:29:14 +0000 (11:29 -0500)]
Merge pull request #16272 from liewegas/wip-balancer

mgr/balancer: mgr module to automatically balance PGs across OSDs

Reviewed-by: John Spray <john.spray@redhat.com>
7 years agoos/bluestore: shrink aio submit size to pending value 17588/head
kungf [Fri, 8 Sep 2017 04:09:35 +0000 (12:09 +0800)]
os/bluestore: shrink aio submit size to pending value

Signed-off-by: kungf <yang.wang@easystack.cn>
7 years agoMerge pull request #17403 from ceph/wip-bz1485011
Andrew Schoen [Fri, 8 Sep 2017 15:43:44 +0000 (10:43 -0500)]
Merge pull request #17403 from ceph/wip-bz1485011

ceph-volume Persist non-lv devices for journals

Reviewed-by: Andrew Schoen aschoen@redhat.com
7 years agoMerge pull request #17603 from liewegas/wip-migration-twiddle
Sage Weil [Fri, 8 Sep 2017 15:32:08 +0000 (10:32 -0500)]
Merge pull request #17603 from liewegas/wip-migration-twiddle

doc: restructure bluestore migration insructions

Reviewed-by: David Galloway <dgallowa@redhat.com>
7 years agodoc: restructure bluestore migration insructions 17603/head
Sage Weil [Fri, 8 Sep 2017 15:13:49 +0000 (11:13 -0400)]
doc: restructure bluestore migration insructions

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #17602 from ceph/wip-blumig-doc
Sage Weil [Fri, 8 Sep 2017 15:05:27 +0000 (10:05 -0500)]
Merge pull request #17602 from ceph/wip-blumig-doc

doc: Updates to bluestore migration doc

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agodoc/rados/operations/bluestore-migration: Add instruction for evacuating 17602/head
David Galloway [Fri, 8 Sep 2017 14:46:21 +0000 (10:46 -0400)]
doc/rados/operations/bluestore-migration: Add instruction for evacuating
host

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agoMerge pull request #17011 from liewegas/wip-doc-bluestore-migration
Sage Weil [Fri, 8 Sep 2017 14:47:02 +0000 (09:47 -0500)]
Merge pull request #17011 from liewegas/wip-doc-bluestore-migration

doc/rados/operations/bluestore-migration: update docs a bit

7 years agoMerge pull request #17582 from ivancich/wip-fix-mclock-unittests
Kefu Chai [Fri, 8 Sep 2017 14:03:28 +0000 (22:03 +0800)]
Merge pull request #17582 from ivancich/wip-fix-mclock-unittests

test/common: unittest_mclock_priority_queue builds with "make" command

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agodoc/rados/operations/bluestore-migration: Fix typo in bluestore migration doc
David Galloway [Thu, 7 Sep 2017 23:51:45 +0000 (19:51 -0400)]
doc/rados/operations/bluestore-migration: Fix typo in bluestore migration doc

Signed-off-by: David Galloway <dgallowa@redhat.com>
7 years agomon: fix dropping mgr metadata for active mgr 17571/head
John Spray [Thu, 7 Sep 2017 13:44:36 +0000 (09:44 -0400)]
mon: fix dropping mgr metadata for active mgr

drop_standby() was killing it and it was only getting added
back in certain locations.  Instead, make the metadata
drop conditional and only do it in the places we're
really dropping the daemon, not when we're promoting
it to active.

Fixes: http://tracker.ceph.com/issues/21260
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoqa/tasks/mgr: regression test for 21260
John Spray [Thu, 7 Sep 2017 13:42:29 +0000 (09:42 -0400)]
qa/tasks/mgr: regression test for 21260

(aka http://tracker.ceph.com/issues/21260)

Fixes: http://tracker.ceph.com/issues/21260
Signed-off-by: John Spray <john.spray@redhat.com>
7 years agoqa/suites/krbd: enable xfstests blockdev tests 17621/head
Ilya Dryomov [Fri, 8 Sep 2017 13:45:34 +0000 (15:45 +0200)]
qa/suites/krbd: enable xfstests blockdev tests

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
7 years agomon/OSDMonitor: don't create pgs if pool was deleted 17600/head
Joao Eduardo Luis [Fri, 8 Sep 2017 11:48:12 +0000 (12:48 +0100)]
mon/OSDMonitor: don't create pgs if pool was deleted

A pool may be deleted while in the process of creating pgs. If that
happens, we should not queue additional pgs from that pool to be
created.

Fixes: http://tracker.ceph.com/issues/21309
Signed-off-by: Joao Eduardo Luis <joao@suse.de>
7 years agoMerge pull request #17569 from liewegas/wip-21293
Sage Weil [Fri, 8 Sep 2017 12:19:42 +0000 (07:19 -0500)]
Merge pull request #17569 from liewegas/wip-21293

Revert "os/bluestore: pass strict flag to bluestore_blob_use_tracker_t::equal()"

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
7 years agoMerge pull request #17352 from liewegas/wip-21171
Sage Weil [Fri, 8 Sep 2017 12:16:40 +0000 (07:16 -0500)]
Merge pull request #17352 from liewegas/wip-21171

os/bluestore: drop deferred_submit_lock, fix aio leak

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Pan Liu <liupan1111@gmail.com>
7 years agoencoding: reset optional<> if it is uninitialized 17599/head
Kefu Chai [Fri, 8 Sep 2017 11:28:09 +0000 (19:28 +0800)]
encoding: reset optional<> if it is uninitialized

* should reset it, in case we reuse it after initializing it.
* initialize the value of `p` using the C++11 style initializer, so it
  is zero-initialized.
* revert 2a83ef3c which disables a warning of:
 ./include/encoding.h:317:7: warning: 't' may be used uninitialized in
    this function [-Wmaybe-uninitialized]
 where the `t` is the temporary variable for initializing the value of
 `p`.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17593 from shashalu/fix-clean-up-apply_epoch
Jos Collin [Fri, 8 Sep 2017 11:15:59 +0000 (11:15 +0000)]
Merge pull request #17593 from shashalu/fix-clean-up-apply_epoch

rgw: drop unused function apply_epoch

Reviewed-by: Jos Collin <jcollin@redhat.com>
7 years agoMerge pull request #17590 from xiaoxichen/minor_doc_fix
Kefu Chai [Fri, 8 Sep 2017 10:46:09 +0000 (18:46 +0800)]
Merge pull request #17590 from xiaoxichen/minor_doc_fix

doc: fix typo on specify db block device

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #17573 from jcsp/wip-21292
Boris Ranto [Fri, 8 Sep 2017 08:32:20 +0000 (10:32 +0200)]
Merge pull request #17573 from jcsp/wip-21292

mgr/restful: cleaner message when not configured

Reviewed-by: Boris Ranto <branto@redhat.com>
7 years agorgw: drop unused function apply_epoch 17593/head
lu.shasha [Fri, 8 Sep 2017 07:16:13 +0000 (15:16 +0800)]
rgw: drop unused function apply_epoch

Signed-off-by: Shasha Lu <lu.shasha@eisoo.com>
7 years agodoc: fix typo on specify db block device 17590/head
Xiaoxi Chen [Fri, 8 Sep 2017 05:53:30 +0000 (22:53 -0700)]
doc: fix typo on specify db block device

Should use block.db instead of block-db

Signed-off-by: Xiaoxi Chen <xiaoxchen@ebay.com>
7 years agoTest ceph-mgr RESTful api
Vasu Kulkarni [Fri, 8 Sep 2017 00:10:04 +0000 (17:10 -0700)]
Test ceph-mgr RESTful api

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoAdd additional variables as required by ceph-ansible for upstream
Vasu Kulkarni [Thu, 7 Sep 2017 23:54:51 +0000 (16:54 -0700)]
Add additional variables as required by ceph-ansible for upstream
installation.

possible revert if those are made default
issue: https://github.com/ceph/ceph-ansible/issues/1834

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoMerge pull request #17536 from ceph/wip-cd-rbd-pool
Tamilarasi Muthamizhan [Thu, 7 Sep 2017 22:13:32 +0000 (15:13 -0700)]
Merge pull request #17536 from ceph/wip-cd-rbd-pool

qa/tests: fix rbd pool creation for systemd tests

7 years agoMerge pull request #16826 from ceph/wip-cd-upgrade
Tamilarasi Muthamizhan [Thu, 7 Sep 2017 22:08:49 +0000 (15:08 -0700)]
Merge pull request #16826 from ceph/wip-cd-upgrade

qa/tests: add ceph-deploy upgrade tests

7 years agotest/common: unittest_mclock_priority_queue builds with "make" command 17582/head
J. Eric Ivancich [Thu, 7 Sep 2017 21:47:00 +0000 (17:47 -0400)]
test/common: unittest_mclock_priority_queue builds with "make" command

Although it would be built with "make tests",
unittest_mclock_priority_queue was not built with a simple "make".

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
7 years agoMerge pull request #17415 from wangshuguangbj/bug_mon_mdsmonitor_assert
Sage Weil [Thu, 7 Sep 2017 21:25:48 +0000 (16:25 -0500)]
Merge pull request #17415 from wangshuguangbj/bug_mon_mdsmonitor_assert

mon/MDSMonitor: fix a bug at preprocess_beacon

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #17454 from xiexingguo/wip-vs
Sage Weil [Thu, 7 Sep 2017 21:25:23 +0000 (16:25 -0500)]
Merge pull request #17454 from xiexingguo/wip-vs

src/vstart.sh: default os to filestore for FreeBSD

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoMerge pull request #17522 from liupan1111/wip-fix-disk-error
Sage Weil [Thu, 7 Sep 2017 21:25:06 +0000 (16:25 -0500)]
Merge pull request #17522 from liupan1111/wip-fix-disk-error

os/bluestore: report error and quit correctly when disk error happens.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Liu-Chunmei <chunmei.liu@intel.com>
7 years agoMerge pull request #17525 from jcsp/wip-21249
Sage Weil [Thu, 7 Sep 2017 21:23:49 +0000 (16:23 -0500)]
Merge pull request #17525 from jcsp/wip-21249

mon: fix `osd out` clog message

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore/aio: handle short return from io_submit 17352/head
Sage Weil [Thu, 7 Sep 2017 20:28:59 +0000 (16:28 -0400)]
os/bluestore/aio: handle short return from io_submit

io_submit may return a value less than nr, indicating that only some of
the provided iocbs were queued.  If that happens we should loop, not
return and silently drop those aios on the floor.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoAdd workaround for http://tracker.ceph.com/issues/20950 16826/head
Vasu Kulkarni [Thu, 24 Aug 2017 18:02:20 +0000 (11:02 -0700)]
Add workaround for http://tracker.ceph.com/issues/20950

mgr bootstrap key differs on disk, rewrite the new key
using auth get.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoAdd kraken to luminous upgrade case
Vasu Kulkarni [Thu, 24 Aug 2017 16:24:52 +0000 (09:24 -0700)]
Add kraken to luminous upgrade case

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoAdd kernel tar/untar and systemd task
Vasu Kulkarni [Mon, 7 Aug 2017 19:19:41 +0000 (12:19 -0700)]
Add kernel tar/untar and systemd task

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoRestart services after upgrade
Vasu Kulkarni [Tue, 1 Aug 2017 23:32:42 +0000 (16:32 -0700)]
Restart services after upgrade

This seems to be an issue and should be fixed in our systemd scripts,
need to discuss more on this.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agosince the roles are mapped inside ceph-deploy, store the roles that
Vasu Kulkarni [Sat, 29 Jul 2017 06:11:41 +0000 (23:11 -0700)]
since the roles are mapped inside ceph-deploy, store the roles that
are mapped and use the new mapped role for upgrades during later
stage.

eg: mon.a is mapped to mon.mira002 during install, store this mapping
and durig upgrade map it back to appropriate name to find the hostname
with that role

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoAdd doc string for missing ceph-deploy-branch
Vasu Kulkarni [Sat, 29 Jul 2017 00:48:09 +0000 (17:48 -0700)]
Add doc string for missing ceph-deploy-branch

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agouse mon.a as ceph-admin node, the previous get_first_mon returns
Vasu Kulkarni [Thu, 27 Jul 2017 22:24:25 +0000 (15:24 -0700)]
use mon.a as ceph-admin node, the previous get_first_mon returns
a sorted(mons)[0] as first mon.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agouse elif instead of else to handle cases for jewel install
Vasu Kulkarni [Thu, 27 Jul 2017 18:17:31 +0000 (11:17 -0700)]
use elif instead of else to handle cases for jewel install

jewel needs neither filestore or bluestore as an option, so provide none
when running with jewel branch.

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoJewel to luminous upgrade scenario using ceph-deploy
Vasu Kulkarni [Thu, 27 Jul 2017 02:18:11 +0000 (19:18 -0700)]
Jewel to luminous upgrade scenario using ceph-deploy

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoAdd upgrade functionality using ceph-deploy
Vasu Kulkarni [Thu, 27 Jul 2017 01:56:08 +0000 (18:56 -0700)]
Add upgrade functionality using ceph-deploy

This is to test for customer like upgrade scenarios and to find
any issues that may be related to systemd, packaging etc

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoFix old flake8 issues
Vasu Kulkarni [Wed, 26 Jul 2017 22:01:15 +0000 (15:01 -0700)]
Fix old flake8 issues

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
7 years agoAdd option to skip mgr install for old release
Vasu Kulkarni [Wed, 26 Jul 2017 21:58:50 +0000 (14:58 -0700)]
Add option to skip mgr install for old release

Signed-off-by: Vasu Kulkarni <vasu@redhat.com>