26 Commits

Author SHA1 Message Date
a1969eb981 Allow overwrite during init command 2021-05-31 00:12:28 -04:00
0bf276fd51 Update copyright year in headers 2021-03-25 17:01:55 -04:00
f4ec161aa2 Update file copyright header.
Remove the option to select a later version of the GPL.
2021-03-25 16:58:02 -04:00
8f705c9cc2 Add cluster backup + restore functionality
Adds cluster backup (JSON dump) and restore functions for use in
disaster recovery.

Further, adds additional confirmation to the initialization (as well as
restore) endpoints to avoid accidental triggering, and also groups the
init, backup, and restore commands in the CLI into a new "task"
subsection.
2020-11-24 02:39:06 -05:00
0383f31086 Fix linting error 2020-11-17 12:37:33 -05:00
7c520ec00c Add short pretty health output 2020-11-17 12:32:16 -05:00
6f66b77a00 Lint: E121/E126 continuation line under/over-indented for hanging indent 2020-11-07 15:06:21 -05:00
260b39ebf2 Lint: E302 expected 2 blank lines, found X 2020-11-07 14:45:24 -05:00
15e78aa9f0 Add status information in cluster status
Provide textual explanations for the degraded status, including
specific node/VM/OSD issues as well as detailed Ceph health. "Single
pane of glass" mentality.
2020-08-17 12:25:23 -04:00
2b4d980685 Display Ceph health in PVC status as well
Makes this output a little more realistic and allows proper monitoring
of the Ceph cluster status (separate from the PVC status which is
tracking only OSD up/in state).
2020-08-13 15:10:57 -04:00
6fe74b34b2 Use .get for JSON message responses 2020-07-20 12:31:12 -04:00
b3a75d8069 Use post instead of get on initialize 2020-04-06 15:05:33 -04:00
b6474198a4 Implement cluster maintenance mode
Implements a "maintenance mode" for PVC clusters. For now, the only
thing this mode does is disable node fencing while the state is true.
This allows the administrator to tell PVC that network connectivity,
etc. might be interrupted and to avoid fencing nodes.

Closes #70
2020-01-09 10:53:27 -05:00
4e5bce4975 Update copyright header year to 2020 2020-01-08 19:38:02 -05:00
6e5065511c Move API call to function and implement keys
Move all API calls to a new common function called call_api to
facilitate easier future changes. Use this function to implement API key
handling via request header value as well as integrate the request URI
generation and debug output handling.

Closes #65
2020-01-08 19:34:24 -05:00
c515d63340 Add provision state for VMs 2020-01-08 17:40:02 -05:00
9cab1c6eb5 Don't go unhealthy for migrate/unmigrate VMs 2020-01-08 17:37:07 -05:00
47c49f7672 Fix click import (again) 2020-01-06 12:55:44 -05:00
27279c9686 Properly import click echo 2020-01-06 12:38:20 -05:00
9ea86cc570 Better handle key values 2020-01-06 11:56:34 -05:00
ef293b7778 Fix syntax error 2020-01-05 13:19:21 -05:00
b9fdce6728 Use consistent function and stderr for debug 2020-01-05 12:51:06 -05:00
08570bd7b9 Don't click.echo except in main program
Return all the strings we printed directly, so that the caller can print
them normally.
2020-01-05 12:35:00 -05:00
18c14cbf77 Handle there being no good nodes/VMs 2019-12-30 09:39:04 -05:00
d2af6f4508 Complete conversion to API client 2019-12-29 20:33:51 -05:00
b7eddc6ae9 Add CLI lib 2019-12-29 16:33:50 -05:00