acrlabs / simkube

Record-and-replay Kubernetes simulator based on KWOK
https://appliedcomputing.io/simkube
MIT License
164 stars 7 forks source link

Wait until old simulation job is completely cleaned up before starting the next job #113

Closed drmorr0 closed 3 weeks ago

drmorr0 commented 4 weeks ago

Describe the bug

When running a simulation with multiple repetitions, sometimes, the old job doesn't fully clean everything up before the new one starts, resulting in a failure like the following in the driver.

    deployments.apps "user-timeline-service" is forbidden: unable to create new content in namespace virtual-dsb because it is being terminated: Forbidden

We should make sure the driver waits until everything is cleaned up before a new execution starts.