Commit Graph

128 Commits

Author SHA1 Message Date
Joshua Boniface c124cae24b Remove zkey variable for better readability 2018-06-06 21:57:58 -04:00
Joshua Boniface f4bdc22602 Use string format() consistently 2018-06-06 21:54:38 -04:00
Joshua Boniface 155e48ce94 Add terminate option instead of using stop (which screws with ZK state) 2018-06-06 21:47:06 -04:00
Joshua Boniface 3f25f89324 Add additional state - vm should be stopped as it shouldn't run on that node 2018-06-06 21:45:03 -04:00
Joshua Boniface b5e8b1d45b Better output during migrations 2018-06-06 18:18:07 -04:00
Joshua Boniface c2d7231c6a Remove that whole bad logic and do it on the client side 2018-06-06 11:54:08 -04:00
Joshua Boniface aab86d065d Move that command to the very end so it won't override any others 2018-06-06 11:51:12 -04:00
Joshua Boniface 67571434a5 Improve the logic of the on-delete-stop a bit to avoid spurious stop calls 2018-06-06 11:50:02 -04:00
Joshua Boniface 5ca3f6860b Don't die with attribute error if we can't destroy VM 2018-06-06 11:48:28 -04:00
Joshua Boniface 5edb5d1e77 Handle stopping the VM when its ZK config is deleted or it shouldn't be running 2018-06-06 11:46:24 -04:00
Joshua Boniface dc661a8ea8 Remove spurious try statement 2018-06-06 11:42:49 -04:00
Joshua Boniface f2db381969 Handle case where VM is deleted 2018-06-06 11:42:11 -04:00
Joshua Boniface 04b1368898 Add uuid import 2018-06-06 02:14:41 -04:00
Joshua Boniface 35d671c933 Remove pvcf import 2018-06-06 02:13:14 -04:00
Joshua Boniface f7bbca128a Add LICENSE and headers; move some functions out of pvcf.py and into VMInstance 2018-06-06 01:47:53 -04:00
Joshua Boniface df4f80cfb1 Remove all the remaining previous_hypervisor cruft 2018-06-04 16:30:09 -04:00
Joshua Boniface fab402dbbb Remove the unmigrate comand - this should happen in the client instead 2018-06-04 13:24:48 -04:00
Joshua Boniface 3648238cef Forgot some critical shit 2018-06-04 12:26:26 -04:00
Joshua Boniface 4c59fe03aa Remove some logic from wtach functions 2018-06-04 12:22:21 -04:00
Joshua Boniface 2f289df540 Another logic fail 2018-06-04 12:20:19 -04:00
Joshua Boniface cc402be6f6 Forgot self references 2018-06-04 12:18:23 -04:00
Joshua Boniface 533a70972f Refactor how migrations work to allow unmigrate and avoid code duplication 2018-06-04 12:15:37 -04:00
Joshua Boniface 4c7f7180b6 Fix decoding fluke 2018-06-04 11:52:48 -04:00
Joshua Boniface 9dcad19861 Forgot the array 2018-06-04 11:52:05 -04:00
Joshua Boniface b17fab4ec1 Use proper name 2018-06-04 11:51:31 -04:00
Joshua Boniface 0eccbd902f Add unmigrate facility 2018-06-04 11:49:39 -04:00
Joshua Boniface b3ebc9bad3 Handle former hypervisor stuff properly 2018-06-04 03:00:17 -04:00
Joshua Boniface 79b5c41abd Fix calling name 2018-06-04 01:24:11 -04:00
Joshua Boniface 8eb91a4ec3 Some more cleanup and avoid opening libvirt connections until they're really needed 2018-06-04 01:23:27 -04:00
Joshua Boniface ad4a9d8ea6 Fix up the logic and remove our extra try's around UUID lookups 2018-06-04 01:13:48 -04:00
Joshua Boniface 8904e25beb Write and use wrapper function for lookupByUUID 2018-06-04 01:09:42 -04:00
Joshua Boniface 89e7a2b5b3 Systematize logging output 2018-06-04 00:55:54 -04:00
Joshua Boniface b577ad1771 Set into stop after successful shutdown 2018-06-02 19:14:10 -04:00
Joshua Boniface ef6b984296 Fix weird bugs 2018-06-02 19:06:59 -04:00
Joshua Boniface 97f8030700 Fix up migration receive 2018-06-02 18:38:59 -04:00
Joshua Boniface a297f9dbcf Numerous tweaks to make migration work well 2018-06-02 18:34:48 -04:00
Joshua Boniface b84f6ff62e Forgot array bit 2018-06-02 17:00:49 -04:00
Joshua Boniface 3e24eab61e Sleep while waiting 2018-06-02 16:55:48 -04:00
Joshua Boniface 6aca8f9fee Fix migrate problem 2018-06-02 16:45:20 -04:00
Joshua Boniface f032dbefac Set the hypervisor back on a failed migrate 2018-06-02 16:33:53 -04:00
Joshua Boniface ea97b51edb Add tick counting during graceful shutdown to forcibly stop if blocked 2018-06-02 16:30:55 -04:00
Joshua Boniface b199039453 Catch another exception 2018-06-02 16:24:11 -04:00
Joshua Boniface fe52d3815c Print message indenting fixes 2018-06-02 16:22:05 -04:00
Joshua Boniface 6a1b282bfd Wait for shutdown 2018-06-02 16:19:51 -04:00
Joshua Boniface 6bc2bf0579 Switch to TCP mode 2018-06-02 16:15:37 -04:00
Joshua Boniface 915e592f5a Fix handling of force away 2018-06-02 16:10:59 -04:00
Joshua Boniface 19888143c5 Fix the bugs 2018-06-02 16:09:25 -04:00
Joshua Boniface c587f2cc65 Catch another remove list 2018-06-02 15:58:21 -04:00
Joshua Boniface 0826b508ad Fix some startup weirdness in ordering 2018-06-02 15:56:17 -04:00
Joshua Boniface 2349e56fc1 Improve dom handling 2018-06-02 15:52:50 -04:00
Joshua Boniface 76e99b6e87 Set state back to start in both migrate fail cases 2018-06-02 15:46:20 -04:00
Joshua Boniface a155eb5fab Gracefully handle not being able to remove oruself from list 2018-06-02 15:43:02 -04:00
Joshua Boniface 152cba5e19 Fix this to handle errors 2018-06-02 15:39:17 -04:00
Joshua Boniface 286561307b Use right variable 2018-06-02 15:35:19 -04:00
Joshua Boniface 982a9a2fd4 Fix some errors 2018-06-02 15:34:25 -04:00
Joshua Boniface 15cee50eee Fix some faulty logic with migrations 2018-06-02 15:29:12 -04:00
Joshua Boniface 87954559a1 Make this work better and stop bad VMs 2018-06-02 15:26:37 -04:00
Joshua Boniface beef743dd6 Fix up state toggles 2018-06-02 15:20:01 -04:00
Joshua Boniface cbfd3a8a31 Add s_domain elements and data from VM instances 2018-06-02 15:04:04 -04:00
Joshua Boniface d9a5895c4e Some fixes 2018-06-02 14:32:59 -04:00
Joshua Boniface 0e897faf21 Typo 2018-06-02 14:18:09 -04:00
Joshua Boniface c7600e9396 Typo 2018-06-02 00:50:57 -04:00
Joshua Boniface 1db1c80f0b bvlah 2018-06-02 00:47:38 -04:00
Joshua Boniface 8e90c8a847 bvlah 2018-06-02 00:46:58 -04:00
Joshua Boniface 765bad425c Sleep elsewhere 2018-06-02 00:46:06 -04:00
Joshua Boniface 8da9073f68 Dammit 2018-06-02 00:41:55 -04:00
Joshua Boniface 348fa6774e Move the sleep? 2018-06-02 00:41:27 -04:00
Joshua Boniface 72f16a97ec Add sleep? 2018-06-02 00:40:44 -04:00
Joshua Boniface 95da7db7f9 Wat 2018-06-02 00:38:58 -04:00
Joshua Boniface 5db8ae6b7d Fix the handling a bit 2018-06-02 00:36:31 -04:00
Joshua Boniface 6e8bfd5741 Fix the handling a bit 2018-06-02 00:35:49 -04:00
Joshua Boniface 5a0cd65561 Fix the handling a bit 2018-06-02 00:33:54 -04:00
Joshua Boniface 2b2f672e39 Catch libvirt startup errors and reset state to stop 2018-06-02 00:30:25 -04:00
Joshua Boniface c4595fd595 Numerous more tweaks to make everything work properly (yay vague messages) 2018-06-01 12:21:58 -04:00
Joshua Boniface 59410bf2d9 More fixes 2018-05-31 23:28:26 -04:00
Joshua Boniface 26a460c438 More significant work 2018-05-31 22:31:20 -04:00
Joshua Boniface 92ddec311b Add node instances 2018-05-31 21:49:23 -04:00
Joshua Boniface c42795049f Initial commit 2018-05-31 20:26:44 -04:00