weave-gitops icon indicating copy to clipboard operation
weave-gitops copied to clipboard

gitops run: If dev-ks never becomes healthy, then eventually it goes missing

Open ozamosi opened this issue 3 years ago • 1 comments

If I:

  • Try to run gitops run against something broken
  • Don't fix the reason it's breaking
  • Wait 5 minutes or so

Then the dev-ks will be completely deleted, and the only way to recreate it is to turn gitops run off and on again.

I expect that I will be able to work to fix the reason it's failing for as long as I want, and whenever I fix it, everything will start to work.

ozamosi avatar Oct 17 '22 17:10 ozamosi

In good news, I have left a "healthy" gitops run running for days and it still works when I come back :)

JamWils avatar Oct 18 '22 17:10 JamWils

I think this bug is already fixed as a side effect of YAML validation.

chanwit avatar Nov 21 '22 18:11 chanwit

@chanwit cool!

opudrovs avatar Nov 24 '22 17:11 opudrovs

Fixed by #2970

chanwit avatar Jan 16 '23 14:01 chanwit

Tried to reproduce it in both session and non-session mode:

  1. gitops run [--no-session] .
    
  2. The Kustomization isn't ready:
    flux-system   run-dev-ks   3m24s   False   kustomize build failed: accumulating resources: accumulation err='accumulating resources from 'deployment.yaml': open /tmp/kustomization-3295192071/kaputt/deployment.yaml: no such file or directory': must build at directory: not a valid directory: eval symlink failure on '/tmp/kustomization-3295192071/kaputt/deployment.yaml' : lstat /tmp/kustomization-3295192071/kaputt/deployment.yaml: no such file or directory
    
  3. Wait 10 minutes
  4. Kustomization is still there:
    $ k -n flux-system get ks run-dev-ks  
    NAME         AGE     READY   STATUS
    run-dev-ks   10m   False   kustomize build failed: accumulating resources: accumulation [...]
    

makkes avatar Feb 15 '23 15:02 makkes