Commit Graph

128 Commits

Author SHA1 Message Date
Joshua Boniface 51843cf911 Set state back to start after restart 2018-06-13 12:55:07 -04:00
Joshua Boniface cf6cc9ff8a Add condition to avoid setting ZK status during restart shutdown/stop 2018-06-13 12:52:40 -04:00
Joshua Boniface bc52c80aec Add ability to restart VM 2018-06-13 12:47:30 -04:00
Joshua Boniface f8e1039a07 Further reworking to make list consistent 2018-06-13 12:31:27 -04:00
Joshua Boniface c54a51aa95 Make the spaghetti IF conditions more manageable 2018-06-13 12:01:42 -04:00
Joshua Boniface c16eb86456 Undo some bugfixes 2018-06-12 22:00:23 -04:00
Joshua Boniface 75efefada3 More bugfixes 2018-06-12 21:44:06 -04:00
Joshua Boniface a87bf4bc4a Clean up some handling of restarting dead VMs 2018-06-12 01:54:01 -04:00
Joshua Boniface bb1d0c6c5b Remove extra debugging 2018-06-11 22:50:52 -04:00
Joshua Boniface 48a5a44db4 Add back in the wait to avoid floods on stderr 2018-06-11 22:47:53 -04:00
Joshua Boniface 8559e429ce Better output 2018-06-11 22:09:18 -04:00
Joshua Boniface 069696dbd4 Some more debug and a little fix to the terminate check 2018-06-11 22:05:36 -04:00
Joshua Boniface f843f294c9 Debug 2018-06-11 21:52:33 -04:00
Joshua Boniface d99fc891b4 Some debug 2018-06-11 21:51:38 -04:00
Joshua Boniface 78e61a759e Don't listen twice in parallel, this seems doomed to failure; we only ever switch HVs by changing the state too 2018-06-11 21:35:37 -04:00
Joshua Boniface 202b8f41af Add a short delay before managing state 2018-06-11 21:32:13 -04:00
Joshua Boniface f58784f7b5 Fix up the startup clobber in a more elegant way 2018-06-11 20:25:22 -04:00
Joshua Boniface 5ad49d239e Add some tweaks to prevent clobbering state changes happening at startup and during each keepalive cycle 2018-06-11 20:12:11 -04:00
Joshua Boniface f4493ed7c1 Print out useful info on state change 2018-06-11 19:22:33 -04:00
Joshua Boniface ae6c024bc9 Remove the other sleeps 2018-06-11 19:14:22 -04:00
Joshua Boniface 47fb78f9df Remove debug text 2018-06-11 19:09:46 -04:00
Joshua Boniface 7279b66dc2 Lower the timeout 2018-06-11 18:59:45 -04:00
Joshua Boniface ec26fb4849 Replace complicated ifs with a number of passes; this is pass 1 (are we doing somethin already) 2018-06-11 18:53:07 -04:00
Joshua Boniface 768dcdd480 Try to fix the race condition in a less-spaghetti way 2018-06-11 18:45:37 -04:00
Joshua Boniface f9af787ddd Fix another weird corner case 2018-06-11 18:41:32 -04:00
Joshua Boniface b24d8afc77 Fix race condition and such 2018-06-11 17:49:22 -04:00
Joshua Boniface b3169758ff (hopefully) fix race condition when data updates 2018-06-11 17:44:22 -04:00
Joshua Boniface d77373bb21 Remove some debug 2018-06-11 17:40:18 -04:00
Joshua Boniface 1ab3145a76 More debug 2018-06-11 17:35:57 -04:00
Joshua Boniface ef49260762 Some better logic here rather than using and/or 2018-06-11 17:02:36 -04:00
Joshua Boniface 37e81524c4 Tweak ordering a bit 2018-06-11 16:53:04 -04:00
Joshua Boniface 7ac3e97daf Add restrictions against doing this during migrate 2018-06-11 16:49:46 -04:00
Joshua Boniface 1e4aadc989 Try to stop this looping forever 2018-06-11 13:22:48 -04:00
Joshua Boniface e10e1a0bc5 Add delay before setting to start state 2018-06-11 13:19:23 -04:00
Joshua Boniface 3c35142523 Weird little bugt 2018-06-11 13:16:42 -04:00
Joshua Boniface 39dce1cd93 Have to do it on the sending size 2018-06-11 13:13:18 -04:00
Joshua Boniface fdea02b888 Try to fix some weird bugs with receive migrate 2018-06-11 13:11:42 -04:00
Joshua Boniface 1180f1a249 More debug 2018-06-11 03:11:43 -04:00
Joshua Boniface a1e8494777 Found the bug 2018-06-11 03:01:12 -04:00
Joshua Boniface 8b9cdf4924 Some bugfixes here 2018-06-11 02:58:37 -04:00
Joshua Boniface fac2c9edb3 Output text change 2018-06-11 02:08:09 -04:00
Joshua Boniface 236d472008 Add way out of receive migration 2018-06-11 02:03:23 -04:00
Joshua Boniface 3851069b7a Fix handling of failed-start 2018-06-10 21:04:00 -04:00
Joshua Boniface 974c708c82 Missing return if failed to start 2018-06-10 20:52:53 -04:00
Joshua Boniface 6cd84f725a Add config file support 2018-06-08 12:19:48 -04:00
Joshua Boniface eb038dfbbb Add self 2018-06-07 00:40:32 -04:00
Joshua Boniface c89ec52019 Revert "Add space in prefix"
This reverts commit 577954ddd4.
2018-06-07 00:29:04 -04:00
Joshua Boniface 577954ddd4 Add space in prefix 2018-06-07 00:28:48 -04:00
Joshua Boniface b6b7bb86b6 Use new ansiiprint setup 2018-06-06 23:46:32 -04:00
Joshua Boniface 640f38c3aa Add ANSII colours to output commands for easy parsing 2018-06-06 22:56:03 -04:00