fix: print error which causes serverlb to fail starting

Fixes #466
pull/476/head v4.1.0-alpha.1
iwilltry42 4 years ago
parent e119326184
commit eaee32e227
No known key found for this signature in database
GPG Key ID: 7BA57AD1CFF16110
  1. 2
      CHANGELOG.md
  2. 2
      pkg/client/cluster.go

@ -28,6 +28,8 @@
### Fixes
- do not ignore `--no-hostip` flag and don't inject hostip if `--network=host` (#471, @konradmalik)
- fix: `--no-lb` ignored
- fix: print error cause when serverlb fails to start
### Misc

@ -863,7 +863,7 @@ func ClusterStart(ctx context.Context, runtime k3drt.Runtime, cluster *k3d.Clust
if !serverlb.State.Running {
log.Debugln("Starting serverlb...")
if err := runtime.StartNode(ctx, serverlb); err != nil { // FIXME: we could run into a nullpointer exception here
log.Warningf("Failed to start serverlb '%s': Try to start it manually", serverlb.Name)
log.Warningf("Failed to start serverlb '%s' (try to start it manually): %+v", serverlb.Name, err)
failed++
}
// TODO: avoid `level=fatal msg="starting kubernetes: preparing server: post join: a configuration change is already in progress (5)"`

Loading…
Cancel
Save