krata: reconcile improvements and better kratactl error experience

This commit is contained in:
Alex Zenla
2024-03-23 07:00:12 +00:00
parent df90a4d03f
commit 3d5095c78b
12 changed files with 119 additions and 62 deletions

View File

@ -100,12 +100,12 @@ impl ControlService for RuntimeControlService {
guest: Some(Guest {
id: uuid.to_string(),
state: Some(GuestState {
status: GuestStatus::Start.into(),
status: GuestStatus::Starting.into(),
network: None,
exit_info: None,
error_info: None,
}),
spec: Some(spec),
network: None,
}),
},
)
@ -152,7 +152,7 @@ impl ControlService for RuntimeControlService {
.into());
}
guest.state.as_mut().unwrap().status = GuestStatus::Destroy.into();
guest.state.as_mut().unwrap().status = GuestStatus::Destroying.into();
self.guests
.update(uuid, entry)
.await