Commit Graph

84595 Commits

Author SHA1 Message Date
Igor Fedotov
62777c5db0 os/bluestore: bluestore repair should use interval_set::union_insert
method rather than insert one to handle intersecting/overlapping ranges.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-03-14 19:49:44 +03:00
Abhishek Lekshmanan
bbff6527c1 doc: releases/jewel drop older RCs/dev releases from notes
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2018-03-14 16:35:11 +01:00
Lenz Grimmer
78022e13e7
Merge pull request #20751 from s0nea/wip-mgr-dashboard_rbd_add
mgr/dashboard_v2: Add RBD create functionality to the Python backend

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-03-14 15:57:32 +01:00
Igor Fedotov
f3be11091a os/bluestore: trim SSD devices on mkfs
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-03-14 17:46:17 +03:00
Andrew Schoen
1cc5ad0d66
Merge pull request #20878 from ceph/wip-rm23337
ceph-volume document multipath support

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-03-14 15:02:53 +01:00
Sage Weil
93ceffaccf osd/osd_types: remove backlog type for pg_log_entry_t
Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-14 07:12:01 -05:00
Lenz Grimmer
619d435a71
Merge pull request #20804 from Devp00l/cephfs-template-fix
mgr/dashboard_v2: Fix cephfs template table usage

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-03-14 12:31:44 +01:00
Piotr Dałek
253dfd5f8f librados: extend C API for so it accepts keys with NUL chars
Librados C API functions that operate on OMAP accept key values that
are NUL-terminated. This makes them unsuitable for operation on keys
that have NULs embedded in them (like those produced by librbd).
This commit adds new API functions:
- rados_omap_get_next2
- rados_write_op_omap_cmp2
- rados_write_op_omap_set2
- rados_write_op_omap_rm_keys2
- rados_read_op_omap_cmp2
- rados_read_op_omap_get_vals_by_keys2

that accept or provide actual key length in bytes and therefore are not
limiting key values to first NUL encountered.

Signed-off-by: Piotr Dałek <piotr.dalek@corp.ovh.com>
2018-03-14 12:27:48 +01:00
Lenz Grimmer
a7d34152cc
Merge pull request #20783 from tspmelo/mgr-perf-counters
mgr/dashboard_v2: add mgr to the list of perf counters

Reviewed-by: Ricardo Dias <rdias@suse.com>
2018-03-14 12:11:47 +01:00
Abhishek Lekshmanan
a933fc5acb doc: fix index reference
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
2018-03-14 12:09:26 +01:00
Lenz Grimmer
5dfdeccf5d
Merge pull request #20728 from jcsp/wip-dashboard-can_run
mgr/dashboard v2: implement can_run method

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2018-03-14 11:48:40 +01:00
Kefu Chai
b1c8727eba common/options: drop unused options
async_compressor_* have never been used, so drop them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-03-14 18:11:03 +08:00
Tatjana Dehler
5056cbacbf mgr/dashboard: Add RBD create functionality
This commit adds a basic RBD create functionality to the REST API. It enables
the POST request of the http://<host>:<port>/api/rbd API endpoint.

The commit adds also related tests.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-03-14 10:38:43 +01:00
Gu Zhongyan
f04190ed11 mgr: fix MSG_MGR_MAP handling
ceph config show mgr.x doesn't work
root cause is mgr daemon's mgrc has no chance
to process MSG_MGR_MAP in the mgr daemon's
ms_dispatch.

fix is let this message pass through for mgrc

Signed-off-by: Gu Zhongyan <guzhongyan@360.cn>
Signed-off-by: yupeng chen chenyupeng-it@360.cn
2018-03-14 15:08:05 +08:00
Patrick Donnelly
09b79af819
Merge PR #20700 into master
* refs/pull/20700/head:
	client: use either dentry_invalidate_cb or remount_cb to invalidate kernel dcache

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-03-13 20:33:11 -07:00
Patrick Donnelly
52ea69762d
Merge PR #20719 into master
* refs/pull/20719/head:
	client: add new ceph_mount_perms_set function

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2018-03-13 20:33:07 -07:00
Patrick Donnelly
57364e6113
Merge PR #20780 into master
* refs/pull/20780/head:
	doc/cephfs: mention "ceph fs set-default"
	mds: include legacy_client_fscid in FSMap::dump

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-03-13 20:32:58 -07:00
Sage Weil
9e35e73743 include: kill MIN and MAX macros
Use std::min and std::max instead.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 21:16:42 -05:00
Sage Weil
abc4be48b7 osd/PrimaryLogPG: MIN -> std::min
Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 21:16:29 -05:00
Patrick Donnelly
76080ed795
Merge PR #20881 into master
* refs/pull/20881/head:
	messages/MClientRequest: fix a typo so we don't output 'setfilelockrule' in logs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-03-13 16:15:13 -07:00
Abhishek Lekshmanan
fe4fc3ba6c doc: rename releases->schedule
Signed-off-by: Abhishek Lekshmanan <alekshmanan@suse.com>
2018-03-13 23:22:00 +01:00
Sage Weil
caa3d48c96
Merge pull request #20832 from liewegas/wip-fix-do-copy-range-replay
os/filestore: fix do_copy_range replay bug

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-03-13 17:21:59 -05:00
Sage Weil
ea531df216 osd/PG: wait for scan_snaps() mapper repair
Wait for our repair to apply before continuing to avoid reading the
broken state again.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 16:37:57 -05:00
Sage Weil
6668c16484 osd/SnapMapper: catch empty snaps on add_oid()
This shouldn't ever happen.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 16:26:13 -05:00
Sage Weil
fc378a0dc2 osd/SnapMapper: clean up broken snapmapper entry if present
Better to clean up than to crash the OSD.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 16:22:47 -05:00
Sage Weil
dce6f9d532 osd: osd_debug_verify_snaps_on_info -> osd_debug_verify_snaps
Old option is unused

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 16:22:47 -05:00
Sage Weil
4e05cc748b "Correct" license from LGPL2 to LGPL2.1
Back in commit 7469f26a33c072169d6ed929352eda06562ffe3f when the COPYING
file was added to the repository and the project was "licensed," the
license file was

                     GNU LESSER GENERAL PUBLIC LICENSE
                          Version 2.1, February 1999

However, the license was abbreviated as LGPL2 in various places (pretty
much everywhere, actually), due to my own ignorance/carelessness.  (I was
distinguishing it from shiny new version 3, released 6 months earlier.)

Version 2 of LGPL is the "Library General Public License," published in
June 1991: https://www.gnu.org/licenses/old-licenses/lgpl-2.0.html

Note that this ambiguity persists for most of the project's lifetime.  For
example, the original debian/copyright in 8adc9dac1d61f34ce85e3cbad1478e3e6ffe2b8e
said "LGPL2" bug in 4545f8b929cc562a1231c0ceb067e9d8e58a0de7 (2009, a year
later) it is changed to LGPL2.1 to satisfy Debian's lintian checks.  (It's
remained LGPL2.1 ever since.)

"Correct" the record by changing LGPL2 references to LGPL2.1.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 16:07:50 -05:00
Greg Farnum
629f05b563 messages/MClientRequest: fix a typo so we don't output 'setfilelockrule' in logs
Signed-off-by: Greg Farnum <gfarnum@redhat.com>
2018-03-13 13:50:25 -07:00
David Zafman
83c2521a53 osd: Handle getting RecoveryDone while in RepWaitBackfillReserved
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-03-13 13:47:28 -07:00
Casey Bodley
2aec7e1f1d qa/rgw: disable s3tests for lifecycle_expiration
the tests are dependent on timing and often fail in teuthology

Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-03-13 16:16:06 -04:00
Alfredo Deza
b7140d2374 ceph-volume lvm.prepare simplify help menu with bluestore default flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-03-13 15:30:22 -04:00
Alfredo Deza
2d1b191828 ceph-volume lvm.create simplify help menu with bluestore default flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-03-13 15:28:28 -04:00
Alfredo Deza
1dca5eac38 doc/ceph-volume document multipath support
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-03-13 15:26:46 -04:00
Andrew Schoen
58560cf6b5
Merge pull request #20864 from ceph/wip-cv-env-flags-fix
ceph-volume tests use granular env vars for vagrant

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-03-13 19:56:48 +01:00
Nathan Cutler
e294dd5910 legal: remove doc license ambiguity
The license applicable to the files under doc/ was originally declared (in the
top-level file COPYING) to be "Creative Commons Attribution-ShareAlike (CC
BY-SA)" by ed0653b493a3f919a3abc37a0aa9b5aa29ae0b0e

This license declaration omitted a version number.

Some time later ef7418421b3748c712019c8aedd02b8005c1e1ea was merged, mentioning
CC-BY-SA-1.0 as one of the Ceph source code licenses. Although the purpose of that
commit was only to summarize the canonical license information from COPYING, it
unintentionally became the only place in the source code where the doc license
version was specified.

In March 2018, the Debian project warned that CC-BY-SA-1.0 does not meet its
criteria for inclusion in the "free" section of the Debian distribution. (For
that, at least version 3.0 must be used.)

This new commit removes the doc license ambiguity by setting it to CC-BY-SA-3.0
in all places where the license is mentioned.

The exact spelling of the license name is taken from https://spdx.org/licenses/

Fixes: http://tracker.ceph.com/issues/23336
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2018-03-13 18:59:02 +01:00
Casey Bodley
5fee2689c8
Merge pull request #20724 from mdw-at-linuxbox/wip-master-rgw-fixbuf
rgw: fix memory fragmentation problem reading data from client.

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-03-13 12:02:25 -04:00
Sage Weil
27984e5590
Merge pull request #20872 from liewegas/wip-deterministic-cli-test
test/cli/osdmaptool/test-map-pgs.t: remove nondetermimistic test

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-03-13 10:52:26 -05:00
Tiago Melo
e8a1e267af mgr/dashboard_v2: add mgr to the list of perf counters
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-03-13 15:21:43 +00:00
Yuri Weinstein
82d828b68d
Merge pull request #20739 from Jeegn-Chen/wip-reject-sse-mpcp
rgw: reject encrypted object COPY before supported 

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-03-13 07:54:34 -07:00
Sage Weil
4a6101bd43 test/cli/osdmaptool/test-map-pgs.t: remove nondetermimistic test
This fails randomly; determinism is good!

Signed-off-by: Sage Weil <sage@redhat.com>
2018-03-13 09:49:47 -05:00
Jos Collin
bfa5d4e3be ceph-fuse: trim ceph-fuse -V output
Trim 'ceph-fuse -V' output to print the FUSE library version and exit.

Fixes: http://tracker.ceph.com/issues/23248
Signed-off-by: Jos Collin <jcollin@redhat.com>
2018-03-13 20:19:05 +05:30
Ricardo Dias
98e4b331aa
qa/rgw: renamed ssl task to openssl_keys
The ssl task located in a python file called `ssl.py` will generate
python module loading conflicts with the `ssl` system module, when
running QA tests using vstart_runner.py.

Signed-off-by: Ricardo Dias <rdias@suse.com>
2018-03-13 14:41:25 +00:00
Lenz Grimmer
6aaa4a9bc4
Merge pull request #20811 from tspmelo/fix-table-details
mgr/dashboard_v2: fix and improve table details

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-03-13 13:03:00 +01:00
Lenz Grimmer
be113e3e92
Merge pull request #20757 from tspmelo/wip-chart-tooltip
mgr/dashboard_v2: Improve charts tooltips

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
2018-03-13 12:45:18 +01:00
Wido den Hollander
9a11066204
common/ipaddr: Do not select link-local IPv6 addresses
They are not suited to be used with Ceph and should not be selected
as a address to bind on.

Fixes: http://tracker.ceph.com/issues/21813

Signed-off-by: Wido den Hollander <wido@42on.com>
2018-03-13 12:09:27 +01:00
Alfredo Deza
5b6e39617f ceph-volume tests use granular env vars for vagrant
Fixes the error that would inject an extra argument to vagrant when the
environment variable is not present

Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-03-13 06:57:57 -04:00
Hitoshi Kamei
ab0fb4d86a rbd: manpage for thick provision
Add the description of --thick-provision option for the rbd command.

Signed-off-by: Hitoshi Kamei <hitoshi.kamei.xm@hitachi.com>
Cc: Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
2018-03-13 17:25:35 +09:00
Hitoshi Kamei
39ddd5f554 rbd: test code of rbd help for thick provision
Add the help output of thick provision option to
the help.t of the rbd command.

Signed-off-by: Hitoshi Kamei <hitoshi.kamei.xm@hitachi.com>
Cc: Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
2018-03-13 17:25:29 +09:00
Hitoshi Kamei
b517532d53 rbd: qa code for thick provision support
Add the qa code for thick provision option, if applied.

The qa code creates and checks 64 MB thick-provision image
for small image test, and it also creates and checks 4 GB
thick-provision image for large image test.

Signed-off-by: Hitoshi Kamei <hitoshi.kamei.xm@hitachi.com>
Cc: Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
2018-03-13 17:25:24 +09:00
Hitoshi Kamei
91ea43c3f6 rbd: thick provision support
Add the thick provision option to the rdb command, if applied.

The rbd command with the option actually writes zero data to
new rbd image, and sets the value of rbd_discard_on_zero_write_same
to false before opening the images.

Signed-off-by: Hitoshi Kamei <hitoshi.kamei.xm@hitachi.com>
Cc: Mitsuo Hayasaka <mitsuo.hayasaka.hu@hitachi.com>
2018-03-13 17:25:19 +09:00