Joshua Boniface
d07d37d08e
Revamp formatting and linting on commit
...
Remove the prepare script, and run the two stages manually. Better
handle Black reformatting by doing a check (for the errcode) then
reformat and abort commit to review.
2021-11-06 13:34:33 -04:00
Joshua Boniface
0639b16c86
Apply more granular timeout formatting
...
We don't need to wait forever if state changes aren't waiting or disable
(which does a shutdown before returning).
2021-11-06 13:34:03 -04:00
Joshua Boniface
1cf8706a52
Up timeout when setting VM state
...
Ensures the API won't time out immediately especially during a
wait-flagged or disable action.
2021-11-06 04:15:10 -04:00
Joshua Boniface
dd8f07526f
Use positive check rather than negative
...
Ensure the VM is start before doing shutdown/stop, rather than being
stopped. Prevents overwrite of existing disable state and other
weirdness.
2021-11-06 04:08:33 -04:00
Joshua Boniface
5a5e5da663
Add disable forcing to CLI
...
References #148
2021-11-06 04:02:50 -04:00
Joshua Boniface
739b60b91e
Perform automatic shutdown/stop on VM disable
...
Instead of requiring the VM to already be stopped, instead allow disable
state changes to perform a shutdown first. Also add a force option which
will do a hard stop instead of a shutdown.
References #148
2021-11-06 03:57:24 -04:00
Joshua Boniface
16544227eb
Reformat recent changes with Black
2021-11-06 03:27:07 -04:00
Joshua Boniface
73e3746885
Fix linting error F541 f-string placeholders
2021-11-06 03:26:03 -04:00
Joshua Boniface
66230ce971
Fix linting errors F522/F523 unused args
2021-11-06 03:24:50 -04:00
Joshua Boniface
fbfbd70461
Rename build-deb.sh to build-stable-deb.sh
...
Unifies the naming with the other build-unstable-deb.sh script.
2021-11-06 03:18:58 -04:00
Joshua Boniface
2506098223
Remove obsolete gitlab-ci config
2021-11-06 03:18:22 -04:00
Joshua Boniface
83e887c4ee
Ensure all helper scripts pushd/popd
...
Make sure all of these move to the root of the repository first, then
return to where they were afterwards, using pushd/popd. This allows them
to be executed from anywhere in the repo.
2021-11-06 03:17:47 -04:00
Joshua Boniface
4eb0f3bb8a
Unify formatting and linting
...
Ensures optimal formatting in addition to linting during manual deploys
and during pre-commit actions.
2021-11-06 03:10:17 -04:00
Joshua Boniface
adc767e32f
Add newline to start of lint
2021-11-06 03:04:14 -04:00
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