1. 06 11月, 2015 1 次提交
    • D
      Revert "utils: Remove the logging of errors from virNetDevSendEthtoolIoctl" · a3f63b85
      Daniel P. Berrange 提交于
      This reverts commit 6f2a0198.
      
      This commit removed error reporting from virNetDevSendEthtoolIoctl
      pushing responsibility onto the callers. This is wrong, however,
      since virNetDevSendEthtoolIoctl calls virNetDevSetupControl
      which can still report errors. So as a result virNetDevSendEthtoolIoctl
      may or may not report errors depending on which bit of it fails, and as
      a result callers now overwrite some errors.
      
      It also introduced a regression causing unprivileged libvirtd to
      spew error messages to the console due to inability to query the
      NIC features, an error which was previously ignored.
      
      virNetDevSetupControlFull:148 : Cannot open network interface control socket: Operation not permitted
      virNetDevFeatureAvailable:3062 : Cannot get device wlp3s0 flags: Operation not permitted
      virNetDevSetupControlFull:148 : Cannot open network interface control socket: Operation not permitted
      virNetDevFeatureAvailable:3062 : Cannot get device wlp3s0 flags: Operation not permitted
      virNetDevSetupControlFull:148 : Cannot open network interface control socket: Operation not permitted
      virNetDevFeatureAvailable:3062 : Cannot get device wlp3s0 flags: Operation not permitted
      virNetDevSetupControlFull:148 : Cannot open network interface control socket: Operation not permitted
      virNetDevFeatureAvailable:3062 : Cannot get device wlp3s0 flags: Operation not permitted
      
      Looking back at the original posting I see no explanation of why
      thsi refactoring was needed, so reverting the clearly broken
      error reporting logic looks like the best option.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      a3f63b85
  2. 05 11月, 2015 4 次提交
  3. 04 11月, 2015 15 次提交
  4. 30 10月, 2015 2 次提交
    • L
      util: set max wait for IPv6 DAD to 20 seconds · ac339206
      Laine Stump 提交于
      This was originally set to 5 seconds, but times of 5.5 to 7 seconds
      were experienced. Since it's an arbitrary number intended to prevent
      an infinite hang, having it a bit too high won't hurt anything, and 20
      seconds looks to be adequate (i.e. I think/hope we don't need to make
      it tunable in libvirtd.conf)
      ac339206
    • L
      util: set error if DAD is not finished · d41a64a1
      Luyao Huang 提交于
      If DAD not finished in 5 seconds, user will get an
      unknown error like this:
      
       # virsh net-start ipv6
       error: Failed to start network ipv6
       error: An error occurred, but the cause is unknown
      
      Call virReportError to set an error.
      Signed-off-by: NLuyao Huang <lhuang@redhat.com>
      d41a64a1
  5. 29 10月, 2015 5 次提交
    • M
      wireshark: Install to generic plugin directory · 7c8250d7
      Michal Privoznik 提交于
      There has been a report on the list [1] that we are not
      installing the wireshark dissector into the correct plugin
      directory. And in fact we are not. The problem is, the plugin
      directory path is constructed at compile time. However, it's
      dependent on the wireshark version, e.g.
      
        /usr/lib/wireshark/plugins/1.12.6
      
      This is rather unfortunate, because if libvirt RPMs were built
      with one version, but installed on a system with newer one, the
      plugins are not really loaded. This problem lead fedora packagers
      to unify plugin path to:
      
        /usr/lib/wireshark/plugins/
      
      Cool! But this was enabled just in wireshark-1.12.6-4. Therefore,
      we must require at least that version.
      
      And while at it, on some distributions, the wireshark.pc file
      already has a variable that defines where plugin dir is. Use that
      if possible.
      
      1: https://www.redhat.com/archives/libvirt-users/2015-October/msg00063.htmlSigned-off-by: NMichal Privoznik <mprivozn@redhat.com>
      7c8250d7
    • R
      Fix virNetDevWaitDadFinish stub · 2589ca30
      Roman Bogorodskiy 提交于
      Build on non-Linux fails because the virNetDevWaitDadFinish() stub
      has unused parameters. Fix by adding appropriate ATTRIBUTE_UNUSED
      for these parameters.
      
      Pushing under build-breaker rule.
      2589ca30
    • M
      network: wait for DAD to finish for bridge IPv6 addresses · 0f7436ca
      Maxim Perevedentsev 提交于
      commit db488c79 assumed that dnsmasq would complete IPv6 DAD before
      daemonizing, but in reality it doesn't wait, which creates problems
      when libvirt's bridge driver sets the matching "dummy tap device" to
      IFF_DOWN prior to DAD completing.
      
      This patch waits for DAD completion by periodically polling the kernel
      using netlink to check whether there are any IPv6 addresses assigned
      to bridge which have a 'tentative' state (if there are any in this
      state, then DAD hasn't yet finished). After DAD is finished, execution
      continues. To avoid an endless hang in case something was wrong with
      the kernel's DAD, we wait a maximum of 5 seconds.
      0f7436ca
    • M
      netlink: add support for multi-part netlink messages. · 131e7245
      Maxim Perevedentsev 提交于
      Such messages do not have NLMSG_ERROR or NLMSG_DONE type
      but they are valid responses. We test 'multi-partness'
      by looking for NLM_F_MULTI flag.
      131e7245
    • L
      qemu: Use live autoNodeset when numatune placement is auto · 4eac5523
      Luyao Huang 提交于
      https://bugzilla.redhat.com/show_bug.cgi?id=1270715
      
      Commit id '9deb96f9' removed the code to fetch the nodeset from the
      CpusetMems cgroup for a running vm in favor of using the return from
      virDomainNumatuneFormatNodeset introduced by commit id '43b67f2e'.
      However, that API will return the value of the passed 'auto_nodeset'
      when placement is VIR_DOMAIN_NUMATUNE_PLACEMENT_AUTO, which happens
      to be NULL.
      
      Since commit id 'c74d58ad' started using priv->autoNodeset in order
      to manage the auto placement value during qemuProcessStart, it should
      be passed along in order to return the correct value if the domain
      requests the auto placement.
      Signed-off-by: NLuyao Huang <lhuang@redhat.com>
      4eac5523
  6. 28 10月, 2015 2 次提交
  7. 27 10月, 2015 7 次提交
  8. 26 10月, 2015 4 次提交