Commit Graph

394 Commits

Author SHA1 Message Date
Kefu Chai
e39c79ce3e
Merge pull request #35572 from p-se/wip-pse-prometheus-mod-cache
mgr/prometheus: improve cache

Reviewed-by: Boris Ranto <branto@redhat.com>
2020-06-24 11:32:16 +08:00
Patrick Seidensal
fa69d8e111 mgr/prometheus: improve Prometheus module cache
Improve cache by running requests in a thread and prevent multiple
requests to Ceph from multiple sources (e.g. Prometheus instances) which
increase load on the manager.

Fixes: https://tracker.ceph.com/issues/45554

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
2020-06-22 10:46:29 +02:00
Sebastian Wagner
b0bbef91f0 doc/mgr/orch: Update documentation to the new CLI
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-06-18 11:17:46 +02:00
Sebastian Wagner
55e608d796 doc/cephadm: Add chapter about FQDNs
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-06-15 15:26:11 +02:00
Sebastian Wagner
3204457917 doc/orch: How to update an existing specification
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-06-09 10:57:30 +02:00
Sebastian Wagner
a46d582422 doc/mgr: add docs for unmanaged=True
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-06-05 10:51:16 +02:00
Joshua Schmid
e9600666e0
doc/cephadm: align to all-available-devices flag
Signed-off-by: Joshua Schmid <jschmid@suse.de>
2020-06-03 16:01:11 +02:00
Daniel-Pivonka
fed98dfab1 mgr/cephadm: cephadm bootstrap add --apply-spec <cluster.yaml>
Have a single command when setting up a cluster for Day 1

example spec

---
service_type: host
addr: jmo-node-00
hostname: jmo-node-00
labels:
- test
- test2
---
service_type: host
addr: jmo-node-01
hostname: jmo-node-01
labels:
- grafana
---
service_type: host
addr: jmo-node-02
hostname: jmo-node-02
---
service_type: grafana
placement:
  label: "grafana"
---
service_type: osd
placement:
  host_pattern: '*'
data_devices:
  all: true

Signed-off-by: Daniel-Pivonka <dpivonka@redhat.com>
2020-05-28 12:26:48 -04:00
Sebastian Wagner
9e1e02508f
Merge pull request #34902 from p-se/wip-pse-doc-prom-security
mgr/dashboard: document Prometheus' security model

Reviewed-by: Alexandra Settle <asettle@suse.com>
Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-05-27 12:22:44 +02:00
Patrick Seidensal
34765e9215 mgr/dashboard: document Prometheus' security model
Fixes: https://tracker.ceph.com/issues/45377

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
2020-05-25 16:50:53 +02:00
Sebastian Wagner
e11db13559
Merge pull request #34668 from zdover23/wip-doc-ceph-orch-zap-45128
doc/ceph orch: Add ceph orch zap command

Reviewed-by: Joshua Schmid <jschmid@suse.de>
2020-05-14 13:39:49 +02:00
Zac Dover
845b05419a Incorporating sebastian-philipp's suggestions.
Signed-off-by: Zac Dover <zac.dover@gmail.com>
2020-05-13 03:05:56 +10:00
Tatjana Dehler
a241a00452 doc/mgr/dashboard: Add troubleshooting guide
Fixes: https://tracker.ceph.com/issues/25196
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-05-06 17:16:33 +02:00
Michael Fritch
586eb6ccb9
doc/mgr/orchestrator: update iscsi
`apply iscsi` and `add iscsi` are implemented in cephadm

Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-05-04 12:28:05 -06:00
Lenz Grimmer
9334471340
Merge pull request #33991 from SchoolGuy/monitoring/rbd-image-details
mgr/dashboard/grafana: Add rbd-image details dashboard

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Jan Fajerski <jfajerski@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-05-04 09:59:53 +02:00
Sebastian Wagner
ef8a2cde4f
Merge pull request #34707 from jschmid1/fix_orch_docs
doc/orchestrator: adapt to new syntax, add more examples

Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-04-30 10:36:54 +02:00
Lenz Grimmer
dc9973a7fb
Merge pull request #33462 from s0nea/wip-dashboard-telemetry-report
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-04-29 17:22:50 +02:00
Tatjana Dehler
18875ef337 mgr/dashboard: add telemetry report component
Add a telemetry component in order to give the user the
possibility to configure the telemetry module in a more
guided fashion. The component offers broader explanations,
shows a preview of the generated report and asks the user
to accept the license before enabling the module.

Fixes: https://tracker.ceph.com/issues/43956
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-04-29 16:34:00 +02:00
Tatjana Dehler
8d91443c8b mgr/telemetry: refactor/enhance CLI commands
1. Move the implementations of the `on` and `off`
command into dedicated methods so that they can
be accessed by other mgr modules via `mgr.remote`.

2. Add a `show-all` command to return the report
and device report at once. Also add a method
`get_report` to make the reports accessible for
other mgr modules as mentioned above.

3. Add two  minor changes and a note where the
gathered data can be found to the Telemetry docu
file.

Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2020-04-29 15:08:35 +02:00
Joshua Schmid
cc5bf59413 doc/orchestrator: update docs to new syntax and updated examples
Signed-off-by: Joshua Schmid <jschmid@suse.de>
Co-Authored-By: Sebastian Wagner <sebastian@spawnhost.de>
2020-04-29 09:47:51 +02:00
Varsha Rao
37bd692075 doc/mgr/orchestrator: Remove duplicate ps from support table
Signed-off-by: Varsha Rao <varao@redhat.com>
2020-04-24 23:32:52 +05:30
Zac Dover
0455c0e608 Add ceph orch zap command
Signed-off-by: Zac Dover <zac.dover@gmail.com>
2020-04-21 07:43:47 +10:00
Sebastian Wagner
b740ae12e5 doc/mgr/orchestrator: Update Placement by pattern matching
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-04-01 11:34:18 +02:00
Sebastian Wagner
bc162005a9 doc/mgr/orchestrator: use yaml syntax highlighting
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-04-01 11:34:18 +02:00
Sebastian Wagner
0c6759750a doc/mgr/orchestrator: Add "Service Specification"
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-04-01 11:34:18 +02:00
Sebastian Wagner
3543aeb84c mgr/orch: Add ceph orch ls --export
* defaults to `--format yaml`
* don't include `status`

```
$  ceph orch ls --export
placement:
  host_pattern: '*'
service_name: crash
service_type: crash
```

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-03-26 12:02:56 +01:00
Enno Gotthold
db76547c8d
doc/mgr/prometheus: Change images to rbd-enabled pools
Signed-off-by: Enno Gotthold <egotthold@suse.de>
2020-03-26 08:21:30 +01:00
Enno G
6386095e51
doc: Add information on how to enable the rbd-images dashboard
Fixes: https://tracker.ceph.com/issues/44623
Signed-off-by: Enno Gotthold <egotthold@suse.de>

In the previous commit (1c52ee2b) the added dashboard will stay empty
until it is manually enabled to display information.
2020-03-26 08:21:30 +01:00
Michael Fritch
530c62d76d
mgr/cephadm: update docs
Signed-off-by: Michael Fritch <mfritch@suse.com>
2020-03-25 16:26:13 -06:00
Sage Weil
49143d6578 python-common: 'all:true' -> '*'
'all:true' is no longer a valid PlacementSpec.

Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-14 09:52:08 -05:00
Sage Weil
b3f910da04 Merge PR #33924 into octopus
* refs/pull/33924/head:
	doc/mgr: Enhance placement specs
	doc/cephadm: Fix toc of Drive Groups

Reviewed-by: Sage Weil <sage@redhat.com>
2020-03-13 09:51:32 -05:00
Sebastian Wagner
e303fe7eaa doc/mgr: Enhance placement specs
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-03-13 13:40:15 +01:00
Lenz Grimmer
8571ce4fd2 doc: Improved Dashboard installation workflow
Moved the "Accessing the Dashboard" section in front of
the paragraphs that talk about enabling additional services.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2020-03-12 14:21:11 +01:00
Lenz Grimmer
4009e9db90 doc: Updated dashboard feature overview for Octopus
Added new Dashboard features added for the Octopus
release.

Signed-off-by: Lenz Grimmer <lgrimmer@suse.com>
2020-03-12 14:19:52 +01:00
Lenz Grimmer
bd337d5186
Merge pull request #32419 from rhcs-dashboard/fix-43419-master
mgr/dashboard: add feature toggle for NFS and fix feature toggles regression

Reviewed-by: Alfonso Martínez <almartin@redhat.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2020-03-12 10:17:56 +01:00
Ernesto Puerta
fcb77ee9d6
mgr/dashboard: add feature toggle for NFS
- New NFS feature toggle added.
- Fixed regression which broke FeatureToggles in the main menu.
- Added extensive unit testing to NavigationComponent
- Added ng-mocks to improve test isolation and performance (~7x, 139s to
20s)
- Added ng-bullet package to improve unit testing performance (2x, 20s
to 9s)
- Added Rxjs Schedulers to implement NgZone.runOutsideAngular in a Rxjs
friendly way (based on
    https://stackoverflow.com/questions/43121400/run-ngrx-effect-outside-of-angulars-zone-to-prevent-timeout-in-protractor)

Minor issues found from exhaustive unit testing:
- Missing permissions in Cluster menu:
  - `permissions.log.read` and `permissions.prometheus.read`
- Missing classes:
  - Block -> Images: `tc_submenuitem_block_images`
  - Block -> iSCSI: `tc_submenuitem_block_iscsi`
- Typos:
  - class `tc_submenuitem_hosts` assigned to OSD menu (instead of
      `tc_submenuitem_osd`)
  - `tc_menuitem_cephs` -> `tc_menuitem_cephfs`

Minor changes:
- Previously, Cluster Map -> CRUSH Map required both OSD and Host
permissions. Now it only requires OSD permissions (there are no
references to hosts in CRUSH Map page). Nevertheless, all system roles
setting OSD permission also set Host's, so no impact expected.
- Previously, Cluster -> Monitoring menu was hidden when both Prometheus
or Alertmanager weren't configured. Now it's displayed and when clicked
on it shows the helper banner indicating that further configuration is
required. This change removes the dependency on the PrometheusService.

Fixes: https://tracker.ceph.com/issues/43419
Fixes: https://tracker.ceph.com/issues/43715
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2020-03-11 15:03:58 +01:00
Sebastian Wagner
2c0ff28d45 doc: Move Move ServiceSpec to python-common
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-03-10 13:28:23 +01:00
Sage Weil
a9bb16b40f Merge PR #33747 into master
* refs/pull/33747/head:
	doc/mgr/telemetry: add 'send' command
	mgr/telemetry: force --license when sending while opted-out

Reviewed-by: Sage Weil <sage@redhat.com>
2020-03-07 07:07:41 -06:00
Sage Weil
739c23da1b doc/cephadm/monitoring: document process to set up monitoring with cephadm
Signed-off-by: Sage Weil <sage@redhat.com>
2020-03-06 11:30:18 -06:00
Yaarit Hatuka
4308c5d56e doc/mgr/telemetry: add 'send' command
Signed-off-by: Yaarit Hatuka <yaarit@redhat.com>
2020-03-05 12:15:27 -05:00
bk203
52deebaa5c doc: update Zabbix template reference
The old link references a 2017 version of the template, I experienced problems using this version of the template with the latest version of Ceph. Ceph would report "Failed to send data to Zabbix", by importing the newer 2019 version of the template within Zabbix Ceph could again send data (due to changed Zabbix Trapper item keys). Propose to replace the link for a link referencing the master branch of the template so the newest version is always referenced in the docs.

Signed-off-by: Mathijs Smit <m.smit@goldenvalue.nl>
2020-03-03 10:32:57 +08:00
Sage Weil
4ad485d285 Merge PR #33575 into master
* refs/pull/33575/head:
	mgr/telemetry: fix and document proxy usage

Reviewed-by: Lenz Grimmer <lgrimmer@suse.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Yaarit Hatuka <yaarithatuka@gmail.com>
2020-03-01 19:53:25 -06:00
Sebastian Wagner
424e3b2773
Merge pull request #33044 from jschmid1/drive_group_docs
doc/drivegroups: add docs for DriveGroups with excessive examples

Reviewed-by: Kiefer Chang <kiefer.chang@suse.com>
2020-02-27 19:57:37 +01:00
Sebastian Wagner
3d782a0e86 doc/mgr/orchestrator: Add CephFS
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-02-27 12:40:48 +01:00
Sebastian Wagner
4e15f03a63 doc/mgr/orchestrator: Add documentation for plcement specs
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-02-27 12:40:48 +01:00
Sebastian Wagner
e59eae1c96 doc/mgr: Reordering
* Moved *Configuring the Orchestrator CLI*
* Updated the definitions

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2020-02-27 12:40:48 +01:00
Lars Marowsky-Bree
5d7c79b079 mgr/telemetry: fix and document proxy usage
This addresses https://tracker.ceph.com/issues/44320 - fix and document
use of proxies for mgr/telemetry.

Signed-off-by: Lars Marowsky-Bree <lmb@suse.com>
2020-02-27 11:11:01 +01:00
Sage Weil
f83f38a26e Merge PR #33552 into master
* refs/pull/33552/head:
	mgr/dashboard: Enhance user create CLI command to force password change

Reviewed-by: Stephan Müller <smueller@suse.com>
Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2020-02-26 17:13:02 -06:00
Joshua Schmid
044b400f23 doc/drivegroups: add initial write-up
Signed-off-by: Joshua Schmid <jschmid@suse.de>
2020-02-26 22:53:15 +01:00
Volker Theile
f1f7df3d33 mgr/dashboard: Enhance user create CLI command to force password change
Fixes: https://tracker.ceph.com/issues/44301

Signed-off-by: Volker Theile <vtheile@suse.com>
2020-02-26 15:50:53 +01:00