Commit Graph

89229 Commits

Author SHA1 Message Date
Venky Shankar
315aa47a07 mds: add perf counters to track current open/stale sessions
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2018-08-16 02:16:50 -04:00
Patrick Donnelly
de86952aca
Merge PR #23592 into master
* refs/pull/23592/head:
	tools/cephfs-shell:used cmd2 inbuilt colorize method instead of colorama

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-15 12:17:11 -07:00
Pavani Rajula
5eac53c659 tools/cephfs-shell:used cmd2 inbuilt colorize method instead of colorama
Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-15 20:47:20 +05:30
Kefu Chai
760e4718db
Merge pull request #23580 from tchaikov/wip-man-page-parse-desc
man: skip directive starting with ".."

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
2018-08-15 16:48:46 +08:00
Kefu Chai
ad93d71c8f man: skip directive starting with ".."
the target definition of hyper link looks like:

.. _a-reference-label:

there is chance that we need to add `:ref:` referencing man pages,
and add target definition at the beginning of the manapges for the
references. in that case, we need to skip the ref directives when
looking for the title of the manpage.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-08-15 13:28:54 +08:00
Kefu Chai
4cf9e35cf5
Merge pull request #23564 from falcon78921/wip-docs-links-1
doc: fixed broken urls

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-08-15 11:46:28 +08:00
Sage Weil
b0b616df7b Merge PR #23240 into master
* refs/pull/23240/head:
	qa/suites/rados, qa/workunits/rados: Add suite/workunit for ceph-crash
	add ceph-crash service
	common/options: enable mgr 'crash' module by default
	global/signal_handler: add 'done' file to signal crashdump is ready

Reviewed-by: Sage Weil <sage@redhat.com>
2018-08-14 20:31:29 -05:00
Jason Dillaman
7b5dce63c4 Merge pull request #15831 from trociny/wip-18430-1
librbd: support migrating images with minimal downtime

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 19:05:13 -04:00
Mykola Golub
dbc32361ef librbd: drop snap lock before sending copyup request
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
d3d3b51b8d librbd: restart object deep copy with flatten
if copyup request was appended with non empty writes when the deep
copy was in flight.

Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
fccaa4838f librbd: update in-memory migration snap map after creating snap
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
57ee7e1491 librbd: AsyncOperation may not be reused
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
59336a5dea librbd: migrate: skip update object map for snaps that don't overlap
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
96e6639b13 librbd: don't update object map if object deep copy returned ENOENT
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
1cfbf1ec65 librbd: open migration image parent and store its pointer in ImageCtx
Use the pointer in copyup and migrate requests, when deep copying an
object.

Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
894ffca543 librbd: use 'open snap by id' in clone request
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
09d2f2265f librbd: use 'open snap by id' in deep copy image copy request
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
c04bd3df46 librbd: use 'open snap by id' in refresh parent request
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
5065dd8fa0 librbd: allow to open snapshot by id
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
4c8731fe3c librbd: separate read vs write migration parent overlaps
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
178aaa03b1 librbd: corrected usage of ImageState::open flag parameter
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
210ea0cb76 librbd: migration should keep parent linkage by default
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
b498aa0380 librbd: move shared common clone parent logic to state machine
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 18:29:45 -04:00
Jason Dillaman
91d6ac1121 librbd: normalize clone state machine method names and debug logs
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
b13784ed9e librbd: update executing state description with migration % complete
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
72df087dbd rbd: make status show migration details if it is in progress
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
0ddc684b6c rbd: show when parent is migration source in info output
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
977969730d librbd: get_parent_info: don't try to find parent snap name for CEPH_NOSNAP
(it is possible now when the parent is a migration source)

Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
7f27f19753 rbd: CLI to migrate images
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
2bcc61a854 pybind/rbd: API for image migration
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
119c7ea66b librbd: API for image migration
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
813e5f28cf librbd: allow 'migrating' internal feature on image create
We want this feature set from the start to avoid races when a client
is opening an image being prepared for migration.

Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
7000860b26 librbd: handle CEPH_NOSNAP case outside of deep_copy::util::compute_snap_map
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
eed5415aec librbd: add function to wait writes unblocked
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
04c33f6bd6 librbd: use newly added method to list watchers in remove request
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
8d3e0e093e librbd: async request to list watchers
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:45 -04:00
Mykola Golub
179a5b82d6 librbd: allow to remove already opened image
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:44 -04:00
Mykola Golub
91bb4775d6 librbd: shortcut to skip v2 probing when opening v1 image
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:44 -04:00
Mykola Golub
3d785798e1 librbd: add flags to open request
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:44 -04:00
Mykola Golub
57ef57abd9 cls/rbd: add assert_snapc_seq method
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:44 -04:00
Mykola Golub
ad4809bab2 librbd: add "migration" trash image source
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:44 -04:00
Mykola Golub
431b443718 cls/rbd: add "migration" trash image source
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:44 -04:00
Mykola Golub
2f7c4ae3fc cls/rbd: methods to set/get/remove image migration header
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-08-14 18:29:44 -04:00
James McClune
aab29672e4
doc: added :ref: directive for osdmaptool
Added :ref: directive for osdmaptool utility.

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
2018-08-14 18:04:06 -04:00
James McClune
d1c087c93d
doc: added osdmaptool cross reference
Added osdmaptool cross reference for docs/rados/operations/control.rst.

Signed-off-by: James McClune <jmcclune@mcclunetechnologies.net>
2018-08-14 17:59:09 -04:00
Andrew Schoen
2bec876995
Merge pull request #23532 from alfredodeza/wip-rm24960
ceph-volume:  expand auto engine for single type devices on filestore

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-08-14 20:59:24 +00:00
Casey Bodley
b2fe116d97
Merge pull request #23402 from cbodley/wip-23659
qa/rgw: patch keystone requirements.txt

Reviewed-by: Orit Wasserman <owasserm@redhat.com>
2018-08-14 16:53:30 -04:00
Patrick Donnelly
fbfbe8f3df
Merge PR #23426 into master
* refs/pull/23426/head:
	client: privatize some class members
	client: reorganize Client header

Reviewed-by: Venky Shankar <vshankar@redhat.com>
2018-08-14 11:50:09 -07:00
Patrick Donnelly
a807a7ebf0
Merge PR #23470 into master
* refs/pull/23470/head:
	tools/cephfs-shell: unable to copy files to a sub-directory from local file system

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-08-14 09:41:01 -07:00
Pavani Rajula
b726ac2513 tools/cephfs-shell: unable to copy files to a sub-directory from local file system
Fixes:http://tracker.ceph.com/issues/26874

Signed-off-by: Pavani Rajula <rpavani1998@gmail.com>
2018-08-14 21:48:04 +05:30