Commit Graph

2501 Commits

Author SHA1 Message Date
Joshua Boniface 2083fd824a Reformat code with Black code formatter
Unify the code style along PEP and Black principles using the tool.
2021-11-06 03:02:43 -04:00
Joshua Boniface 3aa74a3940 Add safe mode to Black 2021-11-06 02:59:54 -04:00
Joshua Boniface 71d94bbeab Move Flake configuration into dedicated file
Avoid passing arguments in the script.
2021-11-06 02:55:37 -04:00
Joshua Boniface 718f689df9 Clean up linter after Black add (pass two) 2021-11-06 02:51:14 -04:00
Joshua Boniface 268b5c0b86 Exclude Alembic migrations from Black
These files are autogenerated with their own formats, so we don't want
to override that.
2021-11-06 02:46:06 -04:00
Joshua Boniface b016b9bf3d Clean up linter after Black add (pass one) 2021-11-06 02:44:24 -04:00
Joshua Boniface 7604b9611f Add black formatter to project root 2021-11-06 02:44:05 -04:00
Joshua Boniface b21278fd80 Add Basic Builder configuration
Configuration for my new CI system under Gitea.
2021-10-31 00:09:55 -04:00
Joshua Boniface 3b02034b70 Add some delay and additional tries to fencing 2021-10-27 16:24:17 -04:00
Joshua Boniface c7a5b41b1e Fix ordering to show correct message 2021-10-27 13:37:52 -04:00
Joshua Boniface 48b0091d3e Support adding the same network to a VM again
This is a supported configuration for some edge cases and should be
allowed.
2021-10-27 13:33:27 -04:00
Joshua Boniface 2e94516ee2 Reorder linting on build-and-deploy 2021-10-27 13:25:14 -04:00
Joshua Boniface d7f26b27ea More gracefully handle restart + live
Instead of erroring, just use the implication that restarting a VM does
not want a live modification, and proceed from there. Update the help
text to match.
2021-10-27 13:23:39 -04:00
Joshua Boniface 872f35a7ee Support removing VM interfaces by MAC
Provides a way to handle multiple interfaces in the same network
gracefully, while making the previous behaviour explicit.
2021-10-27 13:20:05 -04:00
Joshua Boniface 52c3e8ced3 Fix bad test in postinst 2021-10-19 00:27:12 -04:00
Joshua Boniface 1d7acf62bf Fix bad location of config sets 2021-10-12 17:23:04 -04:00
Joshua Boniface c790c331a7 Also validate on failures 2021-10-12 17:11:03 -04:00
Joshua Boniface 23165482df Bump version to 0.9.42 2021-10-12 15:25:42 -04:00
Joshua Boniface 057071a7b7 Go back to passing if exception
Validation already happened and the set happens again later.
2021-10-12 14:21:52 -04:00
Joshua Boniface 554fa9f412 Use current live value for bridge_mtu
This will ensure that upgrading without the bridge_mtu config key set
will keep things as they are.
2021-10-12 12:24:03 -04:00
Joshua Boniface 5a5f924268 Use power off in fence instead of reset
Use a power off (and then make the power on a requirement) during a node
fence. Removes some potential ambiguity in the power state, since we
will know for certain if it is off.
2021-10-12 11:04:27 -04:00
Joshua Boniface cc309fc021 Validate network MTU after initial read 2021-10-12 10:53:17 -04:00
Joshua Boniface 5f783f1663 Make cluster example images clickable 2021-10-12 03:15:04 -04:00
Joshua Boniface bc89bb5b68 Mention fencing only in run state 2021-10-12 03:05:01 -04:00
Joshua Boniface eb233ef588 Adjust more wording and fix typos 2021-10-12 03:00:21 -04:00
Joshua Boniface d3efb54cb4 Adjust some wording 2021-10-12 02:54:16 -04:00
Joshua Boniface da15357c8a Remove codeql setup
I don't use this for anything useful, so disable it since a run takes
ages.
2021-10-12 02:51:19 -04:00
Joshua Boniface b6939a28c0 Fix formatting of subsection 2021-10-12 02:49:40 -04:00
Joshua Boniface a1da479a4c Add reference to Ansible manual 2021-10-12 02:48:47 -04:00
Joshua Boniface ace4082820 Fix spelling errors 2021-10-12 02:47:31 -04:00
Joshua Boniface 4036af6045 Fix link to cluster architecture docs 2021-10-12 02:41:22 -04:00
Joshua Boniface f96de97861 Adjust getting started docs
Update the docs with the current information on setting up a cluster,
including simplifying the Ansible configuration to use the new
create-local-repo.sh script, and simplifying some other sections.
2021-10-12 02:39:25 -04:00
Joshua Boniface 04cad46305 Default to removing build artifacts in b-a-d.sh 2021-10-11 16:41:00 -04:00
Joshua Boniface e9dea4d2d1 Add explicit 3 second timeout to requests 2021-10-11 16:31:18 -04:00
Joshua Boniface 39fd85fcc3 Add version function support to CLI 2021-10-11 15:34:41 -04:00
Joshua Boniface cbbab46b55 Add new configs for Ansible 2021-10-11 14:44:18 -04:00
Joshua Boniface d1f2ce0b0a Bump version to 0.9.41 2021-10-09 19:39:21 -04:00
Joshua Boniface 2f01edca14 Add bridge_mtu config to docs 2021-10-09 19:28:50 -04:00
Joshua Boniface 12a3a3a6a6 Adjust log type of object setup message 2021-10-09 19:23:12 -04:00
Joshua Boniface c44732be83 Avoid duplicate runs of MTU set
It wasn't the validator duplicating, but the update duplicating, so
avoid that happening properly this time.
2021-10-09 19:21:47 -04:00
Joshua Boniface a8b68e0968 Revert "Avoid duplicate runs of MTU validator"
This reverts commit 56021c443a.
2021-10-09 19:11:42 -04:00
Joshua Boniface e59152afee Set all log messages to information state
None of these were "success" messages and thus shouldn't have been ok
state.
2021-10-09 19:09:38 -04:00
Joshua Boniface 56021c443a Avoid duplicate runs of MTU validator 2021-10-09 19:07:41 -04:00
Joshua Boniface ebdea165f1 Use correct isinstance instead of type 2021-10-09 19:03:31 -04:00
Joshua Boniface fb0651fb05 Move MTU validation to function
Prevents code duplication and ensures validation runs when an MTU is
updated, not just on network creation.
2021-10-09 19:01:45 -04:00
Joshua Boniface 35e7e11403 Add logger message when setting MTU 2021-10-09 18:56:18 -04:00
Joshua Boniface b7555468eb Ensure vx_mtu is always an int() 2021-10-09 18:52:50 -04:00
Joshua Boniface f1b4ee02ba Fix bad header length in network list 2021-10-09 18:50:32 -04:00
Joshua Boniface 4698edc98e Add MTU value checking and log messages
Ensures that if a specified MTU is more than the maximum it is set to
the maximum instead, and adds warning messages for both situations.
2021-10-09 18:48:56 -04:00
Joshua Boniface 40e7e04aad Fix invalid schema key
Addresses #144
2021-10-09 18:42:33 -04:00