Commit Graph

124 Commits

Author SHA1 Message Date
Alex Dadgar
95297c608c goimports 2019-01-22 15:44:31 -08:00
Nick Ethier
d4e86722fe nomad: add error check in test 2018-06-06 14:08:42 -04:00
Nick Ethier
93f9e073aa nomad: handle edge case where node drain event shouldn't be emitted 2018-06-06 14:02:10 -04:00
Alex Dadgar
cfc9d1fbbd Register events 2018-05-22 14:06:33 -07:00
Alex Dadgar
f01c0d72c6 node heartbeat missed event 2018-05-22 14:05:46 -07:00
Alex Dadgar
3a2829b4fc Emit events based on eligibility 2018-05-22 14:04:59 -07:00
Alex Dadgar
200e4b3cab Add node event when draining is set/removed/updated 2018-05-10 16:54:43 -07:00
Alex Dadgar
6c35eb5134 Plumb event via FSM 2018-05-10 16:30:54 -07:00
Preetha Appan
87bcd3871b Add custom status description for rescheduling follow up evals, and make unit test robust 2018-04-10 15:30:15 -05:00
Preetha Appan
634d4f4ee0 Adds a new custom description for update alloc triggered evals to make it easier to unit test. 2018-04-10 14:00:07 -05:00
Preetha Appan
a6079df6ad Remove duplicate commit 2018-04-09 15:08:09 -05:00
Preetha Appan
0597586e19 Batch evals for rescheduling failed allocs correctly and group them by job ID 2018-04-09 14:05:31 -05:00
Alex Dadgar
400cbcf128 Create evals for system jobs when drain is unset
This PR creates evals for system jobs when:

* Drain is unset and mark eligible is true
* Eligibility is restored to the node
2018-03-27 15:53:24 -07:00
Chelsea Holland Komlo
4dd4c37d17 move tests to use time.Time 2018-03-27 15:43:57 -04:00
Alex Dadgar
1a5559a912 Only track nodes if the conn is from the node
Fixes a bug in which a connection to a Nomad server was treated as a
connection to a node because the server forwarded a node specific RPC.
2018-03-27 09:59:31 -07:00
Michael Schurter
636693830f test: disable node drainer during tests
Node drainer would throw off the index checks
2018-03-21 16:51:45 -07:00
Michael Schurter
e8673b14ef test: disable drain during fsm test
drainer was unsetting drain before fsm could read written value
2018-03-21 16:51:45 -07:00
Alex Dadgar
d15371405f Toggle Drain allows resetting eligibility
This PR allows marking a node as eligible for scheduling while toggling
drain. By default the `nomad node drain -disable` commmand will mark it
as eligible but the drainer will maintain in-eligibility.
2018-03-21 16:51:44 -07:00
Alex Dadgar
cec2c5a726 Drainer 2018-03-21 16:51:44 -07:00
Alex Dadgar
dcafa8b460 RPC/FSM/State Store for Eligibility 2018-03-21 16:51:44 -07:00
Alex Dadgar
fba20fd58d Remove update time 2018-03-21 16:51:43 -07:00
Alex Dadgar
762db7c5d7 Fix tests 2018-03-21 16:51:43 -07:00
Alex Dadgar
1773de9e30 Node.Drain takes strategy 2018-03-21 16:49:48 -07:00
Alex Dadgar
b49462b5ff Heartbeat uses client rpc advertise and server defaults server rpc advertise addr 2018-03-16 16:47:08 -07:00
Alex Dadgar
eceabb66f8 nodeevents -> events 2018-03-13 18:08:22 -07:00
Chelsea Holland Komlo
6eb9911caf code review feedback 2018-03-13 18:08:21 -07:00
Chelsea Holland Komlo
9ef6ad031a fix up go check warnings 2018-03-13 18:08:21 -07:00
Chelsea Holland Komlo
55670c80b0 batch submitting node events 2018-03-13 18:05:40 -07:00
Chelsea Holland Komlo
705ff980ad code review feedback 2018-03-13 18:05:40 -07:00
Chelsea Holland Komlo
56f5e66d25 add node id to tests; check for node events in state store 2018-03-13 18:05:40 -07:00
Chelsea Holland Komlo
fc819754a4 Ensure node updates don't strip node events
Add node events to CLI
2018-03-13 18:05:40 -07:00
Chelsea Holland Komlo
551e96feff code review feedback 2018-03-13 18:05:40 -07:00
Chelsea Holland Komlo
f051d43a5f RPC, FSM, state store for Node.EmitEvent
add node event when registering a node for the first time
2018-03-13 18:05:40 -07:00
Alex Dadgar
96c354304d Store connection time 2018-02-15 13:59:01 -08:00
Alex Dadgar
1611fe56e3 Add testing interfaces 2018-02-15 13:59:00 -08:00
Alex Dadgar
052639eb74 Track client connections 2018-02-15 13:59:00 -08:00
Alex Dadgar
aaf883b424 Helper to populate RPC server endpoints 2018-02-15 13:59:00 -08:00
Preetha Appan
0b75835fe0 s/assert/require/g 2018-01-31 09:58:05 -06:00
Preetha Appan
b2068741f7 Fix flaky test that fails when there is CPU contention 2018-01-31 09:56:53 -06:00
Preetha Appan
dd00e637ad Clean up comments, and one more unit test 2018-01-31 09:56:53 -06:00
Preetha Appan
c89c29deed Reconcile against reschedule tracker api changes 2018-01-31 09:56:53 -06:00
Preetha Appan
034e039ca0 Edge trigger evaluation when allocations client status is failed 2018-01-31 09:56:53 -06:00
Preetha Appan
0aeda0d39e Fix node end point test that was failing compilation 2017-11-01 15:16:38 -05:00
Preetha Appan
acfe95887e Add ModifyTime to Allocation and update it both on plan applies and client initiated updates 2017-11-01 15:13:48 -05:00
Alex Dadgar
403eb4e2a7 Merge pull request #3447 from hashicorp/f-node-purge-api
Added the purge API on node endpoints
2017-10-27 10:42:26 -07:00
Alex Dadgar
560acea31d Changelog + assert 2017-10-27 09:50:10 -07:00
Alex Dadgar
e9116e3d85 GetClientAllocs handles garbage collection events 2017-10-26 17:24:54 -07:00
Diptanu Choudhury
634099211b Added ACLs to the node de-register endpoint 2017-10-26 14:12:17 -07:00
Alex Dadgar
dcb577b512 no namespaces in oss test 2017-10-16 14:21:29 -07:00
Michael Schurter
99e8a45fa2 Remove support for pre-0.5 nodes
Nodes before 0.5 did not have a SecretID. Since SecretID is now a
required field and 0.4.x is >2 point releases ago, drop support for it.
2017-10-13 11:28:47 -07:00