1. 23 5月, 2018 6 次提交
  2. 18 5月, 2018 2 次提交
  3. 17 5月, 2018 3 次提交
  4. 16 5月, 2018 8 次提交
  5. 15 5月, 2018 4 次提交
  6. 14 5月, 2018 5 次提交
  7. 13 5月, 2018 1 次提交
  8. 11 5月, 2018 5 次提交
  9. 08 5月, 2018 1 次提交
  10. 07 5月, 2018 5 次提交
    • P
      tests: qemublock: Test handling of block devices · 55111f35
      Peter Krempa 提交于
      Make sure that 'host_device' is generated for type='block'.
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      55111f35
    • P
      tests: qemublock: Test handling of all cache modes · ca916d77
      Peter Krempa 提交于
      The test cases would correspond to the following -drive command lines:
      
      dir-fat-cache.xml:
      -drive file=fat:/var/somefiles,if=none,id=drive-dummy,readonly=on,cache=directsync
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=off
      
      file-backing_basic-cache-directsync.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=directsync
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=off
      
      file-backing_basic-cache-none.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=none
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=on
      
      file-backing_basic-cache-unsafe.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=unsafe
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=on
      
      file-backing_basic-cache-writeback.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=writeback
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=on
      
      file-backing_basic-cache-writethrough.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow2,if=none,id=drive-dummy,cache=writethrough
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=off
      
      network-qcow2-backing-chain-cache-unsafe.xml:
      -drive file=rbd:rbdpool/rbdimg:id=testuser-rbd:auth_supported=cephx\;none:
              mon_host=host1.example.com\;host2.example.com,
              file.password-secret=node-a-s-secalias,format=qcow2,
              if=none,id=drive-dummy,cache=directsync
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy,write-cache=off
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      ca916d77
    • P
      tests: qemublock: Test handling of 'unmap' and 'detect-zeroes' options · 24db3d99
      Peter Krempa 提交于
      The test cases would correspond to the following -drive command lines:
      
      file-backing_basic-detect.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow,if=none,id=drive-dummy,detect-zeroes=on
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
      
      file-backing_basic-unmap-detect.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow,if=none,id=drive-dummy,discard=unmap,detect-zeroes=unmap
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
      
      file-backing_basic-unmap-ignore.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow,if=none,id=drive-dummy,discard=ignore,detect-zeroes=on
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
      
      file-backing_basic-unmap.xml:
      -drive file=/var/lib/libvirt/images/a,format=qcow,if=none,id=drive-dummy,discard=unmap
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      24db3d99
    • P
      tests: qemublock: Add test combining authentication and encryption · 18458e8f
      Peter Krempa 提交于
      iscsi and rbd support authentication of the connection. Combine it with
      encryption of qcow2.
      
      The top level disk image would generate the following '-drive' cmdline:
      
      -drive file=rbd:rbdpool/rbdimg:id=testuser-rbd:auth_supported=cephx\;none:
                  mon_host=host1.example.com\;host2.example.com,
                  file.password-secret=node-a-s-secalias,encrypt.format=luks,
                  encrypt.key-secret=node-b-f-encalias,format=qcow2,
                  if=none,id=drive-dummy
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      18458e8f
    • P
      tests: qemublock: basic qcow2 tests · 2c71edcf
      Peter Krempa 提交于
      Add tests for backing chain handling, including a very long chain which
      is fully specified in the XML and an unterminated chain.
      
      The top level disk image would generate the following '-drive':
      
      file-qcow2-backing-chain-encryption.xml:
      -drive file=/var/lib/libvirt/images/a,encrypt.format=luks,
          encrypt.key-secret=node-b-f-encalias,format=qcow2,if=none,id=drive-dummy
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
      
      file-qcow2-backing-chain-noopts.xml:
      -drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
      
      file-qcow2-backing-chain-unterminated.xml:
      -drive file=/var/lib/libvirt/images/rhel7.3.1507297895,format=qcow2,if=none,id=drive-dummy
      -device virtio-blk-pci,scsi=off,drive=drive-dummy,id=dummy
      Signed-off-by: NPeter Krempa <pkrempa@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      2c71edcf