Commit Graph

84 Commits

Author SHA1 Message Date
Joshua Boniface 09113882ac Use a transaction for node creation 2018-06-17 22:45:03 -04:00
Joshua Boniface 4444bca39d Mass rename of connection variables to sensible names 2018-06-17 21:55:39 -04:00
Joshua Boniface da474125ba Add startup check to verify libvirtd is listening TCP 2018-06-17 20:21:15 -04:00
Joshua Boniface 6ade378cc9 Debianize the packaging 2018-06-17 14:55:13 -04:00
Joshua Boniface 9bfd63777d Wording 2018-06-17 02:29:28 -04:00
Joshua Boniface 837d134f4a Print out interval 2018-06-17 02:28:39 -04:00
Joshua Boniface b1e77f6a20 Finish some better Zookeeper listening logic and functionlize start/stop of timer 2018-06-16 23:25:22 -04:00
Joshua Boniface 04f5fc8f32 Proper exit handling and don't worry about ZK state 2018-06-16 22:47:51 -04:00
Joshua Boniface 2ae7846ccb Don't try to functionize getting config 2018-06-16 22:40:37 -04:00
Joshua Boniface ddfa423f29 Actually don't handle SIGHUP; restart always required 2018-06-16 22:40:00 -04:00
Joshua Boniface cd73dc3a15 Finish up config handling and get rid of atexit 2018-06-16 22:38:25 -04:00
Joshua Boniface 313181f48f Add proper exit 2018-06-16 22:32:16 -04:00
Joshua Boniface 261d9394db Support proper sigterm exiting 2018-06-16 22:30:17 -04:00
Joshua Boniface 9d4f773b94 Change order 2018-06-16 22:27:27 -04:00
Joshua Boniface 90801858f4 Modify atexit trigger to work better 2018-06-16 22:26:19 -04:00
Joshua Boniface 99efab5cdd Except any exception 2018-06-14 12:26:47 -04:00
Joshua Boniface f2d7b5a62a More cleanup of stuff to make the pvcd module 2018-06-14 12:07:46 -04:00
Joshua Boniface 481c6fa445 Combine fencenode into NodeInstance.py 2018-06-14 12:00:48 -04:00
Joshua Boniface 75477c7297 Finish up output printing and several other tweaks 2018-06-12 21:21:22 -04:00
Joshua Boniface aff0af5630 Add static data fields to startup 2018-06-12 12:07:57 -04:00
Joshua Boniface 1e9c225a87 Change startup state to be "init" 2018-06-12 01:55:06 -04:00
Joshua Boniface eca7ca4958 Set the daemon into startup state on boot 2018-06-11 22:55:06 -04:00
Joshua Boniface 217d5810b1 Correct creation value 2018-06-11 03:04:53 -04:00
Joshua Boniface 705f2086be Add separate states for the daemon and the domains 2018-06-11 02:46:24 -04:00
Joshua Boniface 77df48060a Avoid accidental flushing of not-this-host instances 2018-06-11 02:20:03 -04:00
Joshua Boniface 1ecd31e6f6 Move ordering 2018-06-11 01:58:40 -04:00
Joshua Boniface 3df720d37f some more cleanups 2018-06-11 01:58:06 -04:00
Joshua Boniface 88d4964b9c Add hostname to startup to 2018-06-11 01:56:42 -04:00
Joshua Boniface 181bd1f2b8 Remove IPMI stuff from keepalive message and add to startup; convert memory into MB 2018-06-11 01:55:36 -04:00
Joshua Boniface 82769e16e4 Add domains_count and used memory to info 2018-06-11 01:50:06 -04:00
Joshua Boniface e08b7516b4 Change some settings regarding config file 2018-06-11 01:36:07 -04:00
Joshua Boniface 0a882ef693 More work to make stuff work right 2018-06-10 20:45:32 -04:00
Joshua Boniface d0926afe95 Better parsing of config file with default section 2018-06-10 20:41:11 -04:00
Joshua Boniface 6fd2508ff6 Some better handling 2018-06-10 20:21:00 -04:00
Joshua Boniface dec88f6c1a Improve handling to use hostname 2018-06-08 12:44:47 -04:00
Joshua Boniface 6cd84f725a Add config file support 2018-06-08 12:19:48 -04:00
Joshua Boniface 3e51988e9a Make the ansiiprint more portable (give colour functions), have pvcd.py use it too 2018-06-06 23:57:25 -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
Joshua Boniface ad1bf35837 Formatting cleanup and colours! 2018-06-06 22:13:16 -04:00
Joshua Boniface 244464415d Delete a comment 2018-06-06 18:18:39 -04:00
Joshua Boniface 4b85ce9462 Fix problem writing keepalive time to ZK 2018-06-06 17:53:59 -04:00
Joshua Boniface bce202246e Remove extra line 2018-06-06 17:01:01 -04:00
Joshua Boniface 20a45f3d36 Changes for pending fencing configurationt 2018-06-06 15:41:06 -04:00
Joshua Boniface 0794cc854c Improve handling of keepalive and message printing 2018-06-06 14:53:28 -04:00
Joshua Boniface 66fe258655 Convert NodeInstance from having an internal "daemon" to using the APScheduler library 2018-06-06 14:16:52 -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 eb9ef43957 Don't override flush state on exit 2018-06-04 02:35:41 -04:00
Joshua Boniface 1a72ee6414 Get flush working properly 2018-06-04 02:22:59 -04:00
Joshua Boniface 55ebbea6cf Parse the node_list as t_node array of objects for easy resouce passing 2018-06-04 01:52:26 -04:00