Skip to content

Commit

Permalink
additional log message to indicate booting period
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed Nov 9, 2023
1 parent ee0f542 commit d5404e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nodes/vr_sros/vr-sros.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,11 @@ func (s *vrSROS) PreDeploy(_ context.Context, params *nodes.PreDeployParams) err

func (s *vrSROS) PostDeploy(ctx context.Context, _ *nodes.PostDeployParams) error {
if isPartialConfigFile(s.Cfg.StartupConfig) {
log.Infof("Waiting for %s to boot and apply config from %s", s.Cfg.LongName, s.Cfg.StartupConfig)
log.Infof("%s: applying config from %s", s.Cfg.LongName, s.Cfg.StartupConfig)

ctx, cancel := context.WithTimeout(ctx, 5*time.Minute)
defer cancel()

// r, err := utils.OpenFileAsReader(s.Cfg.StartupConfig)
r, err := os.Open(s.Cfg.StartupConfig)
if err != nil {
return err
Expand Down Expand Up @@ -227,6 +226,7 @@ func (s *vrSROS) applyPartialConfig(ctx context.Context, addr, platformName, use
return nil
}

log.Infof("Waiting for %[1]s to be ready. This may take a while. Monitor boot log with `sudo docker logs -f %[1]s`", s.Cfg.LongName)
for loop := true; loop; {
if !s.isHealthy(ctx) {
time.Sleep(5 * time.Second) // cool-off period
Expand Down

0 comments on commit d5404e3

Please sign in to comment.