1. 04 11月, 2017 1 次提交
  2. 03 11月, 2017 3 次提交
  3. 02 11月, 2017 1 次提交
  4. 27 10月, 2017 2 次提交
  5. 26 10月, 2017 1 次提交
  6. 23 10月, 2017 2 次提交
  7. 20 10月, 2017 2 次提交
    • 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
  8. 19 10月, 2017 1 次提交
  9. 18 10月, 2017 2 次提交
  10. 17 10月, 2017 2 次提交
  11. 16 10月, 2017 1 次提交
  12. 06 10月, 2017 1 次提交
  13. 05 10月, 2017 2 次提交
    • J
      docs,rng: Adjust storage pool name grammar checks · 5d765902
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1475250
      
      It's possible to define and start a pool with a '.' in the
      name; however, when trying to add a volume to a domain using
      the storage pool source with a '.' in the storage pool name,
      the domain RNG validation fails because RNG uses 'genericName'
      which does not allow a '.' in the name.
      
      Domain XML def parsing has a virXMLValidateAgainstSchema which
      generates the error. The Storage Pool XML def parsing has no
      call to virXMLValidateAgainstSchema. The only Storage Pool name
      validation occurs in virStoragePoolDefParseXML to ensure the
      name doesn't have a '/' in it and in storagePoolDefineXML to
      call virXMLCheckIllegalChars using the same parameter "\n" as
      qemuDomainDefineXMLFlags would check after the RNG check
      could be succesful.
      
      In order to resolve this, create a poolName definition in
      storagecommon.rng that will mimic the domain name regex that
      disallows a newline character, but add the "/" in the exclude
      list. Then modify the pool and volume source name definitions
      to key off that poolName.
      5d765902
    • M
      news: Document domifstat and QoS changes made recently · c7e3fc11
      Michal Privoznik 提交于
      In cea3715b and d86fd240 I've fixed domifstat and QoS
      that was reversed for some types of interfaces. Document this
      in the news file.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      c7e3fc11
  14. 04 10月, 2017 3 次提交
  15. 03 10月, 2017 1 次提交
  16. 02 10月, 2017 1 次提交
  17. 28 9月, 2017 2 次提交
    • A
      util: Add TLS attributes to virStorageSource · f1705485
      Ashish Mittal 提交于
      Add an optional virTristateBool haveTLS to virStorageSource to
      manage whether a storage source will be using TLS.
      
      Sample XML for a VxHS disk:
      
      <disk type='network' device='disk'>
        <driver name='qemu' type='raw' cache='none'/>
        <source protocol='vxhs' name='eb90327c-8302-4725-9e1b-4e85ed4dc251' tls='yes'>
          <host name='192.168.0.1' port='9999'/>
        </source>
        <target dev='vda' bus='virtio'/>
      </disk>
      
      Additionally add a tlsFromConfig boolean to control whether the TLS
      setting was due to domain configuration or qemu.conf global setting
      in order to decide whether to Format the haveTLS setting for either
      a live or saved domain configuration file.
      
      Update the qemuxml2xmltest in order to add a test to show the proper
      parsing.
      
      Also update the docs to describe the tls attribute.
      Signed-off-by: NAshish Mittal <Ashish.Mittal@veritas.com>
      Signed-off-by: NJohn Ferlan <jferlan@redhat.com>
      f1705485
    • J
      docs: Clean up the description for network disk protocol options · 70ad3052
      John Ferlan 提交于
      Clean up the description a bit to make it more readable and not
      appear as one long run-on paragraph.
      70ad3052
  18. 27 9月, 2017 2 次提交
  19. 22 9月, 2017 1 次提交
    • J
      news: remove kernel version reference from switchdev entry · 9eba1168
      Ján Tomko 提交于
      The functionality was added in 4.8, but due to a rename of
      the DEVLINK_CMD_ESWITCH_GET constant in the kernel headers,
      the headers from kernel 4.11 are required by the libvirt code.
      
      Remove the reference from the news entry, since it could be
      misleading.
      9eba1168
  20. 20 9月, 2017 2 次提交
  21. 19 9月, 2017 2 次提交
    • A
      python: Don't hardcode interpreter path · f34fdd5a
      Andrea Bolognani 提交于
      This is particularly useful on operating systems that don't ship
      Python as part of the base system (eg. FreeBSD) while still working
      just as well as it did before on Linux.
      
      While at it, make it explicit that our scripts are only going to
      work with Python 2, and remove the usage of unbuffered I/O, which
      as far as I can tell has no effect on the output files.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      f34fdd5a
    • A
      perl: Don't hardcode interpreter path · 90b17aef
      Andrea Bolognani 提交于
      This is particularly useful on operating systems that don't ship
      Perl as part of the base system (eg. FreeBSD) while still working
      just as well as it did before on Linux.
      
      In one case (src/rpc/genprotocol.pl) the interpreter path was
      missing altogether.
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      90b17aef
  22. 18 9月, 2017 3 次提交
  23. 15 9月, 2017 2 次提交
    • 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
    • C
      1f085acb