Brad Davidson
198057ac05
Move temporary etcd startup into etcd module
...
Reuse the existing etcd library code to start up the temporary etcd
server for bootstrap reconcile. This allows us to do proper
health-checking of the datastore on startup, including handling of
alarms.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit e4846c92b4 )
2022-03-15 18:09:26 -07:00
Brad Davidson
100f4d1948
Pass context in to embedded etcd so that it can be stopped
...
Partial cherry-pick from 29c8b238e5
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2022-03-15 18:09:26 -07:00
Chris Kim
334eae119a
[release-1.21] Add etcd extra args support for K3s ( #4471 )
...
* Export cli server flags and etcd restoration functions (#3527 )
* Export cli server flags and etfd restoration functions
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* export S3
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
Signed-off-by: Chris Kim <oats87g@gmail.com >
* Add etcd extra args support for K3s
Signed-off-by: Chris Kim <oats87g@gmail.com >
* Remove integration test
Signed-off-by: Chris Kim <oats87g@gmail.com >
Co-authored-by: Hussein Galal <galal-hussein@users.noreply.github.com >
2021-11-11 20:36:17 -08:00
Brian Downs
864e800896
[Release-1.21] All bootstrap backport ( #4452 )
...
Add ability to reconcile bootstrap data between datastore and disk (#3398 )
2021-11-10 16:20:46 -07:00
Brad Davidson
504e249a5e
Add containerd ready channel to delay etcd node join
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 88178ae65e )
2021-10-20 11:06:12 -07:00
Hussein Galal
fadc5a8057
Add tombstone file to etcd and catch errc etcd channel ( #2592 )
...
* Add tombstone file to embedded etcd
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* go mod update
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* more fixes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* more changes
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* gofmt and goimports
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* go mod update
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* go lint
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* go lint
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* go mod tidy
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
2020-12-07 22:30:44 +02:00
Brad Davidson
de18528412
Make etcd voting members responsible for managing learners ( #2399 )
...
* Set etcd timeouts using values from k8s instead of etcdctl
Fix for one of the warnings from #2303
* Use etcd zap logger instead of deprecated capsnlog
Fix for one of the warnings from #2303
* Remove member self-promotion code paths
* Add learner promotion tracking code
* Fix RaftAppliedIndex progress check
* Remove ErrGRPCKeyNotFound check
This is not used by v3 API - it just returns a response with 0 KVs.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2020-10-27 11:06:26 -07:00
Darren Shepherd
6b5b69378f
Add embedded etcd support
...
This is replaces dqlite with etcd. The each same UX of dqlite is
followed so there is no change to the CLI args for this.
2020-06-06 16:39:41 -07:00