@@ -147,61 +147,6 @@ var _ = SIGDescribe("Restart", framework.WithSerial(), framework.WithSlow(), fra
147
147
})
148
148
})
149
149
})
150
-
151
- ginkgo .Context ("Dbus" , func () {
152
- ginkgo .It ("should continue to run pods after a restart" , func (ctx context.Context ) {
153
- // Allow dbus to be restarted on ubuntu
154
- err := overlayDbusConfig ()
155
- framework .ExpectNoError (err )
156
- defer func () {
157
- err := restoreDbusConfig ()
158
- framework .ExpectNoError (err )
159
- }()
160
-
161
- preRestartPodCount := 2
162
- ginkgo .By (fmt .Sprintf ("creating %d RestartAlways pods on node" , preRestartPodCount ))
163
- restartAlwaysPods := newTestPods (preRestartPodCount , false , imageutils .GetPauseImageName (), "restart-dbus-test" )
164
- createBatchPodWithRateControl (ctx , f , restartAlwaysPods , podCreationInterval )
165
- ginkgo .DeferCleanup (deletePodsSync , f , restartAlwaysPods )
166
-
167
- allPods := waitForPodsCondition (ctx , f , preRestartPodCount , startTimeout , testutils .PodRunningReadyOrSucceeded )
168
- if len (allPods ) < preRestartPodCount {
169
- framework .Failf ("Failed to run sufficient restartAlways pods, got %d but expected %d" , len (allPods ), preRestartPodCount )
170
- }
171
-
172
- ginkgo .By ("restarting dbus and systemd" , func () {
173
- stdout , err := exec .Command ("sudo" , "systemctl" , "reset-failed" , "dbus" ).CombinedOutput ()
174
- framework .ExpectNoError (err , "Failed to reset dbus start-limit with systemctl: %v, %s" , err , string (stdout ))
175
-
176
- stdout , err = exec .Command ("sudo" , "systemctl" , "restart" , "dbus" ).CombinedOutput ()
177
- framework .ExpectNoError (err , "Failed to restart dbus with systemctl: %v, %s" , err , string (stdout ))
178
-
179
- stdout , err = exec .Command ("sudo" , "systemctl" , "daemon-reexec" ).CombinedOutput ()
180
- framework .ExpectNoError (err , "Failed to restart systemd with systemctl: %v, %s" , err , string (stdout ))
181
- })
182
-
183
- ginkgo .By ("verifying restartAlways pods stay running" , func () {
184
- for start := time .Now (); time .Since (start ) < startTimeout && ctx .Err () == nil ; time .Sleep (10 * time .Second ) {
185
- postRestartRunningPods := waitForPodsCondition (ctx , f , preRestartPodCount , recoverTimeout , testutils .PodRunningReadyOrSucceeded )
186
- if len (postRestartRunningPods ) < preRestartPodCount {
187
- framework .Failf ("fewer pods are running after systemd restart, got %d but expected %d" , len (postRestartRunningPods ), preRestartPodCount )
188
- }
189
- }
190
- })
191
-
192
- ginkgo .By ("verifying new pods can be started after a dbus restart" )
193
- postRestartPodCount := 2
194
- postRestartPods := newTestPods (postRestartPodCount , false , imageutils .GetPauseImageName (), "restart-dbus-test" )
195
- createBatchPodWithRateControl (ctx , f , postRestartPods , podCreationInterval )
196
- ginkgo .DeferCleanup (deletePodsSync , f , postRestartPods )
197
-
198
- allPods = waitForPodsCondition (ctx , f , preRestartPodCount + postRestartPodCount , startTimeout , testutils .PodRunningReadyOrSucceeded )
199
- if len (allPods ) < preRestartPodCount + postRestartPodCount {
200
- framework .Failf ("Failed to run pods after restarting dbus, got %d but expected %d" , len (allPods ), preRestartPodCount + postRestartPodCount )
201
- }
202
- })
203
- })
204
-
205
150
ginkgo .Context ("Kubelet" , func () {
206
151
ginkgo .It ("should correctly account for terminated pods after restart" , func (ctx context.Context ) {
207
152
node := getLocalNode (ctx , f )
0 commit comments