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

feature: mixed disk drive layouts #653

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

m-ildefons
Copy link
Contributor

Provision mixed disk drive layouts when specifying --num-disks and
--disk-size multiple times.

fixes: #652
Signed-off-by: Moritz Röhrich moritz.rohrich@suse.com

@kshtsk
Copy link
Contributor

kshtsk commented Jul 12, 2022

This looks like a new feature, and a slight behavior change. Did we have any discussion on why do we need this? If so, is there any reference to the discussion and decision taken?
Now, if we really want this feature the docs should be updated within this PR, of course, description of the commits should be updated to give more understanding for a reviewer what is change and why, and probably usage hints too.

def __append_disks_to_node(self, node):
for _i, _n in enumerate(self.settings.num_disks):
for _ in range(_n):
node.storage_disks.append(Disk(self.settings.disk_size[_i]
Copy link
Contributor

Choose a reason for hiding this comment

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

What happens disk_size length is less than num_disks?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasn't aware that the foo[bar] or buzz syntax doesn't work with lists. AFAIK it works with dicts though. Fixed it.

Copy link
Contributor

@kshtsk kshtsk left a comment

Choose a reason for hiding this comment

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

I don't think it is ready to merge yet.

@kshtsk
Copy link
Contributor

kshtsk commented Aug 2, 2022

jenkins retest this please

Provision mixed disk drive layouts when specifying `--num-disks` and
`--disk-size` multiple times.

fixes: SUSE#652
Signed-off-by: Moritz Röhrich <moritz.rohrich@suse.com>
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.

feature request: deploy OSDs with mixed disk layouts
2 participants