Skip to content
This repository has been archived by the owner on May 12, 2021. It is now read-only.

Commit

Permalink
virtcontainers: fix kata-agent fail to start
Browse files Browse the repository at this point in the history
If kata-agent doesn't start in VM, we need to do some rollback
operations to release related resources.

add grpc check() to check kata-agent is running or not

Fixes: #297

Signed-off-by: flyflypeng <[email protected]>
  • Loading branch information
flyflypeng authored and Eric Ernst committed Aug 23, 2018
1 parent 01906ee commit 85b1627
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,11 @@ func (k *kataAgent) startSandbox(sandbox *Sandbox) error {
hostname = hostname[:maxHostnameLen]
}

// check grpc server is serving
if err = k.check(); err != nil {
return err
}

//
// Setup network interfaces and routes
//
Expand Down

0 comments on commit 85b1627

Please sign in to comment.