Skip to content

Fix ceph disk validation #227

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

Merged
merged 3 commits into from
Nov 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
microcloud/cmd/microcloud: Only require 3 systems to select ceph storage
Signed-off-by: Max Asnaashari <[email protected]>
  • Loading branch information
masnax committed Nov 29, 2023
commit bcf7b53b96f1a9302d44fbd41cad3edc897fedba
4 changes: 2 additions & 2 deletions microcloud/cmd/microcloud/main_init_preseed.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,8 @@ func (p *Preseed) validate(name string, bootstrap bool) error {
}

containsCephStorage = directCephCount > 0
if containsCephStorage && directCephCount < len(p.Systems) && len(p.Storage.Ceph) == 0 {
return fmt.Errorf("Some systems are missing ceph storage disks")
if containsCephStorage && directCephCount < 3 && len(p.Storage.Ceph) == 0 && bootstrap {
return fmt.Errorf("At least 3 systems must specify ceph storage disks")
}

containsLocalStorage = directLocalCount > 0
Expand Down