Skip to content
  1. Dec 01, 2014
  2. Nov 30, 2014
  3. Nov 28, 2014
    • Michal Privoznik's avatar
      qemu: Don't track quiesced state of FSs · 6085d917
      Michal Privoznik authored
      https://bugzilla.redhat.com/show_bug.cgi?id=1160084
      
      
      
      As of b6d4dad1 (1.2.5) we are trying to keep the status of FSFreeze
      in the guest. Even though I've tried to fixed couple of corner cases
      (6ea54769), it occurred to me just recently, that the approach is
      broken by design. Firstly, there are many other ways to talk to
      qemu-ga (even through libvirt) that filesystems can be thawed (e.g.
      qemu-agent-command) without libvirt noticing. Moreover, there are
      plenty of ways to thaw filesystems without even qemu-ga noticing (yes,
      qemu-ga keeps internal track of FSFreeze status). So, instead of
      keeping the track ourselves, or asking qemu-ga for stale state, it's
      the best to let qemu-ga deal with that (and possibly let guest kernel
      propagate an error).
      
      Moreover, there's one bug with the following approach, if fsfreeze
      command failed, we've executed fsthaw subsequently. So issuing
      domfsfreeze in virsh gave the following result:
      
      virsh # domfsfreeze gentoo
      Froze 1 filesystem(s)
      
      virsh # domfsfreeze gentoo
      error: Unable to freeze filesystems
      error: internal error: unable to execute QEMU agent command 'guest-fsfreeze-freeze': The command guest-fsfreeze-freeze has been disabled for this instance
      
      virsh # domfsfreeze gentoo
      Froze 1 filesystem(s)
      
      virsh # domfsfreeze gentoo
      error: Unable to freeze filesystems
      error: internal error: unable to execute QEMU agent command 'guest-fsfreeze-freeze': The command guest-fsfreeze-freeze has been disabled for this instance
      
      Signed-off-by: default avatarMichal Privoznik <mprivozn@redhat.com>
      6085d917
    • Jiri Denemark's avatar
      Fix usage of virReportSystemError · 9340528a
      Jiri Denemark authored
      
      
      virReportSystemError is reserved for reporting system errors, calling it
      with VIR_ERR_* error codes produces error messages that do not make any
      sense, such as
      
          internal error: guest failed to start: Kernel doesn't support user
          namespace: Link has been severed
      
      We should prohibit wrong usage with a syntax-check rule.
      
      Signed-off-by: default avatarJiri Denemark <jdenemar@redhat.com>
      9340528a
    • Martin Kletzander's avatar
      b09b9266
  4. Nov 27, 2014
  5. Nov 26, 2014
  6. Nov 25, 2014
    • Eric Blake's avatar
      virsh: document block.n.allocation stat · 7296e896
      Eric Blake authored
      
      
      Commit 7557ddf8 added some additional block.* stats to
      virDomainListGetStats, but failed to document them in 'man
      virsh'.  Also, I noticed some inconsistent use of commas.
      
      * tools/virsh.pod (domstats): Tweak commas, add missing stats.
      
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      7296e896
    • Eric Blake's avatar
      dbus: fix arrays of bools · 96e0d677
      Eric Blake authored
      
      
      Commit 2aa167ca tried to fix the DBus interaction code to allow
      callers to use native types instead of 4-byte bools.  But in
      fixing the issue, I missed the case of an arrayref; Conrad Meyer
      shows the following valid complaint issued by clang:
      
        CC       util/libvirt_util_la-virdbus.lo
      util/virdbus.c:956:13: error: cast from 'bool *' to 'dbus_bool_t *' (aka 'unsigned int *') increases required alignment from 1 to 4 [-Werror,-Wcast-align]
                  GET_NEXT_VAL(dbus_bool_t, bool_val, bool, "%d");
                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      util/virdbus.c:858:17: note: expanded from macro 'GET_NEXT_VAL'
                  x = (dbustype *)(*xptrptr + (*narrayptr - 1));              \
                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated.
      
      But fixing that points out that we have NEVER supported arrayrefs
      of sub-int types (byte, i16, u16, and now bool).  Again, while raw
      types promote, arrays do not; so the macros HAVE to deal with both
      size possibilities rather than assuming that an arrayref uses the
      same sizing as the promoted raw type.
      
      Obviously, our testsuite wasn't covering as much as it should have.
      
      * src/util/virdbus.c (GET_NEXT_VAL): Also fix array cases.
      (SET_NEXT_VAL): Fix uses of sub-int arrays.
      * tests/virdbustest.c (testMessageArray, testMessageArrayRef):
      Test it.
      
      Signed-off-by: default avatarEric Blake <eblake@redhat.com>
      96e0d677
    • Wang Rui's avatar
      qemu: add the missing jobinfo type in qemuDomainGetJobInfo · 64b84911
      Wang Rui authored
      
      
      Commit 6fcddfcd refactored job statistics but missed the jobinfo type updated
      in qemuDomainGetJobInfo. After this patch, we can use virDomainGetJobInfo to
      get jobinfo type again.
      
      Signed-off-by: default avatarWang Rui <moon.wangrui@huawei.com>
      Signed-off-by: default avatarJiri Denemark <jdenemar@redhat.com>
      64b84911
    • John Ferlan's avatar
      Resolve build breaker · 5e5cf8e0
      John Ferlan authored
      Commit 'c264eeaa' didn't do the prerequisite 'make syntax-check' before
      pushing. There was a <tab> in the whitespace for the comment.  Replaced
      with spaces and aligned.
      
      pushed as build breaker since Jenkins complained loudly
      5e5cf8e0
    • Cédric Bosdonnat's avatar
      lxc: don't unmount subtree if it contains the source of the mount · e50457dd
      Cédric Bosdonnat authored
      The typical case where we had a problem is with such a filesystem
      definition as created by virt-sandbox-service:
      
          <filesystem type='bind' accessmode='passthrough'>
            <source dir='/var/lib/libvirt/filesystems/mysshd/var'/>
            <target dir='/var'/>
          </filesystem>
      
      In this case, we don't want to unmount the /var subtree or we may
      loose the access to the source folder.
      e50457dd
    • Cédric Bosdonnat's avatar
      lxc: be more patient while resolving symlinks · 72fecf18
      Cédric Bosdonnat authored
      Resolving symlinks can fail before mounting any file system if one file
      system depends on another being mounted. Symlinks are now resolved in
      two passes:
      
        * Before any file system is mounted, but then we are more gentle if
          the source path can't be accessed
        * Right before mounting a file system, so that we are sure that we
          have the resolved path... but then if it can't be accessed we raise
          an error.
      72fecf18
    • Cédric Bosdonnat's avatar
      ip link needs 'name' in 3.16 to create the veth pair · 433b427f
      Cédric Bosdonnat authored
      Due to a change (or bug?) in ip link implementation, the command
          'ip link add vnet0...'
      is forced into
          'ip link add name vnet0...'
      The changed command also works on older versions of iproute2, just the
      'name' parameter has been made mandatory.
      433b427f
    • Cédric Bosdonnat's avatar
      virt-aa-helper: /etc/libvirt-sandbox/services isn't restricted · c264eeaa
      Cédric Bosdonnat authored
      To get virt-sandbox-service working with AppArmor, virt-aa-helper
      needs not to choke on path in /etc/libvirt-sandbox/services.
      c264eeaa
    • Cédric Bosdonnat's avatar
      virt-aa-helper wasn't running virErrorInitialize · 22221233
      Cédric Bosdonnat authored
      This turns out to be working by magic but needs to be fixed.
      22221233
  7. Nov 24, 2014
Loading