Commit Graph

76 Commits

Author SHA1 Message Date
Joshua Boniface 25df845769 Correct some stuff 2018-10-09 22:38:40 -04:00
Joshua Boniface ceb7b6b5cd Correct dhcp_reservations default 2018-10-09 00:24:59 -04:00
Joshua Boniface f2431f179e Correct multiple issues with DHCP and add firewall control logic 2018-10-08 23:53:41 -04:00
Joshua Boniface 16e714b544 Add sysctl commands to daemon startup 2018-10-07 17:47:03 -04:00
Joshua Boniface 2103d5f8b7 Add DELETED event handler 2018-10-04 00:10:13 -04:00
Joshua Boniface 7d33e2d154 Commit a few more bugs 2018-10-04 00:04:48 -04:00
Joshua Boniface a72978e33d Remove debug print 2018-10-03 23:53:27 -04:00
Joshua Boniface 8195064f11 Enable dnsmasq damoning in VXNetworks 2018-10-03 23:39:02 -04:00
Joshua Boniface 5ee8af3b2f Add script for writing dnsmasq leases to ZK 2018-10-03 19:42:42 -04:00
Joshua Boniface da2f99a808 Remove old DHCP integration preferring dnsmasq 2018-10-03 19:42:25 -04:00
Joshua Boniface e5ed3d2c44 Fix lease duplication bug due to bad conditional logic 2018-10-02 19:48:43 -04:00
Joshua Boniface 5c44b8a754 Fix bug with DataWatches holding up instance del
Fixes a very esoteric bug I was having with duplicate class instances
not being reaped properly due to held-open DataWatch elements.
Workaround for the bug(?) described in
https://github.com/python-zk/kazoo/issues/525
2018-10-01 22:43:14 -04:00
Joshua Boniface fc0c07695b Update zookeper once after starting keepalive timer 2018-10-01 17:58:18 -04:00
Joshua Boniface a5257e75b0 Tweaks to startup and shutdown 2018-09-30 20:06:29 -04:00
Joshua Boniface 4612c8086f Fix bug where network list grows 2018-09-30 19:27:39 -04:00
Joshua Boniface 0b5a492859 Handle new gateways better 2018-09-30 19:19:06 -04:00
Joshua Boniface b0084f6a18 Re-add 0.5 second delay before secondary to avoid minor ping loss 2018-09-30 19:16:47 -04:00
Joshua Boniface 0499ca5b47 Remove all debug printing 2018-09-30 19:09:11 -04:00
Joshua Boniface 1216f4a046 Ordering bug 2018-09-30 19:06:18 -04:00
Joshua Boniface 66d8c436fb Remove sleep before deactivating network 2018-09-30 18:52:06 -04:00
Joshua Boniface a86fd06184 Properly correct handling of primary during shutdown 2018-09-30 18:45:39 -04:00
Joshua Boniface 726a6ceca5 Fix a bug 2018-09-30 16:16:05 -04:00
Joshua Boniface 1489486bbb Fix some missing stops 2018-09-30 16:09:23 -04:00
Joshua Boniface c360a91d9a Print messasge in a better place 2018-09-30 16:05:34 -04:00
Joshua Boniface cb3fb84b8d Support anding start and end addresses to DHCP config 2018-09-30 15:58:39 -04:00
Joshua Boniface 120b770a02 Add stop and message on DHCP server shutdown 2018-09-30 13:57:10 -04:00
Joshua Boniface ad3c85eda3 Fix that up a bit more 2018-09-30 13:52:46 -04:00
Joshua Boniface de708ef620 Revert "Finagle how startup happens"
This reverts commit 3e937362cd.
2018-09-30 13:45:20 -04:00
Joshua Boniface ce6d863424 Properly handle creating gateways and DHCP servers 2018-09-30 13:43:18 -04:00
Joshua Boniface 3e937362cd Finagle how startup happens 2018-09-30 13:34:31 -04:00
Joshua Boniface fc8a2e1806 Fix bug with dhcp close 2018-09-30 13:22:59 -04:00
Joshua Boniface 751414d2a3 Typoo 2018-09-30 13:19:22 -04:00
Joshua Boniface c4a9bb8523 Remove some junk 2018-09-30 13:16:27 -04:00
Joshua Boniface 7ebc8ddb74 Add message when starting DHCP server 2018-09-30 13:13:03 -04:00
Joshua Boniface 31f35da91d Fix up call 2018-09-30 13:02:34 -04:00
Joshua Boniface e4509d356a Set up DHCP config properly 2018-09-30 12:59:33 -04:00
Joshua Boniface a65f876483 Create the right type of object 2018-09-30 12:47:54 -04:00
Joshua Boniface 4d350ced7e Some major tweaks to make DHCP reservations work with the server 2018-09-30 12:43:56 -04:00
Joshua Boniface 436dc42576 Don't delete if lease is static 2018-09-30 11:11:33 -04:00
Joshua Boniface a673e38cff Make hostname field into description 2018-09-30 11:08:39 -04:00
Joshua Boniface 9dbeaf8524 Complete DHCP server setup including ZK leases database 2018-09-30 02:52:35 -04:00
Joshua Boniface 197abf66f4 Add DHCP server component based on python_dhcp_server 2018-09-30 01:33:01 -04:00
Joshua Boniface 08c09135c8 Don't bother watching the control key, it's only for write updates 2018-09-29 01:57:38 -04:00
Joshua Boniface 667a1218ef Fix up the wrong key 2018-09-29 01:51:37 -04:00
Joshua Boniface a4bece898e Add a dedicated primary key to keep master selection consistent 2018-09-29 01:47:48 -04:00
Joshua Boniface 0fca16f512 Fix missing ) 2018-09-24 15:16:52 -04:00
Joshua Boniface 1932e1974b Create cpuload element in ZK 2018-09-24 15:12:50 -04:00
Joshua Boniface 40f36271cc Send CPU load to ZK 2018-09-24 15:09:51 -04:00
Joshua Boniface 06ddc8df4c Fix some timings and messages during failover 2018-09-24 14:38:54 -04:00
Joshua Boniface 0f9637cb69 Make the IP failover work including threaded background os commands 2018-09-24 04:08:35 -04:00