]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/dashboard: "1 osds exist in the crush map but not in the osdmap" breaks OSD page 27543/head
Patrick Nawracay [Fri, 8 Mar 2019 11:44:13 +0000 (11:44 +0000)]
mgr/dashboard: "1 osds exist in the crush map but not in the osdmap" breaks OSD page

Fixes: http://tracker.ceph.com/issues/36086
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
(cherry picked from commit 29d53f8d29e486a3abe83dbf472aa8dac5b493f3)

6 years agomgr/dashboard: Clean up of Osd::list()
Patrick Nawracay [Fri, 8 Mar 2019 11:30:42 +0000 (11:30 +0000)]
mgr/dashboard: Clean up of Osd::list()

Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
(cherry picked from commit f7cd7b025fab5cc4cd22d01918d0cf82e1fb9bf4)

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 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 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 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 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 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>
6 years agoMerge pull request #27232 from pdvian/wip-38774-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:37:45 +0000 (07:37 -0700)]
Merge pull request #27232 from pdvian/wip-38774-nautilus

nautilus: rgw: nfs: svc-enable RGWLib

Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agoMerge pull request #27239 from smithfarm/wip-38956-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:37:16 +0000 (07:37 -0700)]
Merge pull request #27239 from smithfarm/wip-38956-nautilus

nautilus: backport krbd discard qa fixes to stable branches

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
6 years agoMerge pull request #27127 from smithfarm/wip-38862-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 14:36:39 +0000 (07:36 -0700)]
Merge pull request #27127 from smithfarm/wip-38862-nautilus

nautilus: build/ops: Running ceph under Pacemaker control not supported by SUSE Linux Enterprise

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agomgr/dashboard: Fix iSCSI target submission 27461/head
Ricardo Marques [Fri, 29 Mar 2019 13:29:47 +0000 (13:29 +0000)]
mgr/dashboard: Fix iSCSI target submission

cdIsInGroup should not be included in the request
and username/password should be an empty string
(instead of null)

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

6 years agomgr/dashboard: Fix iSCSI disk diff calculation 27460/head
Ricardo Marques [Fri, 29 Mar 2019 13:33:19 +0000 (13:33 +0000)]
mgr/dashboard: Fix iSCSI disk diff calculation

The separator is now a '/' instead of '.'

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

6 years agomgr/dashboard: Check if gateway is in use before deletion 27457/head
Ricardo Marques [Fri, 29 Mar 2019 09:28:56 +0000 (09:28 +0000)]
mgr/dashboard: Check if gateway is in use before deletion

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

6 years agoMerge pull request #27394 from s0nea/wip-39124-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 02:09:13 +0000 (19:09 -0700)]
Merge pull request #27394 from s0nea/wip-39124-nautilus

nautilus: mgr/dashboard: update vstart to use new ssl_server_port

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
6 years agoMerge pull request #27398 from Devp00l/wip-39041-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 02:08:29 +0000 (19:08 -0700)]
Merge pull request #27398 from Devp00l/wip-39041-nautilus

nautilus: mgr/dashboard: FixtureHelper

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #27405 from Devp00l/wip-39058-nautilus
Yuri Weinstein [Tue, 9 Apr 2019 02:07:54 +0000 (19:07 -0700)]
Merge pull request #27405 from Devp00l/wip-39058-nautilus

nautilus: mgr/dashboard: Back button component

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
6 years agomgr/DaemonServer: handle_conf_change - fix broken locking 27454/head
xie xingguo [Tue, 26 Mar 2019 08:08:43 +0000 (16:08 +0800)]
mgr/DaemonServer: handle_conf_change - fix broken locking

The is_locked_by_me() is only meant to be safe if you know
you hold the lock. It's meant to be used in an assertion.

Fixes: http://tracker.ceph.com/issues/38899
Signed-off-by: xie xingguo <xie.xingguo@zte.com.cn>
(cherry picked from commit a929a5a01508e661fc7f3cea52822320d39983d2)

6 years agomgr/dashboard: Display the number of iSCSI active sessions 27450/head
Ricardo Marques [Thu, 28 Mar 2019 14:54:23 +0000 (14:54 +0000)]
mgr/dashboard: Display the number of iSCSI active sessions

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

6 years agomgr/dashboard: Fix typo in NFS form 27449/head
Tiago Melo [Thu, 28 Mar 2019 14:27:51 +0000 (13:27 -0100)]
mgr/dashboard: Fix typo in NFS form

Fixes: http://tracker.ceph.com/issues/39067
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 6c5ed447161b9815671c3237610464262764f146)

6 years agoMerge pull request #27283 from pdvian/wip-38878-nautilus
Yuri Weinstein [Mon, 8 Apr 2019 16:38:35 +0000 (09:38 -0700)]
Merge pull request #27283 from pdvian/wip-38878-nautilus

nautilus: mgr/dashboard: Add date range and log search functionality

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #27389 from ricardoasmarques/wip-38984-nautilus
Yuri Weinstein [Mon, 8 Apr 2019 16:38:07 +0000 (09:38 -0700)]
Merge pull request #27389 from ricardoasmarques/wip-38984-nautilus

nautilus: mgr/dashboard: PreventDefault isn't working on 400 errors

Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #27393 from s0nea/wip-39001-nautilus
Yuri Weinstein [Mon, 8 Apr 2019 16:37:10 +0000 (09:37 -0700)]
Merge pull request #27393 from s0nea/wip-39001-nautilus

nautilus: mgr/dashboard: Add separate option to config SSL port

Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #27395 from Devp00l/wip-issue-38960
Yuri Weinstein [Mon, 8 Apr 2019 16:36:34 +0000 (09:36 -0700)]
Merge pull request #27395 from Devp00l/wip-issue-38960

nautilus: mgr/dashboard: Fixes tooltip behavior

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agocommon: add --log-early command line option 27388/head
Sage Weil [Sun, 7 Apr 2019 18:54:59 +0000 (13:54 -0500)]
common: add --log-early command line option

Sometime it is important and useful to see the logs from the bootstrap
phase where we are getting the initial configs from the monitors.  Add
a command-line option --log-early to do that.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 933d5084cb66f299a7bf60f0a2a6382c0bd3cb2f)

6 years agoos/filestore/FileJournal: note EIO events 27440/head
Sage Weil [Thu, 4 Apr 2019 20:49:11 +0000 (15:49 -0500)]
os/filestore/FileJournal: note EIO events

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 614fb4631a8909d97ea82ae657361017816b6a65)

6 years agoos/filestore: make note of EIO errors when we see them
Sage Weil [Thu, 4 Apr 2019 20:48:40 +0000 (15:48 -0500)]
os/filestore: make note of EIO errors when we see them

This is imprecise, since we can't (easily) map an EIO back to a specific
part of the device, or even (easily) tell whether it was a read or write
error.  It's enough to mark a crash dump as an EIO event, though, and to
include the name of the (primary) filestore device.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 8827250d5ae2ba5dc18c28d11c986c80d888489a)

6 years agoos/filestore: note devname for later use
Sage Weil [Thu, 4 Apr 2019 20:09:15 +0000 (15:09 -0500)]
os/filestore: note devname for later use

This will generally happen early, before we see an EIO error and need it.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit cef94b72b2f66346b51759ce07afed072e25582f)

6 years agoglobal/signal_handler: avoid core dump on EIO
Sage Weil [Thu, 4 Apr 2019 19:51:21 +0000 (14:51 -0500)]
global/signal_handler: avoid core dump on EIO

Generating a core dump is overkill if we hit an EIO error from the
hardware.  Exit with an error code instead.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e3464df47b2e83ee160362a897adc1191a922ce9)

6 years agoos/bluestore/KernelDevice: note EIO metadata on aio EIO
Sage Weil [Thu, 4 Apr 2019 19:47:17 +0000 (14:47 -0500)]
os/bluestore/KernelDevice: note EIO metadata on aio EIO

Note that we only do this if we're about to induce a crash.  If we can
pass EIO up the stack, it's up to the upper layer to handle it or trigger
its own crash if it can't.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 145333576c49eb591af7aef954d4039dcde471e4)

6 years agoglobal: add hook to annotate crash report with EIO information
Sage Weil [Thu, 4 Apr 2019 19:45:52 +0000 (14:45 -0500)]
global: add hook to annotate crash report with EIO information

If the global g_eio* fields are populated, include them in the crash
report, similar to how we populate assertion metadata.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 7f9df6158dca9da40cff3e9f18009169044312b4)

6 years agolibrbd: look for pool metadata in default namespace 27423/head
Mykola Golub [Mon, 25 Mar 2019 06:54:46 +0000 (06:54 +0000)]
librbd: look for pool metadata in default namespace

when applying pool level config overrides

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

6 years agoMerge pull request #27128 from smithfarm/wip-38865-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:05:59 +0000 (13:05 -0700)]
Merge pull request #27128 from smithfarm/wip-38865-nautilus

nautilus: ceph-mgr:  ImportError: Interpreter change detected - this module can only be loaded into one interprer per process.

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27227 from pdvian/wip-38855-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:05:29 +0000 (13:05 -0700)]
Merge pull request #27227 from pdvian/wip-38855-nautilus

nautilus: mgr/balancer: Python 3 compatibility fix

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
6 years agoMerge pull request #27302 from pdvian/wip-38906-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:04:29 +0000 (13:04 -0700)]
Merge pull request #27302 from pdvian/wip-38906-nautilus

nautilus: osd/PGLog.h: print olog_can_rollback_to before deciding to rollback

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agoMerge pull request #27319 from sebastian-philipp/wip-39083-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:03:48 +0000 (13:03 -0700)]
Merge pull request #27319 from sebastian-philipp/wip-39083-nautilus

nautilus: mgr/deepsea: use ceph_volume output in get_inventory()

Reviewed-by: Tim Serong <tserong@suse.com>
6 years agoMerge pull request #27346 from liewegas/wip-cluster-log-to-file-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:03:04 +0000 (13:03 -0700)]
Merge pull request #27346 from liewegas/wip-cluster-log-to-file-nautilus

nautilus: mon: add cluster log to file option

6 years agoMerge pull request #27347 from liewegas/wip-ok-to-stop-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 20:02:09 +0000 (13:02 -0700)]
Merge pull request #27347 from liewegas/wip-ok-to-stop-nautilus

nautilus: mon: ok-to-stop commands for mon and mds

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27361 from s0nea/wip-38864-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:55:08 +0000 (09:55 -0700)]
Merge pull request #27361 from s0nea/wip-38864-nautilus

nautilus: mgr/dashboard: Fix env vars of `run-tox.sh`

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agoMerge pull request #27363 from s0nea/wip-39002-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:54:25 +0000 (09:54 -0700)]
Merge pull request #27363 from s0nea/wip-39002-nautilus

nautilus:  mgr/dashboard: Filter iSCSI target images based on required features

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #27368 from s0nea/wip-39104-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:53:17 +0000 (09:53 -0700)]
Merge pull request #27368 from s0nea/wip-39104-nautilus

nautilus: dashboard: NFS: failed to disable NFSv3 in export create

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

6 years agoMerge pull request #27370 from s0nea/wip-39105-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:52:50 +0000 (09:52 -0700)]
Merge pull request #27370 from s0nea/wip-39105-nautilus

nautilus: mgr/dashboard: Cannot submit NFS export form when NFSv4 is not selected

Reviewed-by:  Tiago Melo <tmelo@suse.com>
Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27371 from s0nea/wip-39106-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:51:50 +0000 (09:51 -0700)]
Merge pull request #27371 from s0nea/wip-39106-nautilus

nautilus: mgr/dashboard: NFS Squash field should be required

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

6 years agoMerge pull request #27372 from s0nea/wip-39107-nautilus
Yuri Weinstein [Fri, 5 Apr 2019 16:51:22 +0000 (09:51 -0700)]
Merge pull request #27372 from s0nea/wip-39107-nautilus

nautilus: mgr/dashboard: Error creating NFS export without UDP

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

6 years agomgr/dashboard: Update messages.xlf 27405/head
Stephan Müller [Mon, 25 Mar 2019 16:29:02 +0000 (17:29 +0100)]
mgr/dashboard: Update messages.xlf

Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 0e05674509e339fc336052a92fec87f06a411f63)

6 years agomgr/dashboard: Back button component
Stephan Müller [Fri, 8 Mar 2019 15:32:13 +0000 (16:32 +0100)]
mgr/dashboard: Back button component

Fixes: https://tracker.ceph.com/issues/38937
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit ad960f1aa7c08b56b691fc1c8ad0348f7ede1f1b)

6 years agoOSD: OSDMapRef access by multiple threads is unsafe 27402/head
Sage Weil [Fri, 5 Apr 2019 13:59:23 +0000 (08:59 -0500)]
OSD: OSDMapRef access by multiple threads is unsafe

we update OSD::osdmap in OSD::_committed_osd_maps() which is executed
by objectstore's finisher thread. while PG::sched_scrub() is called
by OSD's sharded work queue's worker thread.and we push the osdmap
updates down to PGs OSD::consume_map() which is in turn called by
OSD::_committed_osd_maps() where osdmap is updated. so it does not big
deal if we are checking a stale CEPH_OSDMAP_NODEEP_SCRUB flag.
also this flag will be updated with the latest osdmap very soon.

Signed-off-by: Kefu Chai <kchai@redhat.com>
Signed-off-by: Zengran Zhang <zhangzengran@sangfor.com.cn>
(cherry picked from commit 454c4cbae6b3363b80f52c7db5b6b7a5f3affd1a)

# Conflicts:
# src/osd/OSD.cc
 - trivial conflict from adjacent code in OSDService::shutdown()

6 years agomon/MonmapMonitor: clean up empty created stamp in monmap 27399/head
Sage Weil [Tue, 2 Apr 2019 21:50:08 +0000 (16:50 -0500)]
mon/MonmapMonitor: clean up empty created stamp in monmap

Some old clusters have an empty created timestamp.  This is mostly
harmless, but it is confusing/wrong, and it does currently break the
telemetry module with errors like

 ValueError: time data '0.000000' does not match format '%Y-%m-%d %H:%M:%S.%f'

from 'ceph telemetry show'.

If we detect an empty created stamp, look at old monmap and use the oldest
modified stamp we can find.

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

6 years agotest/librados_test_stub: ensure the log flusher thread is started
Jason Dillaman [Tue, 2 Apr 2019 20:34:56 +0000 (16:34 -0400)]
test/librados_test_stub: ensure the log flusher thread is started

Recent changes merged in cd6a5b9c40779956629803f222c365bdb291a169
resulted in the logger flusher thread never being started for
librados_test_stub-derived unit tests.

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

6 years agomgr/dashboard: FixtureHelper 27398/head
Stephan Müller [Wed, 13 Feb 2019 13:22:27 +0000 (14:22 +0100)]
mgr/dashboard: FixtureHelper

Fixes: https://tracker.ceph.com/issues/38933
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit ef1d17ddbd2a88e3956888bc98568794500eeba6)

6 years agomgr/dashboard: Fixes tooltip behavior 27395/head
Stephan Müller [Wed, 20 Feb 2019 11:26:44 +0000 (12:26 +0100)]
mgr/dashboard: Fixes tooltip behavior

The problem was that the tool tip element was added to the current parent
element which caused the CSS to make the last
button in a button group look like the fore last button as a rectangle
but the last element should have a rounded corner.

Fixes: https://tracker.ceph.com/issues/38932
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 4b23b78)

6 years agomgr/dashboard: udpate vstart to use new ssl port 27394/head
Ernesto Puerta [Fri, 29 Mar 2019 13:06:25 +0000 (14:06 +0100)]
mgr/dashboard: udpate vstart to use new ssl port

Fixes: https://tracker.ceph.com/issues/39030
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
(cherry picked from commit 5792c0377a0495030de1a7a8cd5e10f46e91358d)

6 years agomgr/dashboard: Add separate option to config SSL port 27393/head
Volker Theile [Tue, 12 Mar 2019 13:12:55 +0000 (14:12 +0100)]
mgr/dashboard: Add separate option to config SSL port

There is a need to introduce this new config option because the MgrModule::get_module_option() and MgrModule::get_localized_module_option() method will be refactored soon and will not support the default parameter anymore. Instead the default value must be configured in the MODULE_OPTIONS. Currently we misuse the server_port depending on if SSL is enabled or not.

Fixes: https://tracker.ceph.com/issues/38331
Signed-off-by: Volker Theile <vtheile@suse.com>
(cherry picked from commit 86f47f6bfda6c2d45c97801a522a200225abc3d4)

6 years agomgr/devicehealth: Fix python 3 incompatiblity 27390/head
Marius Schiffer [Mon, 25 Mar 2019 22:18:01 +0000 (23:18 +0100)]
mgr/devicehealth: Fix python 3 incompatiblity
Fixes: http://tracker.ceph.com/issues/38939
Signed-off-by: Marius Schiffer <marius@mschiffer.de>
(cherry picked from commit 4817a621fc3a4e6750863ee8d72fb3a16ba04dd2)

6 years agomgr/dashboard: Make preventDefault work with 400 errors 27389/head
Stephan Müller [Thu, 21 Feb 2019 10:53:46 +0000 (11:53 +0100)]
mgr/dashboard: Make preventDefault work with 400 errors

The problem was that, if a error with the status code 400 was
received by the error interceptor the "timeoutId" was not tracked,
therefor "preventDefault" didn't prevent anything as "timeoutId"
was undefined.

Fixes: https://tracker.ceph.com/issues/38418
Signed-off-by: Stephan Müller <smueller@suse.com>
(cherry picked from commit 5aa984cc6c5a737e2dfcc7806f0fe48d1b41d1c5)

6 years agocommon/common_init: start log from common_init_finish (if not yet started)
Sage Weil [Wed, 3 Apr 2019 19:54:55 +0000 (14:54 -0500)]
common/common_init: start log from common_init_finish (if not yet started)

This captures any non-global_init users who created their cct but haven't
started up the log thread yet.  As long as common_init_finish() happens
after we have all of our config options (from the mon config or whatever),
we will log (or not log) to the right location(s).

Fixes a regression in cd6a5b9c40779956629803f222c365bdb291a169

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 30e49ae28b7a9cce6b489e1c866b35ac6ec8b70d)

6 years agolibcephfs: common_init_finish after getting monmap and config
Sage Weil [Wed, 3 Apr 2019 19:47:42 +0000 (14:47 -0500)]
libcephfs: common_init_finish after getting monmap and config

This is how librados behaves.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 16dd435939a1532ad489ffcc230359ccf9c8898f)

6 years agomgr/pg_autoscaler: apply bias to pg_num selection 27387/head
Sage Weil [Mon, 25 Mar 2019 11:39:28 +0000 (06:39 -0500)]
mgr/pg_autoscaler: apply bias to pg_num selection

This is a relatively naive way to apply the bias: we just multiply it
to whatever we would have chosen.  A more clever approach would be to
factor this into the overall cluster-wide PG budget, so that biasing one
pool's PGs up would put downward pressure on other pools.  That is
significantly more complicated, however, and (I think) not worth the
effort.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit e7ad0eeaaa3a73b5b78764d86eb634ca7072afd1)

6 years agomgr/pg_autoscaler: include pg_autoscale_bias in autoscale-status table
Sage Weil [Mon, 25 Mar 2019 11:29:53 +0000 (06:29 -0500)]
mgr/pg_autoscaler: include pg_autoscale_bias in autoscale-status table

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit f1d3be6ac7a9e5092a5a610ac3f5a59c74e25bc7)

6 years agoosd/osd_types,mon: add pg_autoscale_bias pool property
Sage Weil [Sat, 23 Mar 2019 09:44:15 +0000 (04:44 -0500)]
osd/osd_types,mon: add pg_autoscale_bias pool property

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit f845fa17af0c83e1c09b2086b53176354c2bce3f)

6 years agoMerge pull request #27258 from pdvian/wip-38861-nautilus
Yuri Weinstein [Thu, 4 Apr 2019 19:47:12 +0000 (12:47 -0700)]
Merge pull request #27258 from pdvian/wip-38861-nautilus

nautilus: backport krbd discard qa fixes to nautilus

Reviewed-by: Ilya Dryomov <idryomov@redhat.com>
6 years agoMerge pull request #27287 from s0nea/wip-39052-nautilus
Yuri Weinstein [Thu, 4 Apr 2019 19:46:35 +0000 (12:46 -0700)]
Merge pull request #27287 from s0nea/wip-39052-nautilus

nautilus: mgr/dashboard add polish language

Reviewed-by: Sebastian Krah <skrah@suse.com>
6 years agoMerge pull request #27382 from tchaikov/nautilus-multi-python3
Kefu Chai [Thu, 4 Apr 2019 16:26:55 +0000 (00:26 +0800)]
Merge pull request #27382 from tchaikov/nautilus-multi-python3

nautilus: rpm,cmake: use specified python3 version if any

Reviewed-by: Yuri Weinstein <yweins@redhat.com>
6 years agorpm: pass %{python3_version} to cmake 27382/head
Kefu Chai [Thu, 4 Apr 2019 04:07:25 +0000 (12:07 +0800)]
rpm: pass %{python3_version} to cmake

to force cmake to use the python3 and python3 modules for building
python3 bindings

on the debian side, it's okay to continue using "-DWITH_PYTHON3=ON", as

- cmake does normalize "ON" to 3
- debian's cmake extension lives on /usr/lib/python3/dist-packages/
  not in a specific /usr/lib/python3.x/dist-packages directory

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

6 years agocmake: check for libpython of the same version of interpreter
Kefu Chai [Thu, 4 Apr 2019 03:44:56 +0000 (11:44 +0800)]
cmake: check for libpython of the same version of interpreter

actually cython or python3-cython's dependencies should take care of it.
but we should at least get it right on our side if we check it.

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

6 years agocmake: use specified python3 version if any
Kefu Chai [Thu, 4 Apr 2019 03:37:00 +0000 (11:37 +0800)]
cmake: use specified python3 version if any

use might have multiple python3 installed, some of them has/have all
dependencies installed and is good enough for building Ceph. we should
not always use the latest python installed in the system and complain that
there is missing dependencies, even if user has installed all the
python3 dependencies for the older python3.

put in other words, if user only installs cython module for python3.4, but
she has both python3.6 and python3.4 in her system. we should not force
her to uninstall python3.6 for installing Ceph.

this change also aligns with MGR_PYTHON_VERSION. i am not applying the
same change to WITH_PYTHON2, because python2 is already stablized. and distros
are not likely to release new python2 releases.

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

6 years agomgr/dashboard: Fix deletion of NFS transports properties 27372/head
Tiago Melo [Wed, 3 Apr 2019 18:52:07 +0000 (18:52 +0000)]
mgr/dashboard: Fix deletion of NFS transports properties

Fixes: http://tracker.ceph.com/issues/39090
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit a304f5db9f1ccf66dfac5d7ba00bc710660770cf)

6 years agomgr/dashboard: Fix NFS squash default value 27371/head
Tiago Melo [Mon, 1 Apr 2019 14:50:44 +0000 (14:50 +0000)]
mgr/dashboard: Fix NFS squash default value

Fixes: http://tracker.ceph.com/issues/39064
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 0084299273bd3702b55038d02523a7ad3a1f49cc)

6 years agomgr/dashboard: Fix NFS pseudo validation 27370/head
Tiago Melo [Mon, 1 Apr 2019 14:13:37 +0000 (14:13 +0000)]
mgr/dashboard: Fix NFS pseudo validation

Fixes: http://tracker.ceph.com/issues/39063
Signed-off-by: Tiago Melo <tmelo@suse.com>
(cherry picked from commit 4139d4b58e37b29f7d84e641ce0c9fd0ee346b8f)