Skip to content

Commit

Permalink
Increase virt-launcher timeout to 5 minutes
Browse files Browse the repository at this point in the history
Signed-off-by: David Vossel <[email protected]>
  • Loading branch information
davidvossel committed Oct 17, 2017
1 parent 52a5f05 commit 2f7fde4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/virt-controller/services/template.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (t *templateService) RenderLaunchManifest(vm *v1.VirtualMachine) (*kubev1.P
Image: t.launcherImage,
ImagePullPolicy: kubev1.PullIfNotPresent,
Command: []string{"/virt-launcher",
"--qemu-timeout", "60s",
"--qemu-timeout", "5m",
"--name", domain,
"--namespace", namespace,
"--socket-dir", t.socketBaseDir,
Expand Down
4 changes: 2 additions & 2 deletions pkg/virt-controller/services/template_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var _ = Describe("Template", func() {
Expect(pod.ObjectMeta.GenerateName).To(Equal("virt-launcher-testvm-----"))
Expect(pod.Spec.NodeSelector).To(BeEmpty())
Expect(pod.Spec.Containers[0].Command).To(Equal([]string{"/virt-launcher",
"--qemu-timeout", "60s",
"--qemu-timeout", "5m",
"--name", "testvm",
"--namespace", "testns",
"--socket-dir", "/var/run/libvirt",
Expand Down Expand Up @@ -83,7 +83,7 @@ var _ = Describe("Template", func() {
"kubernetes.io/hostname": "master",
}))
Expect(pod.Spec.Containers[0].Command).To(Equal([]string{"/virt-launcher",
"--qemu-timeout", "60s",
"--qemu-timeout", "5m",
"--name", "testvm",
"--namespace", "default",
"--socket-dir", "/var/run/libvirt",
Expand Down

0 comments on commit 2f7fde4

Please sign in to comment.