Commit Graph

90981 Commits

Author SHA1 Message Date
Mohamad Gebai
65767fbd35 osd: add clear_cache and get_cache_object_count commands
Fixes: http://tracker.ceph.com/issues/24176

Signed-off-by: Mohamad Gebai <mgebai@suse.com>
2018-10-10 11:45:51 -04:00
Mykola Golub
c552f166c3
Merge pull request #24476 from dillaman/wip-35944
librbd: add new configuration option to always move deleted items to the trash

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-10-10 18:40:14 +03:00
Jason Dillaman
a6a2f395b7
Merge pull request #24512 from trociny/wip-qa-namespace-create_args
qa/workunits/rbd: force v2 image format for namespace test

Reviewed-by: Jason Dillaman <dillaman@redhat.com>
2018-10-10 10:42:08 -04:00
Jason Dillaman
97950fec27 qa/workunits/rbd: test new move-to-trash on image remove config override
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-10 09:08:03 -04:00
Jason Dillaman
60b31cd919 librbd: optionally move image to trash when removed by user
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-10 09:08:02 -04:00
Jason Dillaman
24d05023ca librbd: move remove API method to api namespace
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-10 09:07:00 -04:00
Jason Dillaman
815177bd69 librbd: move trash API methods to api namespace
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
2018-10-10 09:06:59 -04:00
Andrew Schoen
d95f032a21
Merge pull request #24407 from alfredodeza/wip-rm26953
ceph-volume: allow to specify --cluster-fsid instead of reading from ceph.conf

Reviewed-by: Andrew Schoen <aschoen@redhat.com>
2018-10-10 08:57:34 -04:00
Kefu Chai
77f771868b
Merge pull request #24515 from tchaikov/wip-cmake-rgw
cmake: do not use plain target_link_libraries(rgw_a ...)

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Kai Wagner <kwagner@suse.com>
Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-10-10 20:32:02 +08:00
John Spray
67d147c00d
Merge pull request #23622 from renhwztetecs/renhw-wip-25103
mgr: fixup pgs show in unknown state

Reviewed-by: Kefu Chai <kchai@redhat.com>
Reviewed-by: John Spray <john.spray@redhat.com>
2018-10-10 13:28:33 +01:00
Ricardo Marques
41b2f24ddc
Merge pull request #24448 from votdev/bug_36325
mgr/dashboard: Performance counter progress bar keeps infinitely looping

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
2018-10-10 12:18:35 +01:00
John Spray
5a39f0a9aa
Merge pull request #23970 from noahdesu/mgr-always-on-mods-v2
mgr: always on modules v2

Reviewed-by: John Spray <john.spray@redhat.com>
2018-10-10 12:17:41 +01:00
John Spray
17778d217c
Merge pull request #24239 from votdev/python_ceph_audit_log
mgr: Add ability to trigger a cluster/audit log message from Python

Reviewed-by: John Spray <john.spray@redhat.com>
2018-10-10 11:47:49 +01:00
Kefu Chai
9bf16b6c31 cmake: do not use plain target_link_libraries(rgw_a ...)
this addresses following error:

CMake Error at src/rgw/CMakeLists.txt:178 (target_link_libraries):
  The plain signature for target_link_libraries has already been used
with
  the target "rgw_a".  All uses of target_link_libraries with a target
must
  be either all-keyword or all-plain.

  The uses of the plain signature are here:

   * src/rgw/CMakeLists.txt:168 (target_link_libraries)

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-10-10 18:29:03 +08:00
Kefu Chai
ce68d848c0
Merge pull request #24487 from badone/wip-undefined-references-to-dpdk-symbols
cmake/modules/BuildDPDK.cmake: Build required DPDK libraries

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-10-10 16:48:22 +08:00
Mykola Golub
5c5c0244ce
Merge pull request #24450 from dillaman/wip-rbd-conf-keys
librbd: simplify config override handling

Reviewed-by: Mykola Golub <mgolub@suse.com>
2018-10-10 11:01:50 +03:00
Mykola Golub
24e1a6bd47 qa/workunits/rbd: force v2 image format for namespace test
While here, fix test_locking too.

Signed-off-by: Mykola Golub <mgolub@suse.com>
2018-10-10 10:50:30 +03:00
Kefu Chai
c98bbf4f71
Merge pull request #24509 from badone/wip-releases-add-13.2.2
doc/releases: Add Mimic release 13.2.2

Reviewed-by: Kefu Chai <kchai@redhat.com>
2018-10-10 14:47:51 +08:00
Kefu Chai
2e146bf0ca
Merge pull request #24368 from tchaikov/wip-cmake-cleanup
cmake: use OpenSSL::Crypto instead of OPENSSL_LIBRARIES

Reviewed-by: Casey Bodley <cbodley@redhat.com>
2018-10-10 12:39:06 +08:00
Brad Hubbard
2b188a2aed cmake/modules/BuildDPDK.cmake: Build required DPDK libraries
Make sure the mbuf and ethdev libraries are created as they export
required symbols.

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

Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2018-10-10 14:29:10 +10:00
Brad Hubbard
1adf6272e7 doc/releases: Add Mimic release 13.2.2
Signed-off-by: Brad Hubbard <bhubbard@redhat.com>
2018-10-10 12:55:13 +10:00
Patrick Donnelly
f9c7920f57
Merge PR #24496 into master
* refs/pull/24496/head:
	doc: fix typo in blkin.rst

Reviewed-by: Patrick Donnelly <pdonnell@redhat.com>
2018-10-09 11:23:47 -07:00
Sage Weil
d82fab79e2
Merge pull request #24484 from hsiang41/mgr/predictor_model_file
mgr/diskprediction: Replace local predictor model file

Reviewed-by: Sage Weil <sage@redhat.com>
2018-10-09 11:56:51 -05:00
Ricardo Marques
13af4b52f7
Merge pull request #21614 from Devp00l/pool-creation-form
mgr/dashboard: Pool management

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-10-09 17:29:09 +01:00
Gregory Farnum
bdf354aedb
Merge pull request #24497 from idryomov/wip-clarify-copy-from
include/rados: clarify which flags go where for copy_from

Reviewed-by: Greg Farnum <gfarnum@redhat.com>
2018-10-09 09:22:07 -07:00
Kefu Chai
1fb419ca76 cmake: use OpenSSL::Crypto instead of OPENSSL_LIBRARIES
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-10-10 00:20:14 +08:00
Ilya Dryomov
3e06217360 include/rados: clarify which flags go where for copy_from
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
2018-10-09 16:52:56 +02:00
Scoots Hamilton
172f970382 doc: fix typo in blkin.rst
Signed-off-by: Scoots Hamilton <scoots@redhat.com>
2018-10-09 10:46:39 -04:00
Kefu Chai
089d9537c2
Merge pull request #24491 from tchaikov/wip-add-erasure-clay-in-release-note
PendingReleaseNotes: note newly added CLAY code

Reviewed-by: Sage Weil <sage@redhat.com>
2018-10-09 22:17:55 +08:00
Stephan Müller
2c00cbe21c mgr/dashboard: New formatter byte unit tests
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 16:13:48 +02:00
Stephan Müller
ce341cfba9 mgr/dashboard: Unset any compression setting for pools in UI
The dashboard API now can delete all compression options if the
compression mode is set to 'unset' during edit. Other dismissed options
will be overwritten with the reset value on submit, which will cause
the deletion of the previously set settings.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 16:13:43 +02:00
Ricardo Marques
35cc77d0c1
Merge pull request #23230 from s0nea/wip-dashboard-config-options-add
mgr/dashboard config options add

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-10-09 15:07:50 +01:00
Stephan Müller
8e56421bcd mgr/dashboard: Update PG update test
It is now commented out like it was before,
but I've added a comment what happened during this test with the QA
system. The problem was that even with only a increase of 1 PG the QA
cluster went into a cluster warning state and did not recover in time.
The QA coverage timeout is 2 minutes.

I could not reproduce this behavior with a local cluster, but I've
added a loop to wait until pgp and pg number are equal and the cluster
is in a healthy state again. This can take locally about 5 seconds.
The internal loop has a timeout of 3 minutes.

Fixes: https://tracker.ceph.com/issues/36362
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 15:56:54 +02:00
Stephan Müller
c98c8055c2 mgr/dashboard: Unset compression arguments for pools
The dashboard backend can now unset all set compression arguments if the
compression mode is switched to 'unset'. In the case of 'unset' Ceph
itself will only delete the 'compression_mode' argument, not all other
set arguments. The other arguments that should be removed, too, are
added to the update arguments in order to delete all set arguments.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 15:56:47 +02:00
Stephan Müller
039a01d824 mgr/dashboard: Readd pool notifications
As of the merge of cleaner notifications, the notification component was
refactored and move this caused a loss of previously added
notifications.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 15:56:35 +02:00
Stephan Müller
e5a04a3d48 mgr/dashboard: Use task list service in pool list
Now the pool list uses the task list service to monitor all tasks, in
order to extend each pool item with corresponding tasks if any. If there
is a running task for a pool you will see what action runs on it in the
listing.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 15:56:28 +02:00
Stephan Müller
2d74c97c7c mgr/dashboard: Handle pool permissions
Handles pool action permissions in pool listing.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 15:56:21 +02:00
Stephan Müller
6b86243c3a mgr/dashboard: Pool delete
You can delete pools through the UI, this will generate a task that
deletes the pool in the background.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 15:56:18 +02:00
Stephan Müller
1e75db573b mgr/dashboard: Pool create / edit
You can create/edit pools through the UI if you have the right
permissions.

You can specify the following:
* Name - can't be duplicated
* Type - replicated or erasure
* Crush rule set
  * Validates if you can use it
  * A popover tells which crush steps are used
* Replica size - depends on your selected rule and the amount of OSDs
* Erasure code profile
* PGs - will be recalculated on form changes (type, replica size,
    erasure profile, crush rule) only if not set before
* EC overwrites flag
* Compression - Algorithm / Min/max blob size / mode / ratio
* Application metadata - Predefined and custom applications as badges

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 15:56:15 +02:00
Kefu Chai
cdbba106aa
Merge pull request #24471 from tchaikov/wip-doc-serve-doc
doc: add instructions about using "serve-doc" to preview built document

Reviewed-by: Alfredo Deza <adeza@redhat.com>
2018-10-09 21:22:20 +08:00
Kefu Chai
71d0c98c8b PendingReleaseNotes: note newly added CLAY code
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-10-09 21:20:27 +08:00
Kefu Chai
438876eb0f
Merge pull request #24477 from tchaikov/wip-live-with-slow-list-size
cmake: remove checking for GCC 5.1

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Radoslaw Zarzynski <rzarzyns@redhat.com>
2018-10-09 21:05:25 +08:00
Stephan Müller
769abcb399 mgr/dashboard: Return errors to subscriber of task-wrapper
Fixes: https://tracker.ceph.com/issues/36360
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 14:55:14 +02:00
Stephan Müller
525de6674d mgr/dashboard: Fixes user roles
Due to changes in the badges component, user roles had to be amended.

Fixes: https://tracker.ceph.com/issues/36357
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 14:55:02 +02:00
Stephan Müller
3d06484be5 mgr/dashboard: Add badge filtering
It's now possible to filter badges and create badges via a create badges
label.

Fixes: https://tracker.ceph.com/issues/36357
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 14:54:51 +02:00
Tatjana Dehler
960c17aa1b mgr/dashboard: add create functionality to the frontend
Add the missing functionality to create config options and related
tests to the frontend.

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

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-10-09 14:51:34 +02:00
Stephan Müller
bc7ead0bc6 mgr/dashboard: Enable custom badges
Enables custom badges within badges component.

It's possible to use custom validations and custom error messages.

Fixes: https://tracker.ceph.com/issues/36357
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 14:51:31 +02:00
Stephan Müller
bc9f34eacc mgr/dashboard: Amend pool backend tasks
Amends pool tasks in order to get the right results back into the UI
and also to have tasks with the same attributes.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 14:51:27 +02:00
Stephan Müller
177e2df47e mgr/dashboard: Add pool type definition
Adds pool type definition which is used in pool listing.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 14:51:23 +02:00
Stephan Müller
2f041a0f0b mgr/dashboard: Add crush rule type definitions
There are two type definitions one for the crush rule itself and one
for the crush step definition which is used inside the crush rule
definition.

Fixes: https://tracker.ceph.com/issues/36355
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-10-09 14:51:19 +02:00