redhat-performance / quads

:calendar: The infrastructure deployment time machine
https://quads.dev
GNU General Public License v3.0
88 stars 36 forks source link

[RFE] Restore the old quads --host functionality for simple current cloud membership #512

Open sadsfae opened 3 months ago

sadsfae commented 3 months ago

in QUADS 1.1.x quads-cli --host $HOST returned the current cloud something was in:

(root@quads11) - (12:41) - (~)
# quads --host d16-h01-000-r650.rdu2.example.com
cloud37

In QUADS 2.0 it returns this, but also a gigantic return of all cloud and host breakdown.

# quads --host d16-h01-000-r650.rdu2.example.com | head -n 10
cloud01:
  - d17-h27-000-r650.rdu2.example.com
  - d17-h28-000-r650.rdu2.example.com
  - d17-h29-000-r650.rdu2.example.com
-- SNIP --
sadsfae commented 3 months ago

FWIW there's two additional ways to get this information, though I think the old functionality should be restored.

sadsfae commented 2 months ago

So this has an added effect that if you typo something with --host* in it (like forgetting a sub-command for `--add-schedule) it return this too.

[root@quads2-stage ~]# quads --host-list /tmp/3753 --schedule-start "2024-09-12 12:00" --schedule-end "2024-09-13 12:00" --schedule-cloud cloud04

cloud01: