Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vcpu_metrics: handle missing element #5887

Merged
merged 1 commit into from
Sep 20, 2024
Merged

Conversation

smitterl
Copy link
Contributor

@smitterl smitterl commented Sep 9, 2024

//os/loader* might not exist on the domain definition leading to an exception. In this case, skip the step that tries to remove those attributes.

@smitterl
Copy link
Contributor Author

smitterl commented Sep 9, 2024

JOB ID : 64645530355a1d88af3885a982a9e33a91c64e35
JOB LOG : /var/log/avocado/job-results/job-2024-09-09T03.20-6464553/job.log
(1/1) type_specific.io-github-autotest-libvirt.virsh.vcpu_metrics.normal_test.with_unprivileged_user: PASS (8.18 s)
RESULTS : PASS 1 | ERROR 0 | FAIL 0 | SKIP 0 | WARN 0 | INTERRUPT 0 | CANCEL 0
JOB HTML : /var/log/avocado/job-results/job-2024-09-09T03.20-6464553/results.html
JOB TIME : 8.65 s

@smitterl
Copy link
Contributor Author

smitterl commented Sep 9, 2024

@liang-cong-red-hat please help review

"loader_readonly": vmxml.os.loader_readonly,
"loader_type": vmxml.os.loader_type
}
vmxml.os = libvirt_bios.remove_bootconfig_items_from_vmos(vmxml.os)
Copy link
Contributor

Choose a reason for hiding this comment

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

libvirt_bios.remove_bootconfig_items_from_vmos could move out of try...except block.

//os/loader* might not exist on the domain definition leading
to an exception. In this case, skip the step that tries to remove
those attributes.

Signed-off-by: Sebastian Mitterle <[email protected]>
Copy link
Contributor

@liang-cong-red-hat liang-cong-red-hat left a comment

Choose a reason for hiding this comment

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

LGTM

@chloerh chloerh merged commit 53ed52e into autotest:master Sep 20, 2024
5 checks passed
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.

4 participants