CKCT should only dispatch ubuntu_xfstests_* tests to nodes with scratch drives

Bug #1876688 reported by Po-Hsu Lin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-kernel-tests
Triaged
Undecided
Sean Feole

Bug Description

These ubuntu_xfstests_* test would require scratch drive to run, and it's super time consuming (3hr x 3 tests)

Therefore in KT we just run them on two specific nodes with amd64: bavor and rumford (the latter is not very reliable) and skip them on other arches

CKCT will dispatch jobs through the available node list. It will assign these jobs to a node that does not have a scratch drive. And the test will fail.

Tags: ckct
Po-Hsu Lin (cypressyew)
tags: added: ckct
Revision history for this message
Sean Feole (sfeole) wrote :

There are 2 ways to do this, the correct way and the hack way.

Hack way == create a yaml and read from it to see which machines have /dev/sdb
Correct way == request the disk layouts of the machine under test and check to see if it has a second drive, if the machine does not, move onto the next machine.

Changed in ubuntu-kernel-tests:
status: New → Triaged
assignee: nobody → Sean Feole (sfeole)
Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

For the correct way, we can use the following code in the control.ubuntu file from them, there is a paragraph of:
  # For right now, all of our (Ubuntu) testing makes use of a single,
  # scratch device.
  #
  if 'UBUNTU_SCRATCH_DEVICE' in argdict:
      device = argdict['UBUNTU_SCRATCH_DEVICE']
  else:
      device = '/dev/sdb'

Maybe we can use this to determine if a test needs a scratch drive.

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

Oh and one thing to note for the correct way, the node with a scratch drive will be assigned with more jobs (normal jobs + these huge xfstests) than other nodes, making it overloaded and time consuming to wait for normal jobs to run.

For the hacky way, in the lib/lab-configuration.yaml file we have this key:
    scratch drive: "/dev/sdb"

We can use this to create a new yaml if needed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.