krata: fix conformance to container startup

This commit is contained in:
Alex Zenla
2024-03-22 23:59:02 +00:00
parent 6d6610ca2f
commit 8b57c16f0a
5 changed files with 77 additions and 34 deletions

View File

@ -191,7 +191,10 @@ impl GuestReconciler {
}
async fn destroy(&self, uuid: Uuid, guest: &mut Guest) -> Result<bool> {
self.runtime.destroy(uuid).await?;
if let Err(error) = self.runtime.destroy(uuid).await {
warn!("failed to destroy runtime guest {}: {}", uuid, error);
}
info!("destroyed guest {}", uuid);
guest.network = None;
guest.state = Some(GuestState {