mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 20:17:41 +00:00
Merge pull request #118498 from pacoxu/nodegracefulshutdown-e2e
re-send the shutdown signal in case the dbus restart is not done
This commit is contained in:
commit
fb9c22cb29
@ -340,14 +340,14 @@ var _ = SIGDescribe("GracefulNodeShutdown [Serial] [NodeFeature:GracefulNodeShut
|
||||
err = restartDbus()
|
||||
framework.ExpectNoError(err)
|
||||
|
||||
// Wait a few seconds to ensure dbus is restarted...
|
||||
time.Sleep(5 * time.Second)
|
||||
|
||||
ginkgo.By("Emitting Shutdown signal")
|
||||
err = emitSignalPrepareForShutdown(true)
|
||||
framework.ExpectNoError(err)
|
||||
|
||||
gomega.Eventually(ctx, func(ctx context.Context) error {
|
||||
// re-send the shutdown signal in case the dbus restart is not done
|
||||
ginkgo.By("Emitting Shutdown signal")
|
||||
err = emitSignalPrepareForShutdown(true)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
isReady := getNodeReadyStatus(ctx, f)
|
||||
if isReady {
|
||||
return fmt.Errorf("node did not become shutdown as expected")
|
||||
|
Loading…
Reference in New Issue
Block a user