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

osd: correct counting the devices when metadataDevice is set #13673

Conversation

satoru-takeuchi
Copy link
Member

The validation logic of checking the number of devices is wrong when metadataDevice is set and osdsPerDevice > 1. len(cvReports) is the expected number of OSDs and is the number of specified data devices multiplied by osdsPerDevice.

Issue resolved by this Pull Request:
Resolves #13637

Checklist:

  • Commit Message Formatting: Commit titles and messages follow guidelines in the developer guide.
  • Reviewed the developer guide on Submitting a Pull Request
  • Pending release notes updated with breaking and/or notable changes for the next minor release.
  • Documentation has been updated, if necessary.
  • Unit tests have been added, if necessary.
  • Integration tests have been added, if necessary.

Copy link
Contributor

@sp98 sp98 left a comment

Choose a reason for hiding this comment

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

Nit.
Rest looks good.

pkg/daemon/ceph/osd/volume_test.go Outdated Show resolved Hide resolved
@satoru-takeuchi satoru-takeuchi force-pushed the correct-counting-the-devices-when-metadatadevice-is-set branch from 5e53d5b to 70d258f Compare February 6, 2024 02:41
@satoru-takeuchi satoru-takeuchi force-pushed the correct-counting-the-devices-when-metadatadevice-is-set branch from 70d258f to 6073762 Compare February 6, 2024 07:32
@travisn
Copy link
Member

travisn commented Feb 6, 2024

@satoru-takeuchi please just rebase one more time to pick up all the CI fixes

The validation logic of checking the number of devices is
wrong when `metadataDevice` is set and `osdsPerDevice` > 1.
`len(cvReports)` is the expected number of OSDs and is
the number of specified data devices multiplied
by `osdsPerDevice`.

Closes: rook#13637

Signed-off-by: Satoru Takeuchi <satoru.takeuchi@gmail.com>
@satoru-takeuchi satoru-takeuchi force-pushed the correct-counting-the-devices-when-metadatadevice-is-set branch from 6073762 to 753bbfe Compare February 7, 2024 00:17
@satoru-takeuchi satoru-takeuchi merged commit 0fb7e1f into rook:master Feb 7, 2024
50 checks passed
mergify bot added a commit that referenced this pull request Feb 8, 2024
osd: correct counting the devices when metadataDevice is set (backport #13673)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

broken rook-ceph-osd-prepare job when used metadata device with osdsPerDevice more that 1
3 participants