Digimer
db85ca663e
Merge branch 'main' into anvil-tools-dev
2 years ago
Digimer
599373816f
* Fixed bugs that came up in testing. Was now able to setup long-throw DR!
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
2fab7bc1b7
This adds support (testing needed) for "Long-Throw" DR; which is a wrapper for using 'drbd-proxy' to provide larger transmit buffers so slow/high-latency DR hosts.
...
* Created DRBD->check_proxy_license() to do (some level of) sanity checks on the DRBD proxy license file.
* Updated DRBD->gather_data() to parse out the inside and outside ports for resource configs using proxy.
* Reworked DRBD->get_next_resource() to return 1, 3 or 7 TCP ports depending, with the new long_throw_ports parameter triggering the 7 ports.
* Added 'tcpdump' to the anvil-core requires list.
* Reworked scan-drbd to record the ports used in proxy configs. This required adding a check to change the 'scan_drbd_peer_tcp_port' column type to 'text' to support CSVs.
* Reworked anvil-manage-dr (needs testing!) to support "long-throw" DR configs.
* Updated anvil-safe-stop to check if the nodes are in the cluster before trying to migrate.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
kronosnet CI bot
6732df403b
Merge pull request #243 from ClusterLabs/fix-rhel9-db
...
spec: update Requires to deal with rhel-9 cloud images
2 years ago
Fabio M. Di Nitto
c683ef84f6
spec: update Requires to deal with rhel-9 cloud images
...
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2 years ago
Digimer
c8ee75420d
* Updated anvil-manage-dr to check if a server is protected before processing a --connect or --disconnect request. Also made it smarter if an attempt to connect a resource fails.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
83e577d057
Merge pull request #242 from ClusterLabs/anvil-tools-dev
...
* Updated Cluster->parse_crm_mon() to record the role of stonith reso…
2 years ago
Digimer
e90dae96f7
* In Server->shutdown_virsh(), disabled trying to resume a paused VM. Also updated the logging around not waiting for a VM to stop.
...
* Updated anvil-safe-stop to check for VMs running, even if the cluster is stopped, when --stop-servers is used.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
d271ffec26
* Updated Cluster->parse_crm_mon() to record the role of stonith resources.
...
* Fixed a bug in System->parse_arguments() where a quoted password without spaces was returned without being recorded in the hash. Also updated logging to log 'suppressed' for passwords when secure logging is disabled.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
digimer-bot
d1595faf74
Merge pull request #237 from ClusterLabs/dependabot/npm_and_yarn/striker-ui-api/terser-5.14.2
...
build(deps): bump terser from 5.12.1 to 5.14.2 in /striker-ui-api
2 years ago
Digimer
0037907111
Merge branch 'main' into dependabot/npm_and_yarn/striker-ui-api/terser-5.14.2
2 years ago
digimer-bot
4a7f9f79df
Merge pull request #241 from ClusterLabs/anvil-tools-dev
...
* Changed the default trigger of live migrations to require a health …
2 years ago
Digimer
89121a2b3b
* Fixed a bug in Alert->check_condition_age() where not setting a host_uuid caused the returned age to always be 0.
...
* Updated scan_apc_pdu to not report a lost PDU unless it's been gone for ten minutes.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
dependabot[bot]
250c493292
build(deps): bump terser from 5.12.1 to 5.14.2 in /striker-ui-api
...
Bumps [terser](https://github.com/terser/terser ) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases )
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/terser/terser/commits )
---
updated-dependencies:
- dependency-name: terser
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Digimer
99a6593fe6
* Fixed a bug when connecting to databases when one DB has no variable entries, making it seem like a DB was disabled.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
b8bb7cc423
* Changed the default trigger of live migrations to require a health score difference of 2 or higher. This can be user-adjusted using the new 'feature::scancore::threshold::preventative-live-migration' anvil.conf option.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
c1a3f8099d
Merge pull request #240 from ClusterLabs/anvil-tools-dev
...
* Added --remove support to anvil-manage-dr, completing all the featu…
2 years ago
Digimer
9675ebf986
* Added --remove support to anvil-manage-dr, completing all the features for this tool.
...
* Updated DRBD.pm to move the logic to wipe and delete an LV into a new method called 'remove_backing_lv'.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
af41c40a65
Merge pull request #239 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
2 years ago
Digimer
93e6a59841
* Added 'vnc-server' to the list of firewall services enabled on strikers.
...
* Created the anvil-manage-dr man page.
* Reworked anvil-manage-dr's --protect logic to search for which network works with the DR host, instead of assuming it's the SN.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
29a28ee97a
* Fixed a bug with anvil-provision-server where running the command line menu from a Striker would not assign the job to the target Anvil!.
...
* Updated Server->parse_definition() to check if a failed 'virsh list' output was passed in. Also changed it to not exit if the XML can't be parsed.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
069fab6a69
Merge pull request #238 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
2 years ago
Digimer
cbb441759e
* Fixed a couple bugs in anvil-manage-files where a file moved from incoming to files or definitions wasn't having the directory updated properly in the database. Also made an explicit check when looking for missing files to check to see if the file exists in another managed directory and, if so and if a striker, update the DB.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
7b1771e498
Updated anvil-provision-server to wait until the local machine is a full cluster member before proceeding.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
4ecc6097d3
* Cleaned up some old 'die' calls with better nice_exit() calls to help avoid dangling db_in_use flags.
...
* Reworked Network->bridge_info() to use 'ip' to get the list of bridges, and 'bridge' to find interfaces connected to the bridge.
* Added 'test' messages to Words->string().
* Fixed a bug in scan-lvm where mdadm based PVs didn't read the sector size properly.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
ef3ac86162
* Fixed a bug where setting the db_in_use flag without a valid $ENV{_}.
...
* Added a nice_exit call to tools/striker-access-database
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
21738ab0d4
Added a bit more logging to the Database->mark_active method.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
a81478f2bc
* Updated 'db_in_use' state to add the caller's name to the state name. This is pulled out when logging stale locks that are being reaped, to help debug where stale locks are coming from.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
e7cf8ac789
* Got more work done on anvil-manage-files. It now picks up new files on nodes/dr hosts in an Anvil! and downloads them if needed.
...
* Updated anvil-daemon to call anvil-manage-files on a per-minute basis to handle files added outside of the WebUI.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
be84a23924
* There were still references in anvil-manage-files to 'file_locations' -> 'file_location_host_uuid'. Had to rework some logic to get things working. More testing needed, but so far at least the "missing file" function is working again.
...
* Added missing always-available switchs in Get->switches
* Create Storage->_wait_if_changing() to check to see if a file's size is changing and, if so, not return until it stops.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
e2a42870e5
Merge pull request #236 from ClusterLabs/anvil-tools-dev
...
* There is a fix in this commit to resolve a race condition where, wh…
2 years ago
Fabio M. Di Nitto
7decdb2887
scan-network: fix path to script
...
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
2 years ago
Digimer
ddd28de112
* Fixed a couple typos that broke compilation.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
15aadc3a4e
* Updated scan-network to check for inactive or activating interfaces and manually bring them up, if the uptime is less than 10 minutes.
...
* Fixed a bug in scancore-agents/Makefile.am where scan-network was missing.
* Started work on anvil-delete-server.8. Incomplete at this time.
* Updated Network->get_ips() to record the interface status.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
55dd28e7f1
* Added the anvil-configure-host man page.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
7eff8f0801
* Added the man page for anvil-check-memory
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
5fea8ff46a
* Adds the anvil-boot-server man page.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
d8f31d9d84
* Added the anvil-boot-server man page.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
b3b185a43c
* Added the alteeve-repo-setup man page and updated it to show that when called with '-h'.
...
* Updated scancore to use the new Get->switches() list parameter.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
d9910fc951
Finished the man page for anvil-daemon.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
be612ff878
* Updated Get->switches() to take 'list' and 'man' parameters. With list, the passed in switches can be checked to ensure they're valid. With 'man', if set to the name of a man page (usually $THIS_FILE) will be displayed if --help, -h or -? are used.
...
* Disabled striker-parse-oui until it can be reworked to store the the OUI data in a flat file instead of in the database.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
cd220e97dc
Disabled striker-prep-databas and set Database->configure_pgsql() calls to use debug => 2.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
cf8198ac9a
Fixed a typo causing a compilation error.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
3343ecaf9f
* Added check to disable/stop firewalld if running when anvil-daemon starts.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
508e278359
Added the new 'anvil-network-profiler' tool.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
e025f5b927
Fixed line wraps
...
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
7fd6185445
* Disabled firewalling for now. There appears to be an issue starting up with DRBD.
...
* Updated Convert->time() to return whatever was passed in instead of '#!error!#'.
Signed-off-by: Digimer <digimer@alteeve.ca>
2 years ago
Digimer
171ea74000
* There is a fix in this commit to resolve a race condition where, when reconfiguring the network, the request to set a job to reboot would fail because the connections to all Strikers could be lost, causing Database->_test_access() would error out, blocking the reboot. When restarted, the network would not be changed, so no reboot would be requested, leaving the machine in an innaccesible state.
...
* Updated anvil-boot-server when called with '--all' to honour boot ordering, delays and condtions.
* Updated Database->get_servers() to collect the server's XML as well as data from the 'servers' table.
* Updated anvil-provision-server to make a new DRBD resource 'secondary' after forcing it to primary to begin the initial sync.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
64458198b3
Merge pull request #235 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
3 years ago
Digimer
0b3d282a2c
* Updated Network->manage_firewall() to restore a debug level set to 1 for testing.
...
* Added firewall config rules for DR hosts.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago