File tree Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Expand file tree Collapse file tree 1 file changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -924,34 +924,6 @@ func (a *HostAgent) watchCloudInitProgress(ctx context.Context) {
924924 Active : true ,
925925 })
926926
927- maxRetries := 30
928- retryDelay := time .Second
929- var sshReady bool
930-
931- for i := 0 ; i < maxRetries && ! sshReady ; i ++ {
932- if i > 0 {
933- time .Sleep (retryDelay )
934- }
935-
936- // Test SSH connectivity
937- args := a .sshConfig .Args ()
938- args = append (args ,
939- "-p" , strconv .Itoa (a .sshLocalPort ),
940- "127.0.0.1" ,
941- "echo 'SSH Ready'" ,
942- )
943-
944- cmd := exec .CommandContext (ctx , a .sshConfig .Binary (), args ... )
945- if err := cmd .Run (); err == nil {
946- sshReady = true
947- logrus .Debug ("SSH ready for cloud-init monitoring" )
948- }
949- }
950-
951- if ! sshReady {
952- logrus .Warn ("SSH not ready for cloud-init monitoring, proceeding anyway" )
953- }
954-
955927 args := a .sshConfig .Args ()
956928 args = append (args ,
957929 "-p" , strconv .Itoa (a .sshLocalPort ),
You can’t perform that action at this time.
0 commit comments