Digimer
e60a1b46b3
Fixed bugs related to automatic database startup and conditional backup loading.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
4e9882812d
* Fixed a bug where the periodic database dumps on the primary database Striker were not sync'ing to peers. Also fixed a bug where these periodic dumps weren't running at all.
...
* Updated anvil-daemon->prep_database() to only run if the database dump file doesn't exist. (If it does, it's clearly configured).
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
72b17ff1f9
* Reworked how databases are stopped, now being handled in anvil-daemon. This way, initial starts will still do traditional resyncs, then shut down. This should allow the best of both worlds, where data is not lost on striker start/stop loss/recovery, but operate normally otherwise without delays.
...
* Updated Database->archive_database() to return the full path to the dump file.
* Disabled enabling the postgresql daemon.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Madison Kelly
922899ea78
* WIP: Working on a new method of failing over between which Striker is the active database, instead of running N-number of databases all the time.
...
* Created Database->backup_database() that creates a pg_dump of the active database.
* Created Database->load_database() that loads the database from a flat file, optionally creating a backup before doing so, and using iptables to block access during the process.
* Updated Database->configure_pgsql() to not start the postgresql daemon unless it just initialized the DB.
* Much work, not yet complete, to Database->connect() to stop after the first successful connection. Added logic that, if not connection was established and the host is a Striker, to load a peer's backup, if it exists, and then start the local daemon.
* Updated anvil-daemon to now have a section to run tasks on a ten minute cycle, which will later be used for the primary Striker to dump / copy its database to peer(s).
Signed-off-by: Madison Kelly <mkelly@alteeve.ca>
3 years ago
Digimer
6664c5b77f
* Fixed a bug where scan-drbd, with DR configured, was not recording TCP ports assigned to connections properly.
...
* More bugs fixed in anvil-manage-dr, tested repeatedly as a job and so far, so good. Other functionality still to come.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
da9dc03d04
Updated anvil-manage-dr to update the job progress and convert prints into strings.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
ffd15406e0
* anvil-manage-dr can now protect a server! Still lots to do though.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
20a784baa2
* Continuing work on anvil-manage-dr. Got it to the point where it should (but doesn't yet) create the new DRBD config and the LV(s) on DR.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
5b35204af4
* Updated DRBD->get_next_resource() to take the new 'dr_tcp_ports' ports which, if set, returns two free TCP ports.
...
* Got anvil-manage-dr to the point where it writes the updated resource configuration to enable DR support. (untexted)
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
76eb09393f
Fixed a bug found in the last commit causing newly-added VGs to storage group membership to use the wrong UUID as the internal VG UUID.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
9edf698c37
Updated Database->get_storage_group_data() to determine when a node or DR host needs to be removed from a Storage group, or when a member of an Anvil! needs to be added to a storage group.
...
Created Storage->get_vg_name() to assist with anvil-manage-dr, which is still a WIP.
Continued work on anvil-manage-dr (which exposed the issue that required the update to Database->get_storage_group_data().
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
221f468b6c
* Fixed a bug where duplicate IPMI sensor names of type 'Volts' wasn't being processed properly, causing sensor data to not be recorded.
...
* Added a comment about disabling /etc/hosts management in anvil.conf.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
61d4eb7d7f
Merge pull request #185 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
3 years ago
Digimer
2f8b1fb72e
Updated anvil-provision-server so that when the OS type is 'win7', set the disk to sata and the NIC to e1000e. Also updated it to store the virt-install call in the 'variables' table and write it out to /mnt/shared/provision.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
06f679d7e7
* Added the ability to disable anvil-daemon management of /etc/hosts.
...
* Updated the OS variant list.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
8e5daa090a
Merge pull request #184 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
3 years ago
Digimer
4427fe9f0d
* Found the source of the vnet constantly cycling back to 'up' bug. The anvil-update-state tool was marking the vnet device operational state back to 'unknown' and scan-network was marking it back up.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
213babaaf2
Trying to fix a bug where vnet devices keep reporting as having returned.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
e40d0e2444
Fixed a bug where if a database is pingable but the pgsql database is down, and it's the first database tested (or local), then the DB handle used to read / quote fails.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
823c73d6d8
Merge pull request #183 from ClusterLabs/anvil-tools-dev
...
Fixed a race condition where configuring the IPMI BMC would appear to…
3 years ago
Digimer
acee16e05a
Merge branch 'master' into anvil-tools-dev
3 years ago
Digimer
4c7bb45ab9
Fixed a race condition where configuring the IPMI BMC would appear to fail because the BMC wouldn't report the user list after a cold reset.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
36db7c8239
Merge pull request #182 from Tsu-ba-me/issues/180-to-nextjs-11
...
Web UI: upgrade to Next.js major version 11
3 years ago
Tsu-ba-me
37926daca6
chore: rebuild web UI
3 years ago
Tsu-ba-me
2808fdd123
style(striker-ui): fix styling to make build succeed
3 years ago
Tsu-ba-me
34f7ece2f9
build(striker-ui): ignore out/ when linting
3 years ago
Josue
ed3a058937
chore(front-end): add ESlint next.js integration
3 years ago
Josue
89318d2617
chore(front-end): migrate to Next.js v11.1.0
3 years ago
Digimer
cd10a8850e
Merge pull request #181 from ClusterLabs/anvil-tools-dev
...
Fixed a bug where corosync's configuration of a backup ring was broken.
3 years ago
Digimer
6cbdc388d4
Fixed a bug where corosync's configuration of a backup ring was broken.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
789ac6e8ad
Merge pull request #179 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
3 years ago
Digimer
bc2671c758
Merge branch 'master' into anvil-tools-dev
3 years ago
Digimer
04cb116c1b
Updated anvil-parse-fence-agents to validate each fence agent's metadata is valid before adding it to the unified XML.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
8abb5b46e0
* Added support for setting per-agent log-level and log secure values in amvil.conf.
...
* Moved the check for an agent being disabled into ScanCore->agent_startup()
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
3674a47179
WIP - Working a tool to manually load updated server definition files.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
9e0f9d1d39
Merge pull request #176 from ClusterLabs/dependabot/npm_and_yarn/striker-ui/path-parse-1.0.7
...
chore: bump path-parse from 1.0.6 to 1.0.7 in /striker-ui
3 years ago
Digimer
c449e2edf0
Resetting scan agent timeout to 30 seconds, 60 didn't help with a random
...
hang issue.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
dependabot[bot]
5e54c65d1d
chore: bump path-parse from 1.0.6 to 1.0.7 in /striker-ui
...
Bumps [path-parse](https://github.com/jbgutierrez/path-parse ) from 1.0.6 to 1.0.7.
- [Release notes](https://github.com/jbgutierrez/path-parse/releases )
- [Commits](https://github.com/jbgutierrez/path-parse/commits/v1.0.7 )
---
updated-dependencies:
- dependency-name: path-parse
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
3 years ago
Digimer
38f95870bb
Changed the agent runtime timeout to 60 seconds.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
15d8309095
This commit adds scan agent DB connection info caching to help minimize the number of unnecessary DB resync checks that happen.
...
* Created ScanCore->agent_shutdown() that writes out the time the scan agent last ran, and how many databases were available when it last ran.
* Updated ScanCore->agent_startup() to read the the last run data created above.
* Updated Database->connect() to set 'sys::database::last_db_count' to the scan agent's recorded last DB count.
* Updated all agents to call ScanCore->agent_shutdown() at the end of their run.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
f5f55d70b3
Merge pull request #177 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
3 years ago
Digimer
b0b080a8c4
Merge branch 'master' into anvil-tools-dev
3 years ago
Digimer
f1af3d4e14
Merge pull request #175 from Tsu-ba-me/issues/151-vnc-frontend
...
Web UI: add the front-end counterpart for VNC
3 years ago
Tsu-ba-me
fb2aefa0a8
chore: rebuild web UI
3 years ago
Tsu-ba-me
8fd284ee86
fix(striker-ui): resolve createMuiTheme import error
3 years ago
Tsu-ba-me
6d18e80b98
build(striker-ui): change makefile to include server page
3 years ago
Tsu-ba-me
f7ccfbf600
build(striker-ui): include server page in release
3 years ago
つばめ
933bbfa155
Merge pull request #14 from Seneca-CDOT/vnc-with-scaling
...
Add vnc connection and UI inprovements
3 years ago
Digimer
aec22bb79c
Added a check in scan-network that finds/removes duplicate network interface names.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Josue
e2a226db9c
refactor(front-end): use novnc npm package instead of partially cloned novnc repo
3 years ago