Bug 1019769 - model = 'virtio-scsi' tag is getting deleted in the guest xml when the virtio-disk is attached
Summary: model = 'virtio-scsi' tag is getting deleted in the guest xml when the virtio...
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-16 11:28 UTC by chandrashekar shastri
Modified: 2015-03-18 07:39 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2015-03-18 07:39:37 UTC
Embargoed:


Attachments (Terms of Use)

Description chandrashekar shastri 2013-10-16 11:28:15 UTC
Description of problem:
model = 'virtio-scsi' tag is getting in the guest xml when the virtio-disk is attached

Steps to reproduce:

1. Create the file using 
qemu-img create -f qcow2 /home/virtio-scsi1.qcow2 1G

2. Attach the disk 
 virsh attach-disk RHEL_WORKING /home/virtio-scsi1.qcow2 sdd --persistent  --cache writethrough --sourcetype file --driver qemu --subdriver qcow2

3. Check the guest xml the model='virtio-scsi' is missing

<disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writethrough'/>
      <source file='/home/virtio-scsi1.qcow2'/>
      <target dev='sdd' bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='3'/>
</disk>

git log | head
commit 4b744d7d00e18ee7c0d8f89542954743d64ffeef
Author: Michal Privoznik <mprivozn>
Date:   Mon Oct 7 19:21:47 2013 +0200

    virerror: s/VIR_ERR_STORAGE_VOL_EXISTS/VIR_ERR_STORAGE_VOL_EXISTS/
    
    We currently have other error codes in singular form, e.g.
    VIR_ERR_NETWORK_EXIST. Cleanup the previous patch to match the form.
    
    Signed-off-by: Michal Privoznik <mprivozn>

libvirtd --version
libvirtd (libvirt) 1.1.3


Tried to edit the model ='virtio-scsi' manually for <target dev='sdd' bus='scsi'/> its not saving. 

There is patch for it 

http://www.redhat.com/archives/libvir-list/2012-November/msg00565.html


Note You need to log in before you can comment on or make changes to this bug.