1
0
mirror of https://github.com/ceph/ceph synced 2024-12-22 19:34:30 +00:00
Commit Graph

87623 Commits

Author SHA1 Message Date
Igor Fedotov
16a9a0db3d test/fio: dump mempool on job completion
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
2018-06-12 14:48:44 +03:00
Kefu Chai
a7279bd553 osd/PG: unset history_les_bound if local-les is used
reset history_les_bound if we set max_last_epoch_started_found with
shard's local-les. otherwise it'd be misleading to show
"peering_blocked_by_history_les_bound" in the output of "pg query" if a
pg is stuck in incomplete and/or peering, and the best shard is not
chosen based on the history.les .

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-12 19:09:24 +08:00
Ricardo Marques
88d7b575ec mgr/dashboard: Add help menu entry
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-06-12 11:46:46 +01:00
Ricardo Marques
1b9bdcfac9 mgr/dashboard: Add CephReleaseNamePipe
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-06-12 11:46:46 +01:00
Ricardo Marques
a97991d480 mgr/dashboard: Summary endpoint should return ceph version
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2018-06-12 11:46:45 +01:00
Tiago Melo
9381204f52 mgr/dashboard: Add filtered rows number in table footer
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-06-12 10:13:52 +01:00
Kefu Chai
a4034ec0f2 githubmap: update contributors
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-12 12:50:19 +08:00
Kefu Chai
54216f3c25 cmake: only build extra boost libraries only if WITH_SEASTAR
unit_test_framework is an alias of test, and Boost::test is only
necessary if seastar's tests are built. but SEASTAR_ENABLE_TESTS is
reset by us, so drop tests/unit_test_framework here.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-12 12:38:05 +08:00
LiuYangkuan
97188fef85 client: fix bug _ll_drop_pins may access invalid iterator
Fixes: https://tracker.ceph.com/issues/24491
Signed-off-by: Liu Yangkuan <liuyangkuan@gmail.com>
2018-06-11 23:34:21 -04:00
Kefu Chai
1f976a7d95
Merge pull request 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>
2018-06-12 11:05:12 +08:00
Mao Zhongyi
8d5bee2d46 rbd: interlock object-map/fast-diff features together
Since we only support Jewel and later releases, which both support
object-map and fast-diff, enabling/disabling object-map should always
enable/disable fast-diff.

Signed-off-by: Mao Zhongyi <maozy.fnst@cn.fujitsu.com>
2018-06-12 09:25:55 +08:00
Sage Weil
d826f6e8a2 Merge PR into master
* refs/pull/22501/head:
	messages/MOSDPGLog: encode epoch for query_epoch for pre-nautilus OSDs

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-06-11 16:14:13 -05:00
Sage Weil
ebfef2db9a Merge PR into master
* refs/pull/22499/head:
	os/bluestore: fix SharedBlobSet deregister race

Reviewed-by: git push gh masterVarada Kari <varadaraja.kari@flipkart.com>
2018-06-11 16:13:38 -05:00
Sage Weil
5ec1245ba9 githubmap: update contributors
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 16:13:37 -05:00
Sage Weil
1e64c86d1a
Merge pull request from liewegas/wip-localpool-config
qa/workunits/mgr/test_localpool.sh: use new config syntax
2018-06-11 16:08:18 -05:00
Sage Weil
599bfd8cb8 common/blkdev: fix non-linux build for get_device_id
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 10:11:54 -05:00
Kefu Chai
bfa45d539e
Merge pull request from zhongyimao/update-the-vstart-options
doc: document vstart options

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-06-11 21:01:45 +08:00
Sage Weil
f1f879ac8b common/blkdev: do not include vendor in fallback mode
The 'vendor' file usually contains a string like "ATA", not an actual
vendor.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 08:00:41 -05:00
Sage Weil
3030fb8512 mgr: allow open-ended life expectancy
If you leave off the second part of the life expectancy interval, it means
"more than".  e.g., Setting only the first time to today + one month would
mean "more than one month".

Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:04 -05:00
Sage Weil
f222375cbc mgr: use prettified durations for life expectancy
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:04 -05:00
Sage Weil
b4efd7362c common/ceph_time: very lame timespan_str() helper
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:04 -05:00
Sage Weil
4920bbd6cb mgr: "predicted failure" -> "life expectancy", and as a range
1- Change terminology from "predicted failure" to "life expectancy", which
has a more intuitive meaning.

2- Change from an expected time stamp to a range.  Any expectancy has an
inherent uncertainty, so a single time is not meaningful.  Instead, express
as a range, e.g. "4-6 weeks from now", where we record the min and max
date as well as when the prediction was made.

This is still a bit awkward, but I'm not sure what is better.  It will
always be a bit awkward to express uncertainty since in precise terms it
is probably a 90% confidence interval or something.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:04 -05:00
Sage Weil
adfd1ef610 mgr: detailed output for 'ceph device ...'
For JSON ls* commands, dump the full device metadata.

For plain commands, dump tables with useful information.

This is nicer for humans and jq-users, less friendly for those who want
to write a simple bash loop.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:04 -05:00
Sage Weil
7add8da7b0 mgr/DaemonState: skip blank device_ids
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:04 -05:00
Sage Weil
bab66065eb osd: skip blank device ids
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:04 -05:00
Sage Weil
6b6fe52aac mgr: track and report device names too
If you're looking at a specific device by its unique id, it's also nice
to know what device name (sdb etc) it is and on which host.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:04 -05:00
Sage Weil
a946216a16 mgr/ActivePyModule: expose 'devices' to python modules
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:03 -05:00
Sage Weil
46ab713e1f mgr: move dump/print to DeviceState
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:03 -05:00
Sage Weil
47abea157c mgr: implement 'device {set,rm}-predicted-failure' commands
Record predicted device failure time.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:29:03 -05:00
Sage Weil
45d4dfed1d mgr: load persistent device metadata on mgr stat
Prune DeviceState when there is no persistent metadata and no daemon
references.  Load persistent metadata from config-key.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:28:50 -05:00
Sage Weil
8986e1050b include/utime: add parse() method
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-11 07:28:50 -05:00
Sage Weil
49009fd5ba
Merge pull request from markhpc/wip-bs-cache-autotune
common/PriorityCache: First Step toward priority based caching

Reviewed-by: Sage Weil <sage@redhat.com>
2018-06-11 07:27:10 -05:00
Mao Zhongyi
0bf97047cf 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>
2018-06-11 18:44:58 +08:00
Mao Zhongyi
c62714b81a 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>
2018-06-11 18:44:45 +08:00
Kefu Chai
d8dfe7fad3
Merge pull request from wjwithagen/wjw-include-types-buffer
common: include include/types.h early, otherwise Clang will error.

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-06-11 18:40:28 +08:00
Kefu Chai
3f0f51fa5a
Merge pull request from wjwithagen/wjw-fix-oath2
cmake: oath lives in liboath

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-06-11 18:38:30 +08:00
Tiago Melo
084ad0a509 mgr/dashboard: Remove unused code
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-06-11 10:54:39 +01:00
Tiago Melo
ca8e7e82df mgr/dashboard: Update services to use the new 'provideIn' configuration
Angular 6 introduced a new way to define where a service should be provided,
which helps during the build of the project.

Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-06-11 10:54:39 +01:00
Tiago Melo
d5b67fc718 mgr/dashboard: Update Angular to version 6
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-06-11 10:54:39 +01:00
Lenz Grimmer
1a97a9f9e4
Merge pull request 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>
2018-06-11 11:28:47 +02:00
Lenz Grimmer
64473c5929
Merge pull request 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>
2018-06-11 11:01:11 +02:00
Volker Theile
98b4a854fb rgw: Get the user metadata of the user used to sign the request
Add REST endpoint /admin/metadata/user?myself to get the metadata of the user that is used to sign the request.

See feature request https://tracker.ceph.com/issues/24335.

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-06-11 10:51:14 +02:00
Mao Zhongyi
f7ec92df26 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>
2018-06-11 13:34:30 +08:00
Sage Weil
168e20ab8b messages/MOSDPGLog: encode epoch for query_epoch for pre-nautilus OSDs
This fix is analogous to d5a3ae6008.  As of
84a1984b7c 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>
2018-06-10 21:41:54 -05:00
cuixf
488a2a9a72 osd: fix memory leak at EC read
Clean the in_progess and shard_to_read_map when the read op is complete,
to prevent memory leak and primary osd crash.

Signed-off-by: xiaofei cui <cuixiaofei@sangfor.com>
2018-06-10 22:07:27 -04:00
Sage Weil
345ea53bd3 os/bluestore: fix SharedBlobSet deregister race
In commit 8c8944b2c4 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>
2018-06-10 17:42:34 -05:00
Sage Weil
9154a392b0
Merge pull request from liewegas/wip-upgrade-distro
qa/suites/rados/upgrade: remove stray link
2018-06-10 13:42:23 -05:00
Sage Weil
2d7bfafa87 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>
2018-06-10 13:37:56 -05:00
Sage Weil
dadf4c769b qa/workunits/mgr/test_localpool.sh: use new config syntax
Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-10 13:08:52 -05:00
Willem Jan Withagen
0c63f42219 cmake: cmake: oath lives in liboath
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2018-06-10 16:21:41 +02:00