Add more logging for solving tricky bugs
parent
ad9debaec4
commit
05a3279929
|
|
@ -275,6 +275,7 @@ echo ""
|
|||
echo ">> Starting ${E2E_BIN} at $(date)"
|
||||
${SUDO_PREFIX}${E2E_BIN} \
|
||||
-minikube-start-args="--vm-driver=${VM_DRIVER} ${EXTRA_START_ARGS}" \
|
||||
-test.v \
|
||||
-test.timeout=60m \
|
||||
-test.parallel=${PARALLEL_COUNT} \
|
||||
-binary="${MINIKUBE_BIN}" && result=$? || result=$?
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ func (k *Bootstrapper) RestartCluster(k8s config.KubernetesConfig) error {
|
|||
glog.Errorf("failed to create compat symlinks: %v", err)
|
||||
}
|
||||
|
||||
baseCmd := fmt.Sprintf("%s %s", invokeKubeadm(k8s.KubernetesVersion), phase)
|
||||
baseCmd := fmt.Sprintf("%s --alsologtostderr -v=1 %s", invokeKubeadm(k8s.KubernetesVersion), phase)
|
||||
cmds := []string{
|
||||
fmt.Sprintf("%s phase certs all --config %s", baseCmd, yamlConfigPath),
|
||||
fmt.Sprintf("%s phase kubeconfig all --config %s", baseCmd, yamlConfigPath),
|
||||
|
|
|
|||
|
|
@ -166,15 +166,15 @@ func configureHost(h *host.Host, e *engine.Options) error {
|
|||
}
|
||||
}
|
||||
|
||||
if !localDriver(h.Driver.DriverName()) {
|
||||
glog.Infof("Configuring auth for driver %s ...", h.Driver.DriverName())
|
||||
if err := h.ConfigureAuth(); err != nil {
|
||||
return &retry.RetriableError{Err: errors.Wrap(err, "Error configuring auth on host")}
|
||||
}
|
||||
return ensureSyncedGuestClock(h)
|
||||
if localDriver(h.Driver.DriverName()) {
|
||||
glog.Infof("%s is a local driver, skipping auth/time setup", h.Driver.DriverName())
|
||||
return nil
|
||||
}
|
||||
|
||||
return nil
|
||||
glog.Infof("Configuring auth for driver %s ...", h.Driver.DriverName())
|
||||
if err := h.ConfigureAuth(); err != nil {
|
||||
return &retry.RetriableError{Err: errors.Wrap(err, "Error configuring auth on host")}
|
||||
}
|
||||
return ensureSyncedGuestClock(h)
|
||||
}
|
||||
|
||||
// ensureGuestClockSync ensures that the guest system clock is relatively in-sync
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ func TestAddons(t *testing.T) {
|
|||
ctx, cancel := context.WithTimeout(context.Background(), 40*time.Minute)
|
||||
defer CleanupWithLogs(t, profile, cancel)
|
||||
|
||||
args := append([]string{"start", "-p", profile, "--wait=false", "--memory=2600"}, StartArgs()...)
|
||||
args := append([]string{"start", "-p", profile, "--wait=false", "--memory=2600", "--alsologtostderr", "-v=1"}, StartArgs()...)
|
||||
rr, err := Run(t, exec.CommandContext(ctx, Target(), args...))
|
||||
if err != nil {
|
||||
t.Fatalf("%s failed: %v", rr.Args, err)
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ func TestVersionUpgrade(t *testing.T) {
|
|||
}
|
||||
}
|
||||
|
||||
args := append([]string{"start", "-p", profile, fmt.Sprintf("--kubernetes-version=%s", constants.OldestKubernetesVersion)}, StartArgs()...)
|
||||
args := append([]string{"start", "-p", profile, fmt.Sprintf("--kubernetes-version=%s", constants.OldestKubernetesVersion), "--alsologtostderr", "-v=1"}, StartArgs()...)
|
||||
rr := &RunResult{}
|
||||
releaseStart := func() error {
|
||||
rr, err = Run(t, exec.CommandContext(ctx, tf.Name(), args...))
|
||||
|
|
@ -71,7 +71,7 @@ func TestVersionUpgrade(t *testing.T) {
|
|||
}
|
||||
|
||||
// Retry to allow flakiness for the previous release
|
||||
if err := retry.Expo(releaseStart, 1*time.Second, 20*time.Minute); err != nil {
|
||||
if err := retry.Expo(releaseStart, 1*time.Second, 30*time.Minute, 3); err != nil {
|
||||
t.Fatalf("release start failed: %v", err)
|
||||
}
|
||||
|
||||
|
|
@ -89,7 +89,7 @@ func TestVersionUpgrade(t *testing.T) {
|
|||
t.Errorf("status = %q; want = %q", got, state.Stopped.String())
|
||||
}
|
||||
|
||||
args = append([]string{"start", "-p", profile, fmt.Sprintf("--kubernetes-version=%s", constants.NewestKubernetesVersion)}, StartArgs()...)
|
||||
args = append([]string{"start", "-p", profile, fmt.Sprintf("--kubernetes-version=%s", constants.NewestKubernetesVersion), "--alsologtostderr", "-v=2"}, StartArgs()...)
|
||||
rr, err = Run(t, exec.CommandContext(ctx, Target(), args...))
|
||||
if err != nil {
|
||||
t.Errorf("%s failed: %v", rr.Args, err)
|
||||
|
|
|
|||
Loading…
Reference in New Issue