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
1527c628af
Explicitly send a SIGINT to allow cleanups in units
2018-09-30 18:10:56 -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
Joshua Boniface
eda92a7cbb
Fix a few more bugs with master selection
2018-09-24 03:20:46 -04:00
Joshua Boniface
30399608bc
Fix up router creation bug
2018-09-24 02:16:39 -04:00
Joshua Boniface
e6949ff126
It's not plural
2018-09-24 02:05:00 -04:00
Joshua Boniface
050979dd55
Use self calls
2018-09-24 02:03:57 -04:00
Joshua Boniface
491a6556c3
Fix up handling of cluster primary stepup
2018-09-24 02:02:38 -04:00
Joshua Boniface
1b008f3ae1
Correct problem with t_router calls
2018-09-24 01:57:19 -04:00
Joshua Boniface
4a29aa4bec
Create as secondary by default
2018-09-24 01:46:57 -04:00
Joshua Boniface
bbe03a2fec
Fix some bugs with secondary/primary states
2018-09-24 01:45:04 -04:00