Commit Graph

102766 Commits

Author SHA1 Message Date
Sage Weil
c6358390e3 crimson/osd/pg: add schedule_renew_lease stub
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
1e87f1494e osd/PeeringState: do full on_new_interval on new peering interval
This looks like a bug from the PeeringState transition.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
d883db7028 osd: schedule regular lease renewals
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
19d770832b osd: send and process lease[_ack] messages
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
0863bdeb40 osd: add lease/readable tracking members, helpers
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
a48da26ea9 osd/osd_types: add pg_lease[_ack]_t
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
5b5aa8b0c8 osd: add mono_timer
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
6b6392bef6 osd/osd_types: add READ_LEASE_INTERVAL pool property, osd_pool_readable_min_ratio
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
893fb92e58 osd/PeeringStage: PGPool::get_readable_interval() accessor
For now, just do the heartbeat interval * 2.  Eventually we'll want a
pool property.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
a0b453ad33 osd/osd_types: add PG_STATE_WAIT
PG is waiting for previous intervals' readable intervals to expire.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
7df85a66cd osd/osd_types: add PG_STATE_LAGGY
PG is laggy (unreadable) because ping(s) are delayed.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Sage Weil
caaf0f8eb6 osd/osd_types: pg_history_t: add prior_readable_until_ub
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 12:21:53 -05:00
Lenz Grimmer
f742283f1a
mgr/dashboard: REST API: OpenAPI docs require internet connect… (#30477)
mgr/dashboard: REST API: OpenAPI docs require internet connection

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-09-26 16:14:45 +00:00
Nathan Cutler
048f5ae726
Merge pull request #30557 from smithfarm/wip-42023
install-deps.sh: add EPEL repo for non-x86_64 archs as well

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2019-09-26 18:03:50 +02:00
Sage Weil
3c9a28568f osd/PeeringState: PG state 64 bits wide
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 10:55:09 -05:00
Volker Theile
5730883b7e mgr/dashboard: Configuring an URL prefix does not work as expected
Fixes: https://tracker.ceph.com/issues/41797

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-09-26 17:37:16 +02:00
jtlayton
f0dfc7f3b3
Merge pull request #30590 from jtlayton/wip-42032
ceph.spec.in: fix Cython package dependency for Fedora
2019-09-26 11:35:36 -04:00
Lenz Grimmer
b8951d43e6
Merge pull request #29460 from rhcs-dashboard/bucket-versioning
mgr/dashboard: enable/disable versioning on RGW bucket

Reviewed-by: Volker Theile <vtheile@suse.com>
2019-09-26 15:27:58 +00:00
Nathan Cutler
fe4d094985 qa/distros/all: add openSUSE 15.1, drop openSUSE 12.2
Signed-off-by: Nathan Cutler <ncutler@suse.com>
2019-09-26 17:09:32 +02:00
Sage Weil
764dc0d2cd qa/suites/rados/singleton/all/ec-lost-unfound: no rbd pool
This can interfere with the test.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 09:46:10 -05:00
Sage Weil
71cbda4cd5 qa/tasks/ceph.conf.template: disable power-of-2 warning
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 09:29:32 -05:00
Sage Weil
d8d2b71db5 qa/standalone/mon/health-mute: use power of 2 for pg_num
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-26 09:29:32 -05:00
Ricardo Marques
14763dfb51
Merge pull request #30208 from ricardoasmarques/support-iscsi-controls-types
mgr/dashboard: Controls UI inputs based on "type"

Reviewed-by: Tiago Melo <tmelo@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-09-26 14:45:58 +01:00
Patrick Donnelly
9fb9d9b326
Merge PR #28834 into master
* refs/pull/28834/head:
	libcephfs: Add test for lazyio via libcephfs
	libcephfs: Add lazyio_propogate and lazyio_synchronize methods to libcephfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2019-09-26 06:26:46 -07:00
Patrick Donnelly
ed7e20b5e8
Merge PR #29818 into master
* refs/pull/29818/head:
	client/MetaRequest: Add age to MetaRequest dump
	osdc/Objecter: Add age to the ops
	common/ceph_time: Use fixed floating-point notation for mono_clock

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Adam C. Emerson <aemerson@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-09-26 06:25:17 -07:00
Patrick Donnelly
50de222147
Merge PR #29902 into master
* refs/pull/29902/head:
	mds: Revert "properly setup client_need_snapflush for snap inode"
	mds: cleanup dirty snap caps tracking

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-09-26 06:23:18 -07:00
Patrick Donnelly
e7b35b5bc2
Merge PR #29921 into master
* refs/pull/29921/head:
	mds: split the dir if the op makes it oversized

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Zheng Yan <zyan@redhat.com>
2019-09-26 06:22:01 -07:00
Patrick Donnelly
a3a9408e67
Merge PR #30202 into master
* refs/pull/30202/head:
	mds: Explicitly call slave_updates with 0 size
	mds: Move log_segment_seq_t into class LogSegment
	mds: Reorganize class members in LogSegment header

Reviewed-by: Jos Collin <jcollin@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-09-26 06:20:48 -07:00
Patrick Donnelly
d8f6c937ba
Merge PR #30403 into master
* refs/pull/30403/head:
	mds: mds returns -5 error when the deleted file does not exist

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2019-09-26 06:19:39 -07:00
Patrick Donnelly
b09b17ef15
Merge PR #30462 into master
* refs/pull/30462/head:
	qa: have kclient tests use new mount.ceph functionality

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
2019-09-26 06:17:10 -07:00
Lenz Grimmer
5f701e6cd7
mgr/dashboard: Support iSCSI target-level CHAP auth (#30011)
mgr/dashboard: Support iSCSI target-level CHAP auth

Reviewed-by: Tiago Melo <tmelo@suse.com>
2019-09-26 12:33:33 +00:00
Kefu Chai
76be9ef0f8
Merge pull request #30588 from ricardoasmarques/fix-iscsi-test-put
mgr/dashboard: Wait for iSCSI target put and delete

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
2019-09-26 20:22:39 +08:00
Jeff Layton
40c5a18f81 ceph.spec.in: fix Cython package dependency for Fedora
Fedora distros do not have python3?-Cython packages, but they do have
python3-Cython ones. Fix the BuildRequires so that we only use the
python3_version_nodots based version string for RHEL.

Fixes: https://tracker.ceph.com/issues/42032
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-09-26 08:20:57 -04:00
Ricardo Marques
e97a8a76e5 mgr/dashboard: Wait for iSCSI target put and delete
Signed-off-by: Ricardo Marques <rimarques@suse.com>
2019-09-26 13:12:34 +01:00
Nathan Cutler
76d6b52986
Merge pull request #30571 from smithfarm/wip-bci-force
src/script/backport-create-issue: implement --force option

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2019-09-26 12:25:35 +02:00
Ricardo Marques
f61cb6fc63 mgr/dashboard: Controls UI inputs based on "type"
iSCSI controls UI inputs should be rendered based
on the control "type" returned by `ceph-iscsi`.

Fixes: https://tracker.ceph.com/issues/41682

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2019-09-26 10:30:10 +01:00
Lenz Grimmer
36d1e644e1
mgr/dashboard: test_mgr_module QA test has not been adapted to… (#30513)
mgr/dashboard: Adapt test_mgr_module QA test to latest controller changes

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2019-09-26 08:48:31 +00:00
Michael Prokop
d98b3e36a9 doc: fix typos
s/amount of times/number of times/
s/assosciated/associated/
s/availabe/available/
s/Commiting/Committing/
s/Containter/Container/
s/dependant/dependent/
s/developement/development/
s/filesytem/filesystem/
s/guarenteed/guaranteed/
s/hiearchy/hierarchy/
s/intance/instance/
s/Interger/Integer/
s/mutiple/multiple/
s/nubmer/number/
s/occured/occurred/
s/overriden/overridden/
s/reseted/reset/
s/sytem/system/
s/unkown/unknown/

Signed-off-by: Michael Prokop <mika@grml.org>
2019-09-26 09:17:07 +02:00
Lenz Grimmer
ffefbc0a96
mgr/dashboard: wait for iscsi/target create/put (#30582)
mgr/dashboard: wait for iscsi/target create/put

Reviewed-by: Laura Paduano <lpaduano@suse.com>
2019-09-26 07:11:49 +00:00
Alfonso Martínez
8955809716 mgr/dashboard: enable/disable versioning on RGW bucket
Fixes: https://tracker.ceph.com/issues/40920
Signed-off-by: Alfonso Martínez <almartin@redhat.com>
2019-09-26 08:41:14 +02:00
Kefu Chai
0d9afd7137
Merge pull request #30578 from tchaikov/wip-seastar-unix-domain-socket
seastar: pickup unix domain socket support

Reviewed-by: Ronen Friedman <rfriedma@redhat.com>
2019-09-26 12:42:07 +08:00
Kefu Chai
82d72161f2 mgr/dashboard: wait for iscsi/target create/put
IscsiTarget.create() returns a Task, so we need to wait for its
completion before moving on.

the same applies to IscsiTarget.put()

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-09-26 08:56:42 +08:00
Jeff Layton
bd20464d74 client: don't ceph_abort on bad llseek whence value
There is no need to abort in this case. Just return -EINVAL.

Fixes: https://tracker.ceph.com/issues/41871
Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-09-25 15:59:49 -04:00
Sage Weil
add574bc94 messages/MOSDOpReply: ensure input payload is not passed via reply
The reply shouldn't include the input payload, for the sake of efficiency.

This has the slightly annoying side-effect that the class name and method
are no longer visible in osd_op_reply messages.  However, it does mean
that any data payload is not sent back to the client.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-25 13:29:20 -05:00
Sage Weil
5dd03479f7 osd/PrimaryLogPG: make proxied writes behave with RETURNVEC
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-25 13:29:20 -05:00
Sage Weil
da6282eb0b cls/hello: test large return buffer overflow
Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-25 13:29:10 -05:00
Sage Weil
de1a8eb641 osd/PrimaryLogPG: impose a per-op return buffer limit (32)
Limit the return value size for writes, so that we don't inadvertantly
stuff too much data in the PGLog.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-25 13:29:10 -05:00
Sage Weil
c9746ff62e osd/PrimaryLogPG: include op_returns in pg log [dup] records, reply
If the op has the RETURNVEC flag set,

- Record the per-op return value and overall return code in the pg log and
  dup records.
- Include the same in the actual MOSDOpReply back to the client.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-25 13:29:10 -05:00
Jeff Layton
d070deef7d client: remove Inode dir_contacts field
...nothing uses this, and it's not quite clear what it's for in the
first place.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
2019-09-25 13:31:46 -04:00
Sage Weil
2027eb2584 osd/osd_types: reset payload_len in merge_osd_op_vector_out_data
This is cleaner and simpler.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-09-25 11:06:10 -05:00