Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArgoCD health state of virt-launcher pod stays 'Progressing' forever #11813

Open
jkleinlercher opened this issue Apr 29, 2024 · 1 comment
Open
Labels

Comments

@jkleinlercher
Copy link

What happened:
when deploying a VirtualMachine like https://github.com/jkleinlercher/test9-repo/blob/master/helm/chart/templates/VirtualMachine.yaml via ArgoCD, the virt-launcer pod stays in status "progressing" forever.

What you expected to happen:
I want to see the pod in status "healthy"

How to reproduce it (as minimally and precisely as possible):
deploy a VirtualMachine with argocd and you will immediatly see the same behaviour

Additional context:

The reason is because the vm-launcher has set "restartPolicy: Never":

RestartPolicy: k8sv1.RestartPolicyNever,

and according to argoproj/argo-cd#15317 and https://github.com/argoproj/gitops-engine/blob/187312fe86ed627b1cf4147c13dccf9ff331424b/pkg/health/health_pod.go#L30 when setting "restartPolicy: never", argocd doesn't set the pod state to healthy.

Does kubevirt need to set "restartPolicy: never" on the vm-launcher pod, or can we make this configurable?

Environment:

  • KubeVirt version (use virtctl version): v1.2.0
  • Kubernetes version (use kubectl version): 1.28
  • VM or VMI specifications: N/A
  • Cloud provider or hardware configuration: N/A
  • OS (e.g. from /etc/os-release): N/A
  • Kernel (e.g. uname -a): N/A
  • Install tools: N/A
  • Others: N/A
@aburdenthehand
Copy link
Contributor

/cc @DMajrekar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants