teemtee / tmt

Test Management Tool
MIT License
80 stars 121 forks source link

Whiteboard cannot be set by user while provisioning with beaker #2447

Closed guoguojenna closed 9 months ago

guoguojenna commented 10 months ago

Currently the value of Whiteboard is string like ' tmt-008-jpqJPFTI '. Can users set it to a different one? https://beaker.engineering.redhat.com/jobs/8506748

Thank you, Zhaojuan

happz commented 10 months ago

I'm afraid the answer is "no", users cannot set Beaker job whiteboard.

guoguojenna commented 10 months ago

I'm afraid the answer is "no", users cannot set Beaker job whiteboard.

Ok. I think it's a useful feature. Hope it can be added someday.

idorax commented 10 months ago

The whiteboard of beaker job is updated by tmt/steps/provision/mrack.py#L336 , e.g.

   330          def create_host_requirement(self, host: Dict[str, Any]) -> Dict[str, Any]:
   331              """ Create single input for Beaker provisioner """
   332              hardware = cast(Optional[tmt.hardware.Hardware], host.get('hardware'))
   333              if hardware and hardware.constraint:
   334                  host.update({"beaker": self._translate_tmt_hw(hardware)})
   335              req: Dict[str, Any] = super().create_host_requirement(host)
   336              req.update({"whiteboard": host.get("tmt_name", req.get("whiteboard"))})
   337              return req

Let's try to add property whiteboard to BeakerGuestData and try to get the whiteboard from L336.