1. 02 8月, 2016 25 次提交
  2. 01 8月, 2016 6 次提交
  3. 29 7月, 2016 2 次提交
    • M
      conf: Catch invalid memory model earlier · 1e058463
      Michal Privoznik 提交于
      Consider the following XML snippet:
      
          <memory model=''>
            <target>
              <size unit='KiB'>523264</size>
              <node>0</node>
            </target>
          </memory>
      
      Whats wrong you ask? The @model attribute. This should result in
      an error thrown into users faces during virDomainDefine phase.
      Except it doesn't. The XML validation catches this error, but if
      users chose to ignore that, they will end up with invalid XML.
      Well, they won't be able to start the machine - that's when error
      is produced currently. But it would be nice if we could catch the
      error like this earlier.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      1e058463
    • E
      admin: Fix default uri config option name s/admin_uri_default/uri_default · f5f32bcd
      Erik Skultety 提交于
      The original name 'admin_uri_default' was introduced to our code by commit
      dbecb87f. However, at that time we already had a separate config file for
      admin library but the commit mentioned above didn't properly adjust the
      config's option name. The result is that when we're loading the config, we
      check a non-existent config option (there's not much to do with the URIs
      anyway, since we only allow local connection). Additionally, virt-admin's man
      page documents, that the default URI can be altered by setting
      admin_uri_default option. So the fix proposed by this patch leaves the
      libvirt-admin.conf as is and adjusts the naming in the code as well as in the
      virt-admin's man page.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      f5f32bcd
  4. 28 7月, 2016 7 次提交
    • M
      wireshark: Adapt to dissector function header change · 98aefa81
      Michal Privoznik 提交于
      In wireshark commit bbdd89b9 (contained in 2.1.0 release) they
      have changed prototype of dissector function. Now it returns
      number of bytes consumed by the dissector, and can get a pointer
      to user specified data (which we don't use).
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      98aefa81
    • J
      qemu: Need to free fileprops in error path · 8ad7eceb
      John Ferlan 提交于
      The virJSONValueObjectCreate only consumes the object on success, so on
      failure we must free - from commit id 'f4441017' (found by Coverity).
      8ad7eceb
    • J
      iscsi: Establish connection to target via static target login · 5d8c31c6
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1356436
      
      Commit id '56057900' altered the discovery of iSCSI node targets by
      using the "--op nonpersistent". This caused issues for clean environments
      or if by chance a "-m node -o delete" was executed.
      
      Since each iSCSI Storage Pool has the required iSCSI target path, use
      that and the virISCSINodeNew API in order to generate the iSCSI node record.
      5d8c31c6
    • J
      util: Introduce virISCSINodeNew · ae65c908
      John Ferlan 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1356436
      
      According to RFC 3721 (https://www.ietf.org/rfc/rfc3721.txt), there are
      two ways to "discover" targets in/for the iSCSI environment. Discovery
      is the process which allows the initiator to find the targets to which
      it has access and at least one address at which each target may be
      accessed.
      
      The method currently implemented in libvirt using the virISCSIScanTargets
      API is known as "SendTargets" discovery. This method is more useful when
      the target IP Address and TCP port information are available, e.g. in
      libvirt terms the "portal". It returns a list of targets for the portal.
      From that list, the target can be found. This operation can also fill an
      iSCSI node table into which iSCSI logins may occur. Commit id '56057900'
      altered that filling by adding the "--op nonpersistent" since it was
      not necessarily desired to perform that for non libvirt related targets.
      
      The second method is "Static Configuration". This method not only needs
      the IP Address and TCP port (e.g. portal), but also the iSCSI target name.
      In libvirt terms this would be the device path field from the iSCSI pool
      <source> XML. This patch implements the second methodology using that
      required device path as the targetname.
      ae65c908
    • E
      tools: Make use of the correct environment variables · d02ef334
      Erik Skultety 提交于
      Since commit 834c5720 which extracted the generic functionality out of virsh
      and made it available for other clients like virt-admin to make use of it, it
      also introduced a bug when it renamed the original VIRSH_ environment variables
      to VSH_ variables. Virt-admin of course suffers from the same bug, so this
      patch modifies the generic module vsh.c to construct the correct name for
      environment variables of each client from information it has.
      
      Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1357363Signed-off-by: NErik Skultety <eskultet@redhat.com>
      d02ef334
    • E
      vsh: Make vshInitDebug return int instead of void · 0ef07e19
      Erik Skultety 提交于
      Well, the reason behind this change is that if the function is extended in some
      way that e.g. would involve allocation we do not have a way of telling it to
      the caller. More specifically, vshInitDebug only relies on some hardcoded
      environment variables (by a mistake) that aren't documented anywhere so neither
      virsh's nor virt-admin's documented environment variables take effect. One
      possible solution would be duplicate the code for each CLI client or leave the
      method be generic and provide means that it could figure out, which client
      called it, thus initializing the proper environment variables but that could
      involve operations that might as well fail in certain circumstances and the
      caller should know that an error occurred.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      0ef07e19
    • D
      Refresh translations from zanata · 1db6908a
      Daniel P. Berrange 提交于
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      1db6908a