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

RFE: Ticket based QUADS query #148

Closed
abondvt89 opened this issue Oct 4, 2017 · 5 comments
Closed

RFE: Ticket based QUADS query #148

abondvt89 opened this issue Oct 4, 2017 · 5 comments

Comments

@abondvt89
Copy link

Add the ability to query QUADS based on the ticket number for the following information for past, current, and future allocations.

  • Start date
  • End date
  • Number of machines in the allocation by machine type
@sadsfae
Copy link
Member

sadsfae commented Mar 21, 2018

We might look at something like plotly? @kambiz-aghaiepour https://plot.ly/python/heatmaps/

Ideally this would need to be able to be packaged in RPM however.

@QuantumPosix
Copy link
Contributor

#105 Follow up - our visualization is currently using plotly @sadsfae

@sadsfae
Copy link
Member

sadsfae commented Jul 26, 2018

We can query what cloud description / cloud existed based on the date using the -d YYYY-MM-DD HH:MM format with the -d or --datetime argument but it does not correlate the current --cloud-ticket of that cloud at the time.

(current display)

# /opt/quads/bin/quads-cli --full-summary | head -n3
cloud01 : 3 (Available servers)
cloud02 : 0 (Storage DFG RHCS 1 of 2)
cloud03 : 49 (OpenShift Scale CI)

(Query against a date - 2018-04-04 22:00)

# /opt/quads/bin/quads-cli --full-summary --date "2018-04-04 22:00" | head -n3
cloud01 : 12 (Available servers)
cloud02 : 0 (RHCS Spectre/Meltdown)
cloud03 : 47 (OpenShift Scale CI)

However, --ls-ticket does not get queried when passing the -d or --datetime argument - this needs to be changed:

(date in future, still shows current --cloud-ticket mappings)

# /opt/quads/bin/quads-cli --ls-ticket --datetime "2018-04-04 22:00" | head -n 3
cloud02: 470086
cloud03: 470816

(current display)

# /opt/quads/bin/quads-cli --ls-ticket | head -n 3
cloud02: 470086
cloud03: 470816

@sadsfae sadsfae modified the milestones: 1.1, 1.2 Mar 4, 2019
@sadsfae
Copy link
Member

sadsfae commented Jun 26, 2024

Adding this to the 2.0 roadmap, though it's going to be a less priority than some of the other RFEs.

I think this is possible by some additional methods using only the data already available in QUADS, but note that the current usage of --cloud-ticket is transient/temporal in that it gets reset when that environment gets re-purposed at some other point.

@grafuls
Copy link
Contributor

grafuls commented Dec 10, 2024

This can be achieved with the new REST api like this:

$ curl http://{QUADS_SERVER}/api/v3/assignments?ticket=3804

From this result you can get the assignment id to then pass it to the schedule query:

$ curl http://{QUADS_SERVER}/api/v3/schedules?assignment_id=30

@grafuls grafuls closed this as completed Dec 10, 2024
@github-project-automation github-project-automation bot moved this from To do to Done in QUADS 2.0 Series Dec 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Status: Done
Development

No branches or pull requests

4 participants