1. 03 Feb, 2019 5 commits
  2. 01 Feb, 2019 3 commits
  3. 29 Jan, 2019 4 commits
  4. 11 Jan, 2019 2 commits
    • Jan Pokorný's avatar
      init: Enable StopWhenUnneeded · 03d9321b
      Jan Pokorný authored
      It shall be a rule of thumb not to combine "application stack"
      components run under particular init/supervision mechanism and
      run by whatever other means (without transitive relationships
      like when corosync's client runs from other pacemaker that is
      itself started through systemd) when there's a directed graph
      of reliance between them (sans constrained corner cases like
      when of such components is a kernel module).
      
      And corosync on its own is just a service provider that only
      appears useful when utilized as a basic building block for
      application specific distributed environments.
      
      Therefore, we may assume whenever corosync gets started by the
      means of systemd, it's because of a mechanized attempt to satisfy
      declared dependency of some such corosync's client that is about
      to be started under the service manager realms (directly or, by
      induction, through the same triggering mechanism indirectly).
      Hence, when there's no such client around anymore (unless
      this dependant is being restarted at the moment, see below)
      corosync shall rather shutdown as well.
      
      In the past, there was an issue with systemd regarding said
      inflicted restart of the dependant/client, but that's resolved
      as of v236:
      https://github.com/systemd/systemd/commit/
      
      
      deb4e7080db9dcd2a1d51ccf7c357f88ea863e54
      
      Signed-off-by: default avatarJan Pokorný <jpokorny@redhat.com>
      Reviewed-by: default avatarJan Friesse <jfriesse@redhat.com>
      03d9321b
    • Jan Friesse's avatar
      totemip: Use AF_UNSPEC for ipv4-6 and ipv6-4 · 2ab4d418
      Jan Friesse authored
      
      
      AF_UNSPEC returns different results than AF_INET/AF_INET6, because of
      nsswitch.conf search is in order and it stops asking other
      modules once current module success.
      
      Example of difference between previous and new code when ipv6-4 is used:
      - /etc/hosts contains test_name with an ipv4
      - previous code called AF_INET6 where /etc/hosts failed so other methods
      were used which may return IPv6 addr -> result was ether fail or IPv6
      address.
      - new code calls AF_UNSPEC returning IPv4 defined in /etc/hosts ->
      result is IPv4 address
      
      New code behavior should solve problems caused by nss-myhostname.
      
      Signed-off-by: default avatarJan Friesse <jfriesse@redhat.com>
      Reviewed-by: default avatarFabio M. Di Nitto <fdinitto@redhat.com>
      2ab4d418
  5. 03 Jan, 2019 4 commits
  6. 22 Dec, 2018 16 commits
  7. 16 Dec, 2018 1 commit
  8. 14 Dec, 2018 2 commits
    • Jan Friesse's avatar
      main: Rename run_dir to state_dir · 0ee7fd0c
      Jan Friesse authored
      
      
      system.run_dir was a little bit unfortunate and confusing name. Rename
      to state_dir makes more evident what is content of this directory. To
      keep setting consistent with code, get_run_dir is changed to
      get_state_dir.
      
      Signed-off-by: default avatarJan Friesse <jfriesse@redhat.com>
      Reviewed-by: default avatarChristine Caulfield <ccaulfie@redhat.com>
      0ee7fd0c
    • Jan Friesse's avatar
      totemconfig: Enhance totem.ip_version · a84ade70
      Jan Friesse authored
      
      
      Originally totem.ip_version was used to force ip version used by totem.
      With Knet this variable didn't make too much sense so it was not used.
      
      Sadly rely only on DNS resolver order doesn't always work (RFC is quite
      complicated, but if IPv6 is not configured then IPv4 is preferred), what
      we tried to solve by forcing IPv6 and only if that fails, use IPv4.
      
      Sadly this collides with nss_myhostname which is able to return every
      local address and today system usually have at least one autogenerated
      link-local IPv6 address so it is able to "overwrite" /etc/hosts.
      
      Solution is to enhance totem.ip_version and use it also for Knet.
      totem.ip_version is now just a flag for resolver and can have four
      states: ipv4 (only IPv4 is used), ipv6 (only IPv6 is used), ipv4-6 (ask
      IPv4 first and if it fails ask for IPv6) and ipv6-4 (ask IPv6 first and
      if it fails ask for IPv4). Default for Knet and UDPU transports is
      ipv6-4, for UDP it's ipv4, because autogenerated mcast addr doesn't play
      too well with ipv6-4.
      
      So everywhere where nss_myhostname becomes problem, it's just possible
      to set totem.ip_version to ipv4-6.
      
      Signed-off-by: default avatarJan Friesse <jfriesse@redhat.com>
      Reviewed-by: default avatarJan Friesse <jfriesse@redhat.com>
      a84ade70
  9. 13 Dec, 2018 3 commits