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

Commit

Permalink
virtcontainers: fix the issue of missing starting builtin proxy
Browse files Browse the repository at this point in the history
It shouldn't set kataAgent.state.URL in its configure() method
for builtin kata proxy, otherwise the following check of whether
is it nil in startProxy() will return directly and failed to
start builtin proxy which will log the qemu's console.

Fixes: #756

Signed-off-by: fupan <[email protected]>
  • Loading branch information
lifupan committed Sep 21, 2018
1 parent 35d3c0b commit 5612694
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion virtcontainers/kata_agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,6 @@ func (k *kataAgent) configure(h hypervisor, id, sharePath string, builtin bool,

if builtin {
k.proxyBuiltIn = true
k.state.URL, _ = k.agentURL()
}

// Adding the shared volume.
Expand Down
1 change: 1 addition & 0 deletions virtcontainers/kata_agent_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,6 +649,7 @@ func TestAgentConfigure(t *testing.T) {

err = k.configure(h, id, dir, true, c)
assert.Nil(err)
assert.Empty(k.state.URL)

err = k.configure(h, id, dir, false, c)
assert.Nil(err)
Expand Down

0 comments on commit 5612694

Please sign in to comment.