virl2-client icon indicating copy to clipboard operation
virl2-client copied to clipboard

To get the BOOTED value of the lab

Open sig9org opened this issue 2 years ago • 2 comments

Hi,

I want to shut down an abandoned lab at a certain period of time. The startup time of the lab can be obtained in the lab's BOOTED. However, virl2_client does not allow me to get this value.

I hope that virl2_client will be extended to be able to get the BOOTED of the lab.

sig9org avatar Mar 03 '24 03:03 sig9org

@tmikuska I think this issue was raised long time ago, but related to controller BE - currently we do NOT keep information about lab uptime anywhere on the controller side, if I am correct.

Is this by design? Having one simple property for this is definitely better than looping through all the nodes in /labs/{lab_id}/simulation_stats dict.

Another question, unrelated to whether we decide to do/don't update the BE - do we want to add Lab.uptime to PCL? Since we already did some QoL additions to annotations, that are not part of BE/schema, having something extra for Labs (Lab,uptime) shouldn't be an issue.

PatrikMosko avatar Mar 03 '24 21:03 PatrikMosko

We do keep lab/node uptime on the server side, but it is reset when the CML services are started. We currently do not plan to change that behavior, e.g. by storing the uptime information in a persisted storage, but we could implement this in the client library.

tmikuska avatar Aug 01 '24 10:08 tmikuska