Partial fix for pod/container statuses #122
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Solves a bit issue described in #120
For containers - provides differentiation between vm not running because it was newly created/defined from vm not running because it was stopped.
In similar manner for sandboxes - if there was call to stop pod sandbox - now we are changing it's status in podstatus responses to not ready (being compatible with dockershim).
Still there is no check if stop pod sandbox was called before container/vm had really chance to clean stop - this should be added.
Still there is some issue with statuses, because after create/delete example fedora pod -
virsh list
shows that domain was not undefined. Next call to create same pod starts new vm (what seems to be dangerous, could overwrite some data which was not cleanly stopped) what we can see invirsh list
, but whole pod is stick in:So this need further investigation.
This change is