Project

General

Profile

Actions

action #158383

closed

openQA Project - coordination #155485: [saga][epic] Efficient openQA worker pool resource handling in datacenters

coordination #158374: [epic] Prevention of inefficient hardware resource use

Crosscheck which machines marked as "unused" in racktables are still pingable (as they should not be powered on at all) size:M

Added by okurz 8 months ago. Updated 7 months ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
Feature requests
Target version:
Start date:
2024-04-01
Due date:
% Done:

0%

Estimated time:

Description

Acceptance criteria

  • AC1: A one-time check of all "unused" machines for pingability was conducted

Suggestions


Related issues 1 (0 open1 closed)

Copied to openQA Infrastructure - action #158907: Automated check for machines marked as "unused" in racktables but still pingable (as they should not be powered on at all) size:MResolvednicksinger

Actions
Actions #1

Updated by okurz 8 months ago

  • Subject changed from Crosscheck which machines marked as "unused" in racktables are still pingable (as they should not be powered on at all) to Crosscheck which machines marked as "unused" in racktables are still pingable (as they should not be powered on at all) size:S
  • Description updated (diff)
  • Status changed from New to Workable
Actions #2

Updated by okurz 8 months ago

  • Subject changed from Crosscheck which machines marked as "unused" in racktables are still pingable (as they should not be powered on at all) size:S to Crosscheck which machines marked as "unused" in racktables are still pingable (as they should not be powered on at all) size:M
  • Description updated (diff)
Actions #3

Updated by nicksinger 8 months ago

  • Assignee set to nicksinger
Actions #4

Updated by okurz 8 months ago

  • Status changed from Workable to In Progress
Actions #5

Updated by openqa_review 8 months ago

  • Due date set to 2024-04-20

Setting due date based on mean cycle time of SUSE QE Tools

Actions #6

Updated by okurz 8 months ago

That's how I would do it with python:

import mechanize
br.add_password("https://racktables.nue.suse.com", "okurz", "…")
br.open("https://racktables.nue.suse.com/index.php?andor=and&cft%5B%5D=197&cfe=%7B%24typeid_4%7D+and+not+%7BDecommissioned%7D&page=depot&tab=default&submit.x=9&submit.y=24")
for i in br.links(url_regex="page=object"):
    print(i.text)

There are some machines which don't have an FQDN as name, e.g. unreal and quake. In the first step I would ignore those.

Actions #7

Updated by nicksinger 8 months ago

I created https://gitlab.suse.de/openqa/racktables-check and ran it with:

RT_USERNAME=nicksinger RT_PASSWORD=$(pass show Arbeit/idp-portal.suse.com | head -n 1) ./run.sh
styx.qe.nue2.suse.org up

so this is currently the only machine we should shut down. I currently fail to setup a gitlab CI as I have no service account which I could use for racktables but it should be trivial to implement.

Actions #8

Updated by nicksinger 8 months ago

  • Status changed from In Progress to Feedback
  • Assignee changed from nicksinger to okurz

As discussed in the daily the mentioned machine was shutdown by using the PDU toggle as nobody had access to the running system or BMC.
@okurz if I understood you correctly you wanted to create a follow-up ticket regarding automated pipelines so assigning it to you as reminder.

Actions #9

Updated by okurz 7 months ago

  • Copied to action #158907: Automated check for machines marked as "unused" in racktables but still pingable (as they should not be powered on at all) size:M added
Actions #10

Updated by okurz 7 months ago

  • Due date deleted (2024-04-20)
  • Status changed from Feedback to Resolved
  • Assignee changed from okurz to nicksinger

done -> #158907

Actions

Also available in: Atom PDF