1. 18 7月, 2018 1 次提交
  2. 05 6月, 2018 1 次提交
  3. 02 2月, 2018 1 次提交
  4. 31 1月, 2018 1 次提交
    • D
      rpc: refactor virNetServer setup for post-exec restarts · 8aca1410
      Daniel P. Berrange 提交于
      With the current code it is neccessary to call
      
        virNetDaemonNewPostExecRestart()
      
      and then for each server that needs restarting you are supposed
      to call
      
        virNetDaemonAddSeverPostExecRestart()
      
      This is fine if there's only ever one server, but as soon as you
      have two servers it is impossible to use this design. The code
      has no idea which servers were recorded in the JSON state doc,
      nor in which order the hash table serialized its keys.
      
      So this patch changes things so that we only call
      
        virNetDaemonNewPostExecRestart()
      
      passing in a callback, which is invoked once for each server
      found int he JSON state doc.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      8aca1410
  5. 04 1月, 2018 1 次提交
  6. 03 11月, 2017 1 次提交
    • A
      Remove backslash alignment attempts · 3e7db8d3
      Andrea Bolognani 提交于
      Right-aligning backslashes when defining macros or using complex
      commands in Makefiles looks cute, but as soon as any changes is
      required to the code you end up with either distractingly broken
      alignment or unnecessarily big diffs where most of the changes
      are just pushing all backslashes a few characters to one side.
      
      Generated using
      
        $ git grep -El '[[:blank:]][[:blank:]]\\$' | \
          grep -E '*\.([chx]|am|mk)$$' | \
          while read f; do \
            sed -Ei 's/[[:blank:]]*[[:blank:]]\\$/ \\/g' "$f"; \
          done
      Signed-off-by: NAndrea Bolognani <abologna@redhat.com>
      3e7db8d3
  7. 04 4月, 2017 1 次提交
  8. 08 6月, 2016 2 次提交
  9. 03 5月, 2016 2 次提交
    • E
      rpc: virnetserverclient: Introduce new attribute conn_time to client · a32135b3
      Erik Skultety 提交于
      Besides ID, libvirt should provide several parameters to help the user
      distinguish two clients from each other. One of them is the connection
      timestamp. This patch also adds a testcase for proper JSON formatting of the
      new attribute too (proper formatting of older clients that did not support
      this attribute yet is included in the existing tests) - in order to
      testGenerateJSON to work, a mock of time_t time(time_t *timer) needed to be
      created.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      a32135b3
    • E
      rpc: virnetserverclient: Identify clients by an integer ID · 5841d64d
      Erik Skultety 提交于
      Admin API needs a way of addressing specific clients. Unlike servers, which we
      are happy to address by names both because its name reflects its purpose (to
      some extent) and we only have two of them (so far), naming clients doesn't make
      any sense, since a) each client is an anonymous, i.e. not recognized after a
      disconnect followed by a reconnect, b) we can't predict what kind of requests
      it's going to send to daemon, and c) the are loads of them comming and going,
      so the only viable option is to use an ID which is of a reasonably wide data
      type.
      Signed-off-by: NErik Skultety <eskultet@redhat.com>
      5841d64d
  10. 21 4月, 2016 1 次提交
  11. 11 3月, 2016 2 次提交
  12. 17 2月, 2016 1 次提交
  13. 01 12月, 2015 1 次提交
  14. 24 9月, 2015 1 次提交
  15. 10 8月, 2015 1 次提交
    • M
      rpc: Remove keepalive_required option · a8743c39
      Martin Kletzander 提交于
      Since its introduction in 2011 (particularly in commit f4324e32),
      the option doesn't work.  It just effectively disables all incoming
      connections.  That's because the client private data that contain the
      'keepalive_supported' boolean, are initialized to zeroes so the bool is
      false and the only other place where the bool is used is when checking
      whether the client supports keepalive.  Thus, according to the server,
      no client supports keepalive.
      
      Removing this instead of fixing it is better because a) apparently
      nobody ever tried it since 2011 (4 years without one month) and b) we
      cannot know whether the client supports keepalive until we get a ping or
      pong keepalive packet.  And that won't happen until after we dispatched
      the ConnectOpen call.
      
      Another two reasons would be c) the keepalive_required was tracked on
      the server level, but keepalive_supported was in private data of the
      client as well as the check that was made in the remote layer, thus
      making all other instances of virNetServer miss this feature unless they
      all implemented it for themselves and d) we can always add it back in
      case there is a request and a use-case for it.
      Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
      a8743c39
  16. 16 6月, 2015 1 次提交
  17. 15 6月, 2015 2 次提交
  18. 11 6月, 2015 1 次提交
    • D
      rpc: add testing of RPC JSON (de)serialization · d1f6efb1
      Daniel P. Berrange 提交于
      The virNetServer class has the ability to serialize its state
      to a JSON file, and then re-load that data after an in-place
      execve() call to re-connect to active file handles. This data
      format is critical ABI that must have compatibility across
      releases, so it should be tested...
      d1f6efb1