Commit Graph

17 Commits

Author SHA1 Message Date
Tsu-ba-me
0eb9c9ff82 fix(cgi-bin): add login cookie guard to get_shared_storage 2021-06-04 19:16:04 -04:00
Tsu-ba-me
215a96257b fix(cgi-bin): reset log level in get_shared_storage 2021-06-03 11:26:32 -04:00
Tsu-ba-me
4fa1cb7f31 fix(cgi-bin): include storage group UUID in response 2021-06-03 11:26:32 -04:00
Tsu-ba-me
4f88b1f536 fix(cgi-bin): ensure sizes in get_shared_storage's response are JSON numbers 2021-06-03 11:26:32 -04:00
Tsu-ba-me
507588cfc3 fix(cgi-bin): add logic to fetch basic info on storage groups 2021-06-03 11:26:32 -04:00
Tsu-ba-me
b1632c2dc3 fix(cgi-bin): make get_shared_storage executable 2021-06-03 11:26:32 -04:00
Tsu-ba-me
22caf55ca0 fix(cgi-bin): accept query param and switch in get_shared_storage 2021-06-03 11:26:32 -04:00
Tsu-ba-me
0008aec694 chore(cgi-bin): add boilerplate to new get_shared_storage 2021-06-03 11:26:32 -04:00
Tsu-ba-me
8789a3b891 chore(cgi-bin): rename existing get_shared_storage->get_filesystems 2021-06-03 11:26:32 -04:00
Tsu-ba-me
2530d2b30d fix(cgi-bin): rename nodes->hosts in get_shared_storage 2021-06-02 18:33:36 -04:00
Tsu-ba-me
78f50e424c fix(cgi-bin): transform FS total size to int in get_shared_storage 2021-06-02 18:33:36 -04:00
Tsu-ba-me
8bcff7a038 fix(cgi-bin): transform boolean int to JSON boolean in get_shared_storage 2021-06-02 18:33:36 -04:00
Tsu-ba-me
5b7367a579 fix(cgi-bin): add file_systems response property to get_shared_storage 2021-06-02 18:33:36 -04:00
Digimer
fb0836f912 * THe get_cpu endpoint was completed.
* The get_mmeory endpoint was completed.
* The get_replicated_storage endpoint was completed, though it requires testing and likely has issues.

To prepare for the get_status endpoint work, I needed to update ScanCore and modules to track the host_status. This commit contains the work needed for this.
* Updated ScanCore->post_scan_analysis_striker() to use configured fence devices (except PDUs) to check if a target host is off or on, in there is no host_ipmi interface. In all cases, if a machine can be confirmed on or off, the host_status is now updated.
* To support the above fence based power checks, updated scan-cluster to store the on-disk CIB in the new scan_cluster -> scan_cluster_cib colume.
* Updated ScanCore->parse_cib() to map stonith primitive IDs to fence agents. Updated ->parse_crm_mon() to not call if the executable doesn't exist to avoid unhelpful error messages in the logs when called from a Striker.
* Update DRBD->gather_data() to get the size data from /sys/block/drbd<minor>/size' x '/sys/block/drbd<minor>/queue/logical_block_size so it works when a device is Secondary (and can't be promoted).
* Updated Database->get_hosts_info() to record the short host name as well as the stored host name. Created ->update_host_status() as a wrapper to ->insert_or_update_hosts() that only updates the host status.
* Updated anvil-join-anvil to disabled ksm and ksmtuned daemons.
* Updated scancore and anvil-daemon to set the host_status to 'online' on startup.

Signed-off-by: Digimer <digimer@alteeve.ca>
2021-04-09 20:51:29 -04:00
Digimer
c2fe3a2f0a * Finished (initial) get_shared_storage.
Signed-off-by: Digimer <digimer@alteeve.ca>
2021-04-02 22:22:07 -04:00
Digimer
fa3c861a97 * Started work again on get_shared_storage
Signed-off-by: Digimer <digimer@alteeve.ca>
2021-04-02 18:31:54 -04:00
Digimer
5536e8ff47 * Updated Cluster->assemble_storage_groups() and Cluster->anvil_name_from_uuid() and ->available_resources() to try to detect the anvil_uuid if not passed in.
* Updated Database->insert_or_update_storage_group_members() to use the host_uuid when trying to find existing members.
* Added the skeleton of a bunch of new json endpoints for the new UI features.

Signed-off-by: Digimer <digimer@alteeve.ca>
2021-03-16 02:40:50 -04:00