Commit Graph

91753 Commits

Author SHA1 Message Date
Lenz Grimmer
de159f6d53
Merge pull request #24475 from votdev/feature_36193
mgr/dashboard: Audit REST API calls

Reviewed-by: Patrick Nawracay <pnawracay@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2018-11-05 13:52:09 +01:00
Jason Dillaman
bbb0fc0f17
Merge pull request #24856 from leseb/spec-rbd-mirror
spec: add missing rbd mirror bootstrap directory

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-11-05 07:23:42 -05:00
Lenz Grimmer
7095dae0e3
Merge pull request #24892 from p-na/pna-cleanup-pool-form-simpl
mgr/dashboard: Simplification of PoolForm method

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-11-05 13:11:38 +01:00
Sébastien Han
8c8d60d3c7 spec: add missing rbd mirror bootstrap directory
Currently /var/lib/ceph/bootstrap-rbd-mirror is absent, which means we
need to create it manually in order to pool the
client.bootstrap-rbd-mirror key.

Signed-off-by: Sébastien Han <seb@redhat.com>
2018-11-05 11:06:07 +01:00
Volker Theile
22e07ff1a4 mgr/dashboard: Audit REST API calls
Fixes: https://tracker.ceph.com/issues/36193

Enable API auditing with 'ceph dashboard set-audit-api-enabled true' (default is false). If you do not want to log the request payload, then disable it via 'set-audit-api-log-payload false' (default is true).

Example output:
2018-10-08 10:25:21.850994 mgr.x [INF] [DASHBOARD] from='https://[::1]:44410' path='/api/auth' method='POST' user='None' params='{"username": "admin", "password": "***", "stay_signed_in": false}'

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-11-05 10:56:28 +01:00
Jason Dillaman
8931f8cd14
Merge pull request #23190 from maxcuttins/master
doc: rewrote the iscsi-target-cli installation

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-11-03 08:48:30 -04:00
Patrick Donnelly
a71a984a39
Merge PR #24870 into master
* refs/pull/24870/head:
	client: request next osdmap for blacklisted client

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-11-02 16:59:13 -07:00
Massimiliano Cuttini
6df20fafa8 doc: rewrote the iscsi-target-cli installation
Rewrote the documentation in a step-by-step style, reformatted using RST's
titles instead of bolds, added installation of GIT if needed, added
installation of compilers needed for tcmu-runner

Signed-off-by: Massimiliano Cuttini <massimiliano.cuttini@phoenixweb.it>
2018-11-02 17:52:01 -04:00
Casey Bodley
cf9a0a28ea
Merge pull request #24895 from votdev/feature_36681
rgw: Return tenant field in bucket_stats function

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Matt Benjamin <mbenjami@redhat.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-11-02 16:28:26 -04:00
Mykola Golub
a1d8e1263a
Merge pull request #24864 from dillaman/wip-36659
rbd-mirror: update mirror status when stopping

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-11-02 22:10:01 +02:00
Mykola Golub
f59ec53a81
Merge pull request #24836 from dillaman/wip-26951
rbd: support namespaces for image migration

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-11-02 22:06:53 +02:00
Gregory Farnum
f081b10060
Merge pull request #24812 from gregsfortytwo/wip-readable-fails-on-empty
test: make readable.sh fail if it doesn't run anything

Reviewed-by:  Sage Weil <sage@redhat.com>
2018-11-02 13:02:17 -07:00
Yuri Weinstein
a24793ed6c
Merge pull request #22923 from ceph/wip-fix-latest-distro
qa/tests: update links for centos latest to point to 7.5

Reviewed-by: Yuri Weinstein <yweinste@redhat.com>
2018-11-02 12:30:41 -07:00
Jason Dillaman
c9a44e8359
Merge pull request #24897 from trociny/wip-36683
test/rbd_mirror: race in TestMockImageMap.AddInstancePingPongImageTest

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-11-02 14:34:53 -04:00
Mykola Golub
c796aecc2e test/rbd_mirror: race in TestMockImageMap.AddInstancePingPongImageTest
Remove a context from peer_ack_ctxs before completing to avoid a race
with a listener inserting a new one.

Fixes: http://tracker.ceph.com/issues/36683
Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-11-02 19:47:55 +02:00
Volker Theile
9440776f06 rgw: Return tenant field in bucket_stats function
Fixes: https://tracker.ceph.com/issues/36681

Signed-off-by: Volker Theile <vtheile@suse.com>
2018-11-02 13:26:10 +01:00
Patrick Nawracay
27ee675d3c mgr/dashboard: Simplification of PoolForm method
Signed-off-by: Patrick Nawracay <pnawracay@suse.com>
2018-11-02 08:57:37 +01:00
Kefu Chai
a7bb772e11
Merge pull request #24616 from tchaikov/wip-wip-librados-3
librados: split C++ and C APIs into different source files

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Nathan Cutler <ncutler@suse.com>
2018-11-02 10:44:04 +08:00
Patrick Donnelly
f981e10c5f
Merge PR #24555 into master
* refs/pull/24555/head:
	doc: document optional timeout argument for `cache drop`
	mds: make timeout parameter optional for "cache drop"

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-11-01 14:58:23 -07:00
Patrick Donnelly
e9fbb47150
Merge PR #24747 into master
* refs/pull/24747/head:
	client: add new routine to get fscid from a ceph_mount

Reviewed-by: John Spray <john.spray@redhat.com>
Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-11-01 14:53:25 -07:00
Josh Durgin
1d832401f4
Merge pull request #24868 from liewegas/wip-doc-fix
doc/rados/operations/crush-map-edits: fix 'take' syntax

Reviewed-by: Josh Durgin <jdurgin@redhat.com>
2018-11-01 14:52:24 -07:00
Vasu Kulkarni
67bfc94f17 qa/tests: update links for centos latest to point to 7.5
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
2018-11-01 11:09:12 -07:00
Kefu Chai
38db3ee6c5 rpm,deb: package libceph-common.so.* not libceph-common.so*
be more explicit on what we are packaging. because only
libceph-common.so.${soversion} will be packaged, since libceph-common.so
won't be installed by cmake anymore.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
701136b1e2 cmake: do not create symlink for libceph-common.so.*
and bump up its soversion, so it won't conflict with libceph-common.so.0
offered by librados2.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
b4a5f76243 qa: add librados3 to exclude list of pre-nautilus install tasks
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
083b846198 qa: s/librados2/librados3/
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
8c6ec85f43 doc: s/librados2/librados3/
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
286ef1fe35 debian: s/librados2/librados3/
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
842a57eb16 rpm: s/librados2/librados3/
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
c680fb10f5 cmake: bump librados so version
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
a0813bccc9 librados: bump version number
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
0475dfdea3 qa: update test_envlibrados_for_rocksdb.sh for libradospp split
include a patch so rocksdb can use libradospp instead of librados. will
upstream the patch and make it work for both pre-nautilus librados and
nautilus libradospp

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
dd0f43db7c rpm: add libradospp* packages
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
d4857fef24 debian: add libradospp* packages
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:31 +08:00
Kefu Chai
3730d10623 librados: move C++ APIs into libradospp
the goal is to decouple C++ API from C API, and to version them
differently, as they are targeting different consumers.

this allows us to change the C++ API and bumping up its soversion
without requiring consumer to recompile the librados client for
using the new librados. in this way, C++ API can move faster than
C API. for example, if bufferlist interface is changed for better
performance, and this breaks existing API/ABI, we can bump up
the C++ library's soversion, and and the C library's version unchanged
but ship the new librados's C binding. so the librados client linked
against librados's C library will be able to take advantage of
the improvement in C++ library. while the librados client
linked against C++ library won't break at runtime due to unresolved
symbol or changed structure layout.

this is massive change, the genereal idea is to

* split librados.cc into two source files: librados_c.cc and
  librados_cxx.cc, the former for implementing C APIs, the later
  for C++ APIs.
* extract the C++ API in librados into librados-cxx, the library
  name will be libradospp. but we can change it before nautilus
  is released.
* link these librados libraries with static libraries which it
  depends on, so "-Wl,--exclude-libs,ALL" link flags can help
  hide the non-public symbols.
* extract the tests exercising librados' C++ API into a different
  source file named *_cxx.cc. for instance, to move the C++ tests
  in aio.cc into aio_cxx.cc
* extract the shared helper functions which do not use any librados
  or librados-cxx APIs into test_shared{.cc,h}. the "shared" here
  means, *shared* by C++ and C tests.
* extract the test fixtures, i.e., the subclasses of testing::Test,
  for testing C++ APIs into testcase_cxx.cc.
* update qa/workunits/rados/test.sh accordingly to add the splitted
  tests
* update the consumers of librados to link against librados-cxx
  instead, if they are using the C++ API.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:15:30 +08:00
Kefu Chai
9167c8381f librados: move get_inconsistent_pgs() into RadosClient
so we don't need parse the pg string and render it again for librados C
API.

the downside of this change is that, get_inconsistent_pgs() could be
implemented using RadosClient, instead be *in* it. but before we have
a place for the helper functions for these higher-level functions,
RadosClient is a good place for hosting them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-11-02 00:09:17 +08:00
Casey Bodley
c0fd904b99
Merge pull request #24406 from ivancich/wip-rgw-renew-reshard-lock
rgw: renew resharding locks to prevent expiration

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-11-01 12:06:11 -04:00
Jason Dillaman
f10ef69bd2 rbd: support namespaces for image migration
Fixes: http://tracker.ceph.com/issues/26951
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-11-01 10:11:51 -04:00
Jason Dillaman
3f8ad2e3a7
Merge pull request #20598 from rishabh-d-dave/fix-rbdfuse-look-for-ceph-conf
rbd-fuse: look for ceph.conf in standard locations

Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-11-01 09:55:58 -04:00
Lenz Grimmer
de72ece6cb
Merge pull request #24829 from p-na/pna-fix-docstring
mgr/dashboard: Fix links to external documentation

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-11-01 14:04:39 +01:00
Zhi Zhang
1baf91e7ef client: request next osdmap for blacklisted client
When client became blacklisted, it did't subscribe next osdmap. So when
it was removed from blacklist by expiration or commandline, it didn't
get updated osdmap which is the only way for the client to reset its
blacklisted flag.

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

Signed-off-by: Zhi Zhang <zhangz.david@outlook.com>
2018-11-01 14:52:04 +08:00
Remy Zandwijk
ce8f531789 doc/rados/operations/crush-map-edits: fix 'take' syntax
Fixes: https://tracker.ceph.com/issues/21496
Signed-off-by: Remy Zandwijk <remy@luckyhands.nl>
Signed-off-by: Sage Weil <sage@redhat.com>
2018-10-31 15:42:27 -05:00
Matt Benjamin
1b57df1d51
Merge pull request #21767 from cfanz/wip-fix-rgw-race-condition
rgw: avoid race condition in RGWHTTPClient::wait()
2018-10-31 14:56:29 -04:00
Jason Dillaman
c00f661882 rbd-mirror: update mirror status when stopping
Fixes: http://tracker.ceph.com/issues/36659
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-31 14:43:20 -04:00
Ricardo Marques
223a24eeae
Merge pull request #24810 from rhcs-dashboard/35691-landing-page-chart-improvements
mgr/dashboard: Landing Page: chart improvements

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-10-31 18:36:36 +00:00
Matt Benjamin
1a9f304d2b
Merge pull request #20794 from ghost/wip-nfs-doc-err
doc: replace rgw_namespace_expire_secs with rgw_nfs_namespace_expire_secs
2018-10-31 14:30:02 -04:00
Matt Benjamin
fe43ba1558
Merge pull request #21599 from cfanz/wip-fix-rgw-build-error
rgw: fix radosgw-admin build error
2018-10-31 14:26:02 -04:00
Joao Eduardo Luis
d2fc458185
Merge pull request #19983 from gohighsec/validate_hitset
mon:validate hit_set values before set
2018-10-31 14:39:06 +00:00
Casey Bodley
5cbca655e9
Merge pull request #24848 from joke-lee/wip-doc-radosgw-admin
rgw: add --op-mask in radosgw-admin help info

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-10-31 08:04:23 -04:00
Alfredo Deza
7aaf02bbb9
Merge pull request #24840 from ceph/wip-rm36648
ceph-volume systemd import main so console_scripts work for executable

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-10-31 07:06:02 -04:00