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

Closed
wants to merge 1 commit into 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 [email protected]

@m-ildefons m-ildefons force-pushed the 652-mixed-drive-layout branch from aab3b4e to 0849408 Compare May 27, 2022 07:36
@m-ildefons m-ildefons force-pushed the 652-mixed-drive-layout branch from 0849408 to b295a3c Compare June 13, 2022 11:17
@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

@m-ildefons m-ildefons force-pushed the 652-mixed-drive-layout branch from b295a3c to fed323a Compare August 3, 2022 06:41
Provision mixed disk drive layouts when specifying `--num-disks` and
`--disk-size` multiple times.

fixes: SUSE#652
Signed-off-by: Moritz Röhrich <[email protected]>
@m-ildefons m-ildefons force-pushed the 652-mixed-drive-layout branch from fed323a to 85de9f8 Compare August 3, 2022 06:43
@m-ildefons m-ildefons closed this Aug 29, 2024
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