Commit Graph

78048 Commits

Author SHA1 Message Date
Sage Weil
7649062edb mon/OSDMonitor: encode without MIMIC if require_osd_release < mimic
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:06 -04:00
Sage Weil
2587abc30d mon: remove mon_osd_allow_primary_{temp,affinity}
These are covered by require_osd_release in the OSDMap.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:05 -04:00
Sage Weil
33606aec2a mon/Elector: drop pre-luminous elector compat
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:05 -04:00
Sage Weil
4b3e399903 mon/PGMap: remove old PGMapUpdater methods
These were used by PGMonitor.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:05 -04:00
Sage Weil
3ac23d88b4 osd/OSDMap: remove unused static
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:05 -04:00
Sage Weil
fced000707 mon/PGMap: remove legacy encode/decode methods
These were used by PGMonitor when stored in per-pg and per-osd k/v
pairs.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:05 -04:00
Sage Weil
ef5cd825df mon/PGMap: streamline encoding
The only user left is 'pg getmap' and ceph-dencoder; we can drop
the compat cruft.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:05 -04:00
Sage Weil
ebe59dbd7e mon/PGMap: remove unused functions
These are left over from health cleanup

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:05 -04:00
Sage Weil
8723ecfb3c mon/PGMap: remove Incremental encode/decode
Unused!

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:04 -04:00
Sage Weil
83b9ef73c0 mon/PGMap: remove osd_epochs
This was used for the min_last_epoch_clean tracking; we don't need
it now.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:04 -04:00
Sage Weil
19beabf836 mon/PGMap: remove min_last_epoch_clean
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:04 -04:00
Sage Weil
e716267324 osd/OSDMap: remove get_full_osd_util
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:04 -04:00
Sage Weil
0d67ad48b3 mon/PGMap: remove full osd tracking
Also drop compat PGMap encoding since we are >= luminous and this is
local to the mgr anyway.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:04 -04:00
Sage Weil
63b71f677d mon: remove PGStatService
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:04 -04:00
Sage Weil
37e4ac02e8 mon: drop pgservice member
Just use mgrstatmon() directly.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:04 -04:00
Sage Weil
0027eb2578 mon: make MgrStatMonitor implement PGStatService directly
Avoid the intermediate glue class, simplify.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:04 -04:00
Sage Weil
35195a3d19 mon/PGStatService: prune interface
Remove now unused methods

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:03 -04:00
Sage Weil
81741d6b34 mon/OSDMonitor: drop pre-luminous PGStatService users
These are no longer relevant now that we are >= luminous.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:03 -04:00
Sage Weil
1dcab1c770 mon: drop PGMapStatService
There is only one user and one implementation; this just makes the
code hard to read.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:03 -04:00
Sage Weil
c4728db340 mon/OSDMonitor: drop legacy 'osd df'
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:03 -04:00
Sage Weil
d9cd2d7df6 mon: add MIMIC mon feature
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:03 -04:00
Sage Weil
c16566cc9a mon: drop hide_mgr_flag behavior
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:03 -04:00
Sage Weil
cea8ca9c5f mon: collapse MonPGStatService into PGStatService
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:02 -04:00
Sage Weil
81bee4c6f6 mon: remove some upgrade-specific bits of PGStatService
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:02 -04:00
Sage Weil
f85e09783f mon: remove PGMonitor
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:02 -04:00
Sage Weil
7b4a741fbd mon: remove OldHealthMonitor
The only service this provided was mon space notifications, which
are now handled explicitly by the new HealthMonitor's
check_member_health(), and communited by the new MMonHealthChecks.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:02 -04:00
Sage Weil
729a08923f mon: remove legacy get_health infrastructure
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:02 -04:00
Sage Weil
59325c45ff mon: CEPH_MON_FEATURE_INCOMPAT_MIMIC
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:02 -04:00
Sage Weil
ac8548ca97 mon: require SERVER_LUMINOUS from mons, osds
Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-06 10:18:01 -04:00
Yan, Zheng
f519fca9dd mds: fix return value of MDCache::dump_cache
previous commit "mds: track snap inodes through sorted map" makes
MDCache::dump_cache return 1 on success.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
2017-09-06 21:32:43 +08:00
liuchang0812
365558571c mon: incorrect MAX AVAIL in "ceph df"
Fixes: http://tracker.ceph.com/issues/21243

Signed-off-by: liuchang0812 <liuchang0812@gmail.com>
2017-09-06 21:09:29 +08:00
Willem Jan Withagen
7b7fe48f65 .githubmap: Add myself
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
2017-09-06 14:18:57 +02:00
Pan Liu
fdb4048a92 os/filestore: use __func__ instead of hardcode function name
Signed-off-by: Pan Liu <wanjun.lp@alibaba-inc.com>
2017-09-06 18:06:06 +08:00
Orit Wasserman
f71af81251 Merge pull request #16145 from yehudasa/wip-20234
rgw: add tail tag to track tail instance
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2017-09-06 10:23:30 +03:00
Mykola Golub
86c6f429fc Merge pull request #17502 from dillaman/wip-21248
librbd: rename of non-existent image results in seg fault

Reviewed-by: Nathan Cutler <ncutler@suse.com>
2017-09-06 10:14:04 +03:00
Mykola Golub
b1e9cabe82 Merge pull request #17375 from liupan1111/wip-final-fix-nbd
rbd-nbd: fix generic option issue

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
2017-09-06 09:27:38 +03:00
Jos Collin
01f29ef615 Merge pull request #17507 from batrick/githubmap-update
githubmap: add some known Ceph reviewers

Reviewed-by: Jos Collin <jcollin@redhat.com>
2017-09-06 04:18:39 +00:00
Patrick Donnelly
73e927293c
Merge PR #17319 into master
* refs/remotes/upstream/pull/17319/head:
	qa: whitelist expected rstat warning
	qa: sync whitelist with fs/basic_functional
	qa: whitelist expected MDS_CACHE_OVERSIZED

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-09-05 20:49:54 -07:00
Patrick Donnelly
a962708d56
Merge PR #17301 into master
* refs/remotes/upstream/pull/17301/head:
	mds: fix "1 filesystem is have a..." message

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-09-05 20:49:19 -07:00
Patrick Donnelly
eaa8c5d6d8
Merge PR #17263 into master
* refs/remotes/upstream/pull/17263/head:
	mds: remove unused method
	mds: move EMetaBlob cons to header

Reviewed-by: Zheng Yan <zyan@redhat.com>
2017-09-05 20:45:35 -07:00
Patrick Donnelly
96db892db2
Merge PR #17178 into master
* refs/remotes/upstream/pull/17178/head:
	ceph-dencoder: simplify decoding/encoding cephfs inode

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
2017-09-05 20:44:39 -07:00
Patrick Donnelly
2302b6c521
Merge PR #17095 into master
* refs/remotes/upstream/pull/17095/head:
	client: reset unmounting flag to false when starting a new mount
	client: add mountedness check inside client_lock
	client: rework Client::get_local_osd() return codes
	client: remove misleading comment in get_cap_ref

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Douglas Fuller <dfuller@redhat.com>
2017-09-05 20:44:04 -07:00
Patrick Donnelly
f37f2ea10c
Merge PR #16562 into master
* refs/remotes/upstream/pull/16562/head:
	cephfs/fuse: set big_writes default is false

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-09-05 20:43:28 -07:00
Patrick Donnelly
28ca766cd2
Merge PR #16305 into master
* refs/remotes/upstream/pull/16305/head:
	qa/cephfs: test CephFS recovery pools
	qa/cephfs: support CephFS recovery pools
	qa/ceph_test_case: support CephFS recovery pools
	qa/cephfs: Allow deferred fs creation
	qa/cephfs: Refactor alternate pool test

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2017-09-05 20:42:30 -07:00
Patrick Donnelly
4cb459a19d
githubmap: add some known GitHub reviewers
Selection from [1] where the GitHub username is available.

[1] http://pad.ceph.com/p/reviewers

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-09-05 20:29:11 -07:00
Kefu Chai
0717fc3488 Merge pull request #17447 from tchaikov/wip-freebsd-coredump
test/coredumpctl: support freebsd

Reviewed-by: Willem Jan Withagen <wjw@digiware.nl>
2017-09-06 11:16:08 +08:00
Sage Weil
f24095e0e9 crush: fix fast rule lookup when uniform
Older clients will search for the first rule with a matching ruleset,
type, and size.  The has_uniform_rules bool is only set if we have rule
ids and rulesets that line up, but we must also verify that the rest of the
mask matches or else we can get a different CRUSH mapping result because
the mask might not match and old clients will fail to find a rule and we
will find one.  We also can't just check the ruleset as the legacy clients
find the *first* (of potentially many) matching rules; hence we only do
the fast check if all rulesets == rule id.

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-05 22:27:05 -04:00
Jason Dillaman
aeb8f29d21 test/cls_rbd: mask newer feature bits to support upgrade tests
Fixes: http://tracker.ceph.com/issues/21217
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2017-09-05 21:37:16 -04:00
Patrick Donnelly
2b2b3d2035
mds: reset Formatter on error
This prevents partial results from concatenating with the error message.

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

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2017-09-05 14:45:07 -07:00
Sage Weil
444f5aa085 qa/objectstore/bluestore*: less debug output
Let's see if this makes the spurious MON_DOWN failures go away?  (See
http://tracker.ceph.com/issues/20910)

Signed-off-by: Sage Weil <sage@redhat.com>
2017-09-05 17:43:28 -04:00