diff --git a/tmt/steps/provision/mrack.py b/tmt/steps/provision/mrack.py index 82bd57ab8b..b2090e1000 100644 --- a/tmt/steps/provision/mrack.py +++ b/tmt/steps/provision/mrack.py @@ -734,9 +734,6 @@ def create_host_requirement(self, host: CreateJobParameters) -> dict[str, Any]: if host.hardware and host.hardware.constraint: req.update(self._translate_tmt_hw(host.hardware)) - if host.beaker_job_owner: - req['job_owner'] = host.beaker_job_owner - # Whiteboard must be added *after* request preparation, to overwrite the default one. req['whiteboard'] = host.whiteboard @@ -880,6 +877,10 @@ def to_mrack(self) -> dict[str, Any]: if self.kickstart: data['beaker']['ks_meta'] = self.kickstart.get('metadata') data['beaker']['ks_append'] = self.kickstart + data['beaker']['kernel_options'] = self.kickstart.get('kernel_options') + data['beaker']['kernel_options_post'] = self.kickstart.get('kernel_options_post') + if self.beaker_job_owner: + data['beaker']['beaker_job_owner'] = self.beaker_job_owner return data