Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2017840

Summary: [virt-install] Misleading error message for --hostdev "Unknown address type"
Product: Red Hat Enterprise Linux 9 Reporter: smitterl
Component: virt-managerAssignee: Jonathon Jongsma <jjongsma>
virt-manager sub component: Common QA Contact: Hongzhou Liu <hongzliu>
Status: CLOSED ERRATA Docs Contact:
Severity: medium    
Priority: medium CC: crobinso, hongzliu, jjongsma, jsuchane, juzhou, tyan, tzheng, virt-maint, xiaodwan
Version: 9.0Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: ---   
Hardware: All   
OS: Unspecified   
Whiteboard:
Fixed In Version: virt-manager-3.2.0-13.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 13:28:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description smitterl 2021-10-27 14:13:14 UTC
Description of problem:
This is downstream report for upstream issue https://github.com/virt-manager/virt-manager/issues/318

There's a misleading error message that might have the customer research for a while while this might be a user documentation gap, too.

Version-Release number of selected component (if applicable):
virt-install-3.2.0-9.el9.noarch

How reproducible:
100%

Steps to Reproduce:
1. Start machine installation with a hostdev whose nodedev is not available,
 - minimally, execute: virt-install --hostdev whatever,address.type=pci

Actual results:
ERROR    Error: --hostdev anything: Unknown address type

... and the user might start investigating why address.type=pci might be wrong...

Expected results:
ERROR    Error: --hostdev anything: 'anything' is not a valid device reference.

Additional notes:
Junqin reproduced this for RHEL9 and also on RHEL8 - virt-install-2.2.1-4.el8.noarch

Comment 2 Hongzhou Liu 2022-02-08 01:55:25 UTC
Pre-verify with virt-manager-3.2.0-13.el9.noarch

Step 1:
Use virt-install with an invalid hostdev address,
# virt-install --hostdev just_an_string
ERROR    Error: --hostdev just_an_string: Unknown hostdev address string format 'just_an_string'

On the error message, we can clearly get the reason why installation failed, This bug has pre-verified.

Comment 5 Hongzhou Liu 2022-02-08 09:26:36 UTC
Reproduce with virt-install-3.2.0-9.el9.noarch

Error message is the same with Comment 0.

Verify with follow packages:

virt-install-3.2.0-13.el9.noarch
virt-manager-3.2.0-13.el9.noarch

Step 1:

Run virt-install with an invalid hostdev address

# virt-install --hostdev just_an_address,address.type=pci
ERROR    Error: --hostdev just_an_address,address.type=pci: Unknown hostdev address string format 'just_an_address'

Expect result: the error message can clearly point out the cause of fail

Actuall result: meet the expect. So I changer the status to verified, Thanks.

Comment 7 errata-xmlrpc 2022-05-17 13:28:11 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: virt-manager), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:2515