threefoldtech / zos

Autonomous operating system
https://threefold.io/host/
Apache License 2.0
79 stars 12 forks source link

Keeps the crashed workload in the deployment if zos decides to delete it #2350

Open AhmedHanafy725 opened 4 weeks ago

AhmedHanafy725 commented 4 weeks ago

Is your feature request related to a problem? Please describe

in this issue https://github.com/threefoldtech/zos/issues/2349 as the VM crashed many times, zos deleted this zmachine workload. And when the user called zos.deployment.get, the workload disappeared.

Describe the solution you'd like

as a suggestion besides using zos.deployment.changes, if zos decides to delete or stop this workload, we might keep this workload in the deployment with a state error, so the user can see that he has a failing workload. Otherwise, he most probably forgets that he has this workload.