]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agocmake/FindRocksDB: fix IMPORTED_LOCATION for ROCKSDB_LIBRARIES 27601/head
dudengke [Thu, 7 Mar 2019 09:04:11 +0000 (17:04 +0800)]
cmake/FindRocksDB: fix IMPORTED_LOCATION for ROCKSDB_LIBRARIES

Signed-off-by: dudengke <pinganddu90@gmail.com>
(cherry picked from commit 7b6e05a03055d85e4616b7611906c40bbf03bb86)

6 years agoMerge pull request #27500 from smithfarm/wip-39225-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 20:05:14 +0000 (13:05 -0700)]
Merge pull request #27500 from smithfarm/wip-39225-nautilus

nautilus: mds|kclient: MDS_CLIENT_LATE_RELEASE warning caused by inline bug on RHEL 7.5

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #27501 from smithfarm/wip-39135-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 20:04:43 +0000 (13:04 -0700)]
Merge pull request #27501 from smithfarm/wip-39135-nautilus

nautilus: rgw: Make rgw admin ops api get user info consistent with the command line

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27523 from smithfarm/wip-39253-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 20:04:10 +0000 (13:04 -0700)]
Merge pull request #27523 from smithfarm/wip-39253-nautilus

nautilus: ceph-bluestore-tool: bluefs-bdev-expand cmd might assert if no WAL is configured

Reviewed-by: Igor Fedotov <ifedotov@suse.com>
Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #27531 from smithfarm/wip-39260-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 20:03:16 +0000 (13:03 -0700)]
Merge pull request #27531 from smithfarm/wip-39260-nautilus

nautilus: ls -S command produces AttributeError: 'str' object has no attribute 'decode'

Reviewed-by: Venky Shankar <vshankar@redhat.com>
6 years agoMerge pull request #27539 from pdvian/wip-38977-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 20:02:40 +0000 (13:02 -0700)]
Merge pull request #27539 from pdvian/wip-38977-nautilus

nautilus: rbd: krbd: return -ETIMEDOUT in polling

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27541 from ricardoasmarques/wip-39122-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 20:02:05 +0000 (13:02 -0700)]
Merge pull request #27541 from ricardoasmarques/wip-39122-nautilus

nautilus: mgr/dashboard: Adapt iSCSI overview page to make use of ceph-iscsi

Reviewed-by:  Tiago Melo <tmelo@suse.com>

6 years agoMerge pull request #27547 from smithfarm/wip-39271-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 20:01:04 +0000 (13:01 -0700)]
Merge pull request #27547 from smithfarm/wip-39271-nautilus

nautilus: mgr: autoscale down can lead to max_pg_per_osd limit

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #27548 from smithfarm/wip-38777-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 20:00:05 +0000 (13:00 -0700)]
Merge pull request #27548 from smithfarm/wip-38777-nautilus

nautilus: rgw: support delimiter longer then one symbol

Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27550 from smithfarm/wip-39275-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 19:59:24 +0000 (12:59 -0700)]
Merge pull request #27550 from smithfarm/wip-39275-nautilus

nautilus: tests: osd-markdown.sh can fail with CLI_DUP_COMMAND=1

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #27498 from smithfarm/wip-39075-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 19:57:00 +0000 (12:57 -0700)]
Merge pull request #27498 from smithfarm/wip-39075-nautilus

nautilus: multisite: data sync loops back to the start of the datalog after reaching the end

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27496 from sebastian-philipp/wip-39172-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 19:53:47 +0000 (12:53 -0700)]
Merge pull request #27496 from sebastian-philipp/wip-39172-nautilus

nautilus: rook-ceph-system namespace hardcoded in the rook orchestrator

Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge pull request #27555 from liewegas/wip-fix-object-stat-sum-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 19:52:29 +0000 (12:52 -0700)]
Merge pull request #27555 from liewegas/wip-fix-object-stat-sum-nautilus

nautilus: osd/osd_types: fix object_stat_sum_t fast-path decode

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #27559 from theanalyst/wip-nautilus-38883
Yuri Weinstein [Mon, 15 Apr 2019 19:51:31 +0000 (12:51 -0700)]
Merge pull request #27559 from theanalyst/wip-nautilus-38883

nautilus: rgw: LC: handle resharded buckets

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27560 from theanalyst/wip-nautilus-39181
Yuri Weinstein [Mon, 15 Apr 2019 19:50:44 +0000 (12:50 -0700)]
Merge pull request #27560 from theanalyst/wip-nautilus-39181

nautilus: orphans find perf improvements

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27561 from cbodley/wip-39280
Yuri Weinstein [Mon, 15 Apr 2019 19:49:24 +0000 (12:49 -0700)]
Merge pull request #27561 from cbodley/wip-39280

nautilus: rgw: don't recalculate etags for slo/dlo

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27562 from yuriw/wip-yuriw-38952-nautilus
Yuri Weinstein [Mon, 15 Apr 2019 19:47:50 +0000 (12:47 -0700)]
Merge pull request #27562 from yuriw/wip-yuriw-38952-nautilus

nautilus - qa/tests: removed some config settings

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoosd: Fix fast path to use version bumped value 27555/head
David Zafman [Fri, 12 Apr 2019 16:44:14 +0000 (09:44 -0700)]
osd: Fix fast path to use version bumped value

Fix the code so that the version is in one place
for both the slow and fast path.

Caused by: d2ca3d2feb442f97ca89023c7d01178d96f517a6

Fixes: http://tracker.ceph.com/issues/39281
Signed-off-by: David Zafman <dzafman@redhat.com>
(cherry picked from commit a35f1a9ce1d8c3ed1889da5a8d20b1974b1e9684)

6 years agonautilus - qa/tests: removed some config settings 27562/head
Yuri Weinstein [Fri, 12 Apr 2019 16:30:06 +0000 (09:30 -0700)]
nautilus - qa/tests: removed some config settings

Fixes: http://tracker.ceph.com/issues/38952
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoMerge pull request #27475 from pdvian/wip-38968-nautilus
Yuri Weinstein [Fri, 12 Apr 2019 20:12:18 +0000 (13:12 -0700)]
Merge pull request #27475 from pdvian/wip-38968-nautilus

nautilus: librbd: trash move return EBUSY instead of EINVAL for migrating image

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27478 from pdvian/wip-38973-nautilus
Yuri Weinstein [Fri, 12 Apr 2019 20:11:39 +0000 (13:11 -0700)]
Merge pull request #27478 from pdvian/wip-38973-nautilus

nautilus: osd: process_copy_chunk remove obc ref before pg unlock

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agorgw: don't recalculate etags for slo/dlo 27561/head
Casey Bodley [Tue, 9 Apr 2019 19:26:08 +0000 (15:26 -0400)]
rgw: don't recalculate etags for slo/dlo

for slo, we've already calculated this as 'lo_etag' in get_params()
for dlo, the local 'etag' already contains the hash of an empty string

the calls to complete_etag() were calling hash.Final() a second time on
the same hash without a hash.Restart() in between. this apparently
worked fine with NSS, but with OpenSSL the second call to Final()
returns a different value

Fixes: https://tracker.ceph.com/issues/39160
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 4b849a49bd6c6b66f8185739ae21f0e6aa526a1a)

6 years agorgw_orphan: fix detailed mode flag 27560/head
Abhishek Lekshmanan [Mon, 18 Mar 2019 13:23:52 +0000 (14:23 +0100)]
rgw_orphan: fix detailed mode flag

to fix possible member var. hiding

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit c43b7dadfc56868bcaab4bc32cf78612fd5ae0e7)

6 years agorgw-admin: add a detailed mode
Abhishek Lekshmanan [Thu, 14 Feb 2019 16:40:44 +0000 (17:40 +0100)]
rgw-admin: add a detailed mode

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 143ff0d835c99b06e57a373bed2c61e84293ccc7)

6 years agorgw: orphans find: don't process stale bucket instances
Abhishek Lekshmanan [Wed, 13 Feb 2019 14:32:17 +0000 (15:32 +0100)]
rgw: orphans find: don't process stale bucket instances

As a large bucket might have resharded multiple times, check the cur bucket info
and ensure that no reshard is in progress before we attempt to log bucket index
entries. On a large sized bucket, since a bucket would have undergone reshard
multiple times, this avoids wasteful processing of stale bucket instance entries

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 5436ff7fa99061a489f089677c03f63c76bb954b)

6 years agorgw: orphan: introduce a detailed mode (off by default)
Abhishek Lekshmanan [Wed, 13 Feb 2019 12:45:47 +0000 (13:45 +0100)]
rgw: orphan: introduce a detailed mode (off by default)

We currently stat objects that fit in a head as well and also log them, since we
skip head objects anyway in the rados list output this commit avoids logging
these objects if the object size itself is less than the manifest head size.

Additionally we avoid the stat call itself from the list object output when the
object fits within the chunk size. This behaviour can be unset by setting the
detailed mode which can help in older clusters where the head used to have a
different size.

The old behaviour in both the cases can be turned on by setting the detailed
flag which can be passed on from rgw-admin. Avoiding stat calls and not logging
the head objects significantly reduces the IO activity on clusters which have a
huge percentage of objects that fit in a head.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit ca12ecbfed0f65f206e8ad05125fac93c5a5ed0f)

6 years agorgw: orphan: flush bucket index entries only after map is full
Abhishek Lekshmanan [Wed, 13 Feb 2019 12:32:43 +0000 (13:32 +0100)]
rgw: orphan: flush bucket index entries only after map is full

We otherwise may flush more regularly while we don't have enough entries in the
map

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit e9a406c9b036e4c3190077d57fc51d6ea3762475)

6 years agorgw: orphans tool: align with rgw list bucket min readahead
Abhishek Lekshmanan [Wed, 13 Feb 2019 12:15:02 +0000 (13:15 +0100)]
rgw: orphans tool: align with rgw list bucket min readahead

At rgw::rados layer we read upto `min readahead` entries anyway and then pass on
only the requested amount to the caller. Since this translates down to a cls
call requesting a 1000 omap keys by default, it makes sense not to waste the
entries, and process them

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4c033bf0fd0429378ac350eecd78530cc1c11b84)

6 years agocls_rgw: fix issue with gc code using the wrong name 27559/head
Abhishek Lekshmanan [Thu, 14 Mar 2019 21:26:32 +0000 (22:26 +0100)]
cls_rgw: fix issue with gc code using the wrong name

Also use the correct ptr notation

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 35baf931327c4306a72562d41e2b8f7feca0dd24)

6 years agodoc: add troubleshooting notes on reshard admin clis
Abhishek Lekshmanan [Fri, 8 Mar 2019 15:57:28 +0000 (16:57 +0100)]
doc: add troubleshooting notes on reshard admin clis

Adding a note on LC fixes and reshard stale instance fixes

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit dee9ac22f19360ba6436e674c93baea9d97ca5da)

6 years agorgw: lc fix: protect list_keys and formatter with a scope_guard
Abhishek Lekshmanan [Fri, 8 Mar 2019 11:10:30 +0000 (12:10 +0100)]
rgw: lc fix: protect list_keys and formatter with a scope_guard

raii for fun and profit!

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit a7c42a81dcb3ca92d65afd027d4dfb0fa3c50d4e)

6 years agorgw admin: use the new AdminOp to fix lc shards
Abhishek Lekshmanan [Thu, 7 Mar 2019 13:44:27 +0000 (14:44 +0100)]
rgw admin: use the new AdminOp to fix lc shards

Since it can iterate over a list of buckets, also rename the command to lc
reshard fix

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 582c1e7afb5f091d1cde0f1c33ee9aa31f3539e9)

6 years agorgw: add a fix_lc_shards AdminOp that can fix lc shards for all the buckets
Abhishek Lekshmanan [Thu, 7 Mar 2019 13:12:49 +0000 (14:12 +0100)]
rgw: add a fix_lc_shards AdminOp that can fix lc shards for all the buckets

The output would be a list of bucket names and their fix status, currently
buckets which do not need a fix will also be logged with a status of 0.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 767a16815b85e351eafb17fa369f580761e2f22a)

6 years agorgw admin: implement a lc fix option
Abhishek Lekshmanan [Mon, 4 Mar 2019 18:10:45 +0000 (19:10 +0100)]
rgw admin: implement a lc fix option

An radosgw-admin lc fix --bucket <> option is added which checks if the bucket
entry exists in the corresponding lc shard and creates it if not. In case of
resharded buckets not running a fixed rgw that writes/compares the marker this
would write a new entry with the marker as the old entry would've already been
deleted by a LC process. We currently don't cleanup the stale entry as it is
assumed this would be picked up by the LC processor already or would be picked
up in the next cycle.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 4528db4b642c37f67b3338ce04979b1ba7772e3e)

6 years agocls rgw: implement a method to get a single LC entry
Abhishek Lekshmanan [Tue, 5 Mar 2019 12:37:00 +0000 (13:37 +0100)]
cls rgw: implement a method to get a single LC entry

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 64c5d6f880cf6d4d7a93cf4961f14f067d275736)

6 years agocls_rgw: alias the LC entries as rgw_lc_entry_t
Abhishek Lekshmanan [Tue, 5 Mar 2019 12:35:50 +0000 (13:35 +0100)]
cls_rgw: alias the LC entries as  rgw_lc_entry_t

instead of a naked std::pair<std::string, int> everywhere

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 9e1d2a28807fc709b5c9f86132609841e453ae45)

6 years agocls_rgw: implement a read_omap_entry method
Abhishek Lekshmanan [Tue, 5 Mar 2019 12:34:05 +0000 (13:34 +0100)]
cls_rgw: implement a read_omap_entry method

Also refactor other methods that just read a single omap entry to use this
method instead

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 197bc9b124e917c985863f45848c19beae2bd744)

6 years agorgw lc: use marker for the shard id
Abhishek Lekshmanan [Tue, 5 Mar 2019 09:46:23 +0000 (10:46 +0100)]
rgw lc: use marker for the shard id

Since buckets can undergo resharding which changes the bucket id, using the
bucket marker in the shard id can help prevent the need to rewrite the entry as
the buckets get resharded. This also helps detect the exit criteria when the
bucket gets deleted.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit bf64aa843febf2f09aab54f9e0a24aa44f5938ea)

6 years agorgw: drop entries only if the markers do not match.
Abhishek Lekshmanan [Tue, 5 Mar 2019 08:30:57 +0000 (09:30 +0100)]
rgw: drop entries only if the markers do not match.

Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
(cherry picked from commit 3a5647f748185e3a3fc2602a132874c0dfb24368)

6 years agoMerge pull request #27549 from smithfarm/wip-38867-nautilus
Nathan Cutler [Fri, 12 Apr 2019 15:09:36 +0000 (17:09 +0200)]
Merge pull request #27549 from smithfarm/wip-38867-nautilus

nautilus: doc: rgw: Added library/package for Golang

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27544 from tchaikov/nautilus-39164
Kefu Chai [Fri, 12 Apr 2019 12:35:18 +0000 (20:35 +0800)]
Merge pull request #27544 from tchaikov/nautilus-39164

nautilus: install-deps.sh: install '*rpm-macros'

Reviewed-by: Boris Ranto <branto@redhat.com>
6 years agoqa/standalone/osd/osd-markdown: fix dup command disabling 27550/head
Sage Weil [Wed, 10 Apr 2019 21:44:38 +0000 (16:44 -0500)]
qa/standalone/osd/osd-markdown: fix dup command disabling

The ceph cli tool checks for the presence of the variable, not its value.

Fixes: http://tracker.ceph.com/issues/38359
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit f7216d0b2c3a08d0f6e6106e838f84a7af29d396)

6 years agodoc: add package for Golang 27549/head
IrekFasikhov [Fri, 15 Mar 2019 05:42:57 +0000 (08:42 +0300)]
doc: add package for Golang

Fixes: http://tracker.ceph.com/issues/38730
Signed-off-by: Irek Fasikhov <malmyzh@gmail.com>
(cherry picked from commit 76e94f88483864ab345818b9fc31fae908ce70fd)

6 years agorgw: prefix-delimiter listing: support >1 character delimiter 27548/head
Matt Benjamin [Fri, 8 Mar 2019 20:41:05 +0000 (15:41 -0500)]
rgw: prefix-delimiter listing: support >1 character delimiter

Fix prefix and CommonPrefix extraction logic in
RGWRados::Bucket::List::list_objects_ordered so as to permit
arbitrary-length string delimiters.

Fixes: https://tracker.ceph.com/issues/24821
Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
(cherry picked from commit e3c1ea244234aace7368d5a5ee95af2f6a529b00)

6 years agomgr/DaemonServer: prevent pgp_num reductions from outpacing pg_num merges 27547/head
Sage Weil [Tue, 9 Apr 2019 22:12:37 +0000 (17:12 -0500)]
mgr/DaemonServer: prevent pgp_num reductions from outpacing pg_num merges

If we are merging lots of pgs down to a much smaller number of pgs, and
the pgs are able to move quickly (faster than the merges happen), we can
end up with too many pgs on a small number of osds, triggering the max
pgs per osd limits.

Avoid this by preventing the pgp_num reductions from getting too far
out in front of the merges themselves.  Basically, cap the delta between
pgp_num and pg_num to the max_misplaced ratio.  We are already limiting
the movement caused by pgp_num by max_misplaced; this effectively just
makes sure that the actual merging (and pg_num reductions) are keeping
up.

Fixes: http://tracker.ceph.com/issues/38786
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 76503a1438fa1f166d2c230c73ca8d7b67e6468d)

6 years agomgr/rook: Fix Python 2 regression 27496/head
Sebastian Wagner [Thu, 11 Apr 2019 13:32:13 +0000 (15:32 +0200)]
mgr/rook: Fix Python 2 regression

Fixes: http://tracker.ceph.com/issues/39250
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit f9ba374d79cfc984d7209122a0dc88e4a3d2b96b)

6 years agoinstall-deps.sh: install '*rpm-macros' 27544/head
Kefu Chai [Thu, 11 Apr 2019 16:11:42 +0000 (00:11 +0800)]
install-deps.sh: install '*rpm-macros'

so `yum-builddep` can have access to the latest macros for preparing the
build dependencies

Fixes: http://tracker.ceph.com/issues/39164
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 087ea813a061a1d6858aeae57950e90965f4ae15)

6 years agomgr/dashboard: Log `gateway_name` on `iscsi_client` 27541/head
Ricardo Marques [Wed, 3 Apr 2019 08:38:15 +0000 (09:38 +0100)]
mgr/dashboard: Log `gateway_name` on `iscsi_client`

Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit ab0ac43982cbc3fab09c036a3e4cc19ca6521911)

6 years agomgr/dashboard: Display number of sessions on iSCSI overview page
Ricardo Marques [Wed, 3 Apr 2019 07:56:27 +0000 (08:56 +0100)]
mgr/dashboard: Display number of sessions on iSCSI overview page

Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit c988a44f068b2697df08bf8911fa1311fca104e7)

6 years agomgr/dashboard: Adds 'tcmu-runner' to the 'user:rbd' backstore descr
Ricardo Marques [Tue, 2 Apr 2019 15:59:51 +0000 (16:59 +0100)]
mgr/dashboard: Adds 'tcmu-runner' to the 'user:rbd' backstore descr

Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit b7870c8051c33e44b2190d295c1957f2a7a17d89)

6 years agomgr/dashboard: Disable backstore dropdown
Ricardo Marques [Tue, 2 Apr 2019 14:38:04 +0000 (15:38 +0100)]
mgr/dashboard: Disable backstore dropdown

iSCSI backstore is always visible but is disabled
if only one option is available.

Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit 094d7935c39868440b7688cdf98e3e56215f1f9f)

6 years agomgr/dashboard: Improve iSCSI overview page
Ricardo Marques [Thu, 28 Mar 2019 22:49:44 +0000 (22:49 +0000)]
mgr/dashboard: Improve iSCSI overview page

iSCSI overview page will now use information
obtained from ceph-iscsi.

Fixes: https://tracker.ceph.com/issues/39024
Signed-off-by: Ricardo Marques <rimarques@suse.com>
(cherry picked from commit c588269e912ce6a81d0597fe89cb2c7b7086225f)

6 years agorbd: krbd: return -ETIMEDOUT in polling 27539/head
Dongsheng Yang [Mon, 18 Mar 2019 03:04:52 +0000 (23:04 -0400)]
rbd: krbd: return -ETIMEDOUT in polling

We don't want to wait on uevent forever, but the return value
of polling in timeout is 0 rather than a negative value.

Fixes: http://tracker.ceph.com/issues/38792
Signed-off-by: Dongsheng Yang <dongsheng.yang@easystack.cn>
(cherry picked from commit ab833b823bf7dc5750f281a81f31ed8f708df73d)

6 years agoMerge pull request #27450 from ricardoasmarques/wip-39112-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 18:52:50 +0000 (11:52 -0700)]
Merge pull request #27450 from ricardoasmarques/wip-39112-nautilus

nautilus: mgr/dashboard: Display the number of active sessions for each iSCSI target

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27454 from pdvian/wip-38964-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 18:52:18 +0000 (11:52 -0700)]
Merge pull request #27454 from pdvian/wip-38964-nautilus

nautilus: mgr/DaemonServer: handle_conf_change - fix broken locking

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoMerge pull request #27457 from ricardoasmarques/wip-39113-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 18:51:51 +0000 (11:51 -0700)]
Merge pull request #27457 from ricardoasmarques/wip-39113-nautilus

nautilus: mgr/dashboard: Check if gateway is in use before allowing the deletion via `iscsi-gateway-rm` command

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27461 from ricardoasmarques/wip-39119-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 18:51:17 +0000 (11:51 -0700)]
Merge pull request #27461 from ricardoasmarques/wip-39119-nautilus

 nautilus: mgr/dashboard: Error on iSCSI target submission

Reviewed-by:  Tiago Melo <tmelo@suse.com>

6 years agoMerge pull request #27486 from sebastian-philipp/wip-39167-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 18:50:38 +0000 (11:50 -0700)]
Merge pull request #27486 from sebastian-philipp/wip-39167-nautilus

nautilus: Rook: Fix creation of Bluestore OSDs

Reviewed-by: Sébastien Han <seb@redhat.com>
Reviewed-by: Travis Nielsen <tnielsen@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge pull request #27492 from rhcs-dashboard/wip-39003-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 18:48:16 +0000 (11:48 -0700)]
Merge pull request #27492 from rhcs-dashboard/wip-39003-nautilus

nautilus: mgr/dashboard: unify button/URL actions naming + bugfix (add whitelist to guard)

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agocephfs-shell: Change type of d_name to bytes array 27531/head
Varsha Rao [Thu, 11 Apr 2019 07:07:46 +0000 (12:37 +0530)]
cephfs-shell: Change type of d_name to bytes array

By reverting commit 5106582 'd_name' is always a bytes array. This produces
type error wherever 'd_name' is used with 'str' type. In such cases decode it.

Fixes: https://tracker.ceph.com/issues/39060
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit d0db22a6a51d34433fa4a2d3a423373a5684f75d)

6 years agocephfs-shell: Fix hidden files and directories list by ls command
Varsha Rao [Fri, 29 Mar 2019 09:43:18 +0000 (15:13 +0530)]
cephfs-shell: Fix hidden files and directories list by ls command

'ls -a' command should only list the hidden files and directories. This patch
fixes such listing by any other 'ls' commands.

Fixes: https://tracker.ceph.com/issues/38804
Signed-off-by: Varsha Rao <varao@redhat.com>
(cherry picked from commit 67b670b74a0af34aace38e3a8ae99980f4012605)

6 years agoMerge pull request #27505 from tchaikov/nautilus-39164
Yuri Weinstein [Thu, 11 Apr 2019 16:53:35 +0000 (09:53 -0700)]
Merge pull request #27505 from tchaikov/nautilus-39164

nautilus: qa,rpm,cmake: switch over to python3.6

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoos/ceph-bluestore-tool: bluefs-bdev-expand asserts if no WAL 27523/head
Igor Fedotov [Mon, 8 Apr 2019 18:24:31 +0000 (21:24 +0300)]
os/ceph-bluestore-tool: bluefs-bdev-expand asserts if no WAL

Fixes: https://tracker.ceph.com/issues/39143
Signed-off-by: Igor Fedotov <ifedotov@suse.com>
(cherry picked from commit 2d0a9a8dc3f0464da1070bc7d90642acb0b34351)

6 years agoMerge pull request #27329 from pdvian/wip-38921-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:52:22 +0000 (07:52 -0700)]
Merge pull request #27329 from pdvian/wip-38921-nautilus

nautilus: rgw: don't crash on missing /etc/mime.types

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27331 from pdvian/wip-38923-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:51:56 +0000 (07:51 -0700)]
Merge pull request #27331 from pdvian/wip-38923-nautilus

nautilus: rgw: Fix S3 compatibility bug when CORS is not found

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27306 from pdvian/wip-38909-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:49:56 +0000 (07:49 -0700)]
Merge pull request #27306 from pdvian/wip-38909-nautilus

nautilus: rgw: fix read not exists null version return wrong

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27355 from pdvian/wip-38926-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:48:59 +0000 (07:48 -0700)]
Merge pull request #27355 from pdvian/wip-38926-nautilus

nautilus: rgw: Adding tcp_nodelay option to Beast

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27423 from pdvian/wip-38961-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:48:18 +0000 (07:48 -0700)]
Merge pull request #27423 from pdvian/wip-38961-nautilus

nautilus: librbd: look for pool metadata in default namespace

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27390 from pdvian/wip-38957-nautilus
Yuri Weinstein [Thu, 11 Apr 2019 14:47:21 +0000 (07:47 -0700)]
Merge pull request #27390 from pdvian/wip-38957-nautilus

nautilus: mgr/devicehealth: Fix python 3 incompatiblity

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoqa/tasks/ceph_deploy: install python3.6 instead of python3.4 for py3 tests 27505/head
Kefu Chai [Thu, 11 Apr 2019 02:02:32 +0000 (10:02 +0800)]
qa/tasks/ceph_deploy: install python3.6 instead of python3.4 for py3 tests

EPEL7 has switched over to python3.6 as the main python3. and we started
packaging python bindings for python3.6 since
https://github.com/ceph/ceph-build/pull/1283

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 42167b87909c20c9bb4d32bac02b1e01ec94af13)

6 years agoPendingReleaseNotes: note on python3.6 changes
Kefu Chai [Wed, 10 Apr 2019 10:08:04 +0000 (18:08 +0800)]
PendingReleaseNotes: note on python3.6 changes

Fixes: http://tracker.ceph.com/issues/39164
Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 77c5ee06311d610f9accd94edf14becdf5820542)

6 years agorpm: add "Provides: python3-*" for python packages
Kefu Chai [Tue, 9 Apr 2019 15:22:57 +0000 (23:22 +0800)]
rpm: add "Provides: python3-*" for python packages

so user can install python3-rados, instead of python36-rados, without
specifying the minor version of python. also, we should not break our
teuthology tests with this naming scheme change. for instance, our
cephfs qa suite installs `python3-cephfs` for testing the `cephfs-shell`

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 8ae1947728837bf4a4bcc8e9325aea69ff14b706)

6 years agorpm: always use 3 as the default python3_{pkgversion,version}
Kefu Chai [Tue, 9 Apr 2019 15:15:16 +0000 (23:15 +0800)]
rpm: always use 3 as the default python3_{pkgversion,version}

as we have the rpm macros installed in
https://github.com/ceph/ceph-build/pull/1283 .

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 11f0b8d5a8951cb50437f5e87055f3b9405f4556)

6 years agorpm: use python 3.6 as the default python3
Kefu Chai [Sun, 7 Apr 2019 00:43:59 +0000 (08:43 +0800)]
rpm: use python 3.6 as the default python3

some of our centos7 jenkins builders are failing to build ceph master and
nautilus branches. because EPEL7 recently switched from python3.4 to
python3.6 as the native python3. see
https://lists.fedoraproject.org/archives/list/epel-announce@lists.fedoraproject.org/message/EGUMKAIMPK2UD5VSHXM53BH2MBDGDWMO/

and one of our BuildRequires, cmake3,
was offered by EPEL7. it also followed the python3.6 switch-over to
rebuild against python3.6. as a result, the cmake3-data-3.13.4-2.el7
started to depend on /usr/bin/python3.6, which is in turn offered by
python36 package. after installing python36 as a dependency of the
updated cmake3. but in cmake, we originally checks for the latest
python3 interpreter if WITH_PYTHON3 is enabled, that's why these
builders which happen to install these updated packages started to fail
when detecting the existence of python3.6 related build dependencies.

as a fix, in d1e83082,
python%{python3_pkgversion}-{devel,setuptools,Cython} are listed as
BuildRequires to reflect this change in EPEL7. before d1e83082, we
hardwired them to python34-*.

but as following analysis puts, there are cases where `yum-builddep`
is inconsistent with `rpmbuild`. as `yum-builddep` changes the how
`python3_pkgversion` and `python3_version` macros are expanded:

- none of the packages installed by `yum-builddep` installs the python3
  related rpm macros, so the system stays with whatever python3 it was
  using. in this case, `rpmbuild` won't complain, as the
  `python3_pkgversion` and `python_version` are consistent before and
  after `yum-builddep`.
- system has python3.4 installed before `yum-builddep`. but
  `yum-builddep` installed python3.6 and also the updated
  `python-rpm-macros` packages, which points `python3_version` and
  `python3_pkgversion` to 3.6 and 36 respectively. in this case,
  `rpmbuild` will complain, because when we run `yum-builddep`,
  `python3_version` was still "3.4".
- system does not have python3 installed before `yum-builddep`. so
  it was using python34 for preparing the "BuildRequires". but some
  of the packages installed by `yum-builddep` installs python36, and
  also the updated `python-rpm-macros` packages, which points
  `python3_version` and `python3_pkgversion` to 3.6 and 36 respectively.
  in this case, `rpmbuild` will complain, because the python36 related
  dependencies are missing. what the system has is python34
  dependencies.
- system does not have python3 installed before `yum-builddep`. so
  it was using python34 for preparing the "BuildRequires". but some
  of the packages installed by `yum-builddep` installs python34, and
  also the updated `python-rpm-macros` packages, which points
  `python3_version` and `python3_pkgversion` to 3.4 and 34 respectively.
  in this case, `rpmbuild` won't complain, as the
  `python3_pkgversion` and `python_version` are also consistent before and
  after `yum-builddep`.

as we cannot tell if the system has python3 or what the python3 version
the system has before `yum-builddep`, so what we can do is to ensure
`rpmbuild` has what it needs to build Ceph. so let's just stick with
python3.6.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 658ca2b0d79022edbc6cb1e488b243844e87bfbe)

6 years agocmake: should PYTHON3_VERSION_STRING of libpython3
Kefu Chai [Fri, 5 Apr 2019 17:54:15 +0000 (01:54 +0800)]
cmake: should PYTHON3_VERSION_STRING of libpython3

and make sure the version matches exactly the requested one

in future, we should use FindPython.cmake

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit 7b15b682b1201929e0ba9efc332ebb8652be40a8)

6 years agorpm: install python%{python3_pkgversion}-devel on el7
Kefu Chai [Fri, 5 Apr 2019 02:16:23 +0000 (10:16 +0800)]
rpm: install python%{python3_pkgversion}-devel on el7

as RHEL 7.7 support a native python3.6, we cannot hardwire to python3.4
on RHEL7/CentOS7 anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit d1e83082b42f784d83b2342bb953d3931a940173)

6 years agocmake: check for MAJOR.MINOR version of python3
Boris Ranto [Thu, 4 Apr 2019 20:00:55 +0000 (22:00 +0200)]
cmake: check for MAJOR.MINOR version of python3

We can only check for MAJOR.MINOR version of python3 since
FindPython3Libs does not support checking for MAJOR.MINOR.PATCH version
of python3. We also need to make sure we use the PYTHON3 versions of
these variables.

This should fix a regression introduced by c961e00.

Signed-off-by: Boris Ranto <branto@redhat.com>
(cherry picked from commit 8b3f0d5bcce8a5c8ddff0a362fbccb05d18335f6)

6 years agorpm: use python3.4 on RHEL7 by default
Kefu Chai [Thu, 4 Apr 2019 18:46:40 +0000 (02:46 +0800)]
rpm: use python3.4 on RHEL7 by default

python3.4 is the native python3 before 7.6

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit cea9d18ced929a330f2299681ef93768449a05ed)

6 years agorgw: make rgw admin ops api get user info consistent with the command line 27501/head
lishuhao [Mon, 28 Jan 2019 08:05:52 +0000 (16:05 +0800)]
rgw: make rgw admin ops api get user info consistent with the command line

GET /{admin}/user?format=json HTTP/1.1
Host: {fqdn}
This api gets the information is incomplete relative to radosgw-admin user info --uid xxxx

This modification will change the information returned by the three calls :
RGWUserAdminOp_User::info
RGWUserAdminOp_User::create
RGWUserAdminOp_User::modify

Signed-off-by: Li Shuhao <lishuhao@unitedstack.com>
(cherry picked from commit d2c02b37e3a7f7cdd48334d7451930b4db391eec)

6 years agomds: remove SimpleLock::replicate_relax() 27500/head
Yan, Zheng [Wed, 27 Mar 2019 07:05:59 +0000 (15:05 +0800)]
mds: remove SimpleLock::replicate_relax()

The function changes lock to SYNC state without checking issued caps.
which can cause inconsistent between lock state and issued caps.

Besides the function is not very useful because locks except nestlock
have SYNC state as default. It's unlikely that unused lock is in LOCK
state.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 509651702cebd4d4e09eb12865627652ba8cd0c7)

6 years agomds: avoid check session connection's features when issuing caps
Yan, Zheng [Mon, 11 Mar 2019 12:05:25 +0000 (20:05 +0800)]
mds: avoid check session connection's features when issuing caps

Session connection can be null for imported session. The fix is
recording which features client does not support in cap when cap
is newly added.

Fixes: https://tracker.ceph.com/issues/38652
Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
(cherry picked from commit 63410d858a5b52f485a270dbc4b58e45abf1e923)

6 years agoMerge PR #27387 into nautilus
Sage Weil [Wed, 10 Apr 2019 21:49:17 +0000 (16:49 -0500)]
Merge PR #27387 into nautilus

* refs/pull/27387/head:
mgr/pg_autoscaler: apply bias to pg_num selection
mgr/pg_autoscaler: include pg_autoscale_bias in autoscale-status table
osd/osd_types,mon: add pg_autoscale_bias pool property

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge PR #27399 into nautilus
Sage Weil [Wed, 10 Apr 2019 21:48:57 +0000 (16:48 -0500)]
Merge PR #27399 into nautilus

* refs/pull/27399/head:
mon/MonmapMonitor: clean up empty created stamp in monmap

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #27402 into nautilus
Sage Weil [Wed, 10 Apr 2019 21:48:41 +0000 (16:48 -0500)]
Merge PR #27402 into nautilus

* refs/pull/27402/head:
OSD: OSDMapRef access by multiple threads is unsafe

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #27440 into nautilus
Sage Weil [Wed, 10 Apr 2019 21:48:16 +0000 (16:48 -0500)]
Merge PR #27440 into nautilus

* refs/pull/27440/head:
os/filestore/FileJournal: note EIO events
os/filestore: make note of EIO errors when we see them
os/filestore: note devname for later use
global/signal_handler: avoid core dump on EIO
os/bluestore/KernelDevice: note EIO metadata on aio EIO
global: add hook to annotate crash report with EIO information

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agorgw: data sync checks empty next_marker for datalog 27498/head
Casey Bodley [Fri, 29 Mar 2019 14:27:56 +0000 (10:27 -0400)]
rgw: data sync checks empty next_marker for datalog

RGWReadRemoteDataLogShardCR tracks the marker and next_marker
separately, because next_marker will be empty when it reaches the end

this allows RGWDataSyncShardCR to avoid clearing its sync_marker and
restarting datalog listing from the beginning

Fixes: http://tracker.ceph.com/issues/39033
Signed-off-by: Casey Bodley <cbodley@redhat.com>
(cherry picked from commit 2ff63778342282ab5c676529f6e7d90f30e6da1a)

6 years agomgr/rook: Support other system namespaces
Sebastian Wagner [Mon, 1 Apr 2019 13:25:33 +0000 (15:25 +0200)]
mgr/rook: Support other system namespaces

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

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit 2ed1dac04004dc39f5fe3b73ee4ad7d75b886d79)

6 years agoMerge PR #27487 into nautilus
Sage Weil [Wed, 10 Apr 2019 15:28:35 +0000 (10:28 -0500)]
Merge PR #27487 into nautilus

* refs/pull/27487/head:
doc/orchestrator: Fix broken bullet points

6 years agomgr/dashboard: Add whitelist to guard 27492/head
Ernesto Puerta [Fri, 5 Apr 2019 16:22:30 +0000 (18:22 +0200)]
mgr/dashboard: Add whitelist to guard

After PR https://github.com/ceph/ceph/pull/26572, when RGW is not
  configured, accessing /rgw drop-down (daemons, users or buckets)
  results in nothing apparently happening (not even an error).

  Under the curtains, what is happening is that the ModuleStatusGuard
  has redirected the route to the rgw/501, but as this route is now
  under parent rgw route handler, which sets CanActivateChild guards,
  this results in a new ModuleStatusGuard invokation, a subsequent
  failure and a new redirection to rgw/501.

  Several approaches could be taken here:
  - Remove error pages from lazy-loaded modules. Probably it does not
  make sense to have a 501 page per component.
  - Add some whitelist to avoid this kind of loop (e.g.: 501, or any
      error page).
  - Set a max number of redirections (cautionary measure).

Fixes: https://tracker.ceph.com/issues/39125
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit c64b815386d9b7b89c69fb7e8387c7b7b7cf408c)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
6 years agomgr/dashboard: add wording section to hacking.rst
Ernesto Puerta [Fri, 29 Mar 2019 17:07:20 +0000 (18:07 +0100)]
mgr/dashboard: add wording section to hacking.rst

Fixes: http://tracker.ceph.com/issues/37337
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit b8dc3b5c8ab826f926197cd3cd0a597cb43e0a52)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
6 years agomgr/dashboard: unify button/URL actions naming
Ernesto Puerta [Tue, 26 Mar 2019 18:01:01 +0000 (19:01 +0100)]
mgr/dashboard: unify button/URL actions naming

- Mappings (actually an Enum) created for actions (buttons and other UI elements) and URLs: ActionLabels and URLVerbs.
  - An alternative would be to fix/improve the current i18n-polyfill, which only works with literal strings (not even with 'const enums' which become literals after Typescript transpiling).
  - Additionally having a predefined file with some strings to translate (actions, verbs, etc) could improve on the 1st of the 2-stage i18n process (as extraction tool has a lot of limitations).
- A corresponding ActionLabelsI18n service with translated labels (it's a service as I haven't found the way to either translate no-const strings (ngx-translate/AST parser failure) or get a static translator).
  - This services could/should be extended to cover all strings that are defined in static/globally scoped objects before any I18n provider has been initialized.
- Breadcrumbs are not translated (neither were they before this change). This part remains untackled: using 'proxy' static objects and performing live translation could deal with the issue.
- New URLBuilder service created (following a established pattern in the Java/.NET world) . This should avoid the need of messing with literal URLs and string composition/parsing, and while the front-end is not meant to be consumed by anyone, Angular does not provide any other way for the app to navigate between components, so the URLs are a de-facto interface contract. Unlike this approach is not flawless, it's easier to enforce, while issues coming from free-from strings are really hard to catch.
  - This could be further improved by using a router registry/dynamic routing. Most of the routes are trivial.
- As a side effect of these changes, routing module has been refactored and some routes moved to their specific modules (pool, rbd, rgw), via loadChildren and routes.forChild() magic. Now the above mentioned components are lazy-loaded/pre-loaded (it means right after the main code is loaded). This should also decrease the loading time (though probably this is not biggest time eater here).
  - As now modules can be loaded multiple times, not only from App module by means of lazy loading, but also from other ones (as PoolModule loads BlockModule to get QoS widgets in Pool windows), now lazy loaded modules include 2 NgModules (one with imports: RouterModule.forChild(routes), meant for lazy-loading, and another without routes).
- Caveat: Some parts might not be (fully) translated (NFS, iSCSI, mirroring), as there's been ongoing work on them and it's hard to keep up with the new code.
These changes will be a waste of time if the new code does not take benefit from/adheres to it, so I'm still figuring out how to spread this (nothing really fancy to demo). Maybe adding some checks/harnessing to enforce the new naming convention (ideas greatly welcome here).

Fixes: http://tracker.ceph.com/issues/37337
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 33466883948a4155ee2f7716effe1d1f5aa00cc6)
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
6 years agodoc/orchestrator: Fix broken bullet points 27487/head
Sebastian Wagner [Fri, 22 Mar 2019 13:11:05 +0000 (14:11 +0100)]
doc/orchestrator: Fix broken bullet points

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit b175010dcd6c977be944d4929f1e48713e18a6f4)

6 years agomgr/rook: Fix creation of bluestore OSDs: 27486/head
Sebastian Wagner [Mon, 1 Apr 2019 13:22:58 +0000 (15:22 +0200)]
mgr/rook: Fix creation of bluestore OSDs:

See https://rook.io/docs/rook/v0.9/ceph-cluster-crd.html
    Storage Configuration: Specific devices

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

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
(cherry picked from commit 4dcfd71504cc3c1342179f17c42b176e973852e7)

6 years agoosd: process_copy_chunk remove obc ref before pg unlock 27478/head
Zengran Zhang [Mon, 25 Mar 2019 08:54:54 +0000 (16:54 +0800)]
osd: process_copy_chunk remove obc ref before pg unlock

drop the obc ref when pg locked is more safer, if not, on_change
may failed to clear it, and on_flushed may find leak.

Fixes: http://tracker.ceph.com/issues/38842
Signed-off-by: Kefu Chai kchai@redhat.com
Signed-off-by: Zengran Zhang <zhangzengran@sangfor.com.cn>
(cherry picked from commit 70874399da47411e1e07824ef50dd82c4ebb6922)

6 years agolibrbd: trash move return EBUSY instead of EINVAL for migrating image 27475/head
Mykola Golub [Mon, 25 Mar 2019 07:38:53 +0000 (07:38 +0000)]
librbd: trash move return EBUSY instead of EINVAL for migrating image

Fixes: https://tracker.ceph.com/issues/38895
Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit d5b52eaef3626730002792b782cba2db50680d8d)

6 years agoMerge pull request #27388 from liewegas/wip-deferred-log-start-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 23:49:55 +0000 (16:49 -0700)]
Merge pull request #27388 from liewegas/wip-deferred-log-start-nautilus

nautilus: common: fix deferred log starting

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
6 years agoMerge pull request #27449 from ricardoasmarques/wip-39108-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 23:49:04 +0000 (16:49 -0700)]
Merge pull request #27449 from ricardoasmarques/wip-39108-nautilus

nautilus: mgr/dashboard: Typo in "CephFS Name" field on NFS form

Reviewed-by:  Tiago Melo <tmelo@suse.com>

6 years agoMerge pull request #27460 from ricardoasmarques/wip-39114-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 23:48:16 +0000 (16:48 -0700)]
Merge pull request #27460 from ricardoasmarques/wip-39114-nautilus

nautilus: mgr/dashboard: Error on iSCSI disk diff

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27125 from smithfarm/wip-38863-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:38:56 +0000 (07:38 -0700)]
Merge pull request #27125 from smithfarm/wip-38863-nautilus

nautilus: build/ops: ceph-mgr-diskprediction-local requires numpy and scipy on SUSE, but these packages do not exist on SUSE

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27208 from pdvian/wip-38773-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:38:23 +0000 (07:38 -0700)]
Merge pull request #27208 from pdvian/wip-38773-nautilus

nautilus: rgw: nfs: skip empty (non-POSIX) path segments

Reviewed-by: Adam Emerson <aemerson@redhat.com>