1. 15 9月, 2017 7 次提交
    • J
      conf: Move <disk> authdef validation · c09c93cf
      John Ferlan 提交于
      Rather than checking during XML processing, move the checks for correct
      and valid auth into virDomainDiskDefParseValidate. This will introduce
      virDomainDiskSourceDefParseAuthValidate to validate that the authdef
      stored for the virStorageSource is valid. This can then be expanded
      to service backingStore sources as well.
      
      Alter the message text slightly as well to distinguish between an
      unknown name and an incorrectly used name.  Since type is not a
      mandatory field, add the NULLSTR() around the output of the unknown
      error. NB, a config using unknown formatting would fail virschematest
      since it only accepts 'iscsi' and 'ceph' as "valid" types.
      c09c93cf
    • J
      conf: Add invalid secrettype checks · fbad3ed0
      John Ferlan 提交于
      Add a couple of tests to "validate" checks in domain_conf that either
      a missing secrettype (CONFIG_UNSUPPORTED) or an mismatched secrettype
      of ceph for an iSCSI disk (INTERNAL_ERROR) will cause a parsing error.
      fbad3ed0
    • J
      docs: Remove unnecessary <auth> example for iscsi disk type='volume' · 4775ca27
      John Ferlan 提交于
      Alter the example to remove the <auth> from:
      
        <disk type='volume' device='disk'>
          <driver name='qemu' type='raw'/>
          <source pool='iscsi-pool' volume='unit:0:0:1' mode='host'/>
          <auth username='myuser'>
            <secret type='iscsi' usage='libvirtiscsi'/>
          </auth>
          <target dev='vdb' bus='virtio'/>
        </disk>
      
      and
      
        <disk type='volume' device='disk'>
          <driver name='qemu' type='raw'/>
          <source pool='iscsi-pool' volume='unit:0:0:2' mode='direct'/>
          <auth username='myuser'>
            <secret type='iscsi' usage='libvirtiscsi'/>
          </auth>
          <target dev='vdc' bus='virtio'/>
        </disk>
      
      The reality is, it's not even used. For a <source pool> the authdef
      from the storage source pool will supercede whatever is in the <disk>
      definition during virStorageTranslateDiskSourcePool processing. In fact,
      if the pool doesn't have/need authentication, then the authdef would
      be removed anyway as the storage pool would be handling things.
      
      The "proof" for this is in the adjustment to the test to add an
      <auth> for a disk. The resulting .args file won't add what normally
      would be added "myname:encodedpassword@" prior to the hostname in
      the IQN (e.g. iscsi://myname:encodedpassword@iscsi.example.org:3260/...
      4775ca27
    • P
      qemu: Restore errors when rolling back disk image state · a823d0a6
      Peter Krempa 提交于
      Some operations done to rollback disk image labelling and locking might
      overwrite (or clear) the actual error. Remember the original error when
      tearing down disk access so that it's not obscured.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1461301
      a823d0a6
    • P
      qemu: hotplug: Use new helpers for storing libvirt errors · 6f18150f
      Peter Krempa 提交于
      The helpers allow to simplify restoring original errors in most cases.
      6f18150f
    • P
      util: error: Add helpers for saving and restoring of last error · 8333e745
      Peter Krempa 提交于
      Some cleanup paths overwrite a usefull error message with a less useful
      one and we then try to preserve the original message. The handlers added
      in this patch will simplify the operations since they are designed right
      for the purpose.
      8333e745
    • C
      1f085acb
  2. 14 9月, 2017 11 次提交
  3. 13 9月, 2017 4 次提交
  4. 12 9月, 2017 11 次提交
  5. 11 9月, 2017 6 次提交
  6. 08 9月, 2017 1 次提交