1. 17 Jun, 2021 2 commits
  2. 07 Apr, 2021 4 commits
  3. 06 Apr, 2021 1 commit
  4. 03 Apr, 2021 8 commits
  5. 29 Mar, 2021 1 commit
  6. 25 Mar, 2021 1 commit
  7. 18 Mar, 2021 1 commit
    • Dan Streetman's avatar
      totemknet: retry knet_handle_new if it fails · 4f171ea5
      Dan Streetman authored
      
      
      Retry knet_handle_new without privileged operations if it fails
      
      knet_handle_new can fail with ENAMETOOLONG if its privileged operations
      fail, which can happen if we're running as a user process or in an
      unprivileged container.
      
      This adds a cmap key 'allow_knet_handle_fallback' that defaults to no,
      which is the current behavior of exiting with error if the knet_handle
      can't be created with privileged operations. If the new cmap key is set
      to 'yes' and the knet_handle creation fails, fallback to creating the
      handle using unprivileged operations is tried.
      
      Signed-off-by: Dan Streetman's avatarDan Streetman <ddstreet@canonical.com>
      Reviewed-by: default avatarJan Friesse <jfriesse@redhat.com>
      4f171ea5
  8. 11 Mar, 2021 1 commit
    • Dan Streetman's avatar
      main: Check memlock rlimit · 2d29f68e
      Dan Streetman authored
      
      
      Don't lock all current and future memory if can't
      increase memlock rlimit.
      
      If we fail to increase our RLIMIT_MEMLOCK, then locking all our current
      and future memory is extremely dangerous; once our memory use reaches
      our RLIMIT_MEMLOCK, memory allocations will start failing, very likely
      leading to our entire process crashing.
      
      This can happen if we aren't a privileged process, for example if
      running as non-root user, or inside an unprivileged container.
      
      Signed-off-by: Dan Streetman's avatarDan Streetman <ddstreet@canonical.com>
      Reviewed-by: default avatarJan Friesse <jfriesse@redhat.com>
      2d29f68e
  9. 09 Mar, 2021 4 commits
  10. 04 Mar, 2021 1 commit
  11. 28 Feb, 2021 2 commits
  12. 14 Jan, 2021 3 commits
  13. 01 Jan, 2021 2 commits
  14. 26 Dec, 2020 1 commit
  15. 26 Nov, 2020 2 commits
    • Jan Friesse's avatar
      cfg: Improve nodestatusget versioning · d76fc6ab
      Jan Friesse authored
      
      
      Patch tries to make nodestatusget really extendable. Following changes
      are implemented:
      - corosync_cfg_node_status_version_t is added with (for now) single
        value CFG_NODE_STATUS_V1
      - corosync_knet_node_status renamed to corosync_cfg_node_status_v1 (it
        isn't really knet because it works as well for udp(u()
      - struct res_lib_cfg_nodestatusget_version is added which holds only ipc
        result header and version on same position as for
        corosync_cfg_node_status_v1
      - corosync_cfg_node_status_get requires version and pointer to one of
        corosync_cfg_node_status_v structures
      - request is handled in case switches to make adding new version easier
      
      Also fix following bugs:
      - totempg_nodestatus_get error was retyped to cs_error_t without any
        meaning.
      - header.error was not checked at all in the library
      
      Signed-off-by: default avatarJan Friesse <jfriesse@redhat.com>
      Reviewed-by: default avatarChristine Caulfield <ccaulfie@redhat.com>
      d76fc6ab
    • Christine Caulfield's avatar
      cfg: New API to get extended node/link infomation · 9e7f62d2
      Christine Caulfield authored
      
      
      Current we horribly over-use totempg_ifaces_get() to
      retrieve information about knet interfaces. This is an attempt to
      improve on that.
      
      All transports are supported (so not only Knet but also UDP(U)).
      
      This patch builds best against the "onwire-upgrade" branch of knet
      as that's what sparked my interest in getting more information out.
      
      Signed-off-by: default avatarChristine Caulfield <ccaulfie@redhat.com>
      Reviewed-by: default avatarJan Friesse <jfriesse@redhat.com>
      9e7f62d2
  16. 12 Nov, 2020 1 commit
  17. 10 Nov, 2020 1 commit
  18. 08 Nov, 2020 1 commit
  19. 06 Nov, 2020 1 commit
  20. 02 Nov, 2020 1 commit
  21. 26 Oct, 2020 1 commit