Commit Graph

83487 Commits

Author SHA1 Message Date
Andrew Schoen
70f68e2c19 ceph-volume: test zapping for both lvm create and lvm dmcrypt
Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-22 10:46:11 -06:00
Andrew Schoen
4e28bfafc7 ceph-volume: adds support to zap encrypted devices, lvs, and partitions
Fixes: http://tracker.ceph.com/issues/22878

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
2018-02-22 10:46:11 -06:00
Sage Weil
ef4e658806
Merge pull request #20533 from wido/issue-23083
systemd: Wait 10 seconds before restarting ceph-mgr

Reviewed-by: Sage Weil <sage@redhat.com>
2018-02-22 09:25:21 -06:00
Alfredo Deza
cc796073b6 doc/rados/troubleshooting update ceph-deploy references with new ceph-voume API
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-22 08:19:56 -05:00
Alfredo Deza
c957c70f48 doc/rados/deployment update ceph-deploy references with new ceph-volume API
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-22 08:19:56 -05:00
Alfredo Deza
bdd7a0f7fe doc/man update ceph-deploy for the new ceph-volume API
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-22 08:19:56 -05:00
Kefu Chai
435954ba60 librados: make OPERATION_FULL_FORCE the default for rados_remove()
Fixes: http://tracker.ceph.com/issues/22413
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-22 19:08:09 +08:00
Wido den Hollander
c628cd083e
systemd: Wait 10 seconds before restarting ceph-mgr
We do this for the MON and OSD as well, wait for a few
seconds before we try to attempt a restart.

On boot in IPv6 networks it might take a few seconds longer
before a IP-address is usable and this does not allow the mgr
to start right away.

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

Signed-off-by: Wido den Hollander <wido@42on.com>
2018-02-22 11:53:41 +01:00
Kefu Chai
5ac633526a mon: add MMonHealth back
This partially reverts commit 7b4a741fbd.

we need to at least decode MMonHealth sent from luminous monitors in
mimic. and in luminous, we could drop the support of this message, if we
can only upgrade from mimic.

Fixes: http://tracker.ceph.com/issues/22462
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-22 18:43:22 +08:00
Kefu Chai
d7dfdc8730
Merge pull request #20400 from tchaikov/wip-22354
ceph-disk: erase 110MB for nuking existing bluestore

Reviewed-by: Alfredo Deza <adeza@redhat.com>
Reviewed-by: Wido den Hollander <wido@42on.com>
2018-02-22 17:56:17 +08:00
Igor Fedotov
49822ee165
Merge pull request #20514 from ifed01/wip-ifed-fio-build-fix
test/fio: fix fio objectstore plugin building broken by
2018-02-22 12:21:58 +03:00
Wido den Hollander
a567cb8023
common/dns_resolv.cc: Query for AAAA-record if ms_bind_ipv6 is True
Otherwise we always query for A-records which will not work in a IPv6
Ceph cluster.

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

Signed-off-by: Wido den Hollander <wido@42on.com>
2018-02-22 09:17:38 +01:00
songweibin
e993ebdd0a rbd: filter out UserSnapshotNamespace in do_disk_usage
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-22 15:35:53 +08:00
fang yuxiang
b40f76a7a0 rgw: rework json/xml escape usage follow #19806
Signed-off-by: fang yuxiang fang.yuxiang@eisoo.com
2018-02-22 14:55:28 +08:00
songweibin
3920da63a8 common: fix typo in options.cc
Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-22 14:49:35 +08:00
songweibin
90892fd946 rbd: fix get image or snap spec in nbd map
root@s222:/ceph-dev/build# rbd nbd map img1
rbd: 'nbd map' command is deprecated, use 'device map -t nbd' instead
rbd: image name was not specified
root@s222:/ceph-dev/build# rbd nbd map -p rbd --image img1
rbd: 'nbd map' command is deprecated, use 'device map -t nbd' instead
rbd: image name was not specified

Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-22 14:32:33 +08:00
songweibin
2545f972df rbd: set a default value for options in nbd map
Since `vm` does not contain an `options` item and
`vm.at("options").value()` will throw an exception.

root@s222:/ceph-dev/build# rbd nbd map img1
rbd: 'nbd map' command is deprecated, use 'device map -t nbd' instead
terminate called after throwing an instance of 'std::out_of_range'
  what():  map::at
*** Caught signal (Aborted) **
 in thread 7f0e5e046400 thread_name:rbd
 ceph version 12.0.3-11022-ga09b319 (a09b319a5e) mimic (dev)
 1: (()+0x1afb00) [0x55a07d677b00]
 2: (()+0x10340) [0x7f0e545a0340]
 3: (gsignal()+0x39) [0x7f0e531b0cc9]
 4: (abort()+0x148) [0x7f0e531b40d8]
 5: (__gnu_cxx::__verbose_terminate_handler()+0x125) [0x7f0e53ac8415]
 6: (()+0x6a206) [0x7f0e53ac6206]
 7: (()+0x6a251) [0x7f0e53ac6251]
 8: (()+0x6a493) [0x7f0e53ac6493]
 9: (std::__throw_out_of_range(char const*)+0x3f) [0x7f0e53aeac3f]
 10: (rbd::action::nbd::execute_map_deprecated(boost::program_options::variables_map const&,
     std::vector<std::string, std::allocator<std::string> > const&)+0xa35) [0x55a07d5f6a15]
 11: (rbd::Shell::execute(int, char const**)+0xb5b) [0x55a07d581adb]
 12: (main()+0x15) [0x55a07d546615]
 13: (__libc_start_main()+0xf5) [0x7f0e5319bec5]
 14: (()+0xa141f) [0x55a07d56941f]
2018-02-22 13:43:59.212 7f0e5e046400 -1 *** Caught signal (Aborted) **
 in thread 7f0e5e046400 thread_name:rbd

Signed-off-by: songweibin <song.weibin@zte.com.cn>
2018-02-22 14:32:18 +08:00
Kefu Chai
627475d679 ceph-disk: erase 110MB for nuking existing bluestore
10M is not enough for erasing the data partition *and* db partition,
let's make it 110M.

Fixes: http://tracker.ceph.com/issues/22354
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-02-22 12:50:19 +08:00
wumingqiao
200904f737 filestore: include <linux/falloc.h>
see https://github.com/ceph/ceph/pull/7768
because we neither define FALLOC_FL_KEEP_SIZE nor include linux/falloc.h,this pull actually disable punching hole.

Signed-off-by: wumingqiao <wumingqiao@inspur.com>
2018-02-22 10:29:39 +08:00
Andrew Schoen
a09b319a5e
Merge pull request #20513 from ceph/wip-rm23003
ceph-volume warn on mix of filestore and bluestore flags

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-02-21 22:28:04 +01:00
Abhishek L
26cc065dde
Merge pull request #20500 from theanalyst/doc/releases/12.2.3
doc: release notes for 12.2.3

Reviewed-By: Sage Weil <sage@redhat.com>
2018-02-21 22:01:19 +01:00
Igor Fedotov
7881d16570 test/fio: fix fio objectstore plugin building broken by
ObjectStore::queue_transaction interface changes.

Signed-off-by: Igor Fedotov "ifedotov@suse.com"
2018-02-21 23:47:50 +03:00
Patrick Donnelly
91fd804307
common: omit short option for id in help for clients
Commit 8e3abf3ce3 removed the short option for clients to conflicts.

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

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2018-02-21 10:52:51 -08:00
Alfredo Deza
98b718ea29 doc quick-ceph-deploy update for newer ceph-volume API
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 13:50:34 -05:00
Abhishek Lekshmanan
1e491f6519 doc: release notes for 12.2.3
Also dropping the relevant changes from PendingReleaseNotes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
2018-02-21 19:34:59 +01:00
Sage Weil
d50ec9a43d
Merge pull request #20503 from theanalyst/doc/changelog/v12.2.3
doc: changelog for v12.2.3
2018-02-21 12:33:53 -06:00
Alfredo Deza
11ba052010 ceph-volume tests verify exclude_group_options works with groups of flags
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 12:56:43 -05:00
Alfredo Deza
43be2aafc1 ceph-volume tests add exclusion checks in prepare
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 12:55:17 -05:00
Alfredo Deza
2f6248c94b ceph-volume tests add exclusion checks in create
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 12:55:17 -05:00
Alfredo Deza
dec6e086cf ceph-volume util.arg_validators create an arg group exclusion check
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 12:55:16 -05:00
Alfredo Deza
f6ac244bb5 ceph-volume lvm.create use the new group option exclution
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 12:55:16 -05:00
Alfredo Deza
e6b3c46368 ceph-volume lvm.prepare use the new group option exclution
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 12:55:16 -05:00
Alfredo Deza
3400f31787 ceph-volume lvm.common remove --journal-size as it is not used/supported
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 12:55:16 -05:00
Alfredo Deza
3e7c995ebe ceph-volume lvm.common define arg groups for objectstores
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-02-21 12:55:16 -05:00
Sage Weil
db1ca7271e Merge PR #19342 into master
* refs/pull/19342/head:
	osd: add 'ceph [tell|daemon] osd.id smart'

Reviewed-by: Sage Weil <sage@redhat.com>
2018-02-21 10:23:48 -06:00
Sage Weil
1d641d137b Merge PR #20465 into master
* refs/pull/20465/head:
	os/bluestore: avoid frequent allocator dump on bluefs rebalance failure

Reviewed-by: Sage Weil <sage@redhat.com>
2018-02-21 10:23:43 -06:00
Sage Weil
1292efcd3d Merge PR #20467 into master
* refs/pull/20467/head:
	mon: mark manager beacons as no_reply

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: João Eduardo Luís <joao@suse.de>
2018-02-21 10:23:38 -06:00
Sage Weil
9f5a7ca8bf Merge PR #20484 into master
* refs/pull/20484/head:
	osd/PrimaryLogPG: cancel all objecter ops atomically
	osdc/Objecter: allow multiple ops to be canceled atomically

Reviewed-by: David Zafman <dzafman@redhat.com>
2018-02-21 10:23:33 -06:00
Sage Weil
5b41a65d2d Merge PR #20487 into master
* refs/pull/20487/head:
	os/bluestore: do not account DB volume space in total one reported by statfs method
	os/bluestore: prevent statfs available from going negative

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
2018-02-21 10:23:29 -06:00
Gregory Farnum
1c3e81828a
Merge pull request #20374 from liewegas/wip-18351
msg/DispatchQueue: clear queue after wait()

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2018-02-21 07:48:38 -08:00
Igor Fedotov
17b7f6f089 os/bluestore: add an ability to reproduce issue #21040 and verify if
fsck repair fixes it.

Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-02-21 18:16:50 +03:00
Sage Weil
77442609a0 qa/tasks/filestore_idempotent: shorter test
Test a shorter sequence of events.  Currently the test is taking
more than 5 hours; we don't need to run quite that long.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-02-21 08:37:14 -06:00
Mykola Golub
56e762b13a test/librbd: fix required features for ViaLockOwner tests
The rename operation is RPCed only when journaling is enabled.

The snap_remove operation is RPCed only when either fast-diff or
journaling is enabled.

The rename, snap_create, and snap_remove do not require layering.

Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-02-21 15:25:38 +02:00
Mykola Golub
9d6fc30e54 librbd: make rename request complete with filtered code
Fixes: http://tracker.ceph.com/issues/23068
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-02-21 15:25:19 +02:00
Kefu Chai
14673a4509
Merge pull request #20475 from tchaikov/wip-std-string-view
common/str_list: s/boost::string_view/std::string_view

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-02-21 20:57:22 +08:00
Igor Fedotov
8471cb4202 os/bluestore: implement BlueStore repair
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-02-21 15:56:35 +03:00
Igor Fedotov
072af9043b os/bluestore: simplify SharedBlob::put_ref interface
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-02-21 15:56:32 +03:00
Kefu Chai
b06dd3bb0a
Merge pull request #20443 from rzarzynski/wip-common-inlineable-ceph_clock_now
common: make ceph_clock_now() inlineable.

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-21 10:14:44 +08:00
Kefu Chai
cda5a196fc
Merge pull request #20439 from jcsp/wip-percent_used
mon: dump percent_used PGMap field as float

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-02-21 10:13:48 +08:00
David Zafman
058d8b007d doc: Add missing pg states from doc
Signed-off-by: David Zafman <dzafman@redhat.com>
2018-02-20 14:44:56 -08:00