1. 24 6月, 2020 4 次提交
  2. 23 6月, 2020 35 次提交
  3. 22 6月, 2020 1 次提交
    • P
      virsh: cmdBlock*: Remove 'error:' prefix for an empty line · fc09f3d8
      Peter Krempa 提交于
      When a block copy job fails prior to reaching the synchronized phase
      while we are waiting for the job to finish virsh would print the
      following:
      
       $ virsh blockcopy backup-test vda /tmp/dst.qcow2 --wait --reuse-external --transient-job
       error:
       Copy failed
      
      The above message looks like we've forgot to print the error message
      itself as the line ends after 'error:'. Unfortunately with the current
      API design clients have no way of actually getting the error message as
      the VIR_DOMAIN_EVENT_ID_BLOCK_JOB(_2) event only reports the status but
      not an error and the job then vanishes.
      
      Fix the expectations by using vshPrintExtra instead of vshError:
      
       $ virsh blockcopy backup-test vda /tmp/dst.qcow2 --wait --reuse-external --transient-job
      
       Copy failed
      
      Note that the newline is required to avoid printing the 'Copy failed'
      message on the same line when printing the job progress percentage.
      
      Inspired by https://bugzilla.redhat.com/show_bug.cgi?id=1847867
      
      Fix the same issue also for block pull and block commit job
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      fc09f3d8