Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bootstrap services #4

Merged
merged 6 commits into from
Oct 20, 2022
Merged

Bootstrap services #4

merged 6 commits into from
Oct 20, 2022

Conversation

masnax
Copy link
Contributor

@masnax masnax commented Oct 18, 2022

Adds logic for bootstrapping MicroCloud, MicroCeph, and LXD.

Both microcloud and microcloudd now require 3 flags: --cloud-dir, --ceph-dir, and --lxd-dir for locating the state directories of the respective services.

On microcloud bootstrap --auto, the local daemon will find eligible peers, bootstrap its own services, issue join tokens, and broadcast the tokens for the peers. Once all peers have notified that they have joined the cluster, or 30 seconds have passed, the broadcast will end.

On microcloud bootstrap (without --auto flag), the local daemon will ask for an address/name, then scan every few seconds for new eligible peers until receiving user input. After which, we will bootstrap the cluster. Once the bootstrapping process is complete, the daemon will offer to add local disks to Ceph for each peer.

Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
@masnax masnax force-pushed the bootstrap branch 2 times, most recently from 84b6e03 to 2e39cf5 Compare October 19, 2022 15:31
@masnax masnax marked this pull request as ready for review October 19, 2022 15:32
@masnax masnax requested a review from stgraber October 19, 2022 15:32
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Assigning a custom name is commented out because it seems MicroCeph
doesn't support it at the moment.

Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
@stgraber stgraber merged commit ea89fa2 into canonical:main Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants