1. 18 3月, 2016 8 次提交
    • J
      tests: add schema test for default cache mode · adddaff1
      Jim Fehlig 提交于
      None of the existing domXML configs under tests/* specify a
      default cache mode since default generally means "use the
      hypervisor default" and is left unset by the various hypervisor
      drivers. Add a config to tests/domainschemadata that specifies
      cache='default'.
      adddaff1
    • J
      tests: add xlconfigdata to domainschematests · 1a01e879
      Jim Fehlig 提交于
      Include the XML files under tests/xlconfigdata in the domain
      schema tests
      1a01e879
    • J
      conf: Format disk pool part_separator attribute for running pool · efb5e46b
      John Ferlan 提交于
      Commit id '4f846170' added printing of a new field 'part_separator';
      however, neglected to do so when there was an "freeExtent" defined
      for the device (as there would be when the disk pool was started).
      
      This patch adjusts the logic to appropriately format the device path and
      if there the part_separator attribute.
      efb5e46b
    • J
      qemu: Move last error save/restore to qemuBuildNetCommandLine · 1019bf14
      John Ferlan 提交于
      Commit 'ef2ab8fd' moved just the virDomainConfNWFilterTeardown and left
      the logic to save/restore the current error essentially doing nothing
      in the error path for qemuBuildCommandLine.  So move it to where it
      was meant to be.
      
      Although the original code would reset the filter on command creation
      errors after building the network command portion and commit 'ef2ab8fd'
      altered that logic, the teardown is called during qemuProcessStop from
      virDomainConfVMNWFilterTeardown and that code has the save/restore
      last error logic, so just allow that code to handle the teardown rather
      than running it twice. The qemuProcessStop would be called in the failure
      path of qemuBuildCommandLine.
      1019bf14
    • M
      tests: Set PATH in each test · 363b401f
      Michal Privoznik 提交于
      Currently we spawn couple of binaries in our test suite.
      Moreover, we provide some spoofed versions of system binaries
      hoping that those will be executed instead of the system ones.
      For instance, for testing SSH socket we have written our own ssh
      binary for producing predictable results. We certainly don't want
      to execute the system ssh binary.
      However, in order to prefer our binaries over system ones, we
      need to set PATH environment variable. But this is done only at
      the Makefile level. So if anybody runs a test by hand that
      expects our spoofed binary, the test ends up executing real
      system binaries. This is not good. In fact, it's terribly wrong.
      The fix lies in a small trick - putting our build directory at
      the beginning of the PATH environment variable in each test.
      Hopefully, since every test has this VIRT_TEST_MAIN* wrapper, we
      can fix this at a single place.
      Moreover, while this removes setting PATH for our tests written
      in bash, it's safe as we are not calling anything ours that would
      require PATH change there.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      363b401f
    • M
      Drop paths.h include · 865764de
      Michal Privoznik 提交于
      We include the file in plenty of places. This is mostly due to
      historical reasons. The only place that needs something from the
      header file is storage_backend_fs which opens _PATH_MOUNTED. But
      it gets the file included indirectly via mntent.h. At no other
      place in our code we need _PATH_.*. Drop the include and
      configure check then.
      Signed-off-by: NMichal Privoznik <mprivozn@redhat.com>
      865764de
    • J
      driver: log missing modules as INFO, not WARN · 9a0c7f5f
      Jovanka Gulicoska 提交于
      Missing modules is a common expected scenario for most libvirt usage on
      RPM distributions like Fedora, so it doesn't really warrant logging at
      WARN level. Use INFO instead
      
      https://bugzilla.redhat.com/show_bug.cgi?id=1274849
      9a0c7f5f
    • M
      admin: Add virAdmConnectLookupServer · b9a3ce95
      Martin Kletzander 提交于
      It does not have a suffix ByName because there are no other means of
      looking up the server and since the name is known, this should be the
      preferred one.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      b9a3ce95
  2. 17 3月, 2016 13 次提交
  3. 16 3月, 2016 9 次提交
    • E
      virlog: Refactor virLogParseOutputs · 0b231195
      Erik Skultety 提交于
      The problem with the original virLogParseOutputs method was that the way it
      parsed the input, walking the string char by char and using absolute jumps
      depending on the virLogDestination type, was rather complicated to read.
      This patch utilizes virStringSplit method twice, first time to filter out any
      spaces and split the input to individual log outputs and then for each
      individual output to tokenize it by to the parts according to our
      PRIORITY:DESTINATION?(:DATA) format. Also, to STREQLEN for matching destination
      was replaced with virDestinationTypeFromString call.
      0b231195
    • E
      virlog: Introduce Type{To,From}String for virLogDestination · 034337fb
      Erik Skultety 提交于
      In order to refactor the ugly virLogParseOutputs method, this is a neat way of
      finding out whether the destination type (in the form of a string) user
      provided is a valid one. As a bonus, if it turns out it is valid, we get the
      actual enum which will later be passed to any of virLogAddOutput methods right
      away.
      034337fb
    • E
      tests: Add a new test for logging outputs parser · 6bd9758e
      Erik Skultety 提交于
      Test for parser's functionality.
      6bd9758e
    • E
      tests: Slightly tweak virlogtest · 814b2ec6
      Erik Skultety 提交于
      Patch adds a generic DO_TEST_FULL macro, some PASS/FAIL macros to better
      visually distinguish tests that should fail and tests that should pass. Also,
      some cosmetic changes like renames and direct call to fprintf is replaced with
      our VIR_TEST_DEBUG macro, as using testutils should be our preferred way of
      reporting errors in tests.
      814b2ec6
    • M
      nodedev: Shorten match condition · c1276177
      Martin Kletzander 提交于
      Just a cleanup I stumbled upon in one of my older branches I did when
      browsing through some code and forgot to send it.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      c1276177
    • M
      qemu: Don't access uninitialized memory · 71fa2eb2
      Martin Kletzander 提交于
      In qemuConnectDomainXMLToNative() we set up the monitor, but we never
      memset() it to zeros.  Thanks to the introduction of the logfile
      parameter of chardevs (and the logfile member of the struct), we started
      checking whether that's non-NULL and that exposed this old error.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      71fa2eb2
    • C
      qemu: Don't overwrite DomainSave errors · 26f3d9c2
      Cole Robinson 提交于
      These functions already report fine grained errors, there's no
      benefit to overwriting the error here.
      26f3d9c2
    • D
      qemuDomainRevertToSnapshot: save domain configuration · c5e81090
      Dmitry Andreev 提交于
      Reverting to a snapshot may change domain configuration. New
      configuration should be saved if domain has persistent flag.
      
      VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT is emitted in case of
      configuration update.
      c5e81090
    • D
      Introduce new VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT sub-event · 8047d457
      Dmitry Andreev 提交于
      VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT event should be emitted
      when domain configuration was changed on revert to snapshot.
      8047d457
  4. 15 3月, 2016 10 次提交