1. 28 4月, 2017 34 次提交
  2. 27 4月, 2017 6 次提交
    • J
      qemu: Report VIR_DOMAIN_JOB_OPERATION · 2a978269
      Jiri Denemark 提交于
      Not all async jobs are visible via virDomainGetJobStats (either they are
      too fast or getting the stats is not allowed during the job), but
      forcing all of them to advertise the operation is easier than hunting
      the jobs for which fetching statistics is allowed. And we won't need to
      think about this when we add support for getting stats for more jobs.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1441563Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      2a978269
    • J
      Add VIR_DOMAIN_JOB_OPERATION typed parameter · b1c79d78
      Jiri Denemark 提交于
      The parameter is reported by virDomainGetJobStats API and
      VIR_DOMAIN_EVENT_ID_JOB_COMPLETED event and it can be used to identify
      the operation (migration, snapshot, ...) to which the reported
      statistics belong.
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1441563Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      b1c79d78
    • E
      qemu: Remove extra messages for vhost-scsi hotplug · 6ff38cee
      Eric Farman 提交于
      As with virtio-scsi, the "internal error" messages after
      preparing a vhost-scsi hostdev overwrites more meaningful
      error messages deeper in the callchain.  Remove it too.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      6ff38cee
    • E
      qemu: Remove extra messages from virtio-scsi hotplug · 33c1fc43
      Eric Farman 提交于
      I tried to attach a SCSI LUN to two different guests, and forgot
      to specify "shareable" in the hostdev XML.  Attaching the device
      to the second guest failed, but the message was not helpful in
      telling me what I was doing wrong:
      
        $ cat scsi_scratch_disk.xml
          <hostdev mode='subsystem' type='scsi'>
            <source>
              <adapter name='scsi_host3'/>
              <address bus='0' target='15' unit='1074151456'/>
            </source>
          </hostdev>
      
        $ virsh attach-device dasd_sles_d99c scsi_scratch_disk.xml
        Device attached successfully
      
        $ virsh attach-device dasd_fedora_0e1e scsi_scratch_disk.xml
        error: Failed to attach device from scsi_scratch_disk.xml
        error: internal error: Unable to prepare scsi hostdev: scsi_host3:0:15:1074151456
      
      I eventually discovered my error, but thought it was weird that
      Libvirt doesn't provide something more helpful in this case.
      Looking over the code we had just gone through, I commented out
      the "internal error" message, and got something more useful:
      
        $ virsh attach-device dasd_fedora_0e1e scsi_scratch_disk.xml
        error: Failed to attach device from scsi_scratch_disk.xml
        error: Requested operation is not valid: SCSI device 3:0:15:1074151456 is already in use by other domain(s) as 'non-shareable'
      
      Looking over the error paths here, we seem to issue better
      messages deeper in the callchain so these "internal error"
      messages overwrite any of them.  Remove them, so that the
      more detailed errors are seen.
      Signed-off-by: NEric Farman <farman@linux.vnet.ibm.com>
      33c1fc43
    • E
      2dc94c3c
    • N
      qemu: migration: fix race on cancelling drive mirror · bc82d1ea
      Nikolay Shirokovskiy 提交于
      0feebab2 adds calling qemuBlockNodeNamesDetect for completed job
      on updating block jobs. This affects cancelling drive mirror logic as
      this function drops vm lock. Now we have to recheck all disks
      before the disk with the completed block job before going
      to wait for block job events.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      bc82d1ea