1. 10 11月, 2017 2 次提交
  2. 09 11月, 2017 1 次提交
  3. 08 11月, 2017 9 次提交
  4. 07 11月, 2017 4 次提交
    • P
      tests: Add testing of storage backend JSON props formatter · 96be3e72
      Peter Krempa 提交于
      Add a new test program called 'qemublocktest' to test the block layer
      related stuff and test storage source to JSON generator by comparing it
      to the JSON parser.
      96be3e72
    • P
      storage: Store RBD image name as pool and image name · 90521d07
      Peter Krempa 提交于
      Similarly to how we store gluster names, split the name into a pool and
      image portions when paring the XML and store them separately.
      90521d07
    • P
      storage: Don't store leading '/' in image name when splitting out volume · bb14d989
      Peter Krempa 提交于
      Libvirt historically stores storage source path including the volume as
      one string in the XML, but that is not really flexible enough when
      dealing with the fields in the code. Previously we'd store the slash
      separating the two as part of the image name. This was fine for gluster
      but it's not necessary and does not scale well when converting other
      protocols.
      
      Don't store the slash as part of the path. The resulting change from
      absolute to relative path within the gluster driver should be okay,
      as the root directory is the default when accessing gluster.
      bb14d989
    • P
      qemu: block: Use proper type for servers for VxHS disks · bd372137
      Peter Krempa 提交于
      Original implementation used 'SocketAddress' equivalent from qemu for
      the disk server field, while qemu documentation specifies
      'InetSocketAddress'. The backing store parser uses the correct parsing
      function but the formatter used the incorrect one (and also with the
      legacy mode enabled which was wrong).
      bd372137
  5. 03 11月, 2017 7 次提交
  6. 02 11月, 2017 1 次提交
    • J
      cputest: Skip tests requiring JSON_MODELS if QEMU is disabled · 49c945a6
      Jiri Denemark 提交于
      Some tests require JSON_MODELS to be parsed into qemuCaps and applied
      when computing CPU models and such test cannot succeed if QEMU driver is
      disabled. Let's mark the tests with JSON_MODELS_REQUIRED and skip the
      appropriate parts if building without QEMU.
      
      On the other hand, CPU tests with JSON_MODELS should succeed even if
      model definitions from QEMU are not parsed and applied. Let's explicitly
      test this by repeating the tests without JSON_MODELS set.
      
      This fixes the build with QEMU driver disabled, e.g., on some
      architectures on RHEL/CentOS.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      49c945a6
  7. 27 10月, 2017 3 次提交
  8. 23 10月, 2017 3 次提交
  9. 20 10月, 2017 3 次提交
    • J
      qemu: Drop qemuMonitorGetMigrationCapability · 38b0e4f5
      Jiri Denemark 提交于
      The only remaining user of qemuMonitorGetMigrationCapability is our test
      suite. Let's replace qemuMonitorGetMigrationCapability with
      qemuMonitorGetMigrationCapabilities there and drop the unused function.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NJohn Ferlan <jferlan@redhat.com>
      38b0e4f5
    • J
      conf: Add/Allow parsing the encryption in the disk source · 37537a7c
      John Ferlan 提交于
      Since the virStorageEncryptionPtr encryption; is a member of
       _virStorageSource it really should be allowed to be a subelement
      of the disk <source> for various disk formats:
      
         Source{File|Dir|Block|Volume}
         SourceProtocol{RBD|ISCSI|NBD|Gluster|Simple|HTTP}
      
      NB: Simple includes sheepdog, ftp, ftps, tftp
      
      That way we can set up to allow the <encryption> element to be
      formatted within the disk source, but we still need to be wary
      from whence the element was read - see keep track and when it
      comes to format the data, ensure it's written in the correct place.
      
      Modify the qemuxml2argvtest to add a parse failure when there is an
      <encryption> as a child of <disk> *and* an <encryption> as a child
      of <source>.
      
      The virschematest will read the new test files and validate from a
      RNG viewpoint things are fine.
      37537a7c
    • J
      conf: Add/Allow parsing the auth in the disk source · 8002d3cb
      John Ferlan 提交于
      Since the virStorageAuthDefPtr auth; is a member of _virStorageSource
      it really should be allowed to be a subelement of the disk <source>
      for the RBD and iSCSI prototcols. That way we can set up to allow
      the <auth> element to be formatted within the disk source.
      
      Since we've allowed the <auth> to be a child of <disk>, we'll need
      to keep track of how it was read so that when writing out we'll know
      whether to format as child of <disk> or <source>. For the argv2xml
      parsing, let's format under <source> as a preference. Do not allow
      <auth> to be both a child of <disk> and <source>.
      
      Modify the qemuxml2argvtest to add a parse failure when there is an
      <auth> as a child of <disk> *and* an <auth> as a child of <source>.
      
      Add tests to validate that if the <auth> was found in <source>, then
      the resulting xml2xml and xml2arg works just fine.  The two new .args
      file are exact copies of the non "-source" version of the file.
      
      The virschematest will read the new test files and validate from a
      RNG viewpoint things are fine
      
      Update the virstoragefile, virstoragetest, and args2xml file to show
      the "preference" to place <auth> as a child of <source>.
      8002d3cb
  10. 19 10月, 2017 1 次提交
  11. 18 10月, 2017 2 次提交
  12. 17 10月, 2017 4 次提交
    • J
      qemu: Check QEMU error on failed migration · e1ca8ecb
      Jiri Denemark 提交于
      When migration fails, QEMU may provide a description of the error in
      the reply to query-migrate QMP command. We can fetch this error and use
      it instead of the generic "unexpectedly failed" message.
      Signed-off-by: NJiri Denemark <jdenemar@redhat.com>
      Reviewed-by: NPavel Hrdina <phrdina@redhat.com>
      e1ca8ecb
    • P
      Terminate backing chains explicitly · a693fdba
      Peter Krempa 提交于
      Express a properly terminated backing chain by putting a
      virStorageSource of type VIR_STORAGE_TYPE_NONE in the chain. The newly
      used helpers simplify this greatly.
      
      The change fixes a bug as formatting an incomplete backing chain and
      parsing it back would end up in expressing a terminated chain since
      src->backingStoreRaw was not populated. By relying on the terminator
      object this can be now processed appropriately.
      a693fdba
    • P
      util: storagefile: Add helpers to check presence of backing store · 0a294a8e
      Peter Krempa 提交于
      Add helpers that will simplify checking if a backing file is valid or
      whether it has backing store. The helper virStorageSourceIsBacking
      returns true if the given virStorageSource is a valid backing store
      member. virStorageSourceHasBacking returns true if the virStorageSource
      has a backing store child.
      
      Adding these functions creates a central points for further refactors.
      0a294a8e
    • P
      test: set 'type' field of virStorageSource · 8fdeefe1
      Peter Krempa 提交于
      Set the type so that the iterators will work after upcoming
      modification.
      8fdeefe1