Skip to content

Commit

Permalink
adjust timeouts and messages getting error retrieving serial console
Browse files Browse the repository at this point in the history
  • Loading branch information
sergiocazzolato committed Dec 6, 2023
1 parent e93ff91 commit 1df6d27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spread/openstack.go
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ func (p *openstackProvider) getSerialConsoleOutput(s *openstackServer) (string,
for {
err := p.osClient.SendRequest("POST", "compute", "v2", url, &requestData)
if err != nil {
return "", fmt.Errorf("failed to retrieve the serial console for server %s: %s", s.d.Id, err)
debugf("failed to retrieve the serial console for server %s: %s", s.d.Id, err)
}
if len(resp.Output) > 0 {
return resp.Output, nil
Expand All @@ -449,7 +449,7 @@ func (p *openstackProvider) getSerialConsoleOutput(s *openstackServer) (string,
}

func (p *openstackProvider) waitServerCompleteSetupSerial(s *openstackServer) error {
timeout := time.After(2 * time.Minute)
timeout := time.After(3 * time.Minute)
relog := time.NewTicker(60 * time.Second)
defer relog.Stop()
retry := time.NewTicker(5 * time.Second)
Expand Down

0 comments on commit 1df6d27

Please sign in to comment.