Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To get the BOOTED value of the lab #87

Open
sig9org opened this issue Mar 3, 2024 · 2 comments
Open

To get the BOOTED value of the lab #87

sig9org opened this issue Mar 3, 2024 · 2 comments

Comments

@sig9org
Copy link

sig9org commented Mar 3, 2024

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.

@PatrikMosko
Copy link
Collaborator

@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.

@tmikuska
Copy link
Collaborator

tmikuska commented Aug 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants