mirror of
https://github.com/rancher/rke.git
synced 2025-09-16 15:10:12 +00:00
Wait for backup server to start before status check
This commit is contained in:
committed by
Alena Prokharchyk
parent
bb2b5a4f36
commit
066f9300a8
@@ -537,6 +537,7 @@ func StartBackupServer(ctx context.Context, etcdHost *hosts.Host, prsMap map[str
|
||||
if err := docker.DoRunContainer(ctx, etcdHost.DClient, imageCfg, hostCfg, EtcdServeBackupContainerName, etcdHost.Address, ETCDRole, prsMap); err != nil {
|
||||
return err
|
||||
}
|
||||
time.Sleep(EtcdSnapshotWaitTime * time.Second)
|
||||
container, err := docker.InspectContainer(ctx, etcdHost.DClient, etcdHost.Address, EtcdServeBackupContainerName)
|
||||
if err != nil {
|
||||
return err
|
||||
|
Reference in New Issue
Block a user