1. 04 12月, 2019 3 次提交
  2. 03 12月, 2019 28 次提交
  3. 02 12月, 2019 3 次提交
  4. 29 11月, 2019 4 次提交
  5. 28 11月, 2019 2 次提交
    • M
      nss: Don't fail on empty files · d7dd4e1f
      Michal Privoznik 提交于
      Before we rewrote nss plugin so that it doesn't use libvirt's
      internal functions it used virLeaseReadCustomLeaseFile() to parse
      .status files. After the rewrite it's using read() + yajl_parse()
      + yajl_complete_parse(). There's one catch though,
      virLeaseReadCustomLeaseFile() skipped over empty files.
      
      An empty .status file is created when a network is started. This
      is because we configure dnsmasq to use our leasehelper. So the
      first thing it does it calls it as follows:
      
        DNSMASQ_INTERFACE=virbr0 /usr/libexec/libvirt_leaseshelper init
      
      which causes the leasehelper to create empty virbr0.status file.
      If there is only one libvirt network then that is no problem -
      there are no other .status files to parse anyway. But if there
      are two or more networks then the first empty .status file causes
      whole parsing process and subsequently the whole name lookup
      process to fail.
      
      Fixes: v5.7.0-rc1~343
      Reported-by: NPavel Hrdina <phrdina@redhat.com>
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      Reviewed-by: NDaniel P. Berrangé <berrange@redhat.com>
      d7dd4e1f
    • D
      docs: don't run xmllint when generating API HTML files · 8d9ca128
      Daniel P. Berrangé 提交于
      After generating the API HTML files we run xmllint in docs/html/*.html
      to validate the correctness. Since
      
        commit 0aa8536f
        Author: Daniel P. Berrangé <berrange@redhat.com>
        Date:   Wed Nov 20 14:49:26 2019 +0000
      
          docs: generate API reference pages for admin, qemu & lxc libraries
      
      we have many rules generating files into docs/html/. The xmllint
      calls for each rule are picking up files which are part-generated by
      other parallel build rules resulting in transient errors like:
      
        GEN      html/index.html
        GEN      html/index-admin.html
        GEN      html/index-qemu.html
        GEN      html/index-lxc.html
        GEN      hvsupport.html.in
      html/index-lxc.html:1: parser error : Document is empty
      
      ^
      make[4]: *** [Makefile:2407: html/index-qemu.html] Error 1
      
      The easiest solution is to move the xmllint rules to the 'make check'
      phase of the build.
      Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
      Signed-off-by: NDaniel P. Berrangé <berrange@redhat.com>
      8d9ca128