Skip to content

Conversation

@mismithhisler
Copy link
Member

@mismithhisler mismithhisler commented Dec 2, 2025

Description

These changes add the ability for nomad operators to specify a qemu emulator allowlist for fingerprinting and tasks. If no allowlist is specified, the driver fingerprints all available emulators. Additionally, the emulators are added to a new node attribute driver.qemu.emulators which enables using contraints to VM's on nodes with specific emulators, as this functionality is not yet built into the scheduler.

Removed the fingerprint_emulator config, which was added in #27128.

Testing & Reproduction steps

Links

Contributor Checklist

  • Changelog Entry If this PR changes user-facing behavior, please generate and add a
    changelog entry using the make cl command.
  • Testing Please add tests to cover any new functionality or to demonstrate bug fixes and
    ensure regressions will be caught.
  • Documentation If the change impacts user-facing functionality such as the CLI, API, UI,
    and job configuration, please update the Nomad product documentation, which is stored in the
    web-unified-docs repo. Refer to the web-unified-docs contributor guide for docs guidelines.
    Please also consider whether the change requires notes within the upgrade
    guide
    . If you would like help with the docs, tag the nomad-docs team in this PR.

Reviewer Checklist

  • Backport Labels Please add the correct backport labels as described by the internal
    backporting document.
  • Commit Type Ensure the correct merge method is selected which should be "squash and merge"
    in the majority of situations. The main exceptions are long-lived feature branches or merges where
    history should be preserved.
  • Enterprise PRs If this is an enterprise only PR, please add any required changelog entry
    within the public repository.
  • If a change needs to be reverted, we will roll out an update to the code within 7 days.

Changes to Security Controls

Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.

@mismithhisler mismithhisler self-assigned this Dec 2, 2025
@mismithhisler mismithhisler requested review from a team as code owners December 2, 2025 16:03
Copy link
Member

@tgross tgross left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some failing tests which I think cover the case where the user hasn't provided an explicit emulator argument

This change removed the fingerprint emulator config parameter and
instead fingerprints all available emulators or those defined in the
allowlist, and adds them to the drivers attribute, allowing placement
contraints if nodes have different emulators installed.
Copy link
Member

@gulducat gulducat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lookin pretty good! nice to see qemu getting some love.

couple comments for ya

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants