]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agorgw: The delete markers generated by object expiration should have owner 22619/head
Zhang Shaowen [Tue, 19 Jun 2018 06:10:17 +0000 (14:10 +0800)]
rgw: The delete markers generated by object expiration should have owner
attribute.

Fixes: http://tracker.ceph.com/issues/24568
Signed-off-by: Zhang Shaowen <zhangshaowen@cmss.chinamobile.com>
7 years agoMerge pull request #22497 from liewegas/wip-24486
Kefu Chai [Tue, 12 Jun 2018 03:05:12 +0000 (11:05 +0800)]
Merge pull request #22497 from liewegas/wip-24486

osd/Session: fix invalid iterator dereference in Session::have_backoff()

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #22501 into master
Sage Weil [Mon, 11 Jun 2018 21:14:13 +0000 (16:14 -0500)]
Merge PR #22501 into master

* refs/pull/22501/head:
messages/MOSDPGLog: encode epoch for query_epoch for pre-nautilus OSDs

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #22499 into master
Sage Weil [Mon, 11 Jun 2018 21:13:38 +0000 (16:13 -0500)]
Merge PR #22499 into master

* refs/pull/22499/head:
os/bluestore: fix SharedBlobSet deregister race

Reviewed-by: git push gh masterVarada Kari <varadaraja.kari@flipkart.com>
7 years agogithubmap: update contributors
Sage Weil [Mon, 11 Jun 2018 21:13:37 +0000 (16:13 -0500)]
githubmap: update contributors

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22496 from liewegas/wip-localpool-config
Sage Weil [Mon, 11 Jun 2018 21:08:18 +0000 (16:08 -0500)]
Merge pull request #22496 from liewegas/wip-localpool-config

qa/workunits/mgr/test_localpool.sh: use new config syntax

7 years agoMerge pull request #22467 from zhongyimao/update-the-vstart-options
Kefu Chai [Mon, 11 Jun 2018 13:01:45 +0000 (21:01 +0800)]
Merge pull request #22467 from zhongyimao/update-the-vstart-options

doc: document vstart options

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22009 from markhpc/wip-bs-cache-autotune
Sage Weil [Mon, 11 Jun 2018 12:27:10 +0000 (07:27 -0500)]
Merge pull request #22009 from markhpc/wip-bs-cache-autotune

common/PriorityCache: First Step toward priority based caching

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agomstop.sh: Fix print information 22467/head
Mao Zhongyi [Thu, 7 Jun 2018 07:21:23 +0000 (15:21 +0800)]
mstop.sh: Fix print information

The print information of mstop.sh is as following:

entity=osd pid=16347 name=osd.1
kill  16347...kill  16347...16462
pid=16462
entity=osd pid=16462 name=osd.2
kill  16462...kill  16462...[root@maozy build]#

It's not clear enough, so fix it.

Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
7 years agodoc: vstart update a few options
Mao Zhongyi [Thu, 7 Jun 2018 07:05:28 +0000 (15:05 +0800)]
doc: vstart update a few options

Add missing several options in vstart and make
these options arranged in alphabetical order.

Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
7 years agoMerge pull request #22493 from wjwithagen/wjw-include-types-buffer
Kefu Chai [Mon, 11 Jun 2018 10:40:28 +0000 (18:40 +0800)]
Merge pull request #22493 from wjwithagen/wjw-include-types-buffer

common: include include/types.h early, otherwise Clang will error.

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22494 from wjwithagen/wjw-fix-oath2
Kefu Chai [Mon, 11 Jun 2018 10:38:30 +0000 (18:38 +0800)]
Merge pull request #22494 from wjwithagen/wjw-fix-oath2

cmake: oath lives in liboath

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22298 from p-na/settings-unset
Lenz Grimmer [Mon, 11 Jun 2018 09:28:47 +0000 (11:28 +0200)]
Merge pull request #22298 from p-na/settings-unset

mgr/dashboard: Reset settings to their default values

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #21783 from Devp00l/wip-static-testbed
Lenz Grimmer [Mon, 11 Jun 2018 09:01:11 +0000 (11:01 +0200)]
Merge pull request #21783 from Devp00l/wip-static-testbed

mgr/dashboard: Resolve TestBed performance issue

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agodoc: drop the unsupported option -r from vstart
Mao Zhongyi [Thu, 7 Jun 2018 06:21:05 +0000 (14:21 +0800)]
doc: drop the unsupported option -r from vstart

vstart no longer supports -r option after commit 8dcf8d6e,
but it is not cleaned from mstart, so drop it.

Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
7 years agomessages/MOSDPGLog: encode epoch for query_epoch for pre-nautilus OSDs 22501/head
Sage Weil [Mon, 11 Jun 2018 02:41:54 +0000 (21:41 -0500)]
messages/MOSDPGLog: encode epoch for query_epoch for pre-nautilus OSDs

This fix is analogous to d5a3ae6008e4399b336f3a72d8dee328f97a0002.  As of
84a1984b7cb70c74eaf517ffc424228fa954ed37 we set query_epoch to a lower
value reliably, but we need to encode the latest epoch for pre-nautilus
OSDs because they do not set last_peering_epoch reliably and havin a lower
query_epoch will cause them to discard this message.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: fix SharedBlobSet deregister race 22499/head
Sage Weil [Sun, 10 Jun 2018 20:57:31 +0000 (15:57 -0500)]
os/bluestore: fix SharedBlobSet deregister race

In commit 8c8944b2c45ca9dc5b8fd4db1590e1d24206c0b3 we fixed one narrow race
and introduced a new (probably less narrow) one:

A: put shared blob foo, nref = 0, start removing self from set
B: open_shared_blob -> lookup gets nullptr (nref==null), creates a new shared blob
  B: takes lock, sets sb_map[sbid] = newblob
A: gets lock, erases sb_map[sbid]
B: open_shared_blob -> lookup gets null, creates another new shared blob

Fix by only removing the sb_map entry for the nref=0 sb if it still points
to us.  If it doesn't, that means some new blob has shown up in its place.

Fixes: http://tracker.ceph.com/issues/24319
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22460 from liewegas/wip-upgrade-distro
Sage Weil [Sun, 10 Jun 2018 18:42:23 +0000 (13:42 -0500)]
Merge pull request #22460 from liewegas/wip-upgrade-distro

qa/suites/rados/upgrade: remove stray link

7 years agoosd/Session: fix invalid iterator dereference in Sessoin::have_backoff() 22497/head
Sage Weil [Sun, 10 Jun 2018 18:37:56 +0000 (13:37 -0500)]
osd/Session: fix invalid iterator dereference in Sessoin::have_backoff()

If p is i->second.end(), we do want to back up a position, but we
shouldn't dereference p for p->first.

Fixes: http://tracker.ceph.com/issues/24486
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/workunits/mgr/test_localpool.sh: use new config syntax 22496/head
Sage Weil [Sun, 10 Jun 2018 18:08:45 +0000 (13:08 -0500)]
qa/workunits/mgr/test_localpool.sh: use new config syntax

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agocmake: cmake: oath lives in liboath 22494/head
Willem Jan Withagen [Sat, 9 Jun 2018 11:43:27 +0000 (13:43 +0200)]
cmake: cmake: oath lives in liboath

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agocommon: use include/types.h early on, otherwise Clang will error. 22493/head
Willem Jan Withagen [Sun, 10 Jun 2018 13:25:46 +0000 (15:25 +0200)]
common: use include/types.h early on, otherwise Clang will error.

This is due that FreeBSD does not have loff_t as type.
And with the wrong order of includes the standard linux typedef
is included and used.

In file included from /home/wjw/wip/src/common/buffer.cc:21:
/home/wjw/wip/src/include/buffer_raw.h:92:41: error: unknown type name 'loff_t'; did you mean 'off_t'?
    virtual int zero_copy_to_fd(int fd, loff_t *offset) {
                                        ^~~~~~
                                        off_t
/usr/include/sys/uio.h:49:17: note: 'off_t' declared here
typedef __off_t off_t;
                ^
1 error generated.

Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
7 years agoMerge pull request #22487 from tchaikov/wip-24452
Kefu Chai [Sun, 10 Jun 2018 12:51:54 +0000 (20:51 +0800)]
Merge pull request #22487 from tchaikov/wip-24452

osd: always set query_epoch explicitly for MOSDPGLog

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22483 from tchaikov/wip-osd-cleanup
Kefu Chai [Sun, 10 Jun 2018 02:05:53 +0000 (10:05 +0800)]
Merge pull request #22483 from tchaikov/wip-osd-cleanup

osd: do not include Messenger.h if not necessary

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22488 from ai-traders/fix-gcc-install
Kefu Chai [Sun, 10 Jun 2018 01:59:00 +0000 (09:59 +0800)]
Merge pull request #22488 from ai-traders/fix-gcc-install

install-deps.sh: fix installing gcc on ubuntu when no old compiler

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge PR #22485 into master
Sage Weil [Sat, 9 Jun 2018 19:21:37 +0000 (14:21 -0500)]
Merge PR #22485 into master

* refs/pull/22485/head:
qa: wait longer for osd to flush pg stats

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoinstall-deps: fix installing gcc on ubuntu when no old compiler 22488/head
Tomasz Setkowski [Sat, 14 Apr 2018 15:23:58 +0000 (15:23 +0000)]
install-deps: fix installing gcc on ubuntu when no old compiler

Signed-off-by: Tomasz Setkowski <tom@ai-traders.com>
7 years agoosd: do not include Messenger.h if not necessary 22483/head
Kefu Chai [Sat, 9 Jun 2018 04:48:12 +0000 (12:48 +0800)]
osd: do not include Messenger.h if not necessary

to speed up the compilation, do not include Messenger.h, and use forward
declaration instead.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22415 from trociny/wip-24399
Jason Dillaman [Sat, 9 Jun 2018 15:32:29 +0000 (11:32 -0400)]
Merge pull request #22415 from trociny/wip-24399

librbd: deep_copy: resize head object map if needed

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22444 from trociny/wip-24434
Jason Dillaman [Sat, 9 Jun 2018 15:31:48 +0000 (11:31 -0400)]
Merge pull request #22444 from trociny/wip-24434

librbd: force 'invalid object map' flag on-disk update

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22456 from liewegas/wip-24373
Kefu Chai [Sat, 9 Jun 2018 14:22:07 +0000 (22:22 +0800)]
Merge pull request #22456 from liewegas/wip-24373

osd/PG: reset PG on osd down->up; normalize query processing

Reviewed-by: Neha Ojha <nojha@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #22429 from liewegas/wip-osd-destroy-new
Kefu Chai [Sat, 9 Jun 2018 14:00:47 +0000 (22:00 +0800)]
Merge pull request #22429 from liewegas/wip-osd-destroy-new

mon: add 'osd destroy-new' command that only destroys NEW osd slots

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
7 years agoMerge pull request #22463 from liewegas/wip-bluefs-types
Kefu Chai [Sat, 9 Jun 2018 13:59:46 +0000 (21:59 +0800)]
Merge pull request #22463 from liewegas/wip-bluefs-types

ceph-dencoder: add bluefs types

Reviewed-by: Erwan Velu <erwan@redhat.com>
7 years agoMerge pull request #22454 from tchaikov/wip-seastar-denc
Kefu Chai [Sat, 9 Jun 2018 12:38:49 +0000 (20:38 +0800)]
Merge pull request #22454 from tchaikov/wip-seastar-denc

common: add adaptor for seastar::temporary_buffer

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22471 from tchaikov/wip-debian/rules-cleanup
Kefu Chai [Sat, 9 Jun 2018 11:57:31 +0000 (19:57 +0800)]
Merge pull request #22471 from tchaikov/wip-debian/rules-cleanup

debian: drop '-DUSE_CRYPTOPP=OFF' from cmake options

Reviewed-by: Casey Bodley <cbodley@redhat.com>
7 years agoosd: always set query_epoch explicitly for MOSDPGLog 22487/head
Kefu Chai [Sat, 9 Jun 2018 07:15:01 +0000 (15:15 +0800)]
osd: always set query_epoch explicitly for MOSDPGLog

it's a follow-up change of 339ae18b. also remove the MOSDPGLog
contructor where query_epoch is optional. it's less error-prone if we
make this parameter mandatory.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22478 from liewegas/wip-24452
Kefu Chai [Sat, 9 Jun 2018 06:05:56 +0000 (14:05 +0800)]
Merge pull request #22478 from liewegas/wip-24452

osd/PG: create new PGs from activate in last_peering_reset epoch

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoqa: wait longer for osd to flush pg stats 22485/head
Kefu Chai [Sat, 9 Jun 2018 05:51:18 +0000 (13:51 +0800)]
qa: wait longer for osd to flush pg stats

it's the test_create_from_mon()'s counterpart of 38074726.

Fixes: http://tracker.ceph.com/issues/24321
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22428 from dzafman/wip-24396-fix
David Zafman [Sat, 9 Jun 2018 03:28:44 +0000 (20:28 -0700)]
Merge pull request #22428 from dzafman/wip-24396-fix

test: Use a file that should be on all OSes

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agomessages/MOSDPGScan: encode map_epcoh for query_epoch for pre-nautilus peers 22478/head
Sage Weil [Sat, 9 Jun 2018 01:45:08 +0000 (20:45 -0500)]
messages/MOSDPGScan: encode map_epcoh for query_epoch for pre-nautilus peers

Pre-nautilus OSDs do not create last_peering_reset reliably (due to not
having the previous commit's fix in place).  Avoid breaking them during
an upgrade by encoding the map_epcoh in place of the query_epoch.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: create new PGs from activate in last_peering_reset epoch
Sage Weil [Fri, 8 Jun 2018 12:29:31 +0000 (07:29 -0500)]
osd/PG: create new PGs from activate in last_peering_reset epoch

If we create a new PG (e.g., a backfill target) in the current epoch, it
might be > last_peering_reset.  That can lead to last_peering_reset on
the replica having a higher last_peering_reset than the primary's, which
can then lead to future messages, like pg_scan during backfill, being
ignored.

Fixes: http://tracker.ceph.com/issues/24452
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22462 from liewegas/wip-bluestore-no-meta-paths
Alfredo Deza [Fri, 8 Jun 2018 17:40:25 +0000 (13:40 -0400)]
Merge pull request #22462 from liewegas/wip-bluestore-no-meta-paths

os/bluestore: don't store/use path_block.{db,wal} from meta

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoMerge pull request #22426 from alfredodeza/wip-rm24020
Andrew Schoen [Fri, 8 Jun 2018 15:52:31 +0000 (15:52 +0000)]
Merge pull request #22426 from alfredodeza/wip-rm24020

ceph-volume expand on the LVM API to create multiple LVs at different sizes

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agomgr/dashboard: Swap configuration without changes 21783/head
Stephan Müller [Fri, 1 Jun 2018 15:12:44 +0000 (17:12 +0200)]
mgr/dashboard: Swap configuration without changes

Swap the TestBed configuration in suites.

The touched suites were prettified at the end.

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agoceph-volume util make chown links affect links as well as paths 22462/head
Alfredo Deza [Fri, 8 Jun 2018 12:54:07 +0000 (08:54 -0400)]
ceph-volume util make chown links affect links as well as paths

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume lvm.activate chown bluestore symlinks
Alfredo Deza [Fri, 8 Jun 2018 12:57:54 +0000 (08:57 -0400)]
ceph-volume lvm.activate chown bluestore symlinks

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agoos/bluestore: make bad symlink target error messages more informative
Sage Weil [Fri, 8 Jun 2018 13:34:53 +0000 (08:34 -0500)]
os/bluestore: make bad symlink target error messages more informative

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22439 from shaba/devel/fix-rocksdb
Kefu Chai [Fri, 8 Jun 2018 13:22:45 +0000 (21:22 +0800)]
Merge pull request #22439 from shaba/devel/fix-rocksdb

cmake: fix find system rockdb

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agodebian: drop '-DUSE_CRYPTOPP=OFF' from cmake options 22471/head
Kefu Chai [Fri, 8 Jun 2018 13:18:03 +0000 (21:18 +0800)]
debian: drop '-DUSE_CRYPTOPP=OFF' from cmake options

cryptopp dependency was dropped in a18f0589

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest: add test for seastar denc 22454/head
Kefu Chai [Tue, 16 Jan 2018 11:20:29 +0000 (19:20 +0800)]
test: add test for seastar denc

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agodenc: genenalize denc interface for seastar::temporary_buffer
Kefu Chai [Tue, 16 Jan 2018 05:54:39 +0000 (13:54 +0800)]
denc: genenalize denc interface for seastar::temporary_buffer

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agodenc: specialize for denc(const T&, size_t&, uint64_t)
Kefu Chai [Fri, 25 May 2018 04:34:33 +0000 (12:34 +0800)]
denc: specialize for denc(const T&, size_t&, uint64_t)

otherwise GCC complains that 'unsigned long int' is not a class or
namespace when trying to materialize is_const_iterator_v<>. not sure why
SFINAE does not work here, though.

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agotest: add unit test for seastar buffer
Casey Bodley [Sun, 8 Oct 2017 20:28:30 +0000 (16:28 -0400)]
test: add unit test for seastar buffer

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agobuffer: add conversion operators for seastar types
Casey Bodley [Fri, 20 Oct 2017 00:03:18 +0000 (20:03 -0400)]
buffer: add conversion operators for seastar types

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agobuffer: add raw type for seastar buffers
Casey Bodley [Sun, 8 Oct 2017 22:04:23 +0000 (18:04 -0400)]
buffer: add raw type for seastar buffers

new buffer_seastar.cc implements the buffer::raw types for seastar,
built in an object library outside of libcommon

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agobuffer: move buffer::raw to new header
Casey Bodley [Fri, 3 Nov 2017 23:06:31 +0000 (19:06 -0400)]
buffer: move buffer::raw to new header

this allows new raw buffer types to live outside of buffer.cc, and
potentially outside of libcommon entirely

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agocmake: update for accomodate seastar
Kefu Chai [Fri, 23 Feb 2018 06:45:10 +0000 (14:45 +0800)]
cmake: update for accomodate seastar

* add unit_test_framework for appease seastar's find_package() call,
  even we don't build seastar's tests
* some seastar functions declare their return value like:
  const size_t str_len(...). and GCC does not like the "const" in it.
  so silence it

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: add WITH_SEASTAR option
Casey Bodley [Sun, 8 Oct 2017 18:46:26 +0000 (14:46 -0400)]
cmake: add WITH_SEASTAR option

Signed-off-by: Casey Bodley <cbodley@redhat.com>
7 years agoseastar: add seastar as a submodule
Kefu Chai [Thu, 24 May 2018 14:24:25 +0000 (22:24 +0800)]
seastar: add seastar as a submodule

Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #22430 from tchaikov/wip-find_package-oath
Kefu Chai [Fri, 8 Jun 2018 12:50:28 +0000 (20:50 +0800)]
Merge pull request #22430 from tchaikov/wip-find_package-oath

cmake: find liboath using the correct name

Reviewed-by: Casey Bodley <cbodley@redhat.com>
Reviewed-by: Erwan Velu <erwan@redhat.com>
7 years agomgr/dashboard: Resolve TestBed performance issue
Stephan Müller [Fri, 1 Jun 2018 15:11:35 +0000 (17:11 +0200)]
mgr/dashboard: Resolve TestBed performance issue

With this helper function you can easily resolve the TestBed resetting
performance issue. If more tests exists in a test suite, it makes sense
to configure TestBed only once if you are not doing a lot of TestBed
specific stuff (haven't hit the limitation). It will reduce the test
run time by around $tests * 50 %. In my case it was a test suite with
47 tests with a run time of over 30s after using the static test bed
method it ran in 1.2s. The run time was reduced to 0.04 %! This is
equivalent to a speed increase of 2500% (100/0.04)!

For our own security the normal way will be taken if you not
set the _DEV_ configuration variable to true. It will be false when
"run-frontend-unittests.sh" is run.

Signed-off-by: Stephan Müller <smueller@suse.com>
7 years agolibrbd: deep_copy: resize head object map if needed 22415/head
Mykola Golub [Tue, 5 Jun 2018 10:20:14 +0000 (13:20 +0300)]
librbd: deep_copy: resize head object map if needed

Fixes: http://tracker.ceph.com/issues/24399
Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #22453 from tspmelo/fix-pool-usage
Lenz Grimmer [Fri, 8 Jun 2018 09:46:42 +0000 (11:46 +0200)]
Merge pull request #22453 from tspmelo/fix-pool-usage

mgr/dashboard: Fix pool usage not displaying on filesystem page

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22443 from dillaman/wip-doc-rbd-openstack
Mykola Golub [Fri, 8 Jun 2018 06:11:02 +0000 (09:11 +0300)]
Merge pull request #22443 from dillaman/wip-doc-rbd-openstack

doc/rbd: corrected OpenStack Cinder permissions for Glance pool

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge PR #22447 into master
Sage Weil [Thu, 7 Jun 2018 22:25:48 +0000 (17:25 -0500)]
Merge PR #22447 into master

* refs/pull/22447/head:
osd/OSDMap: fix pre-addrvec compat
mon/MgrMap: fix pre-addrvec compat
messages/MMgrBeacon: fix pre-addrvec compat

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoosd/PG: normalize query processing in Stray and ReplicaActive 22456/head
Sage Weil [Thu, 7 Jun 2018 13:33:46 +0000 (08:33 -0500)]
osd/PG: normalize query processing in Stray and ReplicaActive

A stray PG may end up in ReplicaActive if it is participating in backfill.
However, whether it is or isn't, we should treat queries the same.
Otherwise we end up with weird behaviors like:

 - osd's stray pg moves to ReplicaActive (gets info+log from primary)
 - osd goes down and back up
 - primary restarts peering, request FULLLOG to find missing objects
 - osd ignores FULLLOG because it is ReplicaActive and not Stray

Fixes: http://tracker.ceph.com/issues/24373
Reported-by: Kouya Shimura <kouya@jp.fujitsu.com>
Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: move send_notify() into RecoveryCtx
Sage Weil [Thu, 7 Jun 2018 13:20:54 +0000 (08:20 -0500)]
osd/PG: move send_notify() into RecoveryCtx

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoosd/PG: reset PG peering if osd transitions from down -> up
Sage Weil [Thu, 7 Jun 2018 12:07:19 +0000 (07:07 -0500)]
osd/PG: reset PG peering if osd transitions from down -> up

Consider a PG that is stray and ends up in ReplicaActive (because it is
participating as a recovery source).  If it is marked down wrongly and
then comes back up, then the PG will not reset, because there was not
an interval change (the PG is not part of the up or acting sets).
This can leave the PG in an odd state, leading to questionable behavior.
(For example, a stray might be in ReplicaActive and then ignore some
types of query messages.)

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoceph-dencoder: add bluefs types 22463/head
Sage Weil [Thu, 7 Jun 2018 18:46:29 +0000 (13:46 -0500)]
ceph-dencoder: add bluefs types

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoos/bluestore: don't store/use path_block.{db,wal} from meta
Sage Weil [Thu, 7 Jun 2018 17:12:46 +0000 (12:12 -0500)]
os/bluestore: don't store/use path_block.{db,wal} from meta

This reverts most of 8d07fa5ad0772b4d979dc10695d230074d1f1e69.

ceph-volume goes to great lengths to ensure that the symlinks in the
osd dir are accurate.  Having these values here is an opportunity to
get them out of sync.  And that can happen very easily if the initial
mkfs was performed using a /dev/sdX device name (which is unstable
across reboots).  Even after ceph-volume corrects the symlink, bluestore
will continue to use the stale device path.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoqa/suites/rados/upgrade: remove stray link 22460/head
Sage Weil [Thu, 7 Jun 2018 16:25:55 +0000 (11:25 -0500)]
qa/suites/rados/upgrade: remove stray link

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #22403 from ricardoasmarques/wip-http-401
Lenz Grimmer [Thu, 7 Jun 2018 15:09:33 +0000 (17:09 +0200)]
Merge pull request #22403 from ricardoasmarques/wip-http-401

mgr/dashboard: Login failure should return HTTP 400

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22437 from alfredodeza/wip-cv-osd-destroy
Andrew Schoen [Thu, 7 Jun 2018 14:47:21 +0000 (14:47 +0000)]
Merge pull request #22437 from alfredodeza/wip-cv-osd-destroy

ceph-volume tests destroy osds on monitor hosts

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoMerge PR #22445 into master
Patrick Donnelly [Thu, 7 Jun 2018 13:06:56 +0000 (06:06 -0700)]
Merge PR #22445 into master

* refs/pull/22445/head:
doc: fix release notes on snapshot upgrades

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
7 years agocmake: fix find system rockdb 22439/head
Alexey Shabalin [Thu, 7 Jun 2018 11:19:41 +0000 (14:19 +0300)]
cmake: fix find system rockdb

- fix path for version.h
- fix typo ROCKDB -> ROCKSDB

Signed-off-by: Alexey Shabalin <shaba@altlinux.org>
7 years agomgr/dashboard: Fix pool usage not displaying on filesystem page 22453/head
Tiago Melo [Thu, 7 Jun 2018 10:59:13 +0000 (11:59 +0100)]
mgr/dashboard: Fix pool usage not displaying on filesystem page

Reference to the template was undefined during the init of the component.

Signed-off-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #22451 from wwformat/wip-gcc7-aarch64
Kefu Chai [Thu, 7 Jun 2018 09:39:48 +0000 (17:39 +0800)]
Merge pull request #22451 from wwformat/wip-gcc7-aarch64

install-deps.sh: support install gcc7 in xenial aarch64

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoinstall-deps.sh: support install gcc7 in xenial aarch64 22451/head
Yunchuan Wen [Thu, 7 Jun 2018 07:51:31 +0000 (15:51 +0800)]
install-deps.sh: support install gcc7 in xenial aarch64

Signed-off-by: Yunchuan Wen <yunchuan.wen@kylin-cloud.com>
7 years agoosd/OSDMap: fix pre-addrvec compat 22447/head
Sage Weil [Thu, 7 Jun 2018 01:07:27 +0000 (20:07 -0500)]
osd/OSDMap: fix pre-addrvec compat

This was broken by b47d9135d5345816037899cd1d12a5a20b54e6c1.  Old code
does not decode an addrvec as an addr.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomon/MgrMap: fix pre-addrvec compat
Sage Weil [Thu, 7 Jun 2018 01:06:23 +0000 (20:06 -0500)]
mon/MgrMap: fix pre-addrvec compat

This was broken by 7f787704cdcd55df18d204c5251cdd6a3cedd604.  Old code
does not decode an addrvec as an addr.

Take the opportunity to remove the old_available_modules field.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agomessages/MMgrBeacon: fix pre-addrvec compat
Sage Weil [Thu, 7 Jun 2018 01:05:17 +0000 (20:05 -0500)]
messages/MMgrBeacon: fix pre-addrvec compat

This was broken by 7f787704cdcd55df18d204c5251cdd6a3cedd604.  Old code
doesn't not decode an addrvec as an addr.

Signed-off-by: Sage Weil <sage@redhat.com>
7 years agoMerge PR #22388 into master
Patrick Donnelly [Wed, 6 Jun 2018 22:31:12 +0000 (15:31 -0700)]
Merge PR #22388 into master

* refs/pull/22388/head:
ceph-mds: Fix usage
doc: ceph-mds option updates

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge PR #22338 into master
Patrick Donnelly [Wed, 6 Jun 2018 22:27:19 +0000 (15:27 -0700)]
Merge PR #22338 into master

* refs/pull/22338/head:
doc: update toctree for add-remove-mds.rst
doc: create add/remove metadata server

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agodoc: fix release notes on snapshot upgrades 22445/head
Patrick Donnelly [Wed, 6 Jun 2018 21:20:53 +0000 (14:20 -0700)]
doc: fix release notes on snapshot upgrades

Fixes: https://tracker.ceph.com/issues/24435
Introduced-by: d78dda7b812c63b5504f69e9df78bea4fbb37394.
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agolibrbd: force 'invalid object map' flag on-disk update 22444/head
Mykola Golub [Wed, 6 Jun 2018 20:48:07 +0000 (23:48 +0300)]
librbd: force 'invalid object map' flag on-disk update

when called by object_map::RefreshRequest. Since we really only open
the object map when we own the exclusive lock.

Fixes: http://tracker.ceph.com/issues/24434
Signed-off-by: Mykola Golub <mgolub@suse.com>
7 years agoceph-volume tests functional osd destroy on mons only for dmcrypt 22437/head
Alfredo Deza [Wed, 6 Jun 2018 15:37:21 +0000 (11:37 -0400)]
ceph-volume tests functional osd destroy on mons only for dmcrypt

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agodoc/rbd: corrected OpenStack Cinder permissions for Glance pool 22443/head
Jason Dillaman [Wed, 6 Jun 2018 18:50:24 +0000 (14:50 -0400)]
doc/rbd: corrected OpenStack Cinder permissions for Glance pool

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #22282 from rjfd/wip-dashboard-api-docs
Lenz Grimmer [Wed, 6 Jun 2018 17:28:46 +0000 (19:28 +0200)]
Merge pull request #22282 from rjfd/wip-dashboard-api-docs

mgr/dashboard: Swagger-UI based Dashboard REST API page

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22387 from votdev/missing_space_value_unit
Lenz Grimmer [Wed, 6 Jun 2018 17:20:44 +0000 (19:20 +0200)]
Merge pull request #22387 from votdev/missing_space_value_unit

mgr/dashboard: Print a blank space between value and unit

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agoceph-volume tests/functional destroy filestore osds on the monitors
Alfredo Deza [Wed, 6 Jun 2018 13:02:42 +0000 (09:02 -0400)]
ceph-volume tests/functional destroy filestore osds on the monitors

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agomgr/dashboard: Swagger-UI based Dashboard REST API page 22282/head
Ricardo Dias [Thu, 3 May 2018 14:26:37 +0000 (15:26 +0100)]
mgr/dashboard: Swagger-UI based Dashboard REST API page

Fixes: http://tracker.ceph.com/issues/23898
Signed-off-by: Ricardo Dias <rdias@suse.com>
7 years agoMerge pull request #21279 from sungjunyoung/master
Kefu Chai [Wed, 6 Jun 2018 14:55:44 +0000 (22:55 +0800)]
Merge pull request #21279 from sungjunyoung/master

doc: erasure-code-jerasure: removed default section of crush-device-class

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agocmake: find liboath using the correct name 22430/head
Kefu Chai [Wed, 6 Jun 2018 02:27:38 +0000 (10:27 +0800)]
cmake: find liboath using the correct name

we should reference liboath by the $name in Find${name}.cmake, also the
$name should be consistent when calling find_package_handle_standard_args().
in this change
* rename Findliboath.cmake to FindOATH.cmake to be consistent with other
  find_package() moduless.
* use "OATH" in find_package_handle_standard_args() instead of "oath"
* set the interface properties for OATH::OATH, so the target linking
  against it can reference its header directories and libraries automatically.
* remove the stale comment for find_package_handle_standard_args()
* set OATH_INCLUDE_DIRS and OATH_LIBRARIES to follow the convention of
  find_package(), even they are not used directly in this project.

Reported-by: Erwan Velu <erwan@redhat.com>
Signed-off-by: Kefu Chai <kchai@redhat.com>
7 years agoceph-volume tests/functional destroy bluestore osds on the monitors
Alfredo Deza [Wed, 6 Jun 2018 12:59:34 +0000 (08:59 -0400)]
ceph-volume tests/functional destroy bluestore osds on the monitors

Signed-off-by: Alfredo Deza <adeza@redhat.com>
7 years agomgr/dashboard: Print a blank space between value and unit. 22387/head
Volker Theile [Mon, 4 Jun 2018 11:06:30 +0000 (13:06 +0200)]
mgr/dashboard: Print a blank space between value and unit.

When displaying values with their unit a blank space must be shown between them, see #15 at https://physics.nist.gov/cuu/Units/checklist.html.

Signed-off-by: Volker Theile <vtheile@suse.com>
7 years agomgr/dashboard: Login failure should return HTTP 400 22403/head
Ricardo Marques [Mon, 4 Jun 2018 20:26:44 +0000 (21:26 +0100)]
mgr/dashboard: Login failure should return HTTP 400

Signed-off-by: Ricardo Marques <rimarques@suse.com>
7 years agoMerge pull request #21644 from p-na/grafana-proxy
Lenz Grimmer [Wed, 6 Jun 2018 10:17:31 +0000 (12:17 +0200)]
Merge pull request #21644 from p-na/grafana-proxy

mgr/dashboard: Grafana proxy backend

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Wagner <swagner@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
7 years agoMerge pull request #21880 from votdev/upgrade_swimlane_datatable_angular_6
Lenz Grimmer [Wed, 6 Jun 2018 10:14:48 +0000 (12:14 +0200)]
Merge pull request #21880 from votdev/upgrade_swimlane_datatable_angular_6

mgr/dashboard: Upgrade Swimlane's data-table

Reviewed-by: Tiago Melo <tmelo@suse.com>
7 years agoMerge pull request #22386 from tspmelo/fix-24281
Lenz Grimmer [Wed, 6 Jun 2018 10:05:51 +0000 (12:05 +0200)]
Merge pull request #22386 from tspmelo/fix-24281

mgr/dashboard: Changed default value of decimal point to 1

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
7 years agoMerge pull request #22404 from ricardoasmarques/wip-optimize-rbd-edit
Lenz Grimmer [Wed, 6 Jun 2018 10:04:23 +0000 (12:04 +0200)]
Merge pull request #22404 from ricardoasmarques/wip-optimize-rbd-edit

mgr/dashboard: Do not fetch pool list on RBD edit

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>