Commit Graph

3109 Commits

Author SHA1 Message Date
Joshua Boniface b5f996febd Fix bugs for node flush for stop/shutdown/restart
Previously VMs in stop/shutdown/restart states wouldn't be properly
handled during a node flush. This fixes the bugs and ensures that the
transient VM states (shutdown/restart) are completed before proceeding,
and then avoids setting a stopped/shutdown VM to shutdown/auotstart.
2023-08-18 11:25:59 -04:00
Joshua Boniface 3a4914fa5e Readd errexit to test script 2023-08-18 10:33:59 -04:00
Joshua Boniface dcda7b5748 Revamp cluster test script 2023-08-17 23:01:38 -04:00
Joshua Boniface ae7950e9b7 Fix bad import 2023-08-17 22:45:50 -04:00
Joshua Boniface d769071799 Revamp behaviour of VM "--restart" options
Previously, either "--restart" was specified or a prompt was given, with
the prompt being ignored with "--unsafe" in favour of a reboot. This
failed to provide an explicit way to prevent VM restarts with these
commands, which might be desired in some non-interactive situations, and
the interaction of "--unsafe" with this option was an undesired bug.

This is now a complete binary flag with --restart and --no-restart
versions, while still defaulting to a prompt if neither is specified.
This allows full non-interactive control of this option.
2023-08-17 22:19:36 -04:00
Joshua Boniface e298d10561 Ensure ACPI is included in Deb VMs 2023-08-17 11:16:08 -04:00
Joshua Boniface fc8cf9ed44 Ensure consistency in variable names and fix bug 2023-08-17 11:09:51 -04:00
Joshua Boniface 4ccdd6347e Move provisioner wait to helpers and fix 2023-08-17 10:26:19 -04:00
Joshua Boniface b32f478633 Work around strange Python anomaly
Apparently, `True` is both an instance of `int` and `bool`, which is a
change and is very strange. Instead flip the conditional here.
2023-08-17 09:55:19 -04:00
Joshua Boniface cf442fcc2d Correct entrypoint for CLI package 2023-08-17 00:27:45 -04:00
Joshua Boniface b753f85410 Update linting options for new CLI client 2023-08-16 23:55:44 -04:00
Joshua Boniface d2bcaec28f Move new CLI client into place 2023-08-16 23:55:27 -04:00
Joshua Boniface a70273dbae Move old CLI client out of the way 2023-08-16 23:54:51 -04:00
Joshua Boniface 30ebd6b42c Add provisioner formatters 2023-08-16 23:48:56 -04:00
Joshua Boniface b2e6feeba3 Add storage formatters 2023-08-16 22:46:13 -04:00
Joshua Boniface c9b06ffdb2 Add network formatters 2023-08-10 00:58:36 -04:00
Joshua Boniface a032dcc5c8 Add formatters for Node and VM, fix handling 2023-08-09 13:13:03 -04:00
Joshua Boniface 01122415f6 Add provisioner management commands
TODO: Add proper new formatters as required
2023-08-09 11:44:43 -04:00
Joshua Boniface bd3e3829b3 Add storage management commands
TODO: Add proper new formatters as required
2023-08-09 10:51:44 -04:00
Joshua Boniface e01bbe9764 Add network management commands
TODO: Add proper new formatters as required
2023-07-03 00:18:07 -04:00
Joshua Boniface 3e7953531c Add VM management commands
TODO: Add proper new formatters as required
2023-07-02 01:03:09 -04:00
Joshua Boniface c7b7ad0cf7 Fix key display and add stubs 2023-07-01 21:51:46 -04:00
Joshua Boniface 776daac267 Add node management commands 2023-05-05 02:10:02 -04:00
Joshua Boniface 653b95ee25 Normalize return messages for node commands 2023-05-04 17:02:46 -04:00
Joshua Boniface 59c9d89986 Port cluster management functions 2023-05-04 03:04:10 -04:00
Joshua Boniface e294e1c087 Initial work on new CLI client rewrite
1. lib copied verbatim from existing client
2. initial reworking of Click to split logic from Click definitions
2023-05-02 17:28:52 -04:00
Joshua Boniface 4685ba1ec4 Move cli_lib to lib directory 2023-05-01 13:43:54 -04:00
Joshua Boniface 969091ed22 Another slight wording tweak 2023-05-01 11:03:58 -04:00
Joshua Boniface 148f04b256 Reword the sections to add clarity 2023-05-01 10:59:23 -04:00
Joshua Boniface dc9e43fbee Add a bit of shade 2023-05-01 10:56:42 -04:00
Joshua Boniface d8dcec254d Add another reference to Ganeti and Harvester 2023-05-01 10:54:42 -04:00
Joshua Boniface 3a90fda109 Bump version to 0.9.63 2023-04-28 14:47:04 -04:00
Joshua Boniface 78322f4de4 Improve size handling during volume add/resize 2023-04-28 12:16:16 -04:00
Joshua Boniface c1782c5004 Add full/nearfull OSD health detection 2023-04-28 11:33:39 -04:00
Joshua Boniface 9114255af5 Add *.update-* obsolete configs to dpkg plugin 2023-04-10 15:39:40 -04:00
Joshua Boniface b26bb5cb65 Mention Ganeti in the docs 2023-03-19 21:23:21 -04:00
Joshua Boniface 74c4ce3ec7 Increase timeout for connections to API 2023-03-14 09:19:13 -04:00
Joshua Boniface 2c3a3cdf52 Use try when watching health value in NodeInstance 2023-03-07 09:53:01 -05:00
Joshua Boniface 0b583bfdaf Bump IPMI timeout to 2 seconds 2023-03-07 09:25:27 -05:00
Joshua Boniface 7c07fbefff Adjust keepalive health printing and ordering 2023-02-24 11:08:30 -05:00
Joshua Boniface 202dc3ed59 Correct error handling if monitoring plugins fail 2023-02-24 10:19:41 -05:00
Joshua Boniface 8667f4d03b Add documentation details about plugin logging 2023-02-23 22:24:07 -05:00
Joshua Boniface 4c2d99f8a6 Fix bug with SMART info 2023-02-23 13:21:23 -05:00
Joshua Boniface bcff6650d0 Set timeout on IPMI command 2023-02-23 11:10:09 -05:00
Joshua Boniface a11206253d Fix ZK check location 2023-02-23 11:04:02 -05:00
Joshua Boniface 7f57c6dbf7 Adjust the main location too 2023-02-23 10:32:31 -05:00
Joshua Boniface 6865979e08 Show possible version minimum 2023-02-23 10:30:45 -05:00
Joshua Boniface 5126bc3272 Handle old clusters in cluster detail list 2023-02-23 10:28:55 -05:00
Joshua Boniface 765f0ef13d Better handle N/A health from old versions 2023-02-23 10:22:00 -05:00
Joshua Boniface fe258d9d56 Correct bad health text call for old clusters 2023-02-23 10:19:18 -05:00