[K8s over openstack] GPU Tests will skip GPU nodes

Bug #1871179 reported by Joshua Genet
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Charmed Kubernetes Testing
Triaged
Medium
Unassigned

Bug Description

Filed by Peter De Sousa. Since it was filed against FCE the bug was marked Proprietary. I can't change that to Public and assign it here, so here's a copy/paste of it. I'm closing the FCE one.

---

Hi,

The validation suite for Kubernetes currently picks the first worker node and determines whether this node is a GPU node, if it is not, it skips despite the fact other nodes might be.

The workaround dirty here is to change one line to check all the nodes, but this can be slow.

### Validation.py
### def test_gpu_support
---- change ---
    action = await workers.units[0].run("lspci -nnk")
    nvidia = (
        True if action.results.get("Stdout", "").lower().count("nvidia") > 0 else False
    )

---- to ----
   nvidia = False
   for unit in workers.units:
       action = await unit.run("lspci -nnk")
       nvidia = nvidia or (True if action.results.get("Stdout", "").lower().count("nvidia") > 0 else False)

There might be a better way of doing this.

Cheers,

Peter

George Kraft (cynerva)
Changed in charmed-kubernetes-testing:
importance: Undecided → Medium
status: New → Triaged
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.