]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
7 years agoMerge pull request #19628 from shinobu-x/wip-22501-luminous
Yuri Weinstein [Thu, 1 Feb 2018 23:07:36 +0000 (15:07 -0800)]
Merge pull request #19628 from shinobu-x/wip-22501-luminous

 luminous: tests: do not configure ec data pool with memstore

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #19630 from shinobu-x/wip-22507-luminous
Yuri Weinstein [Thu, 1 Feb 2018 23:06:56 +0000 (15:06 -0800)]
Merge pull request #19630 from shinobu-x/wip-22507-luminous

 luminous: bluestore: do not crash on over-large objects

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #19742 from tchaikov/wip-luminous-pr-19649-and-19650
Yuri Weinstein [Thu, 1 Feb 2018 23:06:17 +0000 (15:06 -0800)]
Merge pull request #19742 from tchaikov/wip-luminous-pr-19649-and-19650

luminous: common/dns, erasure-code: fix mem leaks

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20049 from liewegas/wip-zero-length-luminous
Yuri Weinstein [Thu, 1 Feb 2018 23:02:15 +0000 (15:02 -0800)]
Merge pull request #20049 from liewegas/wip-zero-length-luminous

os: fix 0-length zero semantics, test

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20068 from smithfarm/wip-22761-luminous
Yuri Weinstein [Thu, 1 Feb 2018 23:01:35 +0000 (15:01 -0800)]
Merge pull request #20068 from smithfarm/wip-22761-luminous

luminous: osd: do not check out-of-date osdmap for DESTROYED flag on start

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20069 from smithfarm/wip-22770-luminous
Yuri Weinstein [Thu, 1 Feb 2018 23:01:11 +0000 (15:01 -0800)]
Merge pull request #20069 from smithfarm/wip-22770-luminous

luminous: tools: ceph-objectstore-tool set-size should clear data-digest

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #20150 from pdvian/wip-22807-luminous
Yuri Weinstein [Thu, 1 Feb 2018 23:00:41 +0000 (15:00 -0800)]
Merge pull request #20150 from pdvian/wip-22807-luminous

luminous: mon: do not use per_pool_sum_delta to show recovery summary

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
7 years agoMerge pull request #19370 from shinobu-x/wip-22339-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:15:14 +0000 (13:15 -0800)]
Merge pull request #19370 from shinobu-x/wip-22339-luminous

luminous: client: quit on failed remount during dentry invalidate test #19370

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19585 from ukernel/luminous-22460
Yuri Weinstein [Thu, 1 Feb 2018 21:14:47 +0000 (13:14 -0800)]
Merge pull request #19585 from ukernel/luminous-22460

luminous: mds: handle client session messages when mds is stopping

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19626 from shinobu-x/wip-22499-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:14:18 +0000 (13:14 -0800)]
Merge pull request #19626 from shinobu-x/wip-22499-luminous

 luminous: cephfs-journal-tool: tool would miss to report some invalid range

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19627 from shinobu-x/wip-22500-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:13:48 +0000 (13:13 -0800)]
Merge pull request #19627 from shinobu-x/wip-22500-luminous

 luminous: cephfs: potential adjust failure in lru_expire

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19776 from ukernel/luminous-22492
Yuri Weinstein [Thu, 1 Feb 2018 21:13:16 +0000 (13:13 -0800)]
Merge pull request #19776 from ukernel/luminous-22492

luminous: mds: respect mds_client_writeable_range_max_inc_objs config

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19829 from pdvian/wip-22573-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:12:48 +0000 (13:12 -0800)]
Merge pull request #19829 from pdvian/wip-22573-luminous

luminous: vstart_runner: fixes for recent cephfs changes

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19830 from shinobu-x/wip-22579-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:12:20 +0000 (13:12 -0800)]
Merge pull request #19830 from shinobu-x/wip-22579-luminous

luminous: mds: check for CEPH_OSDMAP_FULL is now wrong; cluster full flag is obsolete

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19871 from smithfarm/wip-21948-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:11:52 +0000 (13:11 -0800)]
Merge pull request #19871 from smithfarm/wip-21948-luminous

luminous: mon: MDSMonitor: reject misconfigured mds_blacklist_interval

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19959 from smithfarm/wip-22694-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:11:28 +0000 (13:11 -0800)]
Merge pull request #19959 from smithfarm/wip-22694-luminous

luminous: mds: fix dump last_sent

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19962 from smithfarm/wip-22580-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:11:02 +0000 (13:11 -0800)]
Merge pull request #19962 from smithfarm/wip-22580-luminous

luminous: tests: full flag not set on osdmap for tasks.cephfs.test_full

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19968 from ukernel/luminous-22699
Yuri Weinstein [Thu, 1 Feb 2018 21:10:29 +0000 (13:10 -0800)]
Merge pull request #19968 from ukernel/luminous-22699

luminous: ceph-fuse: ::rmdir() uses a deleted memory structure of dentry leads …

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #19982 from ukernel/luminous-22719
Yuri Weinstein [Thu, 1 Feb 2018 21:09:07 +0000 (13:09 -0800)]
Merge pull request #19982 from ukernel/luminous-22719

luminous: mds: handle 'inode gets queued for recovery multiple times'

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoMerge pull request #20042 from tchaikov/wip-pr-19998-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:05:39 +0000 (13:05 -0800)]
Merge pull request #20042 from tchaikov/wip-pr-19998-luminous

luminous: fix broken use of streamstream::rdbuf()

Reviewed-by: Sage Weil <sage@redhat.com>
7 years agoMerge pull request #20106 from smithfarm/wip-22502-luminous
Yuri Weinstein [Thu, 1 Feb 2018 21:04:16 +0000 (13:04 -0800)]
Merge pull request #20106 from smithfarm/wip-22502-luminous

luminous: osd: Pool Compression type option doesn't apply to new OSDs

Reviewed-by: Kefu Chai <kchai@redhat.com>
7 years agoMerge pull request #20240 from ceph/backport-20010
Alfredo Deza [Thu, 1 Feb 2018 20:07:48 +0000 (15:07 -0500)]
Merge pull request #20240 from ceph/backport-20010

luminous: ceph-volume: adds a --destroy flag to ceph-volume lvm zap

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: clean up docstrings for lvm zap 20240/head
Andrew Schoen [Thu, 18 Jan 2018 20:54:55 +0000 (14:54 -0600)]
ceph-volume: clean up docstrings for lvm zap

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 57471fe7e74c94351e713ff99cbcbaa7dc6a0f52)

7 years agoceph-volume: print a message to terminal if --destroy is skipped
Andrew Schoen [Thu, 18 Jan 2018 20:41:53 +0000 (14:41 -0600)]
ceph-volume: print a message to terminal if --destroy is skipped

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit d2529ee5dd9a4dc6a81eeb2d5e54c0bdd6beeb2f)

7 years agoceph-volume: no need to set PVolume.vg_name explicitly
Andrew Schoen [Thu, 18 Jan 2018 20:34:22 +0000 (14:34 -0600)]
ceph-volume: no need to set PVolume.vg_name explicitly

This will be set automatically in __init__ by looping
through kw.items and creating properties on PVolume
with them.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 129182645c4a7e5e42500d3ef2083cfdfb0137e4)

7 years agoceph-volume: switch remove_vg and remove_pv to process.run
Andrew Schoen [Thu, 18 Jan 2018 20:31:20 +0000 (14:31 -0600)]
ceph-volume: switch remove_vg and remove_pv to process.run

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 5a1be9a73919e13fe603861588bcc20872a4c133)

7 years agoceph-volume: allow passing a fail_msg param to process.run
Andrew Schoen [Thu, 18 Jan 2018 20:25:46 +0000 (14:25 -0600)]
ceph-volume: allow passing a fail_msg param to process.run

This will allow the user to provide a more detailed error message
on why the command failed.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 7204851042fa42799e1003ef57d57a512d4a7f28)

Conflicts:
src/ceph-volume/ceph_volume/process.py

7 years agoMerge pull request #20239 from ceph/backport-19949
Alfredo Deza [Thu, 1 Feb 2018 20:01:04 +0000 (15:01 -0500)]
Merge pull request #20239 from ceph/backport-19949

luminous: ceph-volume: adds --crush-device-class flag for lvm prepare and create #19949

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: tests for lvm zap --destroy
Andrew Schoen [Thu, 18 Jan 2018 18:04:38 +0000 (12:04 -0600)]
ceph-volume: tests for lvm zap --destroy

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit fafa183d8f13fa769eaab5f865f6592b89225901)

7 years agoceph-volume: also remove pvs with lvm zap --destroy
Andrew Schoen [Thu, 18 Jan 2018 17:10:48 +0000 (11:10 -0600)]
ceph-volume: also remove pvs with lvm zap --destroy

Leaving the pv around doesn't keep us from redeploying on
that device because we also wipefs, but explicitly destroying
it makes the output read better.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit cb748ccb2264aea93dd4717a46d7f833c5b1eccd)

7 years agoceph-volume: adds an api.lvm.remove_pv method
Andrew Schoen [Thu, 18 Jan 2018 17:10:15 +0000 (11:10 -0600)]
ceph-volume: adds an api.lvm.remove_pv method

Used to remove physical volumes

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 0811c02b118c270b2bec87cd26a877b26bc780b1)

7 years agoceph-volume: remove the -a flag from api.lvm.get_pvs
Andrew Schoen [Thu, 18 Jan 2018 17:05:32 +0000 (11:05 -0600)]
ceph-volume: remove the -a flag from api.lvm.get_pvs

When we run `pvs -a` it returns all pvs, even ones that
have been recently deleted. Because of this pvs that have just
been zapped with `lvm zap` show up and can cause issues if a device
is zapped more than once.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 10a349742cae909d1ebf0a0b3b49c88774929f53)

7 years agoceph-volume: docs for the --destroy flag of lvm zap
Andrew Schoen [Thu, 18 Jan 2018 14:26:07 +0000 (08:26 -0600)]
ceph-volume: docs for the --destroy flag of lvm zap

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 708cb43c503e962304211041570d6ca660bca1fb)

7 years agoceph-volume: adds the --destroy flag to ceph-volume lvm zap
Andrew Schoen [Wed, 17 Jan 2018 21:11:19 +0000 (15:11 -0600)]
ceph-volume: adds the --destroy flag to ceph-volume lvm zap

If you use the --destroy flag and are zapping a raw device
or parition then zap will destroy any vgs or lvs it finds on that
device.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit aea326b772395c076e0d75f7c2f591a46aef7f57)

7 years agoceph-volume: adds an api.lvm.remove_vg method
Andrew Schoen [Wed, 17 Jan 2018 19:12:17 +0000 (13:12 -0600)]
ceph-volume: adds an api.lvm.remove_vg method

This method can be used to remove volume groups

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 50a6a543a956d133b428cf36ad629c2131be5490)

7 years agoceph-volume: expose vg_name in api.lvm.get_api_pvs
Andrew Schoen [Wed, 17 Jan 2018 18:58:50 +0000 (12:58 -0600)]
ceph-volume: expose vg_name in api.lvm.get_api_pvs

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit b7f24ec451e167d81a83c1e21597a9fece4f0684)

7 years agoMerge pull request #20238 from ceph/backport-19875
Alfredo Deza [Thu, 1 Feb 2018 19:55:57 +0000 (14:55 -0500)]
Merge pull request #20238 from ceph/backport-19875

luminous: ceph-volume: adds success messages for lvm prepare/activate/create

Reviewed-by: Alfredo Deza <adeza@redhat.com>
7 years agoceph-volume: print the lvm activate success message correctly 20239/head
Andrew Schoen [Wed, 17 Jan 2018 17:44:10 +0000 (11:44 -0600)]
ceph-volume: print the lvm activate success message correctly

Move the terminal.success to the methods that have access to the
correct osd_id so that they do not print None for the osd_id
in the log message.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit c9f7689a7a71a6b2321301b84599f319e8ae8eba)

7 years agoceph-volume: docs for --crush-device-class
Andrew Schoen [Mon, 15 Jan 2018 17:55:44 +0000 (11:55 -0600)]
ceph-volume: docs for --crush-device-class

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 21f459437bd1208812504a20e5a50f7a47bfa979)

7 years agoceph-volume: adds crush_device_class to json metadata for 'osd new'
Andrew Schoen [Thu, 11 Jan 2018 19:11:31 +0000 (13:11 -0600)]
ceph-volume: adds crush_device_class to json metadata for 'osd new'

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 3404d8bba503f3f74f411b11108d39cb626d3bed)

7 years agoceph-volume: adds crush_device_class to the functional tests
Andrew Schoen [Thu, 11 Jan 2018 19:04:07 +0000 (13:04 -0600)]
ceph-volume: adds crush_device_class to the functional tests

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 36a388d72acb049b5ee25ceea6a8d341aa58e31f)

7 years agoceph-volume: add crush_device_class to lvm metadata
Andrew Schoen [Wed, 10 Jan 2018 18:19:54 +0000 (12:19 -0600)]
ceph-volume: add crush_device_class to lvm metadata

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 11da2185635ce14103471d851f1e8c84199d3745)

7 years agoceph-volume: adds a --crush-device-class flag to lvm create and prepare
Andrew Schoen [Wed, 10 Jan 2018 15:29:15 +0000 (09:29 -0600)]
ceph-volume: adds a --crush-device-class flag to lvm create and prepare

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit bf468bc3737c15a8f15ec19ebf81c42672e28aaf)

7 years agoceph-volume: adds success message to ceph-volume simple activate 20238/head
Andrew Schoen [Tue, 9 Jan 2018 18:21:35 +0000 (12:21 -0600)]
ceph-volume: adds success message to ceph-volume simple activate

This used to only show the message if systemd was not being used, now
it will show this always if the command is successful.

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 87c6ed14e7e0b528a1fe107e2e531908cdea0f47)

7 years agoceph-volume: add success message for ceph-volume lvm create
Andrew Schoen [Tue, 9 Jan 2018 15:52:23 +0000 (09:52 -0600)]
ceph-volume: add success message for ceph-volume lvm create

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 0185d93cc1be1e7a6d3a803631ff92df9787754a)

7 years agoceph-volume: add success message for ceph-volume lvm activate
Andrew Schoen [Tue, 9 Jan 2018 15:48:09 +0000 (09:48 -0600)]
ceph-volume: add success message for ceph-volume lvm activate

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit d30928d7c7d7cfb7e465ec2e7e46dc48407436f0)

7 years agoceph-volume: add success message for ceph-volume lvm prepare
Andrew Schoen [Tue, 9 Jan 2018 15:45:40 +0000 (09:45 -0600)]
ceph-volume: add success message for ceph-volume lvm prepare

Signed-off-by: Andrew Schoen <aschoen@redhat.com>
(cherry picked from commit 75c460f6e1864f15e1d23146c5740ce43c000e42)

7 years agoMerge pull request #20237 from ceph/backport-wip-rm22281
Andrew Schoen [Thu, 1 Feb 2018 19:43:41 +0000 (20:43 +0100)]
Merge pull request #20237 from ceph/backport-wip-rm22281

luminous: ceph-volume rollback on failed OSD prepare/create

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
7 years agoceph-volume lvm.create rollback osd creation when prepare or activate fails 20237/head
Alfredo Deza [Tue, 5 Dec 2017 20:31:55 +0000 (15:31 -0500)]
ceph-volume lvm.create rollback osd creation when prepare or activate fails

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 07be6fe0ab7981ebdc34779a8ccd6220d640a549)

7 years agoceph-volume lvm.create fallback to bluestore when objectstore is not specified
Alfredo Deza [Tue, 5 Dec 2017 15:22:05 +0000 (10:22 -0500)]
ceph-volume lvm.create fallback to bluestore when objectstore is not specified

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 6781d6498e01bfc89189c235540e5c2a2e6bc8ca)

7 years agoceph-volume lvm.prepare fallback to bluestore when objectstore is not specified
Alfredo Deza [Tue, 5 Dec 2017 15:21:20 +0000 (10:21 -0500)]
ceph-volume lvm.prepare fallback to bluestore when objectstore is not specified

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 9b17ad2f8fe617d219fdb2f46dd2675669f32f08)

7 years agoceph-volume lvm.prepare rollback osd when prepare fails and an osd id was generated
Alfredo Deza [Tue, 5 Dec 2017 15:11:03 +0000 (10:11 -0500)]
ceph-volume lvm.prepare rollback osd when prepare fails and an osd id was generated

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit 579d12806b2ffc693a4e70ba3eaf663fa281d35e)

7 years agoceph-volume lvm.common create a rollback_osd utility to cleanup failed osd prepare...
Alfredo Deza [Tue, 5 Dec 2017 15:08:35 +0000 (10:08 -0500)]
ceph-volume lvm.common create a rollback_osd utility to cleanup failed osd prepare/create calls

Signed-off-by: Alfredo Deza <adeza@redhat.com>
(cherry picked from commit e533792e0dbafc160238c0f5783f4430e2705571)

7 years agoMerge pull request #19483 from smithfarm/wip-22375-luminous
Jason Dillaman [Thu, 1 Feb 2018 17:30:26 +0000 (12:30 -0500)]
Merge pull request #19483 from smithfarm/wip-22375-luminous

luminous: build/ops: luminous build fails with --without-radosgw

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20211 from dillaman/wip-22198-luminous
Jason Dillaman [Thu, 1 Feb 2018 17:10:34 +0000 (12:10 -0500)]
Merge pull request #20211 from dillaman/wip-22198-luminous

luminous: librbd: compare and write against a clone can result in failure

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agotest/librbd: disable compare and write if skipping partial discard 20211/head
Jason Dillaman [Wed, 15 Nov 2017 13:24:50 +0000 (08:24 -0500)]
test/librbd: disable compare and write if skipping partial discard

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4e8b0b60a72fe1e1ac10a2beb46b77d4b58c91c4)

7 years agolibrbd: refactor object write request state machines
Jason Dillaman [Thu, 9 Nov 2017 17:10:30 +0000 (12:10 -0500)]
librbd: refactor object write request state machines

Fixes: http://tracker.ceph.com/issues/20789
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 0e643fb926f0484bb4f860740c7f85b692de6737)

7 years agolibrbd: consolidate all object discard-related logic into single state machine
Jason Dillaman [Thu, 9 Nov 2017 15:24:08 +0000 (10:24 -0500)]
librbd: consolidate all object discard-related logic into single state machine

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 318797f59adcedcc386e01f1975011e0086434ac)

7 years agolibrbd: simplify interface between object IO and copyup state machines
Jason Dillaman [Wed, 8 Nov 2017 17:31:28 +0000 (12:31 -0500)]
librbd: simplify interface between object IO and copyup state machines

The initial copyup was not receiving a write hint and the
code for hints was duplicated multiple times. Additionally,
the object map state should match the last executed write op.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 7117aa4ecaf0b619b527b2783fa1d09b11f3dd55)

Conflicts:
src/librbd/io/ObjectRequest.h: trivial resolution

7 years agolibrbd: copyup state machine needs to handle empty write ops
Jason Dillaman [Thu, 9 Nov 2017 20:15:58 +0000 (15:15 -0500)]
librbd: copyup state machine needs to handle empty write ops

The compare-and-write object operation cannot be executed
concurrently within a copyup operation since the object might not
exist yet (if not performing a deep-copy).

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit f6db9b8027b6978b4d28fcf9f0389c88f9109e75)

7 years agolibrbd: object cacher should re-use read state machine
Jason Dillaman [Tue, 7 Nov 2017 19:36:10 +0000 (14:36 -0500)]
librbd: object cacher should re-use read state machine

This adds support for sparse-reads and ensures all object reads
utilize a single, tested code path.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit e79c0cf2009c69681ed4c70f52ade2f5fd570567)

7 years agolibrbd: refactor io::ObjectReadRequest
Jason Dillaman [Tue, 7 Nov 2017 17:24:44 +0000 (12:24 -0500)]
librbd: refactor io::ObjectReadRequest

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 62c3282b875f7345d7b71228d1e35e0cc87d44fa)

7 years agolibrbd: default template parameter for C_SparseReadRequest
Jason Dillaman [Tue, 7 Nov 2017 19:17:25 +0000 (14:17 -0500)]
librbd: default template parameter for C_SparseReadRequest

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit ab0e558961ed9b63c00ad1d09ee0f9f79fd62295)

7 years agolibrbd: reduce lock scope when assembling read results
Jason Dillaman [Tue, 7 Nov 2017 18:42:19 +0000 (13:42 -0500)]
librbd: reduce lock scope when assembling read results

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 284feb6a32795c64b1c5ec3b3bf0d959e72dd940)

7 years agolibrbd: ObjectReadRequest does not require buffer extents
Jason Dillaman [Tue, 7 Nov 2017 18:33:12 +0000 (13:33 -0500)]
librbd: ObjectReadRequest does not require buffer extents

The ReadResult wrapper requires the buffer extents to know
how to properly reconstruct the out buffer.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 35ce1c2d39302011adbf494ada6248495681a436)

7 years agolibrbd: templatize IO object request state machines
Jason Dillaman [Mon, 6 Nov 2017 23:35:42 +0000 (18:35 -0500)]
librbd: templatize IO object request state machines

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 654a78fa54520370f5466f9d282d4e9f8365ad48)

7 years agotest/librados_test_stub: mocked remainder of IO ops used by librbd
Jason Dillaman [Sat, 11 Nov 2017 02:45:13 +0000 (21:45 -0500)]
test/librados_test_stub: mocked remainder of IO ops used by librbd

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit c4e5613e4a74316ba9667654e887a835b240609a)

7 years agotest/librados_test_stub: simulate set_alloc_hint creating a non-existent file
Jason Dillaman [Fri, 10 Nov 2017 21:26:19 +0000 (16:26 -0500)]
test/librados_test_stub: simulate set_alloc_hint creating a non-existent file

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4b851ce0fa534ca043aca835057b9d68660971a4)

7 years agotest/librados_test_stub: pass snap context to zero op
Mykola Golub [Wed, 23 Aug 2017 07:46:42 +0000 (09:46 +0200)]
test/librados_test_stub: pass snap context to zero op

Signed-off-by: Mykola Golub <mgolub@mirantis.com>
(cherry picked from commit 78ca0fde22076e8b156feb8dfd60aaee316a1895)

7 years agoMerge pull request #20209 from dillaman/wip-22033-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:15:26 +0000 (11:15 -0500)]
Merge pull request #20209 from dillaman/wip-22033-luminous

luminous: mgr/dashboard: added iSCSI IOPS/throughput metrics

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20210 from dillaman/wip-22169-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:14:48 +0000 (11:14 -0500)]
Merge pull request #20210 from dillaman/wip-22169-luminous

luminous: librbd: set deleted parent pointer to null

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20208 from dillaman/wip-21920-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:13:36 +0000 (11:13 -0500)]
Merge pull request #20208 from dillaman/wip-21920-luminous

luminous: librbd: default to sparse-reads for any IO operation over 64K

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20207 from dillaman/wip-21793-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:12:42 +0000 (11:12 -0500)]
Merge pull request #20207 from dillaman/wip-21793-luminous

luminous: rbd-mirror: primary image should register in remote, non-primary image's journal

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20206 from dillaman/wip-21694-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:12:11 +0000 (11:12 -0500)]
Merge pull request #20206 from dillaman/wip-21694-luminous

luminous: librbd: journal should ignore -EILSEQ errors from compare-and-write

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20205 from dillaman/wip-22577-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:11:39 +0000 (11:11 -0500)]
Merge pull request #20205 from dillaman/wip-22577-luminous

luminous: qa/workunits/rbd: simplify split-brain test to avoid potential race

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #20153 from pdvian/wip-22809-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:11:04 +0000 (11:11 -0500)]
Merge pull request #20153 from pdvian/wip-22809-luminous

luminous: librbd: fix snap create/rm may taking long time

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #20135 from dillaman/wip-22806-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:09:15 +0000 (11:09 -0500)]
Merge pull request #20135 from dillaman/wip-22806-luminous

luminous: librbd: force removal of a snapshot cannot ignore dependent children

Reviewed-by: Mykola Golub <mgolub@suse.com>
7 years agoMerge pull request #19123 from pdvian/wip-22174-luminous
Jason Dillaman [Thu, 1 Feb 2018 16:00:25 +0000 (11:00 -0500)]
Merge pull request #19123 from pdvian/wip-22174-luminous

luminous: possible deadlock in various maintenance operations

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agoMerge pull request #17875 from smithfarm/wip-21359-luminous
Yuri Weinstein [Wed, 31 Jan 2018 22:10:45 +0000 (14:10 -0800)]
Merge pull request #17875 from smithfarm/wip-21359-luminous

luminous: cephfs: racy is_mounted() checks in libcephfs

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agoclient: quit on failed remount during dentry invalidate test 19370/head
Abhishek Lekshmanan [Wed, 31 Jan 2018 21:57:42 +0000 (22:57 +0100)]
client: quit on failed remount during dentry invalidate test

Fixes: http://tracker.ceph.com/issues/22269
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
(cherry picked from commit 5b2b1d14468c290c56ee6c95ea557c99464e0098)

Conflicts:
  PendingReleaseNotes: trivial conflict
src/ceph_fuse.cc
src/client/Client.cc: i chosed to pick code from 5b2b1d1 because, to fixthe issue, we need to call _do_remount which was introduced in 5b2b1d1.

7 years agoMerge pull request #20121 from batrick/i21252p2
Yuri Weinstein [Wed, 31 Jan 2018 21:21:50 +0000 (13:21 -0800)]
Merge pull request #20121 from batrick/i21252p2

luminous: mds: fix return value of MDCache::dump_cache

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
7 years agomon: s/mds_blacklist_interval/mon_mds_blacklist_interval/ 19871/head
John Spray [Wed, 18 Oct 2017 10:34:53 +0000 (11:34 +0100)]
mon: s/mds_blacklist_interval/mon_mds_blacklist_interval/

We can rename LEVEL_DEV options at will.

Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit ed7fc5370c45deb4c80a36e9166e6dd84d4a2b99)

7 years agomon: tidy up mds_blacklist_interval
John Spray [Tue, 17 Oct 2017 22:06:07 +0000 (23:06 +0100)]
mon: tidy up mds_blacklist_interval

Remove the misleading reference to this from the client
eviction page, it was never the right option to mention
there (my mistake).

Demote the option from LEVEL_ADVANCED to LEVEL_DEV as it
is hard to imagine a good reason for the user to change it.

Set a hard minimum of one hour, to make it harder to
corrupt` a system by setting it close to zero.

Remove the legacy definition of the field while we're at it.

Fixes: http://tracker.ceph.com/issues/21821
Signed-off-by: John Spray <john.spray@redhat.com>
(cherry picked from commit 0d68d3513e03cc2400facf421e08c8a92cb2886a)

Conflicts:
    doc/cephfs/eviction.rst (trivial resolution of conflict resulting from
        0e43f0f01cd800fee4cd800f1545405b449fa55b being merged to luminous)

7 years agoMerge pull request #20213 from dillaman/wip-21868-luminous
Jason Dillaman [Wed, 31 Jan 2018 18:27:40 +0000 (13:27 -0500)]
Merge pull request #20213 from dillaman/wip-21868-luminous

luminous: doc/rbd: tweaks for the LIO iSCSI gateway

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
7 years agodoc/rbd: tweaks to the Windows iSCSI initiator directions 20213/head
Jason Dillaman [Fri, 3 Nov 2017 14:09:38 +0000 (10:09 -0400)]
doc/rbd: tweaks to the Windows iSCSI initiator directions

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 997bb80ba231c4a21237485ac6780d573be992c2)

7 years agodoc: Added CHAP cofiguration instructions for iSCSI
Ashish Singh [Fri, 20 Oct 2017 15:15:35 +0000 (20:45 +0530)]
doc: Added CHAP cofiguration instructions for iSCSI

Added details to specify the CHAP username and password while
discovering/login the iSCSI target.

Signed-off-by: Ashish Singh <assingh@redhat.com>
(cherry picked from commit 2a5755e0767108aefa6ccfb8a85e5d63e8c04fe8)

7 years agodoc: fix ceph-iscsi-config version number
Mike Christie [Mon, 22 Jan 2018 23:08:55 +0000 (17:08 -0600)]
doc: fix ceph-iscsi-config version number

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 3ab71020a5e420a333cb4a6b0be67ade185c1593)

7 years agodoc: add ceph iscsi test kernel info
Mike Christie [Sat, 20 Jan 2018 22:06:42 +0000 (16:06 -0600)]
doc: add ceph iscsi test kernel info

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 5c30318660eebc882326d87eec39b4fbe4cc85d7)

7 years agodoc: add rbd pool requirement for gwcli
Mike Christie [Tue, 16 Jan 2018 18:46:09 +0000 (12:46 -0600)]
doc: add rbd pool requirement for gwcli

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit b56d994f3addcd9c6a7848dec9be93568cdb2d0e)

7 years agodoc: add daemon-reload for rbd-target-api setup
Mike Christie [Mon, 15 Jan 2018 18:59:37 +0000 (12:59 -0600)]
doc: add daemon-reload for rbd-target-api setup

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 4ca0d508bb9b68c791abc5799d0195f4baace455)

7 years agodoc: add gwcli manual install instructions
Mike Christie [Tue, 16 Jan 2018 18:04:28 +0000 (12:04 -0600)]
doc: add gwcli manual install instructions

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit f45aafed1c7a5393e712f9fbfd7479fc444ad3d8)

7 years agodoc: separate gwcli install from post install setup steps
Mike Christie [Thu, 11 Jan 2018 20:54:06 +0000 (14:54 -0600)]
doc: separate gwcli install from post install setup steps

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit f80f083d0a982d7e89c77e3a6f8d71c2871a8f2c)

7 years agodoc: add note to clarify trusted_ip_list use
Mike Christie [Thu, 11 Jan 2018 20:53:16 +0000 (14:53 -0600)]
doc: add note to clarify trusted_ip_list use

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 3cc367dc6ebca18e884d7c75d2cd1fa7907b7139)

7 years agodoc: update esx instructions
Mike Christie [Thu, 11 Jan 2018 04:14:18 +0000 (22:14 -0600)]
doc: update esx instructions

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 3806f9750d29c6d930a7c8a003902e79b99766f6)

Conflicts:
doc/rbd/iscsi-initiator-esx.rst: trivial resolution

7 years agodoc: add warning about SCSI PGRs/reservations
Mike Christie [Thu, 11 Jan 2018 02:33:03 +0000 (20:33 -0600)]
doc: add warning about SCSI PGRs/reservations

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 62661a2e23ce98432f3c037fa9a8155a633ee182)

7 years agodoc: add esx web based client images
Mike Christie [Thu, 11 Jan 2018 00:51:51 +0000 (18:51 -0600)]
doc: add esx web based client images

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 78e12135eeb5829cad65cebd3c2be9df4d582b1f)

7 years agodoc: remove windows based vsphere client images
Mike Christie [Fri, 12 Jan 2018 01:36:06 +0000 (19:36 -0600)]
doc: remove windows based vsphere client images

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 426b562fdc1b373b72de2d69c4851be22ec12008)

7 years agodoc: fix gwcli examples
Mike Christie [Fri, 12 Jan 2018 01:35:22 +0000 (19:35 -0600)]
doc: fix gwcli examples

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit 480f6a82a2b9dcd0179951ea16432d8d32f2c96d)

7 years agodoc: Update ceph iscsi kernel/distro requirements.
Mike Christie [Wed, 10 Jan 2018 22:38:13 +0000 (16:38 -0600)]
doc: Update ceph iscsi kernel/distro requirements.

Signed-off-by: Mike Christie <mchristi@redhat.com>
(cherry picked from commit f436e993d359dfdad26b7d569d555a3b3a5b798d)

7 years agodoc/rbd: tweaks for the LIO iSCSI gateway
Jason Dillaman [Wed, 11 Oct 2017 16:02:55 +0000 (12:02 -0400)]
doc/rbd: tweaks for the LIO iSCSI gateway

Fixes: http://tracker.ceph.com/issues/21763
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 4f227e108d40271d5d6b2b1e88659d86cbc6c914)