Bug 1612785
Summary: | "warning: <target dev='sr0'> was ignored because the device name could not be recognized" should be hidden since convert cdrom is supported by virt-v2v | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | zhoujunqin <juzhou> | ||||||||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||||||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||
Priority: | unspecified | ||||||||||||
Version: | 7.6 | CC: | mxie, ptoscano, tzheng, xiaodwan | ||||||||||
Target Milestone: | rc | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | x86_64 | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | P2V | ||||||||||||
Fixed In Version: | libguestfs-1.38.2-11.el7 | Doc Type: | If docs needed, set a value | ||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2018-10-30 07:47:00 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: | |||||||||||||
Attachments: |
|
Created attachment 1473550 [details]
virt-v2v-conversion-log-local.txt
Created attachment 1473551 [details]
virt-v2v-conversion-log-rhv.txt
(In reply to zhoujunqin from comment #3) > Created attachment 1473551 [details] > virt-v2v-conversion-log-rhv.txt Note this conversion failed, because the guest "dell-per730-60" already exists. (In reply to zhoujunqin from comment #0) > Additional info: > I also convert this host to rhv environment, it also shows above warning, > but after import guest and start, i only find 1 cdrom device in rhv UI. Tomáš Golembiovský confirmed that RHV supports only one CDROM per guest. First attempt at this: https://www.redhat.com/archives/libguestfs/2018-August/msg00093.html (In reply to Pino Toscano from comment #4) > (In reply to zhoujunqin from comment #3) > > Created attachment 1473551 [details] > > virt-v2v-conversion-log-rhv.txt > > Note this conversion failed, because the guest "dell-per730-60" already > exists. Sorry for the wrong attachment, i have reattached it, thanks. Created attachment 1474871 [details]
virt-v2v-conversion-log-rhv.txt
Fixed upstream with https://github.com/libguestfs/libguestfs/commit/c9abaa3e96e7209595f0982c1f2f97e37f3369a6 which is libguestfs >= 1.39.9. Note: even if this something you hit when using virt-p2v, the actual fix is in virt-v2v. Verify the bug with builds: virt-v2v-1.38.2-11.el7.x86_64 libguestfs-1.38.2-11.el7.x86_64 virt-p2v-1.38.2-4.el7.iso Steps: 1.Install OS on physical machine which has CD drive 2.Boot host into virt-p2v client 3.Input v2v conversion server info and pass the test connection 4.There is "sr0" listed in removable media in p2v client 5 Input conversion info and start convert host to rhv4.2. There is no virt-v2v warning about "sr0" showing in p2v client during p2v converting 6.Check guest has CDROM on rhv4.2 after finishing conversion Result: "virt-v2v: warning: <target dev='sr0'> was ignored because the device name could not be recognized" has disappeared during p2v conversion when host has CD drive and guest has CDROM after conversion, so move the bug from ON_QA to VERIFIED 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, 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/RHEA-2018:3021 |
Created attachment 1473549 [details] Screenshot for conversion page Description of problem: "warning: <target dev='sr0'> was ignored because the device name could not be recognized" should be hidden since convert cdrom is supported by virt-v2v Version-Release number of selected component (if applicable): virt-v2v-1.38.2-10.el7.x86_64 libguestfs-1.38.2-10.el7.x86_64 libvirt-4.5.0-6.el7.x86_64 qemu-kvm-rhev-2.12.0-9.el7.x86_64 virt-p2v-1.38.2-3.el7.noarch rhv:4.2.5-0.1.el7ev How reproducible: 100% Steps to Reproduce: 1. Install rhel7.5 on LSI-megaraid_sas host 2. Boot host into virt-p2v client via virt-p2v-1.38.2-3.el7.iso file attached. 3. Input conversion server info and pass the test connection 4 Input conversion info, then start convert host to local directory '/home'. 5. The conversion should be finished without error 6. Then import guest and login guest to check. Actual results: Step5: The conversion finished without error but with following warning message in conversion log. virt-v2v: warning: <target dev='sr0'> was ignored because the device name could not be recognized virt-v2v: warning: <target dev='sr1'> was ignored because the device name could not be recognized Step6: Guest can be started successfully, then login guest and check cdrom devices' status. 6.1 Check converted guest running on libvirt host by # virsh dumpxml raid-cdrom ... <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <target dev='hda' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='0'/> </disk> <disk type='file' device='cdrom'> <driver name='qemu' type='raw'/> <target dev='hdb' bus='ide'/> <readonly/> <address type='drive' controller='0' bus='0' target='0' unit='1'/> </disk> ... 6.2 Login guest and check, in fact there are 2 cdrom devices list. # lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom sr1 11:1 1 1024M 0 rom vda 252:0 0 278.9G 0 disk ├─vda1 252:1 0 1G 0 part /boot └─vda2 252:2 0 277.9G 0 part ├─rhel_dell--per730--60-root 253:0 0 50G 0 lvm / ├─rhel_dell--per730--60-swap 253:1 0 27.9G 0 lvm [SWAP] └─rhel_dell--per730--60-home 253:2 0 200G 0 lvm /home Details please see attachment: virt-v2v-conversion-log-local.txt Expected results: "warning: <target dev='sr0'> was ignored because the device name could not be recognized" should be hidden since convert cdrom is supported by virt-v2v Additional info: I also convert this host to rhv environment, it also shows above warning, but after import guest and start, i only find 1 cdrom device in rhv UI. Details please see attachment: virt-v2v-conversion-log-rhv.txt