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 794851

Summary: virt-install produces wrong disk names if they are beyond vdz
Product: Red Hat Enterprise Linux 6 Reporter: Jaroslav Kortus <jkortus>
Component: python-virtinstAssignee: Cole Robinson <crobinso>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.2CC: mzhan, rwu, yupzhang, zpeng
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-20 18:29:45 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jaroslav Kortus 2012-02-17 19:12:45 UTC
Description of problem:
if I wish to assign 30 disks to a virtual machine, virt-install starts naming them wrongly after vdz (see "target dev=XXX"):

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writethrough'/>
      <source file='/var/lib/libvirt/images/shared-0025.img'/>
      <target dev='vdz' bus='virtio'/>
      <shareable/>
      <serial>STS-SHARED-0025</serial>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='writethrough'/>
      <source file='/var/lib/libvirt/images/shared-0026.img'/>
      <target dev='vd{' bus='virtio'/>
      <shareable/>
      <serial>STS-SHARED-0026</serial>
    </disk>
then it fails with:
Fri, 17 Feb 2012 13:02:13 DEBUG    Removing /var/lib/libvirt/boot/virtinst-vmlinuz.ThGVwx
Fri, 17 Feb 2012 13:02:13 DEBUG    Removing /var/lib/libvirt/boot/virtinst-initrd.img.9D8QWL
Fri, 17 Feb 2012 13:02:13 ERROR    An error occurred, but the cause is unknown
Fri, 17 Feb 2012 13:02:13 DEBUG    Traceback (most recent call last):
  File "/usr/sbin/virt-install", line 629, in start_install
    noboot=options.noreboot)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1223, in start_install
    noboot)
  File "/usr/lib/python2.6/site-packages/virtinst/Guest.py", line 1291, in _create_guest
    dom = self.conn.createLinux(start_xml or final_xml, 0)
  File "/usr/lib64/python2.6/site-packages/libvirt.py", line 2064, in createLinux
    if ret is None:raise libvirtError('virDomainCreateLinux() failed', conn=self)
libvirtError: An error occurred, but the cause is unknown
Fri, 17 Feb 2012 13:02:13 DEBUG    Domain installation does not appear to have been successful.


Version-Release number of selected component (if applicable):
python-virtinst-0.600.0-5.el6.noarch

How reproducible:
always

Steps to Reproduce:
1. virt-install with many --disk options (30+)
2.
3.
  
Actual results:
abort as described in description, wrong names for targets

Expected results:
vdy, vdz, vdaa, vdab, kind of what linux kernel would name them
no error on virt-install

Additional info:

Comment 2 Cole Robinson 2012-02-20 18:29:45 UTC

*** This bug has been marked as a duplicate of bug 769191 ***