Bug 1543833 - XML error: Multiple 'scsi' controllers with index '0'
Summary: XML error: Multiple 'scsi' controllers with index '0'
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine
Classification: oVirt
Component: General
Version: 4.2.0.2
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ovirt-4.2.2
: ---
Assignee: Sharon Gratch
QA Contact: Israel Pinto
URL:
Whiteboard:
Depends On: 1535961
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-02-09 12:08 UTC by spf
Modified: 2018-03-29 11:14 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
Clone Of:
Environment:
Last Closed: 2018-03-29 11:14:43 UTC
oVirt Team: Virt
Embargoed:
rule-engine: ovirt-4.2+
rule-engine: blocker+


Attachments (Terms of Use)
engine logfile 2018-02-28 (573.69 KB, application/octet-stream)
2018-02-28 08:57 UTC, spf
no flags Details
engine logfile 2018-02-28 (587.06 KB, application/x-gzip)
2018-02-28 09:12 UTC, spf
no flags Details


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 88581 0 master MERGED core: fix npe raised when running a vm with a de-activated disk 2021-01-04 08:08:03 UTC
oVirt gerrit 88764 0 ovirt-engine-4.2 MERGED core: fix npe raised when running a vm with a de-activated disk 2021-01-04 08:08:03 UTC
oVirt gerrit 88766 0 master MERGED core: cleanup in writing disks to engine xml 2021-01-04 08:08:04 UTC
oVirt gerrit 88935 0 ovirt-engine-4.2 MERGED core: cleanup in writing disks to engine xml 2021-01-04 08:08:04 UTC

Internal Links: 1568399

Description spf 2018-02-09 12:08:21 UTC
Hi,

I tried to modify a working VM in order to increase the number of CPUs. This machine uses a single preallocated Virtio-SCSI disk, on a NFS storage domain.

But after validating these modifications, it was not possible to start it up again. 

I always get the following error message :

VM vm-test is down with error. Exit message: XML error: Multiple 'scsi' controllers with index '0'.

I have destroyed all snaphshots : no result
I have detached/reattached the disk : no_result

Here is the related XML :

<?xml version="1.0" encoding="UTF-8"?>
<domain xmlns:ovirt-tune="http://ovirt.org/vm/tune/1.0" xmlns:ovirt-vm="http://ovirt.org/vm/1.0" type="kvm">
  <name>vm-test</name>
  <uuid>765874b3-6694-45cf-ab24-2a38475a1938</uuid>
  <memory>8388608</memory>
  <currentMemory>8388608</currentMemory>
  <iothreads>1</iothreads>
  <maxMemory slots="16">16777216</maxMemory>
  <vcpu current="2">16</vcpu>
  <sysinfo type="smbios">
    <system>
      <entry name="manufacturer">oVirt</entry>
      <entry name="product">OS-NAME:</entry>
      <entry name="version">OS-VERSION:</entry>
      <entry name="serial">HOST-SERIAL:</entry>
      <entry name="uuid">765874b3-6694-45cf-ab24-2a38475a1938</entry>
    </system>
  </sysinfo>
  <clock offset="variable" adjustment="0">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <features>
    <acpi/>
  </features>
  <cpu match="exact">
    <model>Haswell-noTSX</model>
    <topology cores="1" threads="1" sockets="16"/>
    <numa>
      <cell cpus="0,1" memory="8388608"/>
    </numa>
  </cpu>
  <cputune/>
  <devices>
    <input type="mouse" bus="ps2"/>
    <channel type="unix">
      <target type="virtio" name="ovirt-guest-agent.0"/>
      <source mode="bind" path="/var/lib/libvirt/qemu/channels/765874b3-6694-45cf-ab24-2a38475a1938.ovirt-guest-agent.0"/>
    </channel>
    <channel type="unix">
      <target type="virtio" name="org.qemu.guest_agent.0"/>
      <source mode="bind" path="/var/lib/libvirt/qemu/channels/765874b3-6694-45cf-ab24-2a38475a1938.org.qemu.guest_agent.0"/>
    </channel>
    <controller type="ide" index="0">
      <address bus="0x00" domain="0x0000" function="0x1" slot="0x01" type="pci"/>
    </controller>
    <sound model="ich6">
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x05" type="pci"/>
    </sound>
    <controller type="scsi" model="virtio-scsi" index="0"/>
    <rng model="virtio">
      <backend model="random">/dev/urandom</backend>
    </rng>
    <memballoon model="virtio">
      <stats period="5"/>
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x06" type="pci"/>
    </memballoon>
    <graphics type="spice" port="-1" autoport="yes" passwd="*****" passwdValidTo="1970-01-01T00:00:01" tlsPort="-1">
      <channel name="main" mode="secure"/>
      <channel name="inputs" mode="secure"/>
      <channel name="cursor" mode="secure"/>
      <channel name="playback" mode="secure"/>
      <channel name="record" mode="secure"/>
      <channel name="display" mode="secure"/>
      <channel name="smartcard" mode="secure"/>
      <channel name="usbredir" mode="secure"/>
      <listen type="network" network="vdsm-ovirtmgmt"/>
    </graphics>
    <controller type="usb" model="piix3-uhci" index="0">
      <address bus="0x00" domain="0x0000" function="0x2" slot="0x01" type="pci"/>
    </controller>
    <controller type="virtio-serial" index="0" ports="16">
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x04" type="pci"/>
    </controller>
    <controller type="scsi" index="0">
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x07" type="pci"/>
    </controller>
    <video>
      <model type="qxl" vram="32768" heads="1" ram="65536" vgamem="16384"/>
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x02" type="pci"/>
    </video>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
    </channel>
    <interface type="bridge">
      <model type="virtio"/>
      <link state="up"/>
      <source bridge="ovirtmgmt"/>
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x03" type="pci"/>
      <mac address="00:1a:4a:16:01:0d"/>
      <filterref filter="vdsm-no-mac-spoofing"/>
      <bandwidth/>
    </interface>
    <disk type="file" device="cdrom" snapshot="no">
      <driver name="qemu" type="raw" error_policy="report"/>
      <source file="" startupPolicy="optional"/>
      <target dev="hdc" bus="ide"/>
      <readonly/>
      <address bus="1" controller="0" unit="0" type="drive" target="0"/>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sda" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/07efa4fe-06bc-498e-8f42-035461aef900/images/9fdb6742-f8f9-4296-b90e-89f7cb62cc5c/daa71561-7d9c-4478-9ad5-75e5c6402693"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <boot order="1"/>
      <serial>9fdb6742-f8f9-4296-b90e-89f7cb62cc5c</serial>
    </disk>
  </devices>
  <pm>
    <suspend-to-disk enabled="no"/>
    <suspend-to-mem enabled="no"/>
  </pm>
  <os>
    <type arch="x86_64" machine="pc-i440fx-rhel7.3.0">hvm</type>
    <smbios mode="sysinfo"/>
  </os>
  <metadata>
    <ovirt-tune:qos/>
    <ovirt-vm:vm>
      <minGuaranteedMemoryMb type="int">8192</minGuaranteedMemoryMb>
      <clusterVersion>4.2</clusterVersion>
      <ovirt-vm:custom/>
      <ovirt-vm:device mac_address="00:1a:4a:16:01:0d">
        <ovirt-vm:custom/>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sda">
        <ovirt-vm:imageID>9fdb6742-f8f9-4296-b90e-89f7cb62cc5c</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>daa71561-7d9c-4478-9ad5-75e5c6402693</ovirt-vm:volumeID>
        <ovirt-vm:domainID>07efa4fe-06bc-498e-8f42-035461aef900</ovirt-vm:domainID>
      </ovirt-vm:device>
      <launchPaused>false</launchPaused>
      <resumeBehavior>auto_resume</resumeBehavior>
    </ovirt-vm:vm>
  </metadata>
</domain>

Comment 1 Michal Skrivanek 2018-02-15 13:55:40 UTC
do you have engine.log since the time you created the original VM? We need to see what modifications were made to the configuration.
Can you reproduce it?

Comment 2 spf 2018-02-21 12:28:31 UTC
I just experienced the problem again with version 4.2.2-1.

On a newly created machine, adding one more disk caused the trouble.

Disabling or removing the disk doesn't help, the VM is unable to start 

<?xml version="1.0" encoding="UTF-8"?><domain type="kvm" xmlns:ovirt-tune="http://ovirt.org/vm/tune/1.0" xmlns:ovirt-vm="http://ovirt.org/vm/1.0">
  <name>pfm-serv-files</name>
  <uuid>fc37b55a-22d7-4810-9507-f63501d89cb9</uuid>
  <memory>4194304</memory>
  <currentMemory>4194304</currentMemory>
  <iothreads>1</iothreads>
  <maxMemory slots="16">8388608</maxMemory>
  <vcpu current="4">16</vcpu>
  <sysinfo type="smbios">
    <system>
      <entry name="manufacturer">oVirt</entry>
      <entry name="product">OS-NAME:</entry>
      <entry name="version">OS-VERSION:</entry>
      <entry name="serial">HOST-SERIAL:</entry>
      <entry name="uuid">fc37b55a-22d7-4810-9507-f63501d89cb9</entry>
    </system>
  </sysinfo>
  <clock offset="variable" adjustment="0">
    <timer name="rtc" tickpolicy="catchup"/>
    <timer name="pit" tickpolicy="delay"/>
    <timer name="hpet" present="no"/>
  </clock>
  <features>
    <acpi/>
  </features>
  <cpu match="exact">
    <model>Haswell-noTSX</model>
    <topology cores="1" threads="1" sockets="16"/>
    <numa>
      <cell cpus="0,1,2,3" memory="4194304"/>
    </numa>
  </cpu>
  <cputune/>
  <devices>
    <input type="mouse" bus="ps2"/>
    <channel type="unix">
      <target type="virtio" name="ovirt-guest-agent.0"/>
      <source mode="bind" path="/var/lib/libvirt/qemu/channels/fc37b55a-22d7-4810-9507-f63501d89cb9.ovirt-guest-agent.0"/>
    </channel>
    <channel type="unix">
      <target type="virtio" name="org.qemu.guest_agent.0"/>
      <source mode="bind" path="/var/lib/libvirt/qemu/channels/fc37b55a-22d7-4810-9507-f63501d89cb9.org.qemu.guest_agent.0"/>
    </channel>
    <sound model="ich6">
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x04" type="pci"/>
    </sound>
    <graphics type="spice" port="-1" autoport="yes" passwd="*****" passwdValidTo="1970-01-01T00:00:01" tlsPort="-1">
      <channel name="main" mode="secure"/>
      <channel name="inputs" mode="secure"/>
      <channel name="cursor" mode="secure"/>
      <channel name="playback" mode="secure"/>
      <channel name="record" mode="secure"/>
      <channel name="display" mode="secure"/>
      <channel name="smartcard" mode="secure"/>
      <channel name="usbredir" mode="secure"/>
      <listen type="network" network="vdsm-ovirtmgmt"/>
    </graphics>
    <video>
      <model type="qxl" vram="8192" heads="1" ram="65536" vgamem="16384"/>
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x02" type="pci"/>
    </video>
    <controller type="scsi" index="0">
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x07" type="pci"/>
    </controller>
    <controller type="usb" model="piix3-uhci" index="0">
      <address bus="0x00" domain="0x0000" function="0x2" slot="0x01" type="pci"/>
    </controller>
    <controller type="scsi" model="virtio-scsi" index="0"/>
    <controller type="virtio-serial" index="0" ports="16">
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x05" type="pci"/>
    </controller>
    <memballoon model="virtio">
      <stats period="5"/>
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x06" type="pci"/>
    </memballoon>
    <controller type="ide" index="0">
      <address bus="0x00" domain="0x0000" function="0x1" slot="0x01" type="pci"/>
    </controller>
    <rng model="virtio">
      <backend model="random">/dev/urandom</backend>
    </rng>
    <channel type="spicevmc">
      <target type="virtio" name="com.redhat.spice.0"/>
    </channel>
    <interface type="bridge">
      <model type="virtio"/>
      <link state="up"/>
      <source bridge="ovirtmgmt"/>
      <address bus="0x00" domain="0x0000" function="0x0" slot="0x03" type="pci"/>
      <mac address="00:1a:4a:16:01:0e"/>
      <filterref filter="vdsm-no-mac-spoofing"/>
      <bandwidth/>
    </interface>
    <disk type="file" device="cdrom" snapshot="no">
      <driver name="qemu" type="raw" error_policy="report"/>
      <source file="" startupPolicy="optional"/>
      <target dev="hdc" bus="ide"/>
      <readonly/>
      <address bus="1" controller="0" unit="0" type="drive" target="0"/>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sda" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/f7bdae8a-b964-4421-ab55-bf197befa98d/e93d6885-31db-45ec-8480-0b2e804f54c6"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <address bus="0" controller="0" unit="0" type="drive" target="0"/>
      <boot order="1"/>
      <serial>f7bdae8a-b964-4421-ab55-bf197befa98d</serial>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sdb" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/d7a7a99a-c6de-4ef3-a92d-234f027bdc19/0efdfb6c-be91-4275-b935-619a19e7e11e"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <address bus="0" controller="0" unit="1" type="drive" target="0"/>
      <serial>d7a7a99a-c6de-4ef3-a92d-234f027bdc19</serial>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sdc" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/0828b3bf-6ae2-4b95-8dbe-a4e1dfbcb82b/8a1da487-53df-4e3a-b0f8-8346833a5602"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <address bus="0" controller="0" unit="3" type="drive" target="0"/>
      <serial>0828b3bf-6ae2-4b95-8dbe-a4e1dfbcb82b</serial>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sdd" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/53ebe319-e4d6-4548-95d9-1bd0badecc89/bbedc545-acb4-4a70-8d54-7a6db93693d8"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <address bus="0" controller="0" unit="4" type="drive" target="0"/>
      <serial>53ebe319-e4d6-4548-95d9-1bd0badecc89</serial>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sde" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/0d8eb65e-f41c-4776-a916-80a66dc1e520/999a4795-6136-4295-9a25-e6c05082bebc"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <address bus="0" controller="0" unit="5" type="drive" target="0"/>
      <serial>0d8eb65e-f41c-4776-a916-80a66dc1e520</serial>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sdf" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/5d627878-d41e-42ef-80fc-ff211b8f0c3c/93b28985-efbe-4c05-9fcf-703ed3316f5d"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <address bus="0" controller="0" unit="6" type="drive" target="0"/>
      <serial>5d627878-d41e-42ef-80fc-ff211b8f0c3c</serial>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sdg" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/c6ed1698-50b1-4977-bdfb-ce6af7c3aa1d/8699554b-3bc4-4267-a834-ab8a2035713a"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <address bus="0" controller="0" unit="7" type="drive" target="0"/>
      <serial>c6ed1698-50b1-4977-bdfb-ce6af7c3aa1d</serial>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sdh" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/925039d4-29cd-461a-960b-d735ab682de5/b516404e-1370-43dc-8772-aa69012433c8"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <address bus="0" controller="0" unit="8" type="drive" target="0"/>
      <serial>925039d4-29cd-461a-960b-d735ab682de5</serial>
    </disk>
    <disk snapshot="no" type="file" device="disk">
      <target dev="sdi" bus="scsi"/>
      <source file="/rhev/data-center/5a71baa7-001d-006d-037a-0000000001e9/13f66576-1cff-4e9b-9218-902963b5f40c/images/d7481819-55d8-41cb-b552-6c093ba59b05/77ae5337-7bc9-46f0-8188-4c221f1cb8a7"/>
      <driver name="qemu" io="threads" type="raw" error_policy="stop" cache="none"/>
      <serial>d7481819-55d8-41cb-b552-6c093ba59b05</serial>
    </disk>
  </devices>
  <pm>
    <suspend-to-disk enabled="no"/>
    <suspend-to-mem enabled="no"/>
  </pm>
  <os>
    <type arch="x86_64" machine="pc-i440fx-rhel7.3.0">hvm</type>
    <smbios mode="sysinfo"/>
  </os>
  <metadata>
    <ovirt-tune:qos/>
    <ovirt-vm:vm>
      <minGuaranteedMemoryMb type="int">4096</minGuaranteedMemoryMb>
      <clusterVersion>4.2</clusterVersion>
      <ovirt-vm:custom/>
      <ovirt-vm:device mac_address="00:1a:4a:16:01:0e">
        <ovirt-vm:custom/>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sdb">
        <ovirt-vm:imageID>d7a7a99a-c6de-4ef3-a92d-234f027bdc19</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>0efdfb6c-be91-4275-b935-619a19e7e11e</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sda">
        <ovirt-vm:imageID>f7bdae8a-b964-4421-ab55-bf197befa98d</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>e93d6885-31db-45ec-8480-0b2e804f54c6</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sdd">
        <ovirt-vm:imageID>53ebe319-e4d6-4548-95d9-1bd0badecc89</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>bbedc545-acb4-4a70-8d54-7a6db93693d8</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sdc">
        <ovirt-vm:imageID>0828b3bf-6ae2-4b95-8dbe-a4e1dfbcb82b</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>8a1da487-53df-4e3a-b0f8-8346833a5602</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sdf">
        <ovirt-vm:imageID>5d627878-d41e-42ef-80fc-ff211b8f0c3c</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>93b28985-efbe-4c05-9fcf-703ed3316f5d</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sde">
        <ovirt-vm:imageID>0d8eb65e-f41c-4776-a916-80a66dc1e520</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>999a4795-6136-4295-9a25-e6c05082bebc</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sdh">
        <ovirt-vm:imageID>925039d4-29cd-461a-960b-d735ab682de5</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>b516404e-1370-43dc-8772-aa69012433c8</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sdg">
        <ovirt-vm:imageID>c6ed1698-50b1-4977-bdfb-ce6af7c3aa1d</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>8699554b-3bc4-4267-a834-ab8a2035713a</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <ovirt-vm:device devtype="disk" name="sdi">
        <ovirt-vm:imageID>d7481819-55d8-41cb-b552-6c093ba59b05</ovirt-vm:imageID>
        <ovirt-vm:poolID>5a71baa7-001d-006d-037a-0000000001e9</ovirt-vm:poolID>
        <ovirt-vm:volumeID>77ae5337-7bc9-46f0-8188-4c221f1cb8a7</ovirt-vm:volumeID>
        <ovirt-vm:domainID>13f66576-1cff-4e9b-9218-902963b5f40c</ovirt-vm:domainID>
      </ovirt-vm:device>
      <launchPaused>false</launchPaused>
      <resumeBehavior>auto_resume</resumeBehavior>
    </ovirt-vm:vm>
  </metadata>
</domain>

Comment 3 Michal Skrivanek 2018-02-22 12:53:01 UTC
Hm, can you please describe exactly those steps?
You created a new VM - with 8 disks? start it and it run ok? then you stopped it and added a new disk - and at that point it won't start anymore? Does it happen with less disks?
Can you add engine.log covering those actions?

Comment 4 spf 2018-02-28 08:57:24 UTC
Created attachment 1401689 [details]
engine logfile 2018-02-28

Comment 5 spf 2018-02-28 09:12:48 UTC
Created attachment 1401691 [details]
engine logfile 2018-02-28

Comment 6 spf 2018-02-28 09:15:09 UTC
It just happened right now with another VM with two disks.

I just wanted to change the disks order.

So I detached both, and reattached the one I wanted as first, renamed it with "Disk1" in the name and set it bootable.

I then reattached the second one and renamed it with "Disk2" in the name.

Nothing else has been modified.

Since then, the VM wasn't able to power up, with the "XML error: Multiple 'scsi' controllers with index '0'" error message.

Just in case, in made several experiments (in this order) : 

- removing one disk and trying to power up only with the other one leads to the same problem (so "multiple scsi controllers error" with just one disk), whichever disk I choose.
- trying to runonce the machine with its disks and an attached iso leads to the same error.
- runonce the machine without any disk but an attached iso works
- after that, reattaching the two disks and powering it up leads to a working VM !

I added the engine logfile covering this (last events)

Comment 7 Red Hat Bugzilla Rules Engine 2018-03-11 15:21:58 UTC
This bug report has Keywords: Regression or TestBlocker.
Since no regressions or test blockers are allowed between releases, it is also being identified as a blocker for this release. Please resolve ASAP.

Comment 8 Yaniv Kaul 2018-03-15 14:03:35 UTC
Is this on track to 4.2.2? If not, please defer to 4.2.3.

Comment 9 Sharon Gratch 2018-03-20 07:53:06 UTC
This was fixed by bug 1535961 (specifically by patch https://gerrit.ovirt.org/#/c/88065/), so I change this bug to modified.

The reason for this bug is according to the following scenario:

1. create a VM with SCSI controller, at least one SCSI disk and iothreads=1 and run it via Run Once.

2. due to bug 1535961, two SCSI controllers were created instead of one. One was plugged and un-managed and the second was unplugged and managed.

3. When shutting down this VM (which was running via Run once), all un-managed devices are removed according to [1] in order to clean all un-managed devices created for the run once vm. So the un-managed plugged SCSI controller is removed.

[1] https://github.com/oVirt/ovirt-engine/blob/dbe2e66469fe87f8865d57fd833e958997522c5a/backend/manager/modules/bll/src/main/java/org/ovirt/engine/core/bll/ProcessDownVmCommand.java#L209

4. re-run this VM will send an engine xml with one SCSI disk without any SCSI controller and that will cause libvirt to create one SCSI controller (plugged and un-managed) with index 0.

5. after editing the VM and rerun, the engine will create managed SCSI controller and that will lead to 2 SCSI controllers with the same index 0 and vm will fail to run.

Comment 10 Sharon Gratch 2018-03-20 07:55:51 UTC
(In reply to Yaniv Kaul from comment #8)
> Is this on track to 4.2.2? If not, please defer to 4.2.3.

Yes it is on track to 4.2.2.

Comment 13 Israel Pinto 2018-03-26 12:52:10 UTC
Verify with:

Steps:
1. Create VM with ISCSI disk and Interface Virtio-ISCSI, enable IOThreads
   (iothreads=1)
2. Run VM with RunOnce 
3. Stop VM
4. Update VM :update vm name and change vm monitor.
   In order to create new XML for VM
5. Run VM

Results:
VM is running. 
No Error while running the VM second time

dumpxml - devices: 
First run:
<devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='cdrom'>
      <driver error_policy='report'/>
      <source startupPolicy='optional'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ua-67022257-949b-42f9-bf67-74f0d18db29c'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <disk type='block' device='disk' snapshot='no'>
      <driver name='qemu' type='raw' cache='none' error_policy='stop' io='native'/>
      <source dev='/rhev/data-center/mnt/blockSD/7624cec9-1ec5-4feb-a04b-8362bc501206/images/97bd714c-0d34-4b62-b7b6-4ddde31bc532/84c738bb-3fcc-44fb-a740-859720fded8c'/>
      <backingStore/>
      <target dev='sda' bus='scsi'/>
      <serial>97bd714c-0d34-4b62-b7b6-4ddde31bc532</serial>
      <boot order='1'/>
      <alias name='ua-97bd714c-0d34-4b62-b7b6-4ddde31bc532'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='piix3-uhci'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='virtio-serial' index='0' ports='16'>
      <alias name='ua-da03a0b7-97d2-43fa-93ce-eaae579874dd'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <driver iothread='1'/>
      <alias name='ua-db2b0578-5e32-4ee3-a6db-364f5a17c865'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/d6a5ffd6-d7de-42cf-a665-aa556f38a1a4.ovirt-guest-agent.0'/>
      <target type='virtio' name='ovirt-guest-agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/d6a5ffd6-d7de-42cf-a665-aa556f38a1a4.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel1'/>
      <address type='virtio-serial' controller='0' bus='0' port='2'/>
    </channel>
    <channel type='spicevmc'>
      <target type='virtio' name='com.redhat.spice.0' state='disconnected'/>
      <alias name='channel2'/>
      <address type='virtio-serial' controller='0' bus='0' port='3'/>
    </channel>
    <input type='mouse' bus='ps2'>
      <alias name='input0'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input1'/>
    </input>
    <graphics type='spice' port='5900' tlsPort='5901' autoport='yes' listen='10.35.92.60' passwdValidTo='1970-01-01T00:00:01'>
      <listen type='network' address='10.35.92.60' network='vdsm-ovirtmgmt'/>
      <channel name='main' mode='secure'/>
      <channel name='display' mode='secure'/>
      <channel name='inputs' mode='secure'/>
      <channel name='cursor' mode='secure'/>
      <channel name='playback' mode='secure'/>
      <channel name='record' mode='secure'/>
      <channel name='smartcard' mode='secure'/>
      <channel name='usbredir' mode='secure'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='8192' vgamem='16384' heads='1' primary='yes'/>
      <alias name='ua-716948b9-20fb-483d-a4c3-801450d3a0db'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <stats period='5'/>
      <alias name='ua-b5a1111f-2f28-45e9-92d1-deea30e094e5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
    <rng model='virtio'>
      <backend model='random'>/dev/urandom</backend>
      <alias name='ua-4c96301b-7574-4b36-90d2-5775031399bd'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </rng>
  </devices>


Second run:
  <devices>
    <emulator>/usr/libexec/qemu-kvm</emulator>
    <disk type='file' device='cdrom'>
      <driver error_policy='report'/>
      <source startupPolicy='optional'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ua-67022257-949b-42f9-bf67-74f0d18db29c'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
    <disk type='block' device='disk' snapshot='no'>
      <driver name='qemu' type='raw' cache='none' error_policy='stop' io='native'/>
      <source dev='/rhev/data-center/mnt/blockSD/7624cec9-1ec5-4feb-a04b-8362bc501206/images/97bd714c-0d34-4b62-b7b6-4ddde31bc532/84c738bb-3fcc-44fb-a740-859720fded8c'/>
      <backingStore/>
      <target dev='sda' bus='scsi'/>
      <serial>97bd714c-0d34-4b62-b7b6-4ddde31bc532</serial>
      <boot order='1'/>
      <alias name='ua-97bd714c-0d34-4b62-b7b6-4ddde31bc532'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
    <controller type='usb' index='0' model='piix3-uhci'>
      <alias name='usb'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/>
    </controller>
    <controller type='virtio-serial' index='0' ports='16'>
      <alias name='ua-da03a0b7-97d2-43fa-93ce-eaae579874dd'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    </controller>
    <controller type='scsi' index='0' model='virtio-scsi'>
      <driver iothread='1'/>
      <alias name='ua-dc2e140c-c929-4eae-9670-7c9aa9ae3836'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
    </controller>
    <controller type='pci' index='0' model='pci-root'>
      <alias name='pci.0'/>
    </controller>
    <controller type='ide' index='0'>
      <alias name='ide'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>
    </controller>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/d6a5ffd6-d7de-42cf-a665-aa556f38a1a4.ovirt-guest-agent.0'/>
      <target type='virtio' name='ovirt-guest-agent.0' state='disconnected'/>
      <alias name='channel0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <channel type='unix'>
      <source mode='bind' path='/var/lib/libvirt/qemu/channels/d6a5ffd6-d7de-42cf-a665-aa556f38a1a4.org.qemu.guest_agent.0'/>
      <target type='virtio' name='org.qemu.guest_agent.0' state='disconnected'/>
      <alias name='channel1'/>
      <address type='virtio-serial' controller='0' bus='0' port='2'/>
    </channel>
    <input type='tablet' bus='usb'>
      <alias name='input0'/>
      <address type='usb' bus='0' port='1'/>
    </input>
    <input type='mouse' bus='ps2'>
      <alias name='input1'/>
    </input>
    <input type='keyboard' bus='ps2'>
      <alias name='input2'/>
    </input>
    <graphics type='vnc' port='5900' autoport='yes' listen='10.35.92.61' keymap='en-us' passwdValidTo='1970-01-01T00:00:01'>
      <listen type='network' address='10.35.92.61' network='vdsm-ovirtmgmt'/>
    </graphics>
    <video>
      <model type='qxl' ram='65536' vram='8192' vgamem='16384' heads='1' primary='yes'/>
      <alias name='ua-716948b9-20fb-483d-a4c3-801450d3a0db'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    </video>
    <memballoon model='virtio'>
      <stats period='5'/>
      <alias name='ua-b5a1111f-2f28-45e9-92d1-deea30e094e5'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </memballoon>
    <rng model='virtio'>
      <backend model='random'>/dev/urandom</backend>
      <alias name='ua-4c96301b-7574-4b36-90d2-5775031399bd'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </rng>
  </devices>

Comment 14 Sandro Bonazzola 2018-03-29 11:14:43 UTC
This bugzilla is included in oVirt 4.2.2 release, published on March 28th 2018.

Since the problem described in this bug report should be
resolved in oVirt 4.2.2 release, it has been closed with a resolution of CURRENT RELEASE.

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


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