Skip to content

Commit 3b234a5

Browse files
committed
Propagate kernel options from kickstart to Beaker jobs
1 parent 5cfc6e9 commit 3b234a5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

tmt/steps/provision/mrack.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -752,9 +752,6 @@ def create_host_requirement(self, host: CreateJobParameters) -> dict[str, Any]:
752752
if host.hardware and host.hardware.constraint:
753753
req.update(self._translate_tmt_hw(host.hardware))
754754

755-
if host.beaker_job_owner:
756-
req['job_owner'] = host.beaker_job_owner
757-
758755
# Whiteboard must be added *after* request preparation, to overwrite the default one.
759756
req['whiteboard'] = host.whiteboard
760757

@@ -898,6 +895,10 @@ def to_mrack(self) -> dict[str, Any]:
898895
if self.kickstart:
899896
data['beaker']['ks_meta'] = self.kickstart.get('metadata')
900897
data['beaker']['ks_append'] = self.kickstart
898+
data['beaker']['kernel_options'] = self.kickstart.get('kernel_options')
899+
data['beaker']['kernel_options_post'] = self.kickstart.get('kernel_options_post')
900+
if self.beaker_job_owner:
901+
data['beaker']['beaker_job_owner'] = self.beaker_job_owner
901902

902903
return data
903904

0 commit comments

Comments
 (0)