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

Allow skipping systems for ceph #125

Merged
merged 2 commits into from
Jun 19, 2023
Merged

Conversation

masnax
Copy link
Contributor

@masnax masnax commented Jun 19, 2023

Changes the requirement for ceph to at least 1 disk per machine up to 3 machines, rather than at least 1 disk for every machine.

Additionally, adds prompts to the interactive init to confirm if users wish to continue setting up ceph or ovn if some systems don't meet the requirements and must be skipped.

Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
Since some systems might not be able to join ceph or ovn, this adds a
confirmation (defaults to yes) to ensure the user is aware that some
machines might be missing from disk or network interface selection, and
thus ceph or ovn, respectively.

Signed-off-by: Max Asnaashari <max.asnaashari@canonical.com>
@masnax masnax requested a review from stgraber June 19, 2023 18:54
@stgraber stgraber merged commit 5667ec8 into canonical:main Jun 19, 2023
7 checks passed
Copy link
Contributor

@ru-fu ru-fu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the table where I select the disks for distributed storage, I now get a "v" character underneath the "boxes" for selection - is that on purpose?

image

@@ -520,6 +523,17 @@ func askNetwork(sh *service.ServiceHandler, peers map[string]mdns.ServerInfo, lx
return nil, nil, nil
}

if len(peers) != len(networks) {
wantsSkip, err := cli.AskBool("Some systems are ineligible for distributed networking. Continue anyway? (yes/no) [default=yes]: ", "yes")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I now get this message when I have 4 VMs selected for MicroCloud, and when I confirm all 4 of them are displayed, so apparently they are all eligible?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm, yeah it seems my approach was a bit naive. Should have a fix for that soon.

@masnax
Copy link
Contributor Author

masnax commented Jun 20, 2023

In the table where I select the disks for distributed storage, I now get a "v" character underneath the "boxes" for selection - is that on purpose?

@ru-fu This indicates that there are more items in the table than can be shown at once (which is max 15). You should be able to press the down arrow key to move down the table. The v will disappear when you hit the bottom. There's also a ^ to indicate you can move upward.

If for some reason that showed up for you without 16 items in the table, it might be some weird formatting edge case. If it happens again, could you copy the table for me please?

@ru-fu
Copy link
Contributor

ru-fu commented Jun 20, 2023

If for some reason that showed up for you without 16 items in the table, it might be some weird formatting edge case. If it happens again, could you copy the table for me please?

I only have 7 disks set up, and the table had only the 3 that were left for distributed storage.
It happened on all my attempts - I can copy it the next time I try my luck. ;)

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

3 participants