Skip to content

Fix expected err_msg for virtio iommu additional attributes - #6876

Draft
hholoubk wants to merge 2 commits into
autotest:masterfrom
hholoubk:fix/virtio-iommu-additional-attributes-err-msg
Draft

hholoubk wants to merge 2 commits into
autotest:masterfrom
hholoubk:fix/virtio-iommu-additional-attributes-err-msg

Conversation

@hholoubk

@hholoubk hholoubk commented Jun 1, 2026

Copy link
Copy Markdown
Collaborator

Libvirt now reports "doesn't support some additional attributes" instead of "doesn't support additional attributes". Update the expected error string so caching_mode, eim, and iotlb variants pass on RHEL 10.3.

Assisted-by: Claude AI (cursor) ~80%

Libvirt now reports "doesn't support some additional attributes"
instead of "doesn't support additional attributes". Update the
expected error string so caching_mode, eim, and iotlb variants
pass on RHEL 10.3.

Assisted-by: Claude AI (cursor) ~80%
Signed-off-by: hholoubk <hholoubk@redhat.com>
@coderabbitai

coderabbitai Bot commented Jun 1, 2026

Copy link
Copy Markdown

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 1db01b01-1b19-4d0a-95e5-7f0d8c31afb5

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Match both libvirt error wordings with a regex pattern instead of a
fixed string. Document that aw_bits is supported since libvirt 12.2.0
and is skipped on RHEL 10.3+ viommu jobs via ci-shared-datas.

Assisted-by: Claude AI (cursor) ~85%
Reference: RHEL-76269
Signed-off-by: hholoubk <hholoubk@redhat.com>

@crobinso crobinso left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

looks fine with the comment tweaks. PR is in draft. do you still need it?

start_vm = "no"
enable_guest_iommu = "yes"
err_msg = "iommu model 'virtio' doesn't support some additional attributes"
# Match old and new libvirt rejections for unsupported virtio-iommu attrs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

comment is redundant IMO

iommu_dict = {'driver': {'iotlb': 'on'}, 'model': 'virtio'}
# aw_bits is supported for virtio-iommu since libvirt 12.2.0 (RHEL-76269,
# RHEL 10.3+). RHEL 10.3 viommu jobs skip this variant via ci-no in
# ci-shared-datas; positive coverage will be added separately.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

should we be referencing downstream ci-shared-datas in upstream tp-libvirt? IMO just drop the comment. this looks like AI agents being too wordy with comments

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.

2 participants