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>
2 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
Digimer
bce9e2caaf
This is the first attempt at enabling firewalld completely. There is a decent chance that problems exist, so it won't be a surprise if a few more commits are needed to this branch before things work.
...
* Added multiple new private methods to Network that help in managing the firewall.
* Updated Server->boot_server to manage the firewall after the server boots. Updated ->migrate_server to create a job, if a database connection exists, for the migration target to update it's firewall as soon after the server appears as possible.
* Updated ocf:server:alteeve to manage the firewall when called post-migration, in case there was no DB connection and the job above didn't run. Fixed a bug where the disk state wasn't being evaluated properly.
* Updated scan-server to check that the firewall is managed when a server state has changed.
* Updated anvil-daemon to run Network->manage_firewall on startup.
* Heavily reworked 'anvil-manage-server' to either just run 'Network->manage_firewall', or if passed '--server X', to wait for the server to appear for up to 1 minute, then to check that the firewall is managed (to capture servers being migrated to the host.)
* Removed firewall management from striker-prep-database.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
9028611afb
* Fixed a bug in Get->bridges were the bridge was not marked as found when parsing json output, breaking ocf:alteeve:server
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
f55d605270
* Disabled the new firewall management to prepare for a new merge with main. Needed to resolve in-field client issues.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
b2ea4f9adc
* Moved System->manage_firewall() to Network->manage_firewall(). Started working on actually implementing it, which involves basically fully rewritting it.
...
* Updated tools/Makefile.am and scancore-agents/Makefile.am to add missing files.
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
f2d06fa9b1
* Updated striker-parse-oui to only run if/when the system has been running for at least one hour.
...
Signed-off-by: Digimer <digimer@alteeve.ca>
3 years ago
Digimer
b4362eb643
Merge pull request #233 from ClusterLabs/anvil-tools-dev
...
Anvil tools dev
3 years ago
Digimer
5c7b174683
Merge branch 'main' into anvil-tools-dev
3 years ago
Fabio M. Di Nitto
5e5fc7fcdc
Merge pull request #234 from ClusterLabs/centos9
...
[spec] drop unnecessary Requires
3 years ago
Fabio M. Di Nitto
476b35d712
[spec] drop unnecessary Requires
...
fix installation on c9s and does not break earlier versions
Signed-off-by: Fabio M. Di Nitto <fabbione@fabbione.net>
3 years ago