Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

gravel: add etcd #403

Merged
merged 22 commits into from
Apr 13, 2021
Merged

gravel: add etcd #403

merged 22 commits into from
Apr 13, 2021

Commits on Apr 12, 2021

  1. images/microos: add etcd, python aetcd3

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    1347206 View commit details
    Browse the repository at this point in the history
  2. gravel: nodes/mgr: spin-off token generation

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    aa2a0b1 View commit details
    Browse the repository at this point in the history
  3. gravel: nodes/mgr: spawn etcd on start / bootstrap

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    547a116 View commit details
    Browse the repository at this point in the history
  4. gravel: add etcd support on multi-node deployments

    Add new members on join. Relies on python's aetcd3 library
    for etcd shenanigans.
    
    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    85a0d34 View commit details
    Browse the repository at this point in the history
  5. gravel: nodes/mgr: make ceph.conf managed by cephadm

    So we can have a consistent and up to date ceph.conf across all nodes,
    let's rely on cephadm to manage it.
    
    We don't drop the ceph.conf initially shared with a joining node because
    we want to ensure that node is able to perform operations on the cluster
    as soon as join finishes, and we don't want to have to wait for cephadm
    to write the ceph.conf.
    
    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    857989f View commit details
    Browse the repository at this point in the history
  6. gravel: add kvstore controller

    Also adds needed typings for aetcd3.locks module.
    
    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    a5c7ca6 View commit details
    Browse the repository at this point in the history
  7. gravel: nodes/mgr: move node init earlier in the file

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    61fa349 View commit details
    Browse the repository at this point in the history
  8. gravel: nodes/mgr: make start async, add shutdown

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    7fe2d14 View commit details
    Browse the repository at this point in the history
  9. gravel: nodes/mgr: make as async as possible

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    fd73020 View commit details
    Browse the repository at this point in the history
  10. gravel: nodes/mgr: make etcd spawn async

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    c086a16 View commit details
    Browse the repository at this point in the history
  11. gravel: nodes/mgr: add kvstore support

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    21eaea5 View commit details
    Browse the repository at this point in the history
  12. gravel: nodes/mgr: keep token in kvstore

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    61ad42b View commit details
    Browse the repository at this point in the history
  13. images: config.sh: install etcd from custom location

    We needed to patch aetcd3 and the fix hasn't been merged upstream yet.
    So, we created our own package and uploaded it somewhere it can be
    reached. This is what we are installing now.
    
    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    2fefa66 View commit details
    Browse the repository at this point in the history
  14. gravel: nodes/mgr: obtain state on start, watch

    Obtain state and watch changes, update as needed.
    
    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    ac8d0af View commit details
    Browse the repository at this point in the history
  15. gravel: ctrl/svc: make it a ticker

    We're going to cache things in the near-future, and obtain state from
    the kvstore, watches and whatnot. We need it to be a full fledged
    service.
    
    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    a0ad5cd View commit details
    Browse the repository at this point in the history
  16. gravel: ctrl/svc: gate operations if not ready

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    bb22107 View commit details
    Browse the repository at this point in the history
  17. gravel: kv: allow returning None on 'get'

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    61021bb View commit details
    Browse the repository at this point in the history
  18. gravel: nodes/mgr: expose kvstore to the world

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    5a973ad View commit details
    Browse the repository at this point in the history
  19. gravel: ctrl/svc: keep state in kvstore

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    c737488 View commit details
    Browse the repository at this point in the history
  20. gravel: gstate: cleanup tickers on shutdown

    For those services needing to cleanup state, add a shutdown method to be
    called when we are shutting down.
    
    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    ba50e74 View commit details
    Browse the repository at this point in the history
  21. gravel: ctrl/svc: cleanup watcher on shutdown

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    44d0224 View commit details
    Browse the repository at this point in the history
  22. aquarium: log shutdown event

    Signed-off-by: Joao Eduardo Luis <joao@suse.com>
    jecluis committed Apr 12, 2021
    Configuration menu
    Copy the full SHA
    9cc8749 View commit details
    Browse the repository at this point in the history