Skip to content

Commit

Permalink
Propagate kernel options from kickstart to Beaker jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
skycastlelily committed Nov 5, 2024
1 parent 70dc82d commit 0f3e53c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tmt/steps/provision/mrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 0f3e53c

Please sign in to comment.