Commit Graph

311 Commits

Author SHA1 Message Date
Patrick Seidensal
4483ad4317 mgr/dashboard: unify indentation in dashboard.rst
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
2020-01-27 15:56:25 +01:00
Patrick Seidensal
c552e1fbf6 mgr/dashboard: extend doc by Grafana setting
Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
2020-01-02 13:21:53 +01:00
Tatjana Dehler
0221241909 mgr/dashboard: add password expiration date
Add a 'pwd_expiration_date' field to the User object to be able
to set password expiration date per user.

There are two options to set a password expiration date for a
user:

1. Set the 'USER_PWD_EXPIRATION_SPAN' setting. If defined
   the expiration date of the password will be calculated
   automatically based on the given value. It will also be
   updated automatically when the user changes the password.
2. Set an expiration date by setting the 'pwdExpirationDate'
   field when creating a user.

Add two more settings in addition: USER_PWD_EXPIRATION_WARNING_1
and USER_PWD_EXPIRATION_WARNING_2. These two settings are
defining the amount of days to notify the user that his password
will expiration soon.

It's not possible to set the 'pwd_expiration_date' field to a
date in the past.

If the password of a user is already expired he is no longer
allowed to log into the dashboard.

Fixes: https://tracker.ceph.com/issues/40329
Signed-off-by: Tatjana Dehler <tdehler@suse.com>
2019-12-13 08:53:05 +01:00
Lenz Grimmer
6bab7c8002
Merge pull request #31920 from ricardoasmarques/fix-sso-certs
mgr/dashboard: Invalid SSO configuration when certificate path does not exist

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
2019-12-12 09:47:12 +00:00
Sage Weil
cd1c05acbb mgr/ssh -> mgr/cephadm
Signed-off-by: Sage Weil <sage@redhat.com>
2019-12-11 19:14:24 -06:00
Lenz Grimmer
26f9952671
mgr/dashboard: list configured prometheus alerts (#31937)
mgr/dashboard: list configured prometheus alerts

Reviewed-by: Laura Paduano <lpaduano@suse.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-12-05 12:25:33 +00:00
Lenz Grimmer
3bdbf94e44
mgr/dashboard: Check password complexity in Dashboard CLI comm… (#31916)
mgr/dashboard: Check password complexity in Dashboard CLI commands

Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Tatjana Dehler <tdehler@suse.com>
2019-12-05 09:46:14 +00:00
Patrick Seidensal
36421284c3 mgr/dashboard: extend dashboard documentation
by adding the previously added monitoring related features as well as
the newest feature addition. Extends the documentation where necessary
to describe the Prometheus' alert configuration.

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

Signed-off-by: Patrick Seidensal <pseidensal@suse.com>
2019-12-04 12:27:37 +01:00
Laura Paduano
4ad8591fe4
Merge pull request #30961 from rjfd/wip-mgr-module-logging
mgr: module logging infrastructure

Reviewed-by: Ernesto Puertat <epuertat@redhat.com>
Reviewed-by: Ricardo Marques <rimarques@suse.com>
Reviewed-by: Laura Paduano <lpaduano@suse.com>
2019-12-03 10:29:42 +01:00
Ricardo Marques
cec98a8f90 mgr/dashboard: Invalid SSO configuration when certificate path does not exist
Fixes: https://tracker.ceph.com/issues/43060

Signed-off-by: Ricardo Marques <rimarques@suse.com>
2019-11-29 15:05:57 +00:00
Volker Theile
6f0b3179b9 mgr/dashboard: Check password complexity in Dashboard CLI commands
- Refactor parts of the existing password complexity code.
- Check password complexity when setting password via Dashboard CLI commands.
- Add ability to force setting a password via CLI. This is useful in vstart environments or wherever it is necessary to disable the password complexity check.

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-11-29 11:12:55 +01:00
Sebastian Wagner
a74d57bcb2 doc/orchestrator: Adapted to new Completions
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-11-27 13:38:20 +01:00
Volker Theile
e047ffd20d mgr/dashboard: Dashboard can't handle self-signed cert on Grafana API
To configure SSL certificate verification use the following command:
$ ceph dashboard set-grafana-api-ssl-verify true|false

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

Signed-off-by: Volker Theile <vtheile@suse.com>
2019-11-18 09:48:11 +01:00
Ricardo Dias
3809044b7c
doc/mgr: update mgr modules' logging instructions
Signed-off-by: Ricardo Dias <rdias@suse.com>
2019-11-13 16:33:08 +00:00
Sebastian Wagner
f320f02923 mgr/orchestrator: move InventoryDevice to python-common
Adapted:
* `mgr/dashboard`
* `mgr/ansible`
* `mgr/rook`
* `mgr/ssh`
* `mgr/orchestrator_cli`

Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
Co-authored--by: Kiefer Chang <kiefer.chang@suse.com>
2019-11-11 10:57:05 +01:00
Sage Weil
b0e1ff5efc doc/mgr/orchestrator_cli: remove irrelevant line
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-08 11:25:32 -06:00
Sage Weil
5588b69c29 mgr/ssh: learn to deploy rbd-mirror daemons
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-08 11:25:32 -06:00
Sebastian Wagner
1e9be56d49
Merge pull request #31457 from jschmid1/ssh_orch_dev_env
mgr/ssh: update ssh-orch bootstrap guide (Vagrantfile & docs)

Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Sebastian Wagner <sebastian.wagner@suse.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-11-08 13:20:49 +01:00
Sage Weil
a9b5fa6303 mgr/ssh: implement blink_device_light
On my test box I get as far as

  NO_SUPPORT(153): SCSI VPD page 0x83 is not supported

because my hardware doesn't support this.  The same command works
on another box that does.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-07 07:56:23 -06:00
Joshua Schmid
c068fa1303 mgr/ssh: move and adapt documentation for ssh-orchestrator
Signed-off-by: Joshua Schmid <jschmid@suse.de>
2019-11-07 12:45:50 +01:00
Sage Weil
80f72fa7f3 mgr/ssh: add 'osd rm'
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-06 08:26:12 -06:00
Sebastian Wagner
3feda32916
Merge pull request #26768 from sebastian-philipp/upstream-pull-26684
mgr/orchestrator: device lights

Reviewed-by: Ernesto Puerta <epuertat@redhat.com>
Reviewed-by: Sage Weil <sage@redhat.com>
Reviewed-by: Volker Theile <vtheile@suse.com>
2019-11-06 11:48:29 +01:00
Sage Weil
f59a40186b mgr/ssh: implement 'rgw update'
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-05 08:46:01 -06:00
Sage Weil
5c09643823 mgr/ssh: add 'rgw rm'
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-05 08:46:00 -06:00
Sage Weil
06abbd518d mgr/ssh: implement 'rgw add'
Note that this doesn't correctly confine a daemon to a zone.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-05 08:46:00 -06:00
Sebastian Wagner
b14ae26a69 mgr/orchestrator: Add interface and tests to device lights
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-11-05 13:02:29 +01:00
Sage Weil
3507d74336 Merge PR #31353 into master
* refs/pull/31353/head:
	doc/orchestrator: Fix various issues in Orchestrator CLI documentation

Reviewed-by: Sebastian Wagner <swagner@suse.com>
2019-11-04 10:33:04 -06:00
Sage Weil
a78ece253d doc/mgr/orchestrator_cli: remove extra characters after checkmarks
Not sure what those were.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-04 08:03:48 -06:00
Sage Weil
3f2f38cee9 doc/mgr/orchestrator_cli: no {stop,start,restart} for all the random svcs
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-04 08:03:48 -06:00
Sage Weil
dd27ba50f5 mgr/ssh,orchestrator_cli: add 'restart' service action
Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-04 08:03:48 -06:00
Sage Weil
72b4b72824 mgr/ssh: service[-instance] [start|stop]
Note that 'reload' is meaningless for ssh orch...

Signed-off-by: Sage Weil <sage@redhat.com>
2019-11-04 08:03:48 -06:00
Volker Theile
c3c2f600fe doc/orchestrator: Fix various issues in Orchestrator CLI documentation
Signed-off-by: Volker Theile <vtheile@suse.com>
2019-11-04 13:00:12 +01:00
Sage Weil
332daeac35 doc/mgr/orchestrator_cli: 'service ls' works for ssh
See 7fc78b63425abd192a82f812958349f2bf079dea merge commit.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-10-31 14:25:05 -05:00
Sage Weil
f92b0061dd doc/mgr/orchestrator_cli: we already completed mds ops for rook+ssh
See f5bc2bd74a05bb486fbbca2de4dbe9a1cacd605c merge.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-10-31 14:25:05 -05:00
Tim Serong
ff7b16f60c
Merge pull request #31008 from SUSE/wip-doc-telemetry-default-interval
doc/mgr/telemetry: update default interval
2019-10-21 20:10:19 +11:00
Tim Serong
3c8793c4bd doc/mgr/telemetry: update default interval
Commit 712987d533 changed the default interval to 24h;
updating the docs to match (this also should go to
the Nautilus branch as that commit landed there too
in https://github.com/ceph/ceph/pull/27709)

Signed-off-by: Tim Serong <tserong@suse.com>
2019-10-21 18:18:05 +11:00
Ricardo Dias
994cc103df
Merge pull request #30522 from rhcs-dashboard/fix-41990-master
mgr/dashboard: add debug mode
2019-10-11 14:30:21 +01:00
Ernesto Puerta
928bb30952
doc: new Dashboard Plugin: Debug
Fixes: https://tracker.ceph.com/issues/41990
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2019-10-10 17:01:23 +02:00
Sage Weil
5f15829174 Merge PR #30738 into master
* refs/pull/30738/head:
	mgr/alerts: raise health alert if smtplib has a problem
	mgr/alerts: simple module to send health alerts

Reviewed-by: Tim Serong <tserong@suse.com>
2019-10-09 14:13:40 -05:00
Lenz Grimmer
d1df5cad6b
doc/mgr/dashboard: Fix duplication for NFS-Ganesha (#30700)
doc/mgr/dashboard: Fix duplication for NFS-Ganesha

Reviewed-by: Patrick Seidensal <pnawracay@suse.com>
2019-10-07 15:11:04 +00:00
Sage Weil
d7223938f8 mgr/alerts: simple module to send health alerts
Initialy SMTP support is implemented; nothing else.

This is just smart enough for me to get emails from my home cluster when
something goes wrong.  No bells and whistled at this point.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-10-07 09:04:39 -05:00
Dimitri Savineau
0a49218e23 doc/mgr/dashboard: Fix duplication for NFS-Ganesha
'conventions' is present twice. We can remove the second occurence.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
2019-10-02 16:23:27 -04:00
Sage Weil
8128045511 do not use 'ceph tell mgr'
This is now for a daemon/asok command, not a module command.

Signed-off-by: Sage Weil <sage@redhat.com>
2019-10-01 16:30:53 -05:00
Sebastian Wagner
8603e8394c
Merge pull request #29792 from sebastian-philipp/orchestrator-api-replace
mgr/orchestrator: Document OSD replacement

Reviewed-by: Juan Miguel Olmo Martínez <jolmomar@redhat.com>
Reviewed-by: Tim Serong <tserong@suse.com>
2019-09-12 17:46:27 +02:00
Patrick Donnelly
a779766be9
Merge PR #30014 into master
* refs/pull/30014/head:
	doc: update CephFS overview in introductory page
	doc: filesystem to file system

Reviewed-by: Venky Shankar <vshankar@redhat.com>
Reviewed-by: Ramana Raja <rraja@redhat.com>
Reviewed-by: Sidharth Anupkrishnan <sanupkri@redhat.com>
Reviewed-by: Rishabh Dave <ridave@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
2019-09-11 09:59:51 -07:00
Lenz Grimmer
a9c2370ba8
Merge pull request #30292 from Reperator/wip-doc-dashboard-fix-typo
doc: Fixes typo for ceph dashboard command.
2019-09-11 07:17:46 +00:00
Patrick Donnelly
e7a7cf429e
doc: filesystem to file system
"Filesystem" is not a word (although fairly common in use).

Signed-off-by: Patrick Donnelly <pdonnell@redhat.com>
2019-09-10 08:43:28 -07:00
Fabian Bonk
05935a1211 doc: Fixes typo for ceph dashboard command.
Signed-off-by: Fabian Bonk <fabian.bonk@croit.io>
2019-09-10 15:11:36 +02:00
Sebastian Wagner
0ad89da657 doc/orchestrator: Sync status with reality
Signed-off-by: Sebastian Wagner <sebastian.wagner@suse.com>
2019-09-10 08:48:59 +02:00
Ernesto Puerta
ff4fb0fbbd
mgr/dashboard: fix SAML input argument handling
Currently dashboard provides a Ceph command to specify location or
contents of SAML2 IdP XML (`idp_metadata` argument). This loose
interface is implemented by trying to:
- First, opens HTTPS connection to whatever that argument contains (it
  might be a proper remote URL, a local file or XML contents).
- Then, tries to open the local file
- Finally, assumes the input argument is an XML and proceeds to parse
  it.

However, as the XML can have an undefined length, when fed as a filename
it results in FreeBSD raising a OSError exception (`Max filename length
exceeded`, 1K). This essentially means that this handling results in
unexpected behaviour, as it pushes the validation & error handling to
the underlying methods.

In this fix, some preliminary validation is performed. Especifically:
- Is the input argument a potential filename?
- Is the input argument complying with URL syntax?

Only if the above checks fail, the input argument is fed into the XML
parser.

Additionally, previous syntax is deprecated, so now, `idp_metadata`
enforces 2 syntaxes:
- Raw XML contents
- URL specification (http, https, and file schemas accepted). For local
file, URL 'file://<path>' should be used instead.

Fixes: https://tracker.ceph.com/issues/41358
Signed-off-by: Ernesto Puerta <epuertat@redhat.com>
2019-08-23 14:35:06 +02:00