Commit Graph

87702 Commits

Author SHA1 Message Date
Alfredo Deza
4ec7e1d526 upstart: remove ceph-disk conf file
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-06-13 15:16:22 -04:00
Alfredo Deza
b2962e5d57 systemd: remove ceph-disk from CMakeLists
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-06-13 15:16:22 -04:00
Alfredo Deza
22c9707cd8 systemd: remove ceph-disk service
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-06-13 15:16:22 -04:00
Alfredo Deza
148df5f4ff udev: remove ceph-disk rules
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-06-13 15:16:22 -04:00
Alfredo Deza
c8177b5d34 src: remove ceph-disk tool
Signed-off-by: Alfredo Deza <adeza@redhat.com>
2018-06-13 15:16:21 -04:00
Kefu Chai
5da94738f6 test/crimson: add test_alien_echo
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-14 00:13:58 +08:00
Kefu Chai
994410d3e7 crimson/thread: add a condition var impl
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-14 00:13:58 +08:00
Kefu Chai
243eeee9dd crimson: add throttler
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-14 00:13:58 +08:00
Kefu Chai
a28559842b common/Throttle: extract ThrottleInterface
the Message classes are shared by OSD and other components of Ceph,
and the throttle in Policy class is different in seastar and
non-seastar world. we will have different implementations for the
seastar applications and non-seastar apps, to consolidate these
two implementations, we need to introduce a common interface for
them.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-14 00:10:34 +08:00
Kefu Chai
2041989cc2 crimson/net: use std::map for tracking connections
* s/list/map/ for better lookup performance.
* and connection management related changes

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-14 00:10:32 +08:00
Kefu Chai
a4c7dcd192 crimson/net: support the lossless connection and auth
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-14 00:10:10 +08:00
Tatjana Dehler
9ebf5eb650 mgr/dashboard: add config options to documentation page
This commit adds the config options stored by the MON database to the
configuration documentation page.
One can filter for these config options by setting the 'Source' filter
to 'mon' on the configuration documentation page.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-06-13 15:39:24 +02:00
Tatjana Dehler
79c7c5aa18 mgr/dashboard: fix typo - remove unnecessary blank
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2018-06-13 15:23:42 +02:00
Sage Weil
23dd6279bb qa/suites/rados/objecstore: preserve data dir for ceph_test_objecstore
If we fail, preserve the data directory.

Signed-off-by: Sage Weil <sage@redhat.com>
2018-06-13 06:55:18 -05:00
Venky Shankar
d491615f08 test: add rbd-mirror image map rebalancer unit test
Signed-off-by: Venky Shankar <vshankar@redhat.com>
Fixes: http://tracker.ceph.com/issues/24161
2018-06-13 06:36:38 -04:00
Venky Shankar
d96cee13d7 rbd-mirror: schedule rebalancer to level-load instances
Policy implementation takes care of evenly balancing images
across rbd mirror instances. This is done when images are
added to the map and/or instances are added or removed with
the exception of image removal -- removing images does not
reshuffle other (mapped) images which can result in some of
the instances under loaded (in worst case, if one removes
images which all map to a particular instance, that instance
would remain idle until more images are added or a shuffle is
triggered).

We could possibly trigger map shuffle when images are removed,
but that would change the interface between Policy and ImageMap
class (in the form of changes to Policy::remove_images()). Also,
policy (and its implementations) would have to do more work when
the above class method is invoked.

Therefore, an interval based rebalancer is added to ImageMap for
periodic rebalancing of images only if the following conditions
are met:

    - policy has been idle for a configured time duration
    - no scheduled or in-transit operations

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2018-06-13 06:36:38 -04:00
Venky Shankar
895d69f226 rbd-mirror: fix state transition table for disassociation
The final state transition when disassociating (removing) images
does not purge the image state map for a given image. This can
also result in uneven balance of images across instances as the
policy implementation relies on this structure to figure out
total number of images tracked.

Signed-off-by: Venky Shankar <vshankar@redhat.com>
2018-06-13 06:36:38 -04:00
Venky Shankar
bd83d93453 rbd-mirror: fix state comparison in Policy::is_state_scheduled()
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2018-06-13 06:36:38 -04:00
Venky Shankar
65abcd4801 rbd-mirror: remove unneeded instance_ids parameter
Signed-off-by: Venky Shankar <vshankar@redhat.com>
2018-06-13 06:36:38 -04:00
Lenz Grimmer
77f40ed408
Merge pull request #22284 from tspmelo/wip-unit-test-api
mgr/dashboard: Add unit test for frontend api services

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-06-13 12:20:18 +02:00
Lenz Grimmer
77f3bce87d
Merge pull request #22422 from Devp00l/wip-stringify-array-objects
mgr/dashboard: Stringify object[] in KV-table

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Sebastian Krah <skrah@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-06-13 10:55:15 +02:00
Kefu Chai
b00346c759 crimson: add poor man's md_config_t
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-13 14:09:22 +08:00
Kefu Chai
a8e3448fef src/msg: extract Policy into its own header
and templaterize it. as we need to share Policy between seastar app and
non-seastar apps. and the Throttle interface for seastar is different
from that for non-seastar, so we should templaterize the Policy and
PolicySet.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-13 14:09:22 +08:00
Kefu Chai
b3e0558f42 msg: SocketConnection use consumption_result_type
Signed-off-by: Kefu Chai <kchai@redhat.com>
2018-06-13 14:09:22 +08:00
Casey Bodley
c8011ed0c6 msg: SocketConnection reads message tags
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-06-13 14:09:22 +08:00
Casey Bodley
3e5621b09d msg: start on SocketConnection negotiation
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-06-13 14:09:22 +08:00
Casey Bodley
cf37715882 test: add unit test for seastar messenger
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-06-13 14:09:21 +08:00
Casey Bodley
69daf369ef msg: add seastar SocketMessenger
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-06-13 14:09:21 +08:00
Casey Bodley
7d949170f8 msg: add seastar SocketConnection
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-06-13 14:09:21 +08:00
Casey Bodley
987b6c1313 msg: add seastar messenger error code framework
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-06-13 14:09:21 +08:00
Casey Bodley
36197eec60 msg: initial seastar messenger interfaces
Signed-off-by: Casey Bodley <cbodley@redhat.com>
2018-06-13 14:09:21 +08:00
Yuri Weinstein
37ac8df555 qa/tests: changed disto symlink to point to new way using supporeted OS'es
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2018-06-12 13:49:55 -07:00
Yuri Weinstein
bb5a296fe8
Merge pull request #22531 from yuriw/wip-yuriw-crontab
qa/tests: removed all jewel runs and reduced runs on ovh
2018-06-12 12:58:43 -07:00
Sage Weil
7d292da5c6 Merge PR #22527 into master
* refs/pull/22527/head:
	test/encoding/types.h: Adjusting src/messages entries
	test/encoding/types.h: Adjusting src/cls entries
	test/encoding/types.h: Adjusting src/rgw entries
	test/encoding/types.h: Adjusting src/rbd_replay entries
	test/encoding/types.h: Adjusting src/mds entries
	test/encoding/types.h: Adjusting src/mon entries
	test/encoding/types.h: Adjusting src/os entries
	test/encoding/types.h: Adjusting src/osd entries
	test/encoding/types.h: Adjusting src/common entries
	test/encoding/types.h: Adjusting src/test/encoding entries
	test/encoding/types.h: Adjusting src/include/ entries

Reviewed-by: Sage Weil <sage@redhat.com>
2018-06-12 13:21:31 -05:00
Yuri Weinstein
f8b4a1d99b qa/tests: removed all jewel runs and reduced runs on ovh
Signed-off-by: Yuri Weinstein <yweinste@redhat.com>
2018-06-12 09:49:09 -07:00
Erwan Velu
d629e125df test/encoding/types.h: Adjusting src/messages entries
This patch is about:
- Adding the missing headers from src/messages
- Adding the missing types from the existing headers
- Adding blank lines to keep includes and types in a visual block.
  That is much easier to read and keep the same visual as the rest of the file.

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-06-12 17:30:58 +02:00
Erwan Velu
5df434b4e5 test/encoding/types.h: Adjusting src/cls entries
This patch is about:
- Adding the missing headers from src/cls
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-06-12 17:30:58 +02:00
Erwan Velu
ef3b57cd89 test/encoding/types.h: Adjusting src/rgw entries
This patch is about:
- Adding the missing headers from src/rgw
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-06-12 17:30:58 +02:00
Erwan Velu
e4e22b6b3f test/encoding/types.h: Adjusting src/rbd_replay entries
This patch is about removing a simple typo.
The semi-colong isn't necessary here.

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-06-12 17:30:58 +02:00
Erwan Velu
5f1a30e275 test/encoding/types.h: Adjusting src/mds entries
This patch is about:
- Adding the missing headers from src/mds
- Adding the missing types from the existing headers
- Adding blank lines to keep includes and types in a visual block.
  That is much easier to read and keep the same visual as the rest of the file.

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-06-12 17:30:58 +02:00
Erwan Velu
821dbfa305 test/encoding/types.h: Adjusting src/mon entries
This patch is about:
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-06-12 17:30:58 +02:00
Erwan Velu
0bfbee55c1 test/encoding/types.h: Adjusting src/os entries
This patch is about:
- Adding the missing headers from src/os
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-06-12 17:30:58 +02:00
Erwan Velu
6b80c3095a test/encoding/types.h: Adjusting src/osd entries
This patch is about:
- Adding the missing headers from src/osd
- Adding the missing types from the existing headers
- Ordering types to get them in the file's order (that's easier to update)
- Moving crush entries avoid let all the osd entries in a collocated place

Signed-off-by: Erwan Velu <erwan@redhat.com>
2018-06-12 17:30:51 +02:00
Stephan Müller
645a61009b mgr/dashboard: Add validateIf validator
Validate form control if condition is true with given validators

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-06-12 17:06:17 +02:00
Stephan Müller
3b824f78b2 mgr/dashboard: Add custom validator
Custom validation by passing a name for the error and a function as
error condition.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-06-12 17:03:46 +02:00
Stephan Müller
260e057ab7 mgr/dashboard: Make validator spec file prettier
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-06-12 17:03:46 +02:00
Tiago Melo
671cbb4b50 mgr/dashboard: Add unit test for frontend api services
Signed-off-by: Tiago Melo <tmelo@suse.com>
2018-06-12 14:57:44 +01:00
Stephan Müller
823f87a730 mgr/dashboard: Prettier KV-table
Signed-off-by: Stephan Müller <smueller@suse.com>
2018-06-12 15:42:27 +02:00
Stephan Müller
95db06766d mgr/dashboard: Stringify object[] in KV-table
The problem was that object[] weren't handled in the key value table
before. Now they will be stringified to prevent an output like
'[Object object]'.

Signed-off-by: Stephan Müller <smueller@suse.com>
2018-06-12 15:42:27 +02:00
Lenz Grimmer
7acd015a06
Merge pull request #22082 from tspmelo/wip-angular-6
mgr/dashboard: Update Angular to version 6

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2018-06-12 15:32:58 +02:00