Skip to content

Commit

Permalink
Bootstrap: wait for daemon
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Sabaini <[email protected]>
  • Loading branch information
sabaini committed Oct 16, 2024
1 parent e32ad49 commit ba75627
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions microceph/cmd/microceph/cluster_bootstrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ func (c *cmdClusterBootstrap) Run(cmd *cobra.Command, args []string) error {
ctx, cancel := context.WithTimeout(context.Background(), time.Second*60)
defer cancel()

err = m.Ready(ctx)
if err != nil {
return fmt.Errorf("fault while waiting for App readiness: %w", err)
}

err = m.NewCluster(ctx, hostname, address, common.EncodeBootstrapConfig(data))
if err != nil {
return err
Expand Down

0 comments on commit ba75627

Please sign in to comment.