]> git.apps.os.sepia.ceph.com Git - ceph.git/log
ceph.git
6 years agomgr/rook: Fix creation of bluestore OSDs: 27289/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>
6 years agoMerge pull request #27254 from ricardoasmarques/improve-iscsi-overview
Ricardo Marques [Fri, 5 Apr 2019 09:02:47 +0000 (10:02 +0100)]
Merge pull request #27254 from ricardoasmarques/improve-iscsi-overview

mgr/dashboad: Improve iSCSI overview page

Reviewed-by: Ricardo Dias <rdias@suse.com>
Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge pull request #27292 from sebastian-philipp/kubejacker-simplify
Sebastian Wagner [Fri, 5 Apr 2019 08:09:24 +0000 (10:09 +0200)]
Merge pull request #27292 from sebastian-philipp/kubejacker-simplify

src/script/kubejacker: Fix and simplify

Reviewed-by: Jeff Layton <jlayton@redhat.com>
6 years agoMerge pull request #27121 from sebastian-philipp/orchestrator-doc-cli-fix-service-add
Kefu Chai [Fri, 5 Apr 2019 05:52:44 +0000 (13:52 +0800)]
Merge pull request #27121 from sebastian-philipp/orchestrator-doc-cli-fix-service-add

doc/orchestrator: Fix broken bullet points

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27379 from xenolinux/wip-fix-bug1
Kefu Chai [Fri, 5 Apr 2019 05:48:58 +0000 (13:48 +0800)]
Merge pull request #27379 from xenolinux/wip-fix-bug1

doc : fixed capitalization

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #26710 from cyx1231st/wip-seastar-msgr-protocolv2
Kefu Chai [Fri, 5 Apr 2019 03:40:01 +0000 (11:40 +0800)]
Merge pull request #26710 from cyx1231st/wip-seastar-msgr-protocolv2

crimson/net: lossy connection for ProtocolV2

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27383 from tchaikov/wip-cmake-libpython3
Kefu Chai [Fri, 5 Apr 2019 03:30:13 +0000 (11:30 +0800)]
Merge pull request #27383 from tchaikov/wip-cmake-libpython3

cmake: check for MAJOR.MINOR version of python3

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
6 years agocrimson/net: more compact code with then() 26710/head
Yingxin Cheng [Mon, 1 Apr 2019 14:30:45 +0000 (22:30 +0800)]
crimson/net: more compact code with then()

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: clean auth related interfaces
Yingxin Cheng [Mon, 1 Apr 2019 14:24:31 +0000 (22:24 +0800)]
crimson/net: clean auth related interfaces

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: scoped enum for proto_type
Yingxin Cheng [Mon, 1 Apr 2019 14:12:41 +0000 (22:12 +0800)]
crimson/net: scoped enum for proto_type

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: utilize lowres_system_clock with better performance
Yingxin Cheng [Mon, 1 Apr 2019 14:05:42 +0000 (22:05 +0800)]
crimson/net: utilize lowres_system_clock with better performance

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: set policy from peer_type
Yingxin Cheng [Mon, 1 Apr 2019 14:03:03 +0000 (22:03 +0800)]
crimson/net: set policy from peer_type

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: fix Socket::read_exactly(0) case
Yingxin Cheng [Thu, 21 Mar 2019 14:21:07 +0000 (22:21 +0800)]
crimson/net: fix Socket::read_exactly(0) case

Do not raise read_eof when try to read 0 bytes.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agotest/crimson: fix perf_crimson_msgr to support v2
Yingxin Cheng [Tue, 19 Mar 2019 14:25:04 +0000 (22:25 +0800)]
test/crimson: fix perf_crimson_msgr to support v2

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agotest/crimson: msgr should wait before shutdown
Yingxin Cheng [Tue, 19 Mar 2019 14:20:12 +0000 (22:20 +0800)]
test/crimson: msgr should wait before shutdown

test_concurrent_dispatch() should wait for server->wait() before
shutting down its messengers.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agotest/crimson: unit test for v2 protocol
Yingxin Cheng [Tue, 19 Mar 2019 14:19:18 +0000 (22:19 +0800)]
test/crimson: unit test for v2 protocol

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: message frame exchanges (lossy part)
Yingxin Cheng [Tue, 19 Mar 2019 14:13:33 +0000 (22:13 +0800)]
crimson/net: message frame exchanges (lossy part)

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: add keepalive timestamps to connection
Yingxin Cheng [Tue, 19 Mar 2019 14:06:34 +0000 (22:06 +0800)]
crimson/net: add keepalive timestamps to connection

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: protocolv2 handshake frame exchanges
Yingxin Cheng [Wed, 13 Mar 2019 14:48:12 +0000 (22:48 +0800)]
crimson/net: protocolv2 handshake frame exchanges

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: ProtocolV2 auth part
Yingxin Cheng [Mon, 11 Mar 2019 08:23:11 +0000 (16:23 +0800)]
crimson/net: ProtocolV2 auth part

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: dummy auth for protocol v2
Yingxin Cheng [Mon, 11 Mar 2019 08:19:24 +0000 (16:19 +0800)]
crimson/net: dummy auth for protocol v2

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: add AuthConnectionMeta to Protocol
Yingxin Cheng [Mon, 11 Mar 2019 08:15:28 +0000 (16:15 +0800)]
crimson/net: add AuthConnectionMeta to Protocol

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: add peer_global_id to Connection
Yingxin Cheng [Mon, 11 Mar 2019 08:12:57 +0000 (16:12 +0800)]
crimson/net: add peer_global_id to Connection

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: banner exchange and HelloFrame
Yingxin Cheng [Wed, 6 Mar 2019 14:59:37 +0000 (22:59 +0800)]
crimson/net: banner exchange and HelloFrame

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: support frame read/write for ProtocolV2
Yingxin Cheng [Wed, 6 Mar 2019 14:58:48 +0000 (22:58 +0800)]
crimson/net: support frame read/write for ProtocolV2

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: add target_addr to SocketConnection
Yingxin Cheng [Wed, 6 Mar 2019 09:35:33 +0000 (17:35 +0800)]
crimson/net: add target_addr to SocketConnection

represent the peer target_addr accepted/connected

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: add get_mytype() to Messenger
Yingxin Cheng [Wed, 6 Mar 2019 09:32:41 +0000 (17:32 +0800)]
crimson/net: add get_mytype() to Messenger

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: add global_seq in ProtocolV2
Yingxin Cheng [Wed, 6 Mar 2019 09:59:52 +0000 (17:59 +0800)]
crimson/net: add global_seq in ProtocolV2

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: skeleton code for ProtocolV2 logic
Yingxin Cheng [Thu, 28 Feb 2019 08:40:24 +0000 (16:40 +0800)]
crimson/net: skeleton code for ProtocolV2 logic

crimson ProtocolV2 class is following a state-machine design style:
* states are defined in ProtocolV2::state_t;
* call `execute_<state_name>()` methods to trigger different states;
* V2 logics are implemented in each execute_<state_name>() methods, and
  with explicit transitions to other states at the end of the execute_*;
* each state is associated with a write state defined in Protocol.h:
  - none: not allowed to send;
  - delay: messages can be queued, but will be delayed to send;
  - open: dispatch queued message/keepalive/ack;
  - drop: not send any messages, drop them all.

crimson ProtocolV2 is alike async ProtocolV2, with some considerations:
* explicit and encapsulated client/server handshake workflow.
* futurized-exception-based fault handling, which can interrupt protocol
  workflow at any time in each state.
* introduced SERVER_WAIT state, meaning to wait for peer-client's socket
  to reset or be replaced, and expect no further reads.
* introduced an explicit REPLACING state, async-msgr would be at the
  NONE state during replacing.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: apple-to-apple server async-msgr
Yingxin Cheng [Thu, 28 Mar 2019 15:26:12 +0000 (23:26 +0800)]
crimson/net: apple-to-apple server async-msgr

The simplest async-msgr server which will have the same behavior with
crimson-msgr server for apple-to-apple performance test.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agotest/crimson: improved perf tool for crimson-msgr
Yingxin Cheng [Tue, 19 Mar 2019 14:26:59 +0000 (22:26 +0800)]
test/crimson: improved perf tool for crimson-msgr

New features:
* --jobs: start multiple client messengers from core #1 ~ #jobs;
* --core: can assign server core to get away from busy client cores;
* --rounds: a client will send <rounds>/<jobs> messages;

Improved:
* Better configuration report;
* Report individual client results plus a summary;
* Validate if CPU number is sufficient before running;
* Sleep 1 second while connecting, so it won't hurt performance;
* Simplify client logic and bug fixes;

Removed unecessary features:
* finish_decode() for MOSDOp;
* keepalive ratio;

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: fix messenger creation
Yingxin Cheng [Thu, 28 Mar 2019 15:07:35 +0000 (23:07 +0800)]
crimson/net: fix messenger creation

sharded data structures should only be allocated in core#0, or the
program will hang during exit.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: create SocketConnection based on address type
Yingxin Cheng [Fri, 15 Feb 2019 07:43:08 +0000 (15:43 +0800)]
crimson/net: create SocketConnection based on address type

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: use entity_addrvec_t::front() inside messenger
Yingxin Cheng [Fri, 15 Feb 2019 07:27:04 +0000 (15:27 +0800)]
crimson/net: use entity_addrvec_t::front() inside messenger

Do not expect legacy-addr in order to bind v2 address.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: added msgr2 setting for SocketConnection
Yingxin Cheng [Fri, 15 Feb 2019 07:12:55 +0000 (15:12 +0800)]
crimson/net: added msgr2 setting for SocketConnection

Provide entrypoint for the future ProtocolV2 class.

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: implement factory method of Socket
Yingxin Cheng [Fri, 15 Feb 2019 03:34:16 +0000 (11:34 +0800)]
crimson/net: implement factory method of Socket

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: introduce SocketFRef
Yingxin Cheng [Thu, 14 Feb 2019 08:44:20 +0000 (16:44 +0800)]
crimson/net: introduce SocketFRef

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agocrimson/net: introduce protocol-level abstraction
Yingxin Cheng [Thu, 14 Feb 2019 07:49:34 +0000 (15:49 +0800)]
crimson/net: introduce protocol-level abstraction

Signed-off-by: Yingxin Cheng <yingxincheng@gmail.com>
6 years agorpm: install python%{python3_pkgversion}-devel on el7 27383/head
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>
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>
6 years agoMerge PR #27266 into master
Patrick Donnelly [Thu, 4 Apr 2019 22:36:14 +0000 (15:36 -0700)]
Merge PR #27266 into master

* refs/pull/27266/head:
cephfs-shell: Fix hidden files and directories list by ls command

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #27380 from ricardoasmarques/fix-iscsi-target-submission
Ricardo Marques [Thu, 4 Apr 2019 22:35:14 +0000 (23:35 +0100)]
Merge pull request #27380 from ricardoasmarques/fix-iscsi-target-submission

mgr/dashboard: Fix iSCSI target submission

Reviewed-by: Tiago Melo <tmelo@suse.com>
6 years agoMerge PR #27198 into master
Patrick Donnelly [Thu, 4 Apr 2019 21:24:38 +0000 (14:24 -0700)]
Merge PR #27198 into master

* refs/pull/27198/head:
vstart: generate environment script suitable for sourcing
cephfs-shell: fix mode of script in tree

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomgr/dashboard: Fix iSCSI target submission 27380/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>
6 years agoMerge PR #27373 into master
Patrick Donnelly [Thu, 4 Apr 2019 19:52:55 +0000 (12:52 -0700)]
Merge PR #27373 into master

* refs/pull/27373/head:
doc: Add usage for shortcuts command in cephfs-shell

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27303 into master
Patrick Donnelly [Thu, 4 Apr 2019 19:42:16 +0000 (12:42 -0700)]
Merge PR #27303 into master

* refs/pull/27303/head:
mds: add Octopus cephfs feature bit
mds: verify current release has a cephfs feature bit
mds: add cephfs feature bit for Nautilus
mon: generalize and refactor lambda use
qa: test featureful client with mimic base
qa: remove obsolete snap upgrade tests

Reviewed-by: Zheng Yan <zyan@redhat.com>
6 years agoMerge PR #27238 into master
Patrick Donnelly [Thu, 4 Apr 2019 19:40:27 +0000 (12:40 -0700)]
Merge PR #27238 into master

* refs/pull/27238/head:
mds: update projected_version when upgrading snaptable

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #26881 into master
Patrick Donnelly [Thu, 4 Apr 2019 19:39:08 +0000 (12:39 -0700)]
Merge PR #26881 into master

* refs/pull/26881/head:
mds: remove SimpleLock::replicate_relax()
mds: avoid check session connection's features when issuing caps

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomgr/dashboard: Log `gateway_name` on `iscsi_client` 27254/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>
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>
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>
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>
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>
6 years agoMerge pull request #27358 from tchaikov/wip-multi-python3
Kefu Chai [Thu, 4 Apr 2019 15:50:32 +0000 (23:50 +0800)]
Merge pull request #27358 from tchaikov/wip-multi-python3

rpm,cmake: use specified python3 version if any

Reviewed-by: Brad Hubbard <bhubbard@redhat.com>
Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
6 years agoMerge pull request #27362 from ektich/ektich-patch-1
Kefu Chai [Thu, 4 Apr 2019 15:41:00 +0000 (23:41 +0800)]
Merge pull request #27362 from ektich/ektich-patch-1

doc/rados/configuration: fix typo in mon-lookup-dns

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27338 from tchaikov/wip-crimson-wait-for-active
Kefu Chai [Thu, 4 Apr 2019 15:27:05 +0000 (23:27 +0800)]
Merge pull request #27338 from tchaikov/wip-crimson-wait-for-active

crimson/osd: lower debug level on i/o path

Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #27378 from ricardoasmarques/fix-iscsi-disk-diff
Ricardo Marques [Thu, 4 Apr 2019 14:04:39 +0000 (15:04 +0100)]
Merge pull request #27378 from ricardoasmarques/fix-iscsi-disk-diff

mgr/dashboard: Fix iSCSI disk diff calculation

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27262 from ricardoasmarques/check-gateway-in-use
Ricardo Marques [Thu, 4 Apr 2019 14:02:26 +0000 (15:02 +0100)]
Merge pull request #27262 from ricardoasmarques/check-gateway-in-use

mgr/dashboard: Check if gateway is in use before deletion

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27248 from ricardoasmarques/display-target-sessions
Ricardo Marques [Thu, 4 Apr 2019 13:58:53 +0000 (14:58 +0100)]
Merge pull request #27248 from ricardoasmarques/display-target-sessions

mgr/dashboard: Display the number of iSCSI active sessions

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agodoc : fixed capitalization 27379/head
Servesha Dudhgaonkar [Thu, 4 Apr 2019 12:41:44 +0000 (18:11 +0530)]
doc : fixed capitalization

Signed-off-by: Servesha Dudhgaonkar <sdudhgao@redhat.com>
6 years agomgr/dashboard: Fix iSCSI disk diff calculation 27378/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>
6 years agodoc/rados/configuration/mon-lookup-dns: fix typo 27362/head
Vanush "Misha" Paturyan [Thu, 4 Apr 2019 08:57:41 +0000 (09:57 +0100)]
doc/rados/configuration/mon-lookup-dns: fix typo

Signed-off-by: Vanush "Misha" Paturyan <ektich@gmail.com>
6 years agodoc: Add usage for shortcuts command in cephfs-shell 27373/head
Varsha Rao [Thu, 4 Apr 2019 10:23:41 +0000 (15:53 +0530)]
doc: Add usage for shortcuts command in cephfs-shell

Signed-off-by: Varsha Rao <varao@redhat.com>
6 years agoMerge pull request #27350 from tspmelo/wip-fix-nfs-transport
Ricardo Marques [Thu, 4 Apr 2019 08:03:48 +0000 (09:03 +0100)]
Merge pull request #27350 from tspmelo/wip-fix-nfs-transport

mgr/dashboard: Fix deletion of NFS transports properties

Reviewed-by: Ricardo Dias <rdias@suse.com>
6 years agoMerge pull request #27326 from dillaman/wip-librados-unitest-logging
Mykola Golub [Thu, 4 Apr 2019 07:25:42 +0000 (10:25 +0300)]
Merge pull request #27326 from dillaman/wip-librados-unitest-logging

test/librados_test_stub: ensure the log flusher thread is started

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
6 years agoMerge pull request #26016 from falcon78921/wip-doc-37957
Kefu Chai [Thu, 4 Apr 2019 06:33:24 +0000 (14:33 +0800)]
Merge pull request #26016 from falcon78921/wip-doc-37957

doc: added section on creating RESTful API user

Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agorpm: pass %{python3_version} to cmake 27358/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>
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>
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>
6 years agomds: add Octopus cephfs feature bit 27303/head
Patrick Donnelly [Tue, 2 Apr 2019 00:03:45 +0000 (17:03 -0700)]
mds: add Octopus cephfs feature bit

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomds: verify current release has a cephfs feature bit
Patrick Donnelly [Mon, 1 Apr 2019 23:52:34 +0000 (16:52 -0700)]
mds: verify current release has a cephfs feature bit

Fixes: http://tracker.ceph.com/issues/39077
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomds: add cephfs feature bit for Nautilus
Patrick Donnelly [Mon, 1 Apr 2019 23:50:43 +0000 (16:50 -0700)]
mds: add cephfs feature bit for Nautilus

Fixes: http://tracker.ceph.com/issues/39078
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agomon: generalize and refactor lambda use
Patrick Donnelly [Mon, 1 Apr 2019 23:37:56 +0000 (16:37 -0700)]
mon: generalize and refactor lambda use

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa: test featureful client with mimic base
Patrick Donnelly [Mon, 1 Apr 2019 23:35:59 +0000 (16:35 -0700)]
qa: test featureful client with mimic base

Fixes: http://tracker.ceph.com/issues/39020
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoqa: remove obsolete snap upgrade tests
Patrick Donnelly [Mon, 1 Apr 2019 23:13:36 +0000 (16:13 -0700)]
qa: remove obsolete snap upgrade tests

Direct upgrades from Luminous to Octopus are not supported. These snap format
upgrade tests are now only going to be run in the mimic/nautilus branches.

Fixes: http://tracker.ceph.com/issues/39020
Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge PR #27353 into master
Sage Weil [Wed, 3 Apr 2019 21:07:19 +0000 (16:07 -0500)]
Merge PR #27353 into master

* refs/pull/27353/head:
include/ceph_features: fix typo

Reviewed-by: Abhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
6 years agoMerge pull request #27293 from tspmelo/wip-nfsv4
Ricardo Marques [Wed, 3 Apr 2019 20:39:37 +0000 (21:39 +0100)]
Merge pull request #27293 from tspmelo/wip-nfsv4

mgr/dashboard: Fix NFS pseudo validation

Reviewed-by: Ricardo Marques <rimarques@suse.com>
6 years agoMerge pull request #26439 from taoCH/wip-fix-librgw-empty-etag
J. Eric Ivancich [Wed, 3 Apr 2019 20:11:38 +0000 (16:11 -0400)]
Merge pull request #26439 from taoCH/wip-fix-librgw-empty-etag

rgw_file: save etag and acl info in setattr

Reviewed-by: Matt Benjamin <mbenjamin@redhat.com>
6 years agoinclude/ceph_features: fix typo 27141/head 27353/head
Sage Weil [Wed, 3 Apr 2019 19:59:47 +0000 (14:59 -0500)]
include/ceph_features: fix typo

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge PR #27141 into master v15.0.0
Sage Weil [Wed, 3 Apr 2019 19:59:03 +0000 (14:59 -0500)]
Merge PR #27141 into master

* refs/pull/27141/head:
mon/OSDMonitor: fix osd boot feature vs require_osd_release check
include/ceph_features: retire 7 other old features
include/ceph_features: retire ERASURE_CODE_PLUGINS_V2
include/ceph_features: retire OSD_ERASURE_CODES
include/ceph_features: update comment to align with N+2 upgrades
include/ceph_features: adjust whitespace for retired and now usable features
mon: remove check for jewel mons
mds/FSMap: remove support for encoding jewel FSMap
include/ceph_features: enable SERVER_OCTOPUS
test/cli/osdmaptool/feature-set-unset-list: add octopus to output
test/cli/osdmaptool/feature-set-unset-list: change unknown feature bit
qa/releases/octopus.yaml: add octopus upgrade final step
osd/OSDMap: octopus encoding features
mon/OSDMonitor: add mon_debug_no_require_octopus
mon/OSDMonitor: allow 'osd require-osd-release octopus'
mon: add ondisk incompat octopus feature
mon/mon_types: add mon feature for octopus
include/ceph_features: SERVER_O -> SERVER_OCTOPUS

Reviewed-by: Neha Ojha <nojha@redhat.com>
6 years agomgr/dashboard: Fix NFS pseudo validation 27293/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>
6 years agoMerge PR #27291 into master
Sage Weil [Wed, 3 Apr 2019 19:07:27 +0000 (14:07 -0500)]
Merge PR #27291 into master

* refs/pull/27291/head:
qa/suites/upgrade/nautilus-x-singleton: upgrade mgrs early
qa/suites/upgrade/mimic-x-singleton: upgrade mgrs later
qa/suites: add upgrade/nautilus-x-singleton and symlink from rados/upgrade
qa/suites: move rados/upgrade/mimic-x-singleton to upgrade/ and symlink

Reviewed-by: Sage Weil <sage@redhat.com>
6 years agomgr/dashboard: Fix deletion of NFS transports properties 27350/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>
6 years agoMerge PR #27146 into master
Sage Weil [Wed, 3 Apr 2019 18:49:19 +0000 (13:49 -0500)]
Merge PR #27146 into master

* refs/pull/27146/head:
mon/MonMap: add min_quorum_size() helper
mon/MDSMonitor: add 'mds ok-to-stop' command
mon: add 'mon ok-to-{stop,add-offline,rm}' commands

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #26572 from rhcs-dashboard/wip-37337-master
Ricardo Marques [Wed, 3 Apr 2019 18:46:38 +0000 (19:46 +0100)]
Merge pull request #26572 from rhcs-dashboard/wip-37337-master

mgr/dashboard: unify button/URL actions naming

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
6 years agoMerge pull request #26183 from letterwuyu/wip-rgw-get-detail-user-info
J. Eric Ivancich [Wed, 3 Apr 2019 16:36:23 +0000 (12:36 -0400)]
Merge pull request #26183 from letterwuyu/wip-rgw-get-detail-user-info

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

6 years agoMerge pull request #26412 from theanalyst/rgw-orphan-fixes
J. Eric Ivancich [Wed, 3 Apr 2019 16:34:20 +0000 (12:34 -0400)]
Merge pull request #26412 from theanalyst/rgw-orphan-fixes

rgw: orphan fixes

6 years agoMerge PR #27343 into master
Sage Weil [Wed, 3 Apr 2019 14:22:19 +0000 (09:22 -0500)]
Merge PR #27343 into master

* refs/pull/27343/head:
mon/LogMonitor: add mon_cluster_log_to_file bool option

Reviewed-by: Sébastien Han <seb@redhat.com>
6 years agomgr/dashboard: add wording section to hacking.rst 26572/head
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>
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>
6 years agomon/LogMonitor: add mon_cluster_log_to_file bool option 27343/head
Sage Weil [Wed, 3 Apr 2019 12:18:50 +0000 (07:18 -0500)]
mon/LogMonitor: add mon_cluster_log_to_file bool option

Allow cluster logging to a file to be disabled via a boolean.  Default
to true to avoid any change in behavior.

Signed-off-by: Sage Weil <sage@redhat.com>
6 years agoMerge pull request #27280 from xiexingguo/wip-39039
Kefu Chai [Wed, 3 Apr 2019 10:53:55 +0000 (18:53 +0800)]
Merge pull request #27280 from xiexingguo/wip-39039

mgr: more GIL fixes

Reviewed-by: Yan Jun <yan.jun8@zte.com.cn>
Reviewed-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27245 from tspmelo/wip-nfs-typo
Ricardo Marques [Wed, 3 Apr 2019 08:44:24 +0000 (09:44 +0100)]
Merge pull request #27245 from tspmelo/wip-nfs-typo

mgr/dashboard: Fix typo in NFS form

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
6 years agocrimson/osd: lower debug level on i/o path 27338/head
Kefu Chai [Wed, 3 Apr 2019 08:10:23 +0000 (16:10 +0800)]
crimson/osd: lower debug level on i/o path

hopefully it can reduce the contribution of cpu cycles of
PG::wait_for_active()

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge pull request #27333 from tchaikov/wip-rpm-devtoolsset-8-on-aarch64
Kefu Chai [Wed, 3 Apr 2019 05:29:33 +0000 (13:29 +0800)]
Merge pull request #27333 from tchaikov/wip-rpm-devtoolsset-8-on-aarch64

rpm: enable devtoolset-8 on aarch64 also

Reviewed-by: xie xingguo <xie.xingguo@zte.com.cn>
6 years agoinstall-deps,rpm: enable devtoolset-8 on aarch64 also 27333/head
Kefu Chai [Wed, 3 Apr 2019 03:08:04 +0000 (11:08 +0800)]
install-deps,rpm: enable devtoolset-8 on aarch64 also

in 5ae3b06e, we left aarch64 with devtoolset-7, but aarch64 builders are
also suffering from http://tracker.ceph.com/issues/38892. so i installed
devtoolset-8 on all aarch64 builders manually from the rpm packages
downloaded from koji builder:

- https://cbs.centos.org/koji/buildinfo?buildID=24923
- https://cbs.centos.org/koji/buildinfo?buildID=24931

libasan5, libubsan1 are not installed.

Signed-off-by: Kefu Chai <kchai@redhat.com>
6 years agoMerge PR #27328 into master
Patrick Donnelly [Wed, 3 Apr 2019 01:28:09 +0000 (18:28 -0700)]
Merge PR #27328 into master

* refs/pull/27328/head:
qa/tests: reduce number of jobs for `kcephfs`

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
6 years agoMerge pull request #27310 from tchaikov/wip-crimson-cache-ss-oi
Kefu Chai [Wed, 3 Apr 2019 01:24:05 +0000 (09:24 +0800)]
Merge pull request #27310 from tchaikov/wip-crimson-cache-ss-oi

crimson/osd: cache object_info and snapset in PGBackend

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoMerge pull request #27307 from tchaikov/wip-crimson-osd-hb
Kefu Chai [Wed, 3 Apr 2019 01:14:37 +0000 (09:14 +0800)]
Merge pull request #27307 from tchaikov/wip-crimson-osd-hb

crimson/osd: do not add whoami as hb peer and cleanups

Reviewed-by: Samuel Just <sjust@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
6 years agoqa/tests: reduce number of jobs for `kcephfs` 27328/head
Yuri Weinstein [Tue, 2 Apr 2019 22:38:55 +0000 (15:38 -0700)]
qa/tests: reduce number of jobs for `kcephfs`

we need it on `master` as well
see https://github.com/ceph/ceph/pull/27165

Signed-off-by: Yuri Weinstein <yweinste@redhat.com>